/*
	Site-wide design system for billbenson.dev
	Dark theme, teal accent, Inter + JetBrains Mono.
*/

@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
	--bg: #0a0f16;
	--bg-raise: #0d141e;
	--surface: #111927;
	--surface-hover: #16202f;
	--border: rgba(148, 163, 184, 0.14);
	--border-strong: rgba(148, 163, 184, 0.28);
	--text: #dce6f2;
	--muted: #8fa0b4;
	--faint: #64748b;
	--accent: #2dd4bf;
	--accent-strong: #5eead4;
	--accent-soft: rgba(45, 212, 191, 0.1);
	--accent-border: rgba(45, 212, 191, 0.35);
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--radius: 10px;
	--content-width: 1080px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Subtle grid + glow backdrop */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(ellipse 60% 45% at 70% -10%, rgba(45, 212, 191, 0.07), transparent),
		linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
	background-size: 100% 100%, 44px 44px, 44px 44px;
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, rgba(0, 0, 0, 0.4) 100%);
	mask-image: linear-gradient(to bottom, black 0%, black 55%, rgba(0, 0, 0, 0.4) 100%);
}

::selection {
	background: rgba(45, 212, 191, 0.3);
	color: #fff;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.25;
	font-weight: 700;
	color: #f1f6fc;
	overflow-wrap: break-word;
}

p {
	margin: 0 0 1.1rem;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

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

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

code, kbd, pre {
	font-family: var(--font-mono);
}

.mono {
	font-family: var(--font-mono);
}

/* Skip link */

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	background: var(--accent);
	color: #04211c;
	font-weight: 600;
	padding: 0.5rem 1rem;
	border-radius: 6px;
}

.skip-link:focus {
	top: 1rem;
	color: #04211c;
}

/* ============ Navigation ============ */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(10, 15, 22, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.site-nav .nav-inner {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.nav-logo {
	font-family: var(--font-mono);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}

.nav-logo:hover {
	color: #fff;
}

.nav-logo .prompt {
	color: var(--accent);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: block;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.nav-links a:hover {
	color: var(--text);
	background: rgba(148, 163, 184, 0.08);
}

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

.nav-links a.nav-cta {
	margin-left: 0.5rem;
	color: var(--accent);
	border: 1px solid var(--accent-border);
}

.nav-links a.nav-cta:hover {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	font-size: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	cursor: pointer;
}

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.nav-links {
		position: absolute;
		top: 4rem;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
		background: rgba(10, 15, 22, 0.97);
		border-bottom: 1px solid var(--border);
		padding: 0.75rem 1rem 1rem;
		display: none;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-links a {
		padding: 0.65rem 0.8rem;
	}

	.nav-links a.nav-cta {
		margin-left: 0;
		text-align: center;
	}
}

/* ============ Layout ============ */

main {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 5rem 0 1.5rem;
}

.section-heading {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	margin-bottom: 2.25rem;
}

.section-heading .index {
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--accent);
}

.section-heading h2 {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.section-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
	transform: translateY(-0.35rem);
}

/* Reveal-on-scroll (only when JS is present) */

html.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js [data-reveal].revealed {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* ============ Hero ============ */

.hero {
	min-height: 92vh;
	display: flex;
	align-items: center;
	padding: 7rem 0 3rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 3.5rem;
	align-items: center;
	width: 100%;
}

.hero-kicker {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--accent);
	margin-bottom: 1.1rem;
	display: block;
}

.hero h1 {
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 0.35rem;
}

.hero .hero-role {
	font-size: clamp(1.25rem, 3vw, 1.7rem);
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 1.4rem;
}

.hero .hero-role .accent {
	color: var(--accent);
}

.hero-summary {
	max-width: 34rem;
	color: var(--muted);
	font-size: 1.05rem;
	margin-bottom: 1.6rem;
}

.hero-summary strong {
	color: var(--text);
	font-weight: 600;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--accent-strong);
	background: var(--accent-soft);
	border: 1px solid var(--accent-border);
	border-radius: 999px;
	padding: 0.35rem 0.95rem;
	margin-bottom: 1.75rem;
}

.status-badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5);
	animation: pulse 2.2s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.45); }
	70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
	100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.7rem 1.4rem;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
	background: var(--accent);
	color: #04211c;
}

.btn-primary:hover {
	background: var(--accent-strong);
	color: #04211c;
	transform: translateY(-1px);
}

.btn-ghost {
	border-color: var(--border-strong);
	color: var(--text);
	background: transparent;
}

.btn-ghost:hover {
	border-color: var(--accent-border);
	color: var(--accent-strong);
	background: var(--accent-soft);
}

.icon-row {
	display: flex;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.icon-row a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	color: var(--muted);
	font-size: 1.1rem;
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-row a:hover {
	color: var(--accent);
	border-color: var(--accent-border);
	transform: translateY(-2px);
}

/* Terminal card */

.terminal {
	background: var(--bg-raise);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	font-family: var(--font-mono);
	font-size: 0.83rem;
	line-height: 1.75;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 1rem;
	background: rgba(148, 163, 184, 0.06);
	border-bottom: 1px solid var(--border);
}

.terminal-bar .dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.terminal-bar .dot:nth-child(1) { background: #f87171; }
.terminal-bar .dot:nth-child(2) { background: #fbbf24; }
.terminal-bar .dot:nth-child(3) { background: #34d399; }

.terminal-bar .title {
	margin-left: 0.5rem;
	color: var(--faint);
	font-size: 0.75rem;
}

.terminal-body {
	padding: 1.25rem 1.4rem 1.5rem;
	overflow-x: auto;
}

.terminal-body .line {
	white-space: pre-wrap;
	word-break: break-word;
}

.terminal-body .prompt {
	color: var(--accent);
	user-select: none;
}

.terminal-body .cmd {
	color: #e2e8f0;
}

.terminal-body .out {
	color: var(--muted);
}

.terminal-body .out .hl {
	color: var(--accent-strong);
}

.terminal-body .cursor {
	display: inline-block;
	width: 0.55em;
	height: 1.1em;
	background: var(--accent);
	vertical-align: text-bottom;
	animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
	50% { opacity: 0; }
}

@media (max-width: 900px) {
	.hero {
		min-height: 0;
		padding: 7.5rem 0 2rem;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.terminal {
		max-width: 34rem;
	}
}

/* ============ Tags & chips ============ */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tags li {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--accent-strong);
	background: var(--accent-soft);
	border: 1px solid rgba(45, 212, 191, 0.2);
	border-radius: 999px;
	padding: 0.18rem 0.7rem;
	white-space: nowrap;
}

/* ============ Projects ============ */

.featured-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.4rem;
	margin-bottom: 1.4rem;
}

.project-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
	border-color: var(--accent-border);
	background: var(--surface-hover);
	transform: translateY(-3px);
}

.card-media {
	display: block;
	margin: -1.75rem -1.75rem 1.4rem;
	border-radius: var(--radius) var(--radius) 0 0;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
	aspect-ratio: 2 / 1;
}

.card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.card-media:hover img {
	transform: scale(1.02);
	opacity: 0.92;
}

.project-card .card-label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

.project-card h3 {
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
}

.project-card h3 a {
	color: inherit;
}

.project-card h3 a:hover {
	color: var(--accent-strong);
}

.metric {
	font-family: var(--font-mono);
	font-size: 0.83rem;
	line-height: 1.65;
	color: var(--accent-strong);
	background: var(--accent-soft);
	border-left: 3px solid var(--accent);
	border-radius: 0 6px 6px 0;
	padding: 0.7rem 1rem;
	margin: 0 0 1rem;
}

.project-card p {
	color: var(--muted);
	font-size: 0.93rem;
	margin-bottom: 1.1rem;
}

.project-card .tags {
	margin-bottom: 1.25rem;
}

.card-links {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.card-links a .fas,
.card-links a .fab {
	font-size: 0.8em;
	margin-right: 0.4rem;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.project-grid .project-card {
	padding: 1.5rem;
}

.project-grid .card-icon {
	font-size: 1.5rem;
	color: var(--accent);
	margin-bottom: 1rem;
}

.project-grid h3 {
	font-size: 1.05rem;
}

@media (max-width: 900px) {
	.featured-grid {
		grid-template-columns: 1fr;
	}

	.project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.project-grid {
		grid-template-columns: 1fr;
	}
}

/* ============ Experience timeline ============ */

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: var(--border);
}

.timeline > li {
	position: relative;
	padding: 0 0 2.75rem 2.4rem;
}

.timeline > li:last-child {
	padding-bottom: 0.5rem;
}

.timeline > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bg);
	border: 3px solid var(--accent);
}

.timeline .role-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1rem;
	margin-bottom: 0.15rem;
}

.timeline h3 {
	font-size: 1.1rem;
}

.timeline .period {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--accent);
	white-space: nowrap;
}

.timeline .org {
	color: var(--muted);
	font-size: 0.92rem;
	font-weight: 500;
	margin-bottom: 0.8rem;
}

.timeline ul {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--muted);
	font-size: 0.93rem;
}

.timeline ul li {
	position: relative;
	padding-left: 1.3rem;
	margin-bottom: 0.45rem;
}

.timeline ul li::before {
	content: "\203A";
	position: absolute;
	left: 0.2rem;
	color: var(--accent);
	font-weight: 700;
}

/* ============ Skills ============ */

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.skill-group {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem 1.6rem;
}

.skill-group h3 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.skill-group h3 .fas {
	color: var(--accent);
	font-size: 0.9rem;
}

.skill-group .tags li {
	color: var(--muted);
	background: rgba(148, 163, 184, 0.07);
	border-color: var(--border);
}

@media (max-width: 900px) {
	.skills-grid {
		grid-template-columns: 1fr;
	}
}

/* ============ Certifications ============ */

.cert-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.cert-card {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem 1.4rem;
	color: var(--text);
	transition: border-color 0.2s ease, background 0.2s ease;
}

a.cert-card:hover {
	border-color: var(--accent-border);
	background: var(--surface-hover);
	color: var(--text);
}

.cert-card .cert-icon {
	flex-shrink: 0;
	width: 2.7rem;
	height: 2.7rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 1.1rem;
}

.cert-card .cert-name {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.4;
}

.cert-card .cert-issuer {
	font-size: 0.8rem;
	color: var(--faint);
	font-family: var(--font-mono);
}

.cert-card .verify {
	margin-left: auto;
	font-size: 0.75rem;
	font-family: var(--font-mono);
	color: var(--accent);
	white-space: nowrap;
}

@media (max-width: 760px) {
	.cert-grid {
		grid-template-columns: 1fr;
	}
}

/* ============ About ============ */

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 3rem;
}

.about-text p {
	color: var(--muted);
}

.about-text p strong {
	color: var(--text);
	font-weight: 600;
}

.edu-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.4rem;
	margin-bottom: 1rem;
}

.edu-card h3 {
	font-size: 0.98rem;
	margin-bottom: 0.2rem;
}

.edu-card .edu-org {
	color: var(--muted);
	font-size: 0.88rem;
}

.edu-card .edu-note {
	display: inline-block;
	margin-top: 0.55rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--accent-strong);
	background: var(--accent-soft);
	border-radius: 999px;
	padding: 0.15rem 0.7rem;
}

@media (max-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ============ Contact ============ */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 3rem;
}

.contact-intro p {
	color: var(--muted);
}

.contact-methods {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.contact-methods li {
	margin-bottom: 0.4rem;
}

.contact-methods a {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.45rem 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.contact-methods a:hover {
	color: var(--accent-strong);
}

.contact-methods .fas,
.contact-methods .fab {
	width: 1.4rem;
	text-align: center;
	color: var(--accent);
}

.contact-form .field {
	margin-bottom: 1.1rem;
}

.contact-form .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

.contact-form label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--muted);
	margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	background: var(--bg-raise);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	padding: 0.7rem 0.9rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--accent-border);
	box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.contact-form textarea {
	resize: vertical;
	min-height: 8.5rem;
}

@media (max-width: 900px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 560px) {
	.contact-form .field-row {
		grid-template-columns: 1fr;
	}
}

/* ============ Footer ============ */

.site-footer {
	margin-top: 5rem;
	border-top: 1px solid var(--border);
	padding: 2.25rem 1.5rem 2.5rem;
	text-align: center;
}

.site-footer .icon-row {
	justify-content: center;
	margin-bottom: 1.25rem;
}

.site-footer .fine-print {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--faint);
	margin: 0;
}

.site-footer .fine-print a {
	color: var(--muted);
}

.site-footer .fine-print a:hover {
	color: var(--accent);
}

/* ============ Message pages (thanks / error) ============ */

.message-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1.5rem;
}

.message-page .msg-icon {
	font-size: 2.2rem;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid var(--accent-border);
	border-radius: 50%;
	width: 5rem;
	height: 5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.75rem;
}

.message-page.error .msg-icon {
	color: #fbbf24;
	background: rgba(251, 191, 36, 0.08);
	border-color: rgba(251, 191, 36, 0.3);
}

.message-page h1 {
	font-size: 1.6rem;
	margin-bottom: 0.75rem;
}

.message-page p {
	color: var(--muted);
	max-width: 28rem;
	margin-bottom: 2rem;
}

/* ============ Blog ============ */

.blog-main {
	max-width: 760px;
	margin: 0 auto;
	padding: 7.5rem 1.5rem 3rem;
}

.blog-header {
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1.75rem;
}

.blog-header .hero-kicker {
	margin-bottom: 0.6rem;
}

.blog-header h1 {
	font-size: 2rem;
	letter-spacing: -0.01em;
	margin: 0.6rem 0 0.4rem;
}

.blog-header > p {
	color: var(--muted);
	margin: 0;
	font-size: 0.95rem;
}

.post-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-card {
	margin-bottom: 1rem;
}

.post-card a {
	display: block;
	padding: 1.5rem 1.75rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.post-card a:hover {
	background: var(--surface-hover);
	border-color: var(--accent-border);
	transform: translateY(-2px);
}

.post-card h2 {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 0.35rem;
}

.post-card a:hover h2 {
	color: var(--accent-strong);
}

.post-meta {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--faint);
	margin: 0 0 0.6rem;
}

.post-description {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 0;
	line-height: 1.65;
}

.no-posts {
	color: var(--muted);
	font-style: italic;
}

/* Post content */

.post-content {
	color: var(--text);
	line-height: 1.8;
	font-size: 1rem;
}

.post-content h2 {
	font-size: 1.35rem;
	margin: 2.5rem 0 0.9rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--border);
}

.post-content h3 {
	font-size: 1.1rem;
	margin: 2rem 0 0.6rem;
}

.post-content p {
	margin: 0 0 1.25rem;
	color: rgba(220, 230, 242, 0.88);
}

.post-content a {
	border-bottom: 1px dotted var(--accent-border);
}

.post-content a:hover {
	border-bottom-color: var(--accent-strong);
}

.post-content ul,
.post-content ol {
	padding-left: 1.5rem;
	margin: 0 0 1.25rem;
	color: rgba(220, 230, 242, 0.88);
}

.post-content ul {
	list-style: disc;
}

.post-content ol {
	list-style: decimal;
}

.post-content li {
	margin-bottom: 0.4rem;
}

.post-content code {
	background: rgba(148, 163, 184, 0.1);
	border-radius: 4px;
	padding: 0.15em 0.4em;
	font-size: 0.86em;
	color: var(--accent-strong);
}

.post-content pre {
	background: var(--bg-raise);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

.post-content pre code {
	background: none;
	padding: 0;
	font-size: 0.84em;
	color: var(--text);
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.92rem;
}

.post-content th {
	background: rgba(148, 163, 184, 0.08);
	color: var(--text);
	font-weight: 600;
	text-align: left;
	padding: 0.6rem 1rem;
	border: 1px solid var(--border);
	font-size: 0.85rem;
}

.post-content td {
	padding: 0.55rem 1rem;
	border: 1px solid var(--border);
	color: var(--muted);
}

.post-content tr:nth-child(even) td {
	background: rgba(148, 163, 184, 0.03);
}

.post-content figure {
	margin: 1.75rem 0;
}

.post-content img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.post-content figcaption {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--faint);
	line-height: 1.55;
	margin-top: 0.6rem;
}

.post-content blockquote {
	border-left: 3px solid var(--accent-border);
	margin: 0 0 1.25rem;
	padding: 0.5rem 0 0.5rem 1.25rem;
	color: var(--muted);
	font-style: italic;
}

.blog-footer {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

.back-link {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--muted);
}

.back-link:hover {
	color: var(--accent);
}
