/* DungeonSlice site: minimal, readable, slightly thematic */
:root {
	--bg: #0f0f0f;
	--surface: #1a1a1a;
	--text: #e8e6e3;
	--text-muted: #9a9690;
	--accent: #8b9a5c;
	--accent-hover: #a3b36e;
	--border: #2d2d2d;
	--radius: 6px;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main {
	flex: 1;
	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	width: 100%;
}

/* Header */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.nav {
	max-width: 720px;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.nav-brand {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text);
	text-decoration: none;
}

.nav-brand:hover {
	color: var(--accent);
}

.nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
}

.nav-links a:hover {
	color: var(--accent);
}

/* Footer */
.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 1rem 1rem 2rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

/* Typography */
h1, h2, h3 {
	line-height: 1.25;
	margin-top: 0;
}

h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; }

a {
	color: var(--accent);
}

a:hover {
	color: var(--accent-hover);
}

/* Home hero */
.hero {
	text-align: center;
	padding: 2rem 0 2.5rem;
}

.hero h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.hero p {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

/* Cards / sections */
.section {
	margin-bottom: 2rem;
}

.section-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

/* Signup form */
.signup {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
}

.signup p {
	margin: 0 0 1rem;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.signup-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: 400px;
}

.signup-form input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--text);
	font-size: 1rem;
}

.signup-form input[type="email"]::placeholder {
	color: var(--text-muted);
}

.signup-form button {
	padding: 0.6rem 1rem;
	background: var(--accent);
	color: var(--bg);
	border: none;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
}

.signup-form button:hover {
	background: var(--accent-hover);
}

/* CTA link (e.g. Get updates on home) */
.cta {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--accent);
	color: var(--bg);
	text-decoration: none;
	border-radius: var(--radius);
	font-weight: 600;
}

.cta:hover {
	background: var(--accent-hover);
	color: var(--bg);
}

/* Dev log list */
.dev-log-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dev-log-list li {
	border-bottom: 1px solid var(--border);
	padding: 0.5rem 0;
}

.dev-log-list li:last-child {
	border-bottom: none;
}

.dev-log-item {
	display: flex;
	gap: 1rem;
	align-items: center;
	text-decoration: none;
	color: var(--text);
}

.dev-log-item:hover {
	color: var(--accent);
}

.dev-log-item__thumb {
	width: 120px;
	height: 68px;
	object-fit: cover;
	border-radius: var(--radius);
	flex-shrink: 0;
	background: var(--surface);
}

.dev-log-item__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.dev-log-item__title {
	display: block;
	font-size: 1rem;
}

.dev-log-item__desc {
	display: block;
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.35;
}

.dev-log-list time {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.dev-log-list a {
	text-decoration: none;
}

/* Progress / roadmap */
.progress-phase {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
}

.progress-phase h3 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
}

.progress-phase .phase-meta {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.progress-phase ul {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.95rem;
	color: var(--text-muted);
}

.progress-phase.done ul {
	color: var(--text);
}

/* Horizontal scrolling roadmap: wide strip, ~7 cards visible, centered */
.roadmap-outer {
	width: 100vw;
	box-sizing: border-box;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 1.5rem;
	margin-bottom: 2rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	display: flex;
	justify-content: center;
}

.roadmap-wrap {
	max-width: 1840px; /* ~6 cards (280px) + 5 gaps (1.25rem) + padding */
	width: 100%;
	box-sizing: border-box;
}

.roadmap-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 1rem 0 0.75rem;
}

.roadmap-scroll::-webkit-scrollbar {
	height: 6px;
}

.roadmap-scroll::-webkit-scrollbar-track {
	background: var(--surface);
	border-radius: 3px;
}

.roadmap-scroll::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

.roadmap-track {
	display: flex;
	gap: 1.25rem;
	padding: 0.5rem 1rem 0.5rem 0.5rem;
	min-width: min-content;
}

.roadmap-card {
	flex: 0 0 auto;
	width: 280px;
	min-height: 88px;
	padding: 1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.roadmap-card__when {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.roadmap-card__label {
	font-size: 0.95rem;
	line-height: 1.35;
	color: var(--text);
}

.roadmap-card--done {
	border-color: var(--accent);
	opacity: 0.95;
	position: relative;
}

.roadmap-card__check {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	color: var(--accent);
	font-size: 1rem;
	line-height: 1;
	font-weight: bold;
}

.roadmap-card--done .roadmap-card__when {
	color: var(--accent);
}

.roadmap-card--upcoming .roadmap-card__label {
	color: var(--text-muted);
}

.roadmap-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.roadmap-list li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--border);
}

.roadmap-list li:last-child {
	border-bottom: none;
}

/* Content (dev log post body) */
.content :global(h2) { margin-top: 1.5rem; }
.content :global(h3) { margin-top: 1.25rem; }
.content :global(p) { margin: 0.75rem 0; }
.content :global(ul), .content :global(ol) { margin: 0.75rem 0; padding-left: 1.5rem; }
.content :global(img) { max-width: 100%; height: auto; border-radius: var(--radius); }
.content :global(iframe) { max-width: 100%; }
