@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/syne-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/syne-latin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0d0c;
  --surface: #171513;
  --surface-raised: #1e1b18;
  --text: #d4cfc4;
  --secondary-text: #9a9389;
  --faint-border: #302c28;
  --teal: #3ecfbf;
  --teal-dark: #163b37;
  --focus: #f0b86e;
  --measure: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Spectral", Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  background: var(--text);
  color: var(--bg);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(var(--measure), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--faint-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
}

.wordmark {
  color: var(--text);
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: lowercase;
}

.wordmark span {
  color: var(--teal);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: "Syne", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--secondary-text);
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 4rem;
  border-bottom: 1px solid var(--faint-border);
}

.eyebrow,
.column-label,
.source-note {
  margin: 0 0 0.8rem;
  color: var(--secondary-text);
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero__lede {
  max-width: 62ch;
  margin: 2rem 0 0;
  color: var(--secondary-text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.reference-notice {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--focus);
  background: var(--surface);
  color: var(--secondary-text);
}

.reference-notice strong {
  color: var(--text);
}

.manifest {
  padding: 3rem 0 6rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.25rem;
  border: 1px solid var(--faint-border);
  background: var(--surface);
}

.comparison-cell {
  min-width: 0;
  padding: 1.4rem;
}

.comparison-cell + .comparison-cell {
  border-left: 1px solid var(--faint-border);
}

.comparison-cell h2 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}

.comparison-cell p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.96rem;
}

.comparison-cell code {
  color: var(--text);
  font-size: 0.86em;
}

.manifest-summary {
  max-width: 72ch;
  margin-top: 4rem;
}

.manifest-summary h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.manifest-summary p {
  color: var(--secondary-text);
}

.source-note {
  margin-top: 3rem;
  text-transform: none;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding: 4rem 0;
}

.not-found__card {
  width: min(46rem, 100%);
  padding: clamp(2rem, 7vw, 5rem);
  border: 1px solid var(--faint-border);
  background: var(--surface);
}

.not-found h1 {
  max-width: none;
  font-size: clamp(3rem, 12vw, 7rem);
}

.not-found__code {
  color: var(--teal);
}

.not-found__card > p {
  max-width: 52ch;
  color: var(--secondary-text);
  font-size: 1.12rem;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.route-list a {
  display: block;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--faint-border);
  background: var(--surface-raised);
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.route-list a:hover {
  border-color: var(--teal);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--faint-border);
  color: var(--secondary-text);
  font-size: 0.9rem;
}

@media (max-width: 52rem) {
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-cell + .comparison-cell {
    border-top: 1px solid var(--faint-border);
    border-left: 0;
  }
}

@media (max-width: 38rem) {
  .page-shell {
    width: min(100% - 2rem, var(--measure));
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 0;
  }

  .route-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .skip-link,
  .site-nav {
    display: none !important;
  }

  .page-shell {
    width: 100%;
  }

  .site-header,
  .site-footer,
  .hero,
  .comparison-row,
  .comparison-cell,
  .not-found__card {
    border-color: #bbb !important;
    background: #fff !important;
  }

  .hero {
    padding: 1.5rem 0;
  }

  .manifest {
    padding: 1.5rem 0;
  }

  .comparison-row {
    break-inside: avoid;
  }

  .comparison-cell {
    color: #111 !important;
  }

  .comparison-cell h2,
  .comparison-cell p,
  .hero__lede,
  .reference-notice,
  .manifest-summary p,
  .site-footer,
  .source-note {
    color: #111 !important;
  }

  a {
    color: #111 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }
}
