:root {
  --navy: #111d3a;
  --navy-soft: #23345a;
  --ink: #17213b;
  --muted: #5d6476;
  --paper: #f4f0e7;
  --paper-deep: #e5e2d6;
  --line: #b7b9bb;
  --mint: #b9ded1;
  --purple: #a792d0;
  --orange: #ef7959;
  --yellow: #f3c85b;
  --white: #fffdf7;
  --shadow: 0 18px 46px rgba(17, 29, 58, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.58; }
body, main, section, header, footer, figure, div, article { min-width: 0; }
a { color: inherit; text-decoration-thickness: .12em; text-underline-offset: .18em; }
a:hover { color: var(--orange); }
img, svg { max-width: 100%; }
h1, h2, h3, p { max-width: 70ch; }
h1, h2, h3 { margin-top: 0; line-height: 1.03; }
h1, h2, h3, .closing-line { letter-spacing: -.055em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5.4vw, 5.55rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.8rem); }
p { margin: 0 0 1rem; }
em { font-style: italic; }
code, .eyebrow, .brand-copy, .figure-kicker, .section-kicker, .record-type, .source-stamp, .board-label, .mission-label, .work-card > span, .claim-step > span, .boundary-grid span, .rule-card > span, .question-grid span, .source-card-head { font-family: "Courier New", Courier, monospace; }
code { overflow-wrap: anywhere; }

.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .7rem 1rem; color: var(--navy); background: var(--yellow); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1440px; margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
.project-mark, .top-nav, .language-nav { display: flex; align-items: center; }
.project-mark { gap: .75rem; min-height: 2.75rem; text-decoration: none; }
.mark-box { display: grid; width: 3.3rem; min-width: 3.3rem; height: 2.7rem; place-items: center; color: var(--navy); background: var(--yellow); border: 2px solid var(--navy); font-family: "Courier New", Courier, monospace; font-size: .62rem; font-weight: 800; line-height: 1; }
.brand-copy { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.top-nav { gap: 1.25rem; font-weight: 700; }
.top-nav > a, .language-nav a, .language-nav span { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; }
.top-nav > a { text-decoration: none; }
.language-nav { gap: .55rem; font-family: "Courier New", monospace; font-size: .78rem; }
.language-nav span { color: var(--orange); }
.language-nav a { text-decoration: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); max-width: 1440px; margin: 0 auto; background: var(--navy); }
.hero-copy { min-width: 0; padding: clamp(2.2rem, 5vw, 5.6rem) clamp(1rem, 4vw, 4.7rem) 3.5rem; color: var(--white); }
.eyebrow { margin: 0 0 1.35rem; color: var(--yellow); font-size: .72rem; font-weight: 700; letter-spacing: .11em; }
.hero h1 { max-width: 11ch; margin-bottom: 1.25rem; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.35rem, 7.8vw, 8rem); letter-spacing: -.078em; }
.hero h1 em { color: var(--mint); }
.deck { max-width: 57ch; color: #e8edf4; font-size: clamp(1.05rem, 1.55vw, 1.3rem); }
.reader-gain { max-width: 55ch; padding-left: 1rem; border-left: 5px solid var(--yellow); color: #fff8d9; }
.reader-gain strong { color: var(--yellow); }
.continuation-cue { color: #bacce6; font-size: .95rem; }
.source-stamp { display: flex; flex-wrap: wrap; gap: .45rem .65rem; margin: 1.45rem 0 .9rem; color: var(--navy); font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.source-stamp span { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .45rem .6rem; background: var(--mint); border: 2px solid var(--navy); }
.source-stamp span:nth-child(2) { background: var(--purple); }
.source-stamp span:nth-child(3) { background: var(--orange); }
.credibility { color: #cdd8eb; font-size: .86rem; }
.credibility a { color: var(--yellow); }
.hero-visual { min-width: 0; margin: 0; padding: clamp(1rem, 3vw, 3.1rem); color: var(--ink); background: var(--paper-deep); border-left: 3px solid var(--orange); }
.hero-visual figcaption { display: grid; gap: .35rem; margin-bottom: 1.25rem; }
.figure-kicker { color: var(--orange); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.hero-visual figcaption strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 5rem); letter-spacing: -.075em; line-height: .88; }
.hero-visual figcaption > span:last-child { color: var(--muted); font-size: .82rem; }
.orbit-board { position: relative; min-height: 410px; padding: 1.1rem 1rem 1.2rem; overflow: hidden; background-color: #dce8e1; background-image: linear-gradient(rgba(93, 100, 118, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 100, 118, .18) 1px, transparent 1px); background-size: 30px 30px; border: 3px solid var(--navy); box-shadow: var(--shadow); }
.board-label { display: flex; justify-content: space-between; gap: 1rem; color: var(--navy-soft); font-size: .64rem; font-weight: 700; letter-spacing: .08em; }
.orbit-line { position: absolute; top: 4.8rem; bottom: 5.3rem; left: 3.2rem; width: 0; border-left: 3px solid var(--purple); }
.orbit-list { position: relative; z-index: 1; display: grid; gap: .62rem; margin: 1.35rem 0 0; padding: 0 0 0 3.85rem; list-style: none; }
.orbit-list li { position: relative; display: grid; grid-template-columns: 5.6rem 1fr; gap: .6rem; align-items: center; min-height: 3.05rem; padding: .35rem .65rem; background: rgba(255, 253, 247, .76); border: 1px solid rgba(17, 29, 58, .25); }
.orbit-list li::before { position: absolute; left: -1.82rem; width: .75rem; height: .75rem; content: ""; background: var(--yellow); border: 3px solid var(--navy); border-radius: 50%; }
.orbit-list li:nth-child(2)::before, .orbit-list li:nth-child(4)::before { background: var(--mint); }
.orbit-list li:nth-child(3)::before { background: var(--orange); }
.orbit-list li b { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: -.04em; }
.orbit-list li span { color: var(--muted); font-family: "Courier New", monospace; font-size: .67rem; text-transform: uppercase; }
.orbit-list .orbit-endpoint { background: var(--navy); color: var(--white); border-color: var(--navy); }
.orbit-list .orbit-endpoint span { color: var(--mint); }
.orbit-list .orbit-endpoint::before { background: var(--orange); }
.board-callout { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: grid; gap: .15rem; padding: .75rem .85rem; color: var(--white); background: var(--navy); }
.board-callout strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: -.03em; }
.board-callout span { color: var(--mint); font-size: .78rem; }
.visual-note { margin: .9rem 0 0; color: var(--muted); font-size: .84rem; }
.visual-note b { color: var(--orange); }

.section-nav { display: flex; flex-wrap: wrap; gap: .35rem .85rem; max-width: 1440px; margin: 0 auto; padding: .75rem clamp(1rem, 3vw, 3.5rem); color: var(--navy); background: var(--yellow); border-bottom: 3px solid var(--navy); font-family: "Courier New", monospace; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.section-nav a { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; text-decoration: none; }

.chapter { max-width: 1440px; margin: 0 auto; }
.chapter-inner { padding: clamp(4.25rem, 8vw, 8rem) clamp(1rem, 4vw, 4.7rem); }
.chapter-inner.narrow { max-width: 1040px; margin: 0 auto; }
.chapter-light { background: var(--paper); }
.chapter-paper { background: #e8e5da; }
.chapter-ink { color: var(--white); background: var(--navy); }
.chapter-yellow { background: var(--yellow); }
.chapter-coral { background: var(--orange); }
.section-kicker { margin-bottom: 1.25rem; color: var(--orange); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.chapter-ink .section-kicker { color: var(--mint); }
.chapter-yellow .section-kicker, .chapter-coral .section-kicker { color: var(--navy-soft); }
.chapter h2 { max-width: 14ch; }
.chapter-grid, .now-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: start; }
.lead { max-width: 56ch; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; }
.answer-grid { display: grid; gap: .75rem; }
.answer-card { padding: 1.15rem 1.25rem 1.25rem; background: var(--navy); color: var(--white); border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--orange); }
.answer-card span, .answer-card h3 { display: block; }
.answer-card span { margin-bottom: .65rem; color: var(--yellow); font-family: "Courier New", monospace; font-size: .72rem; font-weight: 700; }
.answer-card h3 { margin-bottom: .35rem; font-family: Georgia, "Times New Roman", serif; }
.answer-card p { margin: 0; color: #e8edf4; font-size: .93rem; }
.answer-card-mint { color: var(--navy); background: var(--mint); border-color: var(--navy); box-shadow: 8px 8px 0 var(--purple); }
.answer-card-mint span, .answer-card-mint p { color: var(--navy-soft); }
.answer-card-orange { background: var(--orange); box-shadow: 8px 8px 0 var(--navy); }
.answer-card-orange span, .answer-card-orange p { color: var(--navy); }
.boundary-strip { margin-top: 2.5rem; padding: 1rem 1.1rem; background: var(--mint); color: var(--navy); border-left: 6px solid var(--navy); font-size: .94rem; }
.chapter-ink .boundary-strip { color: var(--navy); background: var(--yellow); }
.chapter-yellow .boundary-strip { background: var(--white); }
.chapter-coral .boundary-strip { background: var(--white); }
.next-question { margin: 2.6rem 0 0; color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-style: italic; }
.next-question-light { color: var(--mint); }

.timeline-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: start; }
.source-note { color: var(--muted); font-size: .86rem; }
.chapter-ink .source-note { color: #c4cee1; }
.timeline { position: relative; display: grid; gap: 1.25rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 1rem; bottom: 1rem; left: 6.15rem; width: 3px; content: ""; background: var(--purple); }
.timeline-item { position: relative; display: grid; grid-template-columns: 7.1rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.timeline-year { position: relative; z-index: 1; display: grid; justify-items: end; gap: .15rem; padding-top: .65rem; color: var(--navy); }
.timeline-year span { font-family: "Courier New", monospace; font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.timeline-year b { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: -.05em; }
.record-card { padding: 1.35rem 1.5rem 1.5rem; background: var(--white); border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--navy); }
.record-card-mint { background: var(--mint); }
.record-card-yellow { background: #f7d77c; }
.record-card-purple { background: var(--purple); }
.record-card-orange { background: var(--orange); }
.record-card-dark { color: var(--white); background: var(--navy); box-shadow: 8px 8px 0 var(--orange); }
.record-type { margin-bottom: .65rem; color: var(--orange); font-size: .67rem; font-weight: 700; letter-spacing: .06em; }
.record-card-mint .record-type, .record-card-yellow .record-type, .record-card-purple .record-type, .record-card-orange .record-type { color: var(--navy-soft); }
.record-card-dark .record-type { color: var(--mint); }
.record-card h3 { margin-bottom: .55rem; font-family: Georgia, "Times New Roman", serif; }
.record-card p { max-width: 70ch; font-size: .95rem; }
.record-card a, .source-card a, .credibility a, .source-note a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 700; }
.record-card a { color: var(--orange); }
.record-card-dark a { color: var(--yellow); }
.timeline-item-endpoint .timeline-year { color: var(--orange); }

.intro-on-dark { color: #dce5f3; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 2.5rem; }
.work-card { min-height: 265px; padding: 1.15rem; color: var(--white); background: var(--navy-soft); border: 2px solid var(--mint); }
.work-card > span { color: var(--mint); font-size: .67rem; font-weight: 700; letter-spacing: .06em; }
.work-card h3 { margin-top: 2.5rem; margin-bottom: .55rem; font-family: Georgia, "Times New Roman", serif; }
.work-card p { color: #dce5f3; font-size: .9rem; }
.work-card-mint { color: var(--navy); background: var(--mint); border-color: var(--navy); }
.work-card-mint > span, .work-card-mint p { color: var(--navy-soft); }
.work-card-yellow { color: var(--navy); background: var(--yellow); border-color: var(--navy); }
.work-card-yellow > span, .work-card-yellow p { color: var(--navy-soft); }
.work-card-orange { color: var(--navy); background: var(--orange); border-color: var(--navy); }
.work-card-orange > span, .work-card-orange p { color: var(--navy-soft); }
.dark-callout { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1.4rem; margin-top: 2.5rem; padding: 1.1rem 1.2rem; color: var(--navy); background: var(--mint); border-left: 6px solid var(--orange); }
.dark-callout strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; letter-spacing: -.04em; }
.dark-callout span { font-size: .93rem; }

.claim-ladder { display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-top: 2.5rem; }
.claim-step { display: flex; min-width: 0; flex-direction: column; padding: 1.3rem 1.4rem; border: 3px solid var(--navy); }
.claim-step > span { margin-bottom: 1.1rem; color: var(--navy-soft); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.claim-step strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.25vw, 2.25rem); letter-spacing: -.045em; line-height: 1.05; }
.claim-step p { margin-top: auto; padding-top: 1.5rem; font-size: .9rem; }
.claim-supported { background: var(--white); box-shadow: 8px 8px 0 var(--navy); }
.claim-not-supported { background: var(--orange); box-shadow: 8px 8px 0 var(--purple); }
.claim-connector { display: grid; place-items: center; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 2.5rem; }
.boundary-grid article { padding: 1.2rem 1.3rem; border-top: 4px solid var(--navy); }
.boundary-grid article:first-child { background: var(--white); }
.boundary-grid article:last-child { background: var(--purple); }
.boundary-grid span { display: block; margin-bottom: .75rem; color: var(--navy-soft); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.boundary-grid h3 { margin-bottom: .45rem; font-family: Georgia, "Times New Roman", serif; }
.boundary-grid p { margin-bottom: 0; font-size: .9rem; }

.now-layout { align-items: stretch; }
.mission-board { padding: 1.15rem; color: var(--white); background: var(--navy); border: 3px solid var(--navy); box-shadow: 10px 10px 0 var(--orange); }
.mission-label { margin-bottom: 1.1rem; color: var(--mint); font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.mission-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, .8fr); gap: .8rem; align-items: center; min-height: 5rem; padding: .75rem; background: var(--navy-soft); border-top: 1px solid rgba(255, 253, 247, .25); }
.mission-row b { color: var(--yellow); font-family: "Courier New", monospace; font-size: .75rem; }
.mission-row strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; letter-spacing: -.05em; line-height: .93; }
.mission-row span { color: #cdd8eb; font-size: .75rem; }
.mission-row-mint { color: var(--navy); background: var(--mint); }
.mission-row-mint b, .mission-row-mint span { color: var(--navy-soft); }
.mission-row-orange { color: var(--navy); background: var(--orange); }
.mission-row-orange b, .mission-row-orange span { color: var(--navy-soft); }

.reading-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 2.5rem; }
.rule-card { padding: 1.25rem; background: var(--white); border: 2px solid var(--navy); }
.rule-card > span { color: var(--orange); font-size: .67rem; font-weight: 700; letter-spacing: .06em; }
.rule-card h3 { margin: 2rem 0 .55rem; font-family: Georgia, "Times New Roman", serif; }
.rule-card p { margin-bottom: 0; font-size: .9rem; }
.rule-card-mint { background: var(--mint); }
.rule-card-orange { background: var(--orange); }
.source-card { margin-top: 1.5rem; padding: 1.25rem 1.35rem; color: var(--white); background: var(--navy); border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--purple); }
.source-card-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--mint); font-size: .67rem; font-weight: 700; letter-spacing: .06em; }
.source-card a { color: var(--yellow); }
.source-card .source-note { color: #cdd8eb; }

.question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 2.5rem; }
.question-grid article { display: grid; gap: .8rem; min-height: 160px; align-content: space-between; padding: 1.2rem; color: var(--navy); background: var(--white); border: 2px solid var(--navy); }
.question-grid span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.question-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; letter-spacing: -.045em; line-height: 1.05; }
.closing-card { max-width: 780px; margin-top: 2.5rem; padding: 1.4rem 1.5rem; color: var(--white); background: var(--navy); border: 3px solid var(--navy); box-shadow: 10px 10px 0 var(--yellow); }
.closing-card strong { display: block; margin-bottom: .55rem; color: var(--mint); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3.2vw, 3rem); letter-spacing: -.055em; line-height: 1; }
.closing-card p { margin-bottom: 0; color: #e8edf4; }
.closing-line { margin: 3.5rem 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3.6vw, 3.4rem); line-height: .98; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; max-width: 1440px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 4.7rem); background: var(--paper-deep); border-top: 3px solid var(--navy); }
.site-footer div { display: grid; gap: .35rem; }
.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.site-footer span { color: var(--muted); font-size: .83rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; font-size: .82rem; font-weight: 700; }
.site-footer nav a { display: inline-flex; min-height: 2.75rem; align-items: center; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { border-top: 3px solid var(--orange); border-left: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  h2 { font-size: clamp(2.35rem, 11vw, 4.2rem); }
  .topbar { align-items: flex-start; }
  .top-nav { align-items: flex-end; flex-direction: column; gap: .35rem; }
  .brand-copy { max-width: 14ch; font-size: .61rem; }
  .hero-copy { padding-top: 1.85rem; padding-bottom: 2.5rem; }
  .hero h1 { max-width: 10ch; font-size: clamp(3.25rem, 15.5vw, 5.6rem); }
  .hero-visual { padding: 1rem; }
  .orbit-board { min-height: 390px; }
  .section-nav { gap: .35rem .65rem; font-size: .63rem; }
  .chapter-inner { padding: 4rem 1rem; }
  .chapter-grid, .now-layout, .timeline-intro { grid-template-columns: 1fr; gap: 2rem; }
  .timeline { margin-top: 2.25rem; }
  .timeline::before { left: .8rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .25rem; padding-left: 2.1rem; }
  .timeline-year { display: flex; justify-content: flex-start; gap: .65rem; padding-top: 0; }
  .timeline-year span { order: 2; align-self: center; }
  .timeline-year b { order: 1; }
  .record-card { padding: 1.15rem 1.1rem 1.2rem; box-shadow: 5px 5px 0 var(--navy); }
  .work-grid, .reading-rules, .question-grid, .boundary-grid { grid-template-columns: 1fr; }
  .work-card { min-height: auto; }
  .work-card h3 { margin-top: 1.45rem; }
  .dark-callout { grid-template-columns: 1fr; gap: .55rem; }
  .claim-ladder { grid-template-columns: 1fr; gap: .7rem; }
  .claim-connector { min-height: 2.3rem; transform: rotate(90deg); }
  .mission-row { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .mission-row span { grid-column: 2; margin-top: -.7rem; }
  .source-card-head { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .site-footer { flex-direction: column; }
  .site-footer nav { gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
