:root {
  --paper: #f4f1ea;
  --paper-2: #ece8de;
  --ink: #14110d;
  --ink-2: #2b2620;
  --muted: #6b6359;
  --rule: #d5cebd;
  --accent: #a8421e;
  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.014) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}
::selection { background: var(--ink); color: var(--paper); }

/* ── Layout ──────────────────────────────────────────────── */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 56px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page.home {
  justify-content: space-between;
  gap: 80px;
}
.page.doc {
  gap: 56px;
}

/* ── Top nav ─────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
  border: 0;
}
.wordmark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-1px);
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  border: 0;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* ── Hero (home) ─────────────────────────────────────────── */
.hero { max-width: 920px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 11vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: balance;
}
.lede em { font-style: italic; color: var(--ink-2); }

/* ── Document pages ──────────────────────────────────────── */
.doc-header { max-width: 760px; padding-top: 32px; }
.doc-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.doc-header h1 em { font-style: italic; color: var(--ink-2); }
.doc-header .sub {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}

.prose {
  border-top: 1px solid var(--rule);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.prose > section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 48px;
}
.prose h2 {
  grid-column: span 3;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 6px 0 0;
  align-self: start;
}
.prose .body {
  grid-column: span 9;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 64ch;
}
.prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.prose p.muted { color: var(--ink-2); }
.prose ul {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose ul li {
  padding-left: 22px;
  position: relative;
  text-wrap: pretty;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.prose .small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Info block ──────────────────────────────────────────── */
.info {
  border-top: 1px solid var(--rule);
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 48px;
}
.info .col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.info .value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.info .value.mono {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0;
}
.info a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.info a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────── */
.colophon {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.colophon a {
  color: var(--muted);
  text-decoration: none;
  border: 0;
  transition: color 0.15s ease;
}
.colophon a:hover { color: var(--accent); }
.page.doc .colophon { margin-top: auto; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .page { padding: 24px 24px 32px; }
  .page.home { gap: 56px; }
  .page.doc { gap: 40px; }
  .info { gap: 32px; padding-top: 32px; }
  .info .col { grid-column: span 12; }
  .colophon { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav { padding-bottom: 16px; gap: 12px; }
  .nav-links { gap: 16px; font-size: 10px; }
  .prose { gap: 32px; padding-top: 32px; }
  .prose > section { gap: 12px; }
  .prose h2 { grid-column: span 12; }
  .prose .body { grid-column: span 12; }
  .doc-header { padding-top: 16px; }
}
