/* Trimmed from project_ideas/html_wm_demo/style.css */
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-display: swap; src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-display: swap; src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); }

:root {
	--paper: #f3f6fa;
	--paper-deep: #e6edf5;
	--ink: #0b1c30;
	--ink-soft: #52637a;
	--navy: #123a66;
	--sea: #2a6fb0;
	--sea-light: #7fb3dc;
	--line: rgba(11, 28, 48, 0.16);
	--sans: 'Inter Variable', Inter, system-ui, sans-serif;
	--serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background:
		linear-gradient(rgba(11, 28, 48, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(11, 28, 48, 0.025) 1px, transparent 1px),
		var(--paper);
	background-size: 32px 32px;
	font: 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
::selection { color: var(--paper); background: var(--sea); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sea); }

/* Layout */
.shell { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 112px) 0; scroll-margin-top: 72px; }
.tint { background: rgba(213, 229, 244, 0.4); border-block: 1px solid var(--line); }

/* Type */
h1, h2, h3, p { margin-top: 0; }
h1, h3 { line-height: 1.06; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 6.6vw, 6.6rem); font-weight: 660; margin-bottom: 28px; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 630; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
.lede { max-width: 820px; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.4rem); line-height: 1.5; }
.lede a, .note a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sea-light); text-underline-offset: 0.18em; }
.note { max-width: 820px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.02rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; color: var(--sea); font-size: 0.76rem; font-weight: 720; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }

/* Small pieces */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.88rem; font-weight: 680; transition: transform 180ms, background 180ms, color 180ms; }
.button:hover { color: var(--paper); background: var(--ink); transform: translateY(-2px); }
.button.primary { color: var(--paper); background: var(--ink); }
.button.primary:hover { background: var(--sea); border-color: var(--sea); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: 0.77rem; font-weight: 680; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 5px rgba(42, 111, 176, 0.13); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; list-style: none; }
.tags li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 0.66rem; font-weight: 650; }

/* Header */
header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(243, 246, 250, 0.88); backdrop-filter: blur(14px); }
header .shell { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 0.88rem; font-weight: 720; }
.mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 0.68rem; }
nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 30px); }
nav a { color: var(--ink-soft); font-size: 0.78rem; font-weight: 650; }
nav a:hover { color: var(--ink); }
nav .pill { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; }

/* Hero */
.hero { padding: clamp(66px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr); align-items: center; gap: clamp(44px, 8vw, 110px); }
.hero-name { margin: 30px 0 12px; color: var(--navy); font-size: 0.78rem; font-weight: 760; letter-spacing: 0.14em; text-transform: uppercase; }
.pixel-sea { width: min(100%, 320px); aspect-ratio: 2 / 3; justify-self: center; border: 1px solid var(--line); background: var(--paper-deep); image-rendering: pixelated; }

/* Numbered columns */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.themes article { padding: 28px 30px 20px; border-left: 1px solid var(--line); }
.themes article:first-child { padding-left: 0; border-left: 0; }
.themes span { color: var(--sea); font-family: var(--serif); font-size: 0.9rem; }
.themes h3 { margin: 30px 0 12px; }
.themes p { margin-bottom: 0; color: var(--ink-soft); font-family: var(--serif); }

/* Rows: publications and projects */
.row { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.row .year { color: var(--sea); font-family: var(--serif); font-size: 1.35rem; }
.row .venue { margin-bottom: 9px; color: var(--ink-soft); font-size: 0.66rem; font-weight: 750; letter-spacing: 0.11em; text-transform: uppercase; }
.row h3 { margin-bottom: 9px; line-height: 1.18; }
.row p { max-width: 820px; margin-bottom: 12px; color: var(--ink-soft); font-size: 0.9rem; }
.row p:last-child { margin-bottom: 0; }
.row a { margin-right: 16px; color: var(--navy); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.row a:hover { color: var(--sea); }
.row b { color: var(--ink); font-weight: 680; }

/* Waves rolling into the footer */
.section.sea { padding-bottom: 0; }
.waves { display: block; width: 100%; height: clamp(70px, 10vw, 140px); margin: clamp(40px, 6vw, 80px) 0 -1px; }
.waves path { animation: drift 18s linear infinite; }
.waves path:nth-child(1) { fill: var(--sea-light); }
.waves path:nth-child(2) { fill: var(--sea); animation-duration: 13s; animation-direction: reverse; }
.waves path:nth-child(3) { fill: var(--ink); animation-duration: 9s; }

/* Footer */
footer { padding: 28px 0 24px; color: var(--paper); background: var(--ink); }
footer .links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.82rem; }
footer .links a:first-child { color: #a9cdec; text-decoration: underline; text-underline-offset: 0.22em; }
footer .meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(243, 246, 250, 0.18); color: rgba(243, 246, 250, 0.55); font-size: 0.7rem; }

@keyframes drift { to { transform: translateX(-1200px); } }
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.pixel-sea { width: min(64vw, 280px); }
	.themes { grid-template-columns: repeat(2, 1fr); }
	.themes article:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
	.themes { grid-template-columns: 1fr; }
	.themes article { padding-left: 0; border: 0; border-bottom: 1px solid var(--line); }
	.row { grid-template-columns: 1fr; gap: 4px; }
	nav a:not(.pill) { display: none; }
	footer .meta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Publication thumbnails under the year */
#publications .row { grid-template-columns: 240px 1fr; gap: 36px; }
.thumb { display: block; width: 100%; aspect-ratio: 3 / 2; margin-top: 12px; object-fit: contain; }
span.thumb { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(rgba(11, 28, 48, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 28, 48, 0.06) 1px, transparent 1px), var(--paper-deep); background-size: 16px 16px; }

/* Auto-numbered rows (projects) */
.numbered { counter-reset: n; }
.numbered .row .year::before { counter-increment: n; content: counter(n, decimal-leading-zero); }
@media (max-width: 700px) {
	#publications .row { grid-template-columns: 1fr; }
	.thumb { max-width: 260px; margin-bottom: 8px; }
}
