:root {
  --ink: #20211e;
  --muted: #66685f;
  --paper: #f4f0e5;
  --paper-deep: #e9e1d0;
  --panel: rgba(255,255,255,.58);
  --line: #c9bea8;
  --accent: #273f3a;
  --accent-2: #765d37;
  --warning: #7c402f;
  --shadow: 0 12px 32px rgba(35,31,24,.12);
  --radius: 14px;
  --measure: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(118,93,55,.07), transparent 30rem),
    linear-gradient(180deg, #f8f5ed 0%, var(--paper) 45%, #eee8db 100%);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}
a { color: #234f48; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #0c332d; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  border-bottom: 1px solid rgba(89,78,57,.24);
  background: rgba(247,243,234,.94);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: var(--measure); margin: 0 auto; padding: .72rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.12; flex: 0 0 auto; }
.brand strong { display: block; font-size: 1.06rem; letter-spacing: .025em; }
.brand span { display: block; color: var(--muted); font-size: .76rem; font-family: system-ui, sans-serif; margin-top: .18rem; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .28rem; }
nav a {
  text-decoration: none; color: var(--ink); font-family: system-ui, sans-serif;
  font-size: .82rem; padding: .43rem .58rem; border-radius: 999px;
}
nav a:hover, nav a[aria-current='page'] { background: var(--accent); color: #fff; }

main { max-width: var(--measure); margin: 0 auto; padding: 2.2rem 1.25rem 5rem; }
.hero {
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(18rem,.92fr);
  gap: clamp(1.5rem,4vw,3.5rem); align-items: center; padding: 1.5rem 0 3.2rem;
}
.eyebrow {
  margin: 0 0 .8rem; color: var(--accent-2); font-family: system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 750;
}
h1, h2, h3 { line-height: 1.14; margin-top: 0; font-weight: 650; }
h1 { font-size: clamp(2.55rem,7vw,5.2rem); letter-spacing: -.04em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem,4vw,2.72rem); letter-spacing: -.025em; margin-bottom: 1rem; }
h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.lede { font-size: clamp(1.08rem,2.2vw,1.3rem); color: #343630; max-width: 48rem; }
.hero-note { margin-top: 1.4rem; padding-left: 1rem; border-left: 3px solid var(--accent-2); color: var(--muted); }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: 4px; box-shadow: var(--shadow); border: 1px solid rgba(74,65,49,.24); }
figcaption { color: var(--muted); font-size: .82rem; font-family: system-ui, sans-serif; margin-top: .55rem; line-height: 1.48; }

.draft-banner {
  border: 1px solid #b99370; background: #fff6e8; padding: .85rem 1rem;
  border-radius: 10px; font-family: system-ui, sans-serif; font-size: .9rem; margin-bottom: 2rem;
}
.draft-banner strong { color: var(--warning); }

section { padding: 3.35rem 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 54rem; color: var(--muted); font-size: 1.06rem; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card {
  background: var(--panel); border: 1px solid rgba(116,99,70,.25); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 0 8px 26px rgba(50,43,30,.06);
}
.card p:last-child { margin-bottom: 0; }
.card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px;
  padding: .27rem .52rem; font-family: system-ui, sans-serif; font-size: .67rem;
  font-weight: 750; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
}
.badge.fact { color: #315b45; background: #eef7f0; }
.badge.text { color: #3d5271; background: #edf3fb; }
.badge.tradition { color: #7a5d2f; background: #fff6df; }
.badge.inference { color: #6b466e; background: #f7eff8; }
.badge.open { color: #8a4337; background: #fff0ec; }

.assessment {
  background: var(--accent); color: #f8f4e9; border-radius: var(--radius); padding: clamp(1.4rem,4vw,2.4rem);
  box-shadow: var(--shadow);
}
.assessment h2 { color: #fff; }
.assessment ul { margin: 0; padding-left: 1.2rem; }
.assessment li + li { margin-top: .65rem; }

.evidence-pair {
  display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 1.6rem; align-items: start;
}
.evidence-pair.reverse { grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr); }
.figure-card { margin: 0; background: #dfd6c5; padding: .65rem; border: 1px solid #b8ab95; border-radius: 8px; }
.figure-card img { width: 100%; max-height: 44rem; object-fit: contain; background: #eee7da; cursor: zoom-in; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.photo-grid figure { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9.25rem; top: .3rem; bottom: .3rem; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: 2.5rem; padding: 0 0 1.55rem; position: relative; }
.timeline time { font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 750; color: var(--accent-2); text-align: right; line-height: 1.35; }
.timeline .event { position: relative; min-width: 0; }
.timeline .event::before { content: ''; position: absolute; left: -2.3rem; top: .42rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); }
.timeline p { margin: .25rem 0 0; color: var(--muted); }

.chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: .55rem; margin-top: 1.5rem; }
.chain .node { flex: 1 1 9rem; min-width: 9rem; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.5); }
.chain .arrow { align-self: center; font-family: system-ui, sans-serif; color: var(--muted); }
.node strong { display: block; }
.node small { color: var(--muted); font-family: system-ui, sans-serif; }

.quote { margin: 1.4rem 0; padding: 1rem 1.15rem; background: rgba(255,255,255,.52); border-left: 4px solid var(--accent-2); }
.quote p { margin: 0; }
.quote footer { margin-top: .55rem; color: var(--muted); font-family: system-ui, sans-serif; font-size: .78rem; }

.source-list { display: grid; gap: 1rem; }
.source {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1.2rem; padding: 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.source img { width: 100%; height: 10rem; object-fit: cover; object-position: top; border: 1px solid #b6aa94; background: #ddd4c5; cursor: zoom-in; }
.source h3 { margin-bottom: .35rem; }
.source-meta { color: var(--muted); font-family: system-ui, sans-serif; font-size: .82rem; }
.source p { margin: .55rem 0; }
.source-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.source-links a { font-family: system-ui, sans-serif; font-size: .8rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .58rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.4); }
th, td { padding: .75rem .85rem; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
th { font-family: system-ui, sans-serif; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.callout { padding: 1rem 1.1rem; border: 1px solid #baa37d; border-radius: 10px; background: #fff9e9; }
.callout strong { color: var(--warning); }
.small-note { color: var(--muted); font-family: system-ui, sans-serif; font-size: .82rem; }
.status-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .55rem; margin: .6rem 0; }

.site-footer { border-top: 1px solid var(--line); padding: 1.8rem 1.25rem 3rem; color: var(--muted); font-family: system-ui, sans-serif; font-size: .8rem; }
.footer-inner { max-width: var(--measure); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw,110rem); max-height: 94vh; }
.dialog::backdrop { background: rgba(16,18,17,.86); }
.dialog-inner { position: relative; background: #181a18; padding: 1rem; border-radius: 8px; }
.dialog img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.dialog button { position: absolute; right: .5rem; top: .5rem; border: 0; border-radius: 999px; width: 2.2rem; height: 2.2rem; background: rgba(255,255,255,.9); cursor: pointer; font-family: system-ui, sans-serif; font-weight: 800; }

@media (max-width: 920px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
}
@media (max-width: 780px) {
  .hero, .evidence-pair, .evidence-pair.reverse { grid-template-columns: 1fr; }
  .grid.two, .grid.three, .photo-grid { grid-template-columns: 1fr; }
  .source { grid-template-columns: 1fr; }
  .source img { height: auto; max-height: 26rem; object-fit: contain; }
  .timeline::before { left: .35rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.65rem; }
  .timeline time { text-align: left; }
  .timeline .event::before { left: -1.6rem; }
}
