:root {
  color-scheme: dark;
  --ink: #f3efe2;
  --muted: #aaa99f;
  --line: #35352f;
  --ground: #111210;
  --panel: #191a17;
  --signal: #d4f26b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); font-family: var(--sans); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-underline-offset: .25em; }

.masthead, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.masthead { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.hero { min-height: 610px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 24px; color: var(--signal); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(3.1rem, 8vw, 7.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .92; }
.lede { max-width: 720px; margin: 36px 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.6; }
.button { display: inline-block; padding: 14px 20px; border: 1px solid var(--signal); color: var(--signal); text-decoration: none; }
.button:hover { background: var(--signal); color: var(--ground); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 72px 0 96px; gap: 1px; }
.grid article { min-height: 270px; padding: 32px; background: var(--panel); border-top: 3px solid var(--line); }
.grid span, time { color: var(--signal); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 52px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.grid p, .journal p, .prose p { color: var(--muted); line-height: 1.7; }

.page { min-height: 700px; padding: 110px 0; }
.page h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
.prose { max-width: 700px; margin: 72px 0 0 auto; }
.prose h2 { margin-top: 42px; }
.journal { margin-top: 80px; border-top: 1px solid var(--line); }
.journal article { display: grid; grid-template-columns: 180px 1fr 1.4fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.journal h2 { margin: 0; }
.journal p { margin: 0; }
.error-page { min-height: 660px; }

footer { display: flex; justify-content: space-between; padding: 28px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 720px) {
  .masthead, main, footer { width: min(100% - 28px, 1120px); }
  .masthead { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; }
  nav { gap: 16px; flex-wrap: wrap; }
  .hero { min-height: 560px; }
  .grid { grid-template-columns: 1fr; }
  .journal article { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
