:root {
  --ink: #17202a;
  --muted: #58616a;
  --paper: #f6f1e7;
  --paper-2: #fffdf8;
  --navy: #13283a;
  --navy-2: #1d3a4f;
  --rust: #a34b2f;
  --gold: #bc8a3d;
  --sage: #526f61;
  --line: #d6cbb9;
  --shadow: 0 18px 50px rgba(26, 37, 46, .12);
  --radius: 18px;
  --measure: 74ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(188, 138, 61, .12), transparent 28rem),
    linear-gradient(180deg, #f2ebdf 0, var(--paper) 38rem, #eee5d7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a5674; text-underline-offset: .18em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #f0b75e;
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  color: white;
  background: var(--rust);
  border-radius: 0 0 .5rem .5rem;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: white;
  background: rgba(19, 40, 58, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.nav-wrap {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 750;
  letter-spacing: .01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #f0c47e;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.brand span:last-child { max-width: 18rem; line-height: 1.1; }

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9px;
  color: white;
  background: transparent;
  padding: .55rem .7rem;
  font: inherit;
}

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: #edf3f6;
  text-decoration: none;
  padding: .55rem .72rem;
  border-radius: 8px;
  font-size: .9rem;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: white; }

main { min-height: 70vh; }

.hero {
  color: white;
  background:
    linear-gradient(125deg, rgba(19, 40, 58, .98), rgba(29, 58, 79, .92)),
    linear-gradient(45deg, #13283a, #30536b);
  overflow: hidden;
}

.hero-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative;
}

.hero-inner::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  bottom: -14rem;
  border: 1px solid rgba(240, 196, 126, .38);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(240,196,126,.04), 0 0 0 9rem rgba(240,196,126,.025);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #f0c47e;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 800;
}

.hero h1, .page-hero h1 {
  max-width: 900px;
  margin: 0;
  font: 700 clamp(3rem, 8vw, 6.8rem)/.94 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.hero .dek {
  max-width: 760px;
  margin: 1.7rem 0 0;
  color: #dbe6ec;
  font-size: clamp(1.12rem, 2.3vw, 1.5rem);
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 1px solid currentColor;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 750;
}
.button.primary { color: #17202a; background: #f0c47e; border-color: #f0c47e; }
.button.secondary { color: white; background: transparent; border-color: rgba(255,255,255,.5); }
.button:hover { transform: translateY(-1px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 3rem;
  max-width: 900px;
}
.stat { padding: 1.05rem 1.2rem; background: rgba(8,25,37,.45); }
.stat strong { display: block; color: #f0c47e; font-size: 1.35rem; }
.stat span { color: #d9e4e9; font-size: .82rem; }

.page-hero {
  color: white;
  background: linear-gradient(135deg, var(--navy), #284d63);
}
.page-hero .inner { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 4.3rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
.page-hero .dek { max-width: 760px; color: #d9e4e9; font-size: 1.15rem; }

.section, .content-grid, .article-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section.compact { padding: 2.5rem 0; }
.section h2, .content h2 {
  font: 700 clamp(1.8rem, 4vw, 3rem)/1.08 Georgia, serif;
  letter-spacing: -.025em;
  color: var(--navy);
}
.section-lede { max-width: 760px; color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.card {
  padding: 1.4rem;
  background: rgba(255,253,248,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 25px rgba(31,42,48,.05);
}
.card h3 { margin: 0 0 .55rem; color: var(--navy); font: 700 1.25rem/1.2 Georgia, serif; }
.card p:last-child { margin-bottom: 0; }

.status {
  display: inline-block;
  padding: .23rem .55rem;
  border-radius: 999px;
  background: #e6eee9;
  color: #2e5944;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.status.open, .status.working, .status.conflict { color: #7d361f; background: #f5e4dd; }

.finding-list { display: grid; gap: 1rem; margin-top: 2rem; }
.finding {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.3rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.finding .lane { color: var(--rust); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fffaf0;
}

.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 4rem; padding: 3rem 0 6rem; align-items: start; }
.content { max-width: var(--measure); min-width: 0; }
.content > h1:first-child { margin-top: 0; }
.content h1 {
  margin: 4rem 0 1rem;
  color: var(--navy);
  font: 700 clamp(2.1rem, 5vw, 3.8rem)/1 Georgia, serif;
  letter-spacing: -.035em;
}
.content h2 { margin: 3.2rem 0 1rem; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.content h3 { color: var(--navy-2); font: 700 1.35rem/1.2 Georgia, serif; }
.content p { margin: 0 0 1.15rem; }
.content li { margin-bottom: .55rem; }
.content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.35rem;
  border-left: 4px solid var(--rust);
  background: #fffaf2;
  font-family: Georgia, serif;
  font-size: 1.08rem;
}
.content a[href^="evidence"] {
  display: inline-block;
  margin-left: .08rem;
  color: var(--rust);
  font-size: .76em;
  font-weight: 800;
  text-decoration: none;
}

.toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 1rem;
  border-left: 1px solid var(--line);
  font-size: .82rem;
}
.toc strong { display: block; margin-bottom: .65rem; color: var(--navy); }
.toc a { display: block; padding: .28rem 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--rust); }

.tools-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.tool-link { display: inline-flex; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--paper-2); font-weight: 700; }

.filter-bar { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin: 2rem 0; }
.filter-bar input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #b9ae9d;
  border-radius: 9px;
  background: white;
  font: inherit;
}
.filter-bar select { padding: .85rem 1rem; border: 1px solid #b9ae9d; border-radius: 9px; background: white; font: inherit; }

.evidence-list { display: grid; gap: .9rem; }
.evidence-item {
  padding: 1.25rem 1.35rem;
  background: rgba(255,253,248,.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 100px;
}
.evidence-meta { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: .55rem; }
.evidence-id { color: var(--rust); font-weight: 900; }
.evidence-item h2 { margin: .2rem 0 .65rem; font: 700 1.35rem/1.2 Georgia, serif; }
.evidence-item .citation { color: var(--muted); font-size: .91rem; }

.timeline { position: relative; margin: 2.5rem 0; }
.timeline::before { content: ""; position: absolute; left: 8.5rem; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 7.3rem 1fr; gap: 2.5rem; padding: 0 0 1.6rem; position: relative; }
.timeline-item::after { content: ""; position: absolute; left: 8.17rem; top: .65rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px var(--paper); }
.timeline-date { font-weight: 800; color: var(--navy); text-align: right; }
.timeline-body { padding: .2rem 0 1rem; border-bottom: 1px solid var(--line); }
.timeline-body p { margin: .4rem 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.exhibit { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.exhibit-image {
  display: grid;
  place-items: center;
  height: 420px;
  padding: 1rem;
  background: #1a232a;
}
.exhibit-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.exhibit figcaption { padding: 1.25rem; }
.exhibit h2 { margin: 0 0 .35rem; color: var(--navy); font: 700 1.3rem/1.2 Georgia, serif; }
.exhibit .meta { color: var(--muted); font-size: .85rem; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .9rem; font-size: .88rem; }
.proof-grid div { padding: .75rem; border-radius: 9px; background: #eef3ef; }
.proof-grid div:last-child { background: #f6e9e3; }
.proof-grid strong { display: block; color: var(--navy); }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }

.site-footer { color: #dbe6ec; background: var(--navy); }
.footer-inner { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 2.4rem 0; display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: 0; max-width: 680px; }
.site-footer a { color: #f0c47e; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.print-only { display: none; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 64px; padding: .75rem; flex-direction: column; align-items: stretch; background: var(--navy); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: flex; }
  .article-shell { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; max-height: none; border-left: 0; border-bottom: 1px solid var(--line); padding: 1rem 0 1.5rem; columns: 2; }
  .toc strong { column-span: all; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .brand span:last-child { max-width: 11rem; font-size: .9rem; }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.7rem); }
  .cards, .gallery-grid, .method-grid { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 1fr; gap: .35rem; }
  .filter-bar { grid-template-columns: 1fr; }
  .timeline::before { left: .35rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 1.5rem; }
  .timeline-item::after { left: 0; }
  .timeline-date { text-align: left; }
  .exhibit-image { height: 320px; }
  .proof-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .toc { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  @page { size: Letter; margin: .75in .72in .8in; }
  body { background: white; font-size: 10.5pt; }
  .site-header, .site-footer, .page-hero, .toc, .tools-row, .skip-link { display: none !important; }
  .article-shell { display: block; width: auto; padding: 0; }
  .content { max-width: none; }
  .content h1 { break-before: page; }
  .content > h1:first-child { break-before: auto; }
  .content h1, .content h2, .content h3 { break-after: avoid; }
  .content p, .content li { orphans: 3; widows: 3; }
  a { color: inherit; text-decoration: none; }
  .content a[href^="evidence"] { color: inherit; }
  .print-only { display: block; }
  .print-title { min-height: 8.5in; display: flex; flex-direction: column; justify-content: center; break-after: page; }
  .print-title h1 { break-before: auto; font-size: 42pt; margin-bottom: .25in; }
  .print-title p { font-size: 14pt; color: #455; }
}
