:root {
  color-scheme: light;
  --ink: #102126;
  --ink-soft: #41545a;
  --night: #07191e;
  --night-2: #0c2a30;
  --paper: #f4f0e7;
  --paper-2: #fffdf8;
  --line: #c8d0ca;
  --line-dark: #315158;
  --signal: #f26a4f;
  --signal-dark: #a83327;
  --mint: #9ed9c8;
  --mint-dark: #176959;
  --gold: #e5bf64;
  --blue: #6db4d1;
  --shadow: 0 1.4rem 3rem rgba(4, 21, 25, 0.12);
  --measure: 74rem;
  --reading: 47rem;
  --header-offset: 6.5rem;
  --radius: 1.15rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 0.24rem;
  content: "";
  background: linear-gradient(90deg, var(--signal), var(--gold), var(--mint));
}

a {
  color: var(--mint-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #073e4a;
  border-radius: 0.15rem;
}

button,
summary {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

code {
  padding: 0.08em 0.3em;
  border-radius: 0.25rem;
  color: #15343b;
  background: #dfe9e4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 7.4vw, 6.7rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
}

h4 {
  font-size: 1.03rem;
  font-family: inherit;
  letter-spacing: 0.015em;
}

p,
ul,
ol,
dl {
  margin-block: 0 1rem;
}

ul,
ol {
  padding-inline-start: 1.35rem;
}

li + li {
  margin-top: 0.45rem;
}

[id] {
  scroll-margin-top: var(--header-offset);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.7rem;
  left: 0.8rem;
  padding: 0.65rem 0.9rem;
  color: var(--night);
  background: #fff;
  border: 2px solid var(--night);
  transform: translateY(-180%);
}

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

.global-header {
  position: sticky;
  z-index: 15;
  top: 0;
  color: #f5f2e9;
  background: rgba(7, 25, 30, 0.97);
  border-bottom: 1px solid rgba(158, 217, 200, 0.25);
  backdrop-filter: blur(14px);
}

.global-header-inner {
  width: min(100% - 2rem, var(--measure));
  min-width: 0;
  margin-inline: auto;
  padding-block: 0.75rem 0.68rem;
}

.brand-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  color: #fff;
  font-weight: 820;
  letter-spacing: 0.17em;
  text-decoration: none;
}

.brand-note {
  color: #b7cbc7;
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

.project-nav {
  display: flex;
  min-width: 0;
  gap: 0.12rem;
  margin-top: 0.55rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-nav a {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  color: #d8e8e4;
  font-size: 0.82rem;
  text-decoration: none;
}

.project-nav a:hover,
.project-nav a[aria-current="page"] {
  color: var(--night);
  background: var(--mint);
}

main {
  min-width: 0;
}

.hero,
.subpage-hero {
  color: #f8f5ed;
  background:
    radial-gradient(circle at 87% 18%, rgba(242, 106, 79, 0.32), transparent 19rem),
    radial-gradient(circle at 7% 88%, rgba(109, 180, 209, 0.22), transparent 23rem),
    linear-gradient(138deg, var(--night), var(--night-2));
  border-bottom: 1px solid var(--line-dark);
}

.hero-inner,
.subpage-hero-inner {
  display: grid;
  width: min(100% - 2rem, var(--measure));
  min-width: 0;
  margin-inline: auto;
  padding-block: clamp(3.8rem, 9vw, 8.2rem);
  gap: clamp(2.1rem, 6vw, 5rem);
  align-items: end;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.72fr);
}

.subpage-hero-inner {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero h1,
.subpage-hero h1 {
  color: #fff;
}

.hero h1 span,
.subpage-hero h1 span {
  color: var(--mint);
}

.kicker,
.eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 810;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker,
.callout .eyebrow {
  color: var(--signal);
}

.eyebrow {
  color: var(--signal-dark);
}

.hero .dek,
.subpage-hero .dek {
  max-width: 47rem;
  margin-top: 1.4rem;
  color: #d4e1dd;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.55;
}

.hero-card,
.signal-card {
  min-width: 0;
  padding: 1.35rem;
  color: #eef6f3;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(158, 217, 200, 0.42);
  border-radius: var(--radius);
}

.hero-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.hero-card p:last-child,
.signal-card p:last-child {
  margin-bottom: 0;
}

.meta-row,
.tag-row,
.id-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.meta-row span,
.tag,
.id-list a,
.id-list span {
  display: inline-flex;
  max-width: 100%;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.meta-row span {
  color: #d9e9e5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tag,
.id-list a,
.id-list span {
  color: #17363d;
  background: #dce9e4;
  text-decoration: none;
}

.tag.supported {
  color: #11493e;
  background: #cce9df;
}

.tag.excluded {
  color: #73251d;
  background: #f5d5ce;
}

.tag.proposal {
  color: #62470c;
  background: #f2e4ba;
}

.section,
.route-shelf,
.page-content {
  width: min(100% - 2rem, var(--measure));
  min-width: 0;
  margin-inline: auto;
  padding-block: clamp(3.6rem, 7vw, 6.8rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  min-width: 0;
  gap: 1.2rem 2.8rem;
  margin-bottom: 2.2rem;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr);
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

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

.route-card,
.evidence-card,
.statement-card,
.mechanism-card,
.lens-card,
.source-card,
.route-record {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.route-card {
  display: flex;
  min-height: 14rem;
  padding: 1.25rem;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.route-card:hover {
  color: inherit;
  border-color: var(--mint-dark);
  box-shadow: var(--shadow);
  transform: translateY(-0.15rem);
}

.route-card .route-number {
  margin-bottom: auto;
  color: var(--signal-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
}

.route-card h3 {
  margin-block: 1.5rem 0.6rem;
}

.route-card p {
  margin: 0;
  color: var(--ink-soft);
}

.callout {
  padding: clamp(1.4rem, 4vw, 2.6rem);
  color: #f7f4ec;
  background: var(--night-2);
  border-left: 0.38rem solid var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout h2,
.callout h3 {
  color: #fff;
}

.callout p {
  max-width: 52rem;
  margin-top: 0.85rem;
  color: #d5e2de;
  font-size: 1.08rem;
}

.framework-figure {
  margin: 2.2rem 0 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: #e8eee9;
  border: 1px solid #b5c7c0;
  border-radius: var(--radius);
}

.framework-figure figcaption {
  max-width: 60rem;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.diagram {
  display: grid;
  min-width: 0;
  gap: 0.85rem;
}

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

.diagram.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagram.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diagram-node {
  min-width: 0;
  padding: 1rem;
  background: var(--paper-2);
  border-top: 0.28rem solid var(--mint-dark);
  border-radius: 0.5rem;
}

.diagram-node.signal {
  border-top-color: var(--signal);
}

.diagram-node.gold {
  border-top-color: var(--gold);
}

.diagram-node.blue {
  border-top-color: var(--blue);
}

.diagram-node strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--night);
}

.diagram-node p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.connector-note {
  padding: 0.7rem 0.85rem;
  color: #f6f3eb;
  background: var(--night-2);
  border-radius: 0.45rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 740;
}

.statement-grid,
.evidence-grid {
  display: grid;
  min-width: 0;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statement-card,
.evidence-card {
  padding: 1.1rem;
}

.statement-card dt {
  margin-bottom: 0.35rem;
  color: var(--signal-dark);
  font-weight: 800;
}

.statement-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.evidence-card h3 {
  margin-bottom: 0.7rem;
}

.evidence-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.status-strip {
  color: #f3f5ee;
  background: #16373e;
}

.status-strip-inner {
  display: flex;
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
  padding-block: 0.9rem;
  gap: 0.7rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}

.status-strip p {
  margin: 0;
  font-size: 0.87rem;
}

.status-strip strong {
  color: var(--gold);
}

.jump-menu {
  width: min(100% - 2rem, var(--measure));
  margin: 1.2rem auto 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.jump-menu summary {
  padding: 0.8rem 1rem;
  cursor: pointer;
  color: var(--night);
  font-weight: 780;
}

.jump-menu nav {
  display: flex;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jump-menu nav a {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #e2ebe7;
  font-size: 0.82rem;
  text-decoration: none;
}

.mechanism-list,
.lens-list,
.claim-list,
.source-list,
.route-register {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.mechanism-card,
.lens-card,
.source-card,
.route-record {
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.mechanism-head,
.lens-head,
.source-head {
  display: flex;
  min-width: 0;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
}

.record-id {
  flex: 0 0 auto;
  color: var(--signal-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 820;
}

.mechanism-card .proposal-copy,
.lens-card .survivor {
  margin-block: 1rem;
  padding: 1rem;
  background: #e8f0ec;
  border-left: 0.25rem solid var(--mint-dark);
}

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

.field {
  min-width: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.field h4 {
  margin-bottom: 0.35rem;
  color: var(--signal-dark);
}

.field p,
.field ul {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.claim-card {
  min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.claim-card summary {
  display: grid;
  min-width: 0;
  padding: 1rem 1.2rem;
  cursor: pointer;
  gap: 0.75rem;
  grid-template-columns: minmax(6.8rem, 0.25fr) minmax(0, 1fr);
}

.claim-card summary::marker {
  color: var(--signal-dark);
}

.claim-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.claim-summary-text {
  color: var(--ink);
  font-weight: 650;
}

.claim-body {
  padding: 1.2rem;
}

.claim-body .lead-limit {
  padding: 0.9rem;
  background: #f1e8d1;
  border-left: 0.24rem solid var(--gold);
}

.source-card h3,
.route-record h3 {
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
}

.source-meta {
  display: flex;
  margin-block: 0.75rem;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.source-paths {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.source-paths li {
  font-size: 0.8rem;
}

.source-paths code {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

.route-family + .route-family {
  margin-top: 3rem;
}

.route-family > h2 {
  margin-bottom: 1.2rem;
}

.count-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.2rem 0.48rem;
  vertical-align: middle;
  color: #fff;
  background: var(--signal-dark);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: normal;
}

.paper-shell {
  display: grid;
  width: min(100% - 2rem, 83rem);
  min-width: 0;
  margin-inline: auto;
  padding-block: 3rem 6rem;
  gap: 2rem;
  align-items: start;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, var(--reading));
  justify-content: center;
}

.paper-toc {
  position: sticky;
  top: var(--header-offset);
  max-height: calc(100vh - var(--header-offset) - 1rem);
  padding: 1rem;
  overflow-y: auto;
  background: #e5ebe6;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.paper-toc h2 {
  margin-bottom: 0.65rem;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-toc a {
  display: block;
  padding: 0.27rem 0;
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.paper {
  min-width: 0;
  padding: clamp(1.2rem, 4vw, 3.2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.paper > h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.paper > h2 {
  margin-block: 3.2rem 1.1rem;
  padding-top: 1.1rem;
  border-top: 0.18rem solid var(--night);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.paper > h3 {
  margin-block: 2rem 0.8rem;
}

.paper p,
.paper li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.75;
}

.paper a {
  overflow-wrap: anywhere;
}

.paper .anchor {
  display: block;
  height: 0;
}

.site-footer {
  color: #c9d9d5;
  background: var(--night);
  border-top: 1px solid var(--line-dark);
}

.site-footer-inner {
  display: grid;
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
  padding-block: 2rem;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

.site-footer a {
  color: var(--mint);
}

.builder-boundary {
  color: #ffe9c0;
}

@media (max-width: 920px) {
  :root {
    --header-offset: 7.7rem;
  }

  .project-nav {
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .project-nav a {
    max-width: 100%;
    flex: 0 1 auto;
    white-space: normal;
  }

  .hero-inner,
  .subpage-hero-inner,
  .section-heading,
  .paper-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 42rem;
  }

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

  .paper-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 620px) {
  :root {
    --header-offset: 12.5rem;
  }

  body::before {
    height: 0.18rem;
  }

  .global-header-inner,
  .hero-inner,
  .subpage-hero-inner,
  .section,
  .page-content,
  .route-shelf,
  .jump-menu,
  .status-strip-inner,
  .site-footer-inner,
  .paper-shell {
    width: min(100% - 1.2rem, var(--measure));
  }

  .brand-row {
    display: block;
  }

  .brand-note {
    display: block;
    margin-top: 0.15rem;
  }

  .project-nav {
    gap: 0.28rem;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .project-nav a {
    max-width: 100%;
    padding: 0.32rem 0.5rem;
    flex: 0 1 auto;
    white-space: normal;
  }

  .hero-inner,
  .subpage-hero-inner {
    padding-block: 3.2rem;
  }

  .route-grid,
  .statement-grid,
  .evidence-grid,
  .diagram.two,
  .diagram.three,
  .diagram.four,
  .field-grid,
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim-card summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .mechanism-head,
  .lens-head,
  .source-head,
  .status-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .paper {
    padding: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  :root {
    --header-offset: 0;
  }

  html,
  body {
    color: #000;
    background: #fff;
    font-size: 10.5pt;
  }

  body::before,
  .global-header,
  .skip-link,
  .jump-menu,
  .paper-toc,
  .site-footer,
  .screen-only {
    display: none !important;
  }

  .hero,
  .subpage-hero,
  .status-strip {
    color: #000;
    background: #fff;
    border-color: #555;
  }

  .hero h1,
  .subpage-hero h1,
  .hero h1 span,
  .subpage-hero h1 span,
  .hero .dek,
  .subpage-hero .dek,
  .status-strip p,
  .status-strip strong {
    color: #000;
  }

  .hero-inner,
  .subpage-hero-inner,
  .section,
  .page-content,
  .paper-shell {
    width: 100%;
    padding-block: 1.2rem;
  }

  .hero-inner,
  .subpage-hero-inner,
  .section-heading,
  .paper-shell {
    display: block;
  }

  .hero-card {
    margin-top: 1rem;
    color: #000;
    background: #fff;
    border-color: #555;
  }

  .route-card,
  .evidence-card,
  .statement-card,
  .mechanism-card,
  .lens-card,
  .source-card,
  .route-record,
  .claim-card,
  .paper,
  .framework-figure {
    color: #000;
    background: #fff;
    border-color: #777;
    box-shadow: none;
    break-inside: avoid;
  }

  .paper {
    padding: 0;
    border: 0;
  }

  .paper > h2 {
    break-before: page;
  }

  .paper > h1 {
    break-after: avoid;
  }

  .paper > h2:first-of-type {
    break-before: auto;
    break-after: avoid;
  }

  .paper > h2:first-of-type + .anchor {
    break-after: avoid;
  }

  .paper > h2:first-of-type + .anchor + p {
    break-inside: avoid;
  }

  details {
    display: block;
  }

  details > * {
    display: block !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " <" attr(href) ">";
    font-size: 0.72em;
  }
}
