:root {
  --bg: #f4f0e8;
  --paper: #fbf8f1;
  --ink: #171916;
  --muted: #66695f;
  --line: #d8d2c5;
  --forest: #183f32;
  --forest-2: #0f2f25;
  --moss: #637b47;
  --gold: #b28342;
  --red: #8d3e32;
  --shadow: 0 18px 50px rgba(24, 31, 25, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: #fff;
  padding: .8rem 1rem;
  z-index: 50;
}
.skip-link:focus { left: 1rem; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 210, 197, .75);
  background: rgba(244, 240, 232, .9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark { color: var(--gold); font-size: 1.2rem; }
nav { display: flex; gap: 1.25rem; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
}
nav a:hover { color: var(--ink); }

.hero {
  padding: 94px 0 78px;
  background:
    radial-gradient(circle at 75% 25%, rgba(178, 131, 66, .12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.16), transparent);
}

.hero-grid, .split, .visit-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--moss);
}

h1, h2, h3, blockquote {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 500;
}
h1 em { color: var(--forest); font-weight: 500; }

h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 500;
}

h3 {
  margin: .35rem 0 .8rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

.lead {
  max-width: 760px;
  margin: 2rem 0 1rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #383c36;
}
.lead-small { font-size: 1.16rem; color: #44483f; }
.hero-note { max-width: 720px; color: var(--muted); }

.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.actions.vertical { flex-direction: column; align-items: stretch; margin: 0; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.button.ghost { background: transparent; }

.thesis-card, .case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.3rem);
  box-shadow: var(--shadow);
}
.kicker {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
}
blockquote {
  margin: 1rem 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section { padding: 92px 0; }
.section-head { max-width: 840px; margin-bottom: 2.6rem; }
.section-head > p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head.narrow { max-width: 720px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(251,248,241,.8);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.accent { background: var(--forest); color: #fff; border-color: var(--forest); }
.card .num { color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.card p { color: var(--muted); }
.card.accent p { color: #d7e0da; }
.card a { margin-top: auto; text-decoration: none; font-weight: 800; font-size: .92rem; }

.dark {
  background: var(--forest-2);
  color: #f4f0e8;
}
.dark .eyebrow { color: #bdcda2; }
.dark .lead-small, .dark p { color: #d2dbd5; }
.case-card { background: #173b30; border-color: #315b4c; box-shadow: none; }
.case-card .small { color: #aebfb5; }

.timeline { margin-top: 2.2rem; border-top: 1px solid #3f6257; }
.timeline div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #3f6257;
}
.timeline strong { color: #d5b579; }
.timeline span { color: #d2dbd5; }

.align-start { align-items: start; }
.museum-list { border-top: 1px solid var(--line); }
.museum-list div {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.museum-list span { color: var(--gold); font-weight: 900; }
.museum-list p { margin: 0; }

.soft { background: #e9e4d8; }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.evidence-grid > div {
  background: rgba(255,255,255,.46);
  border: 1px solid #d7d0c1;
  border-radius: 16px;
  padding: 1.25rem;
}
.evidence-grid p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: .5rem; }
.academic { background:#2d7d46; }
.historic { background:#3978b8; }
.folklore { background:#c8a33d; }
.testimony { background:#d57539; }
.artistic { background:#8256a4; }
.unsupported { background:#b0443b; }
.superstition { background:#292929; }

.visit { background: var(--paper); }
.visit-grid { grid-template-columns: 1.3fr .7fr; }

footer { background: #141713; color: #d9ddd7; padding: 40px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}
footer p { margin-bottom: 0; color: #a9aea7; }
.small { font-size: .88rem; }

/* Pillar articles */
.article-hero {
  padding: 80px 0 52px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 15%, rgba(99,123,71,.11), transparent 32%);
}
.article-hero h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); max-width: 980px; }
.article-deck { max-width: 820px; margin: 1.5rem 0 0; font-size: 1.25rem; color: #3f443d; }
.breadcrumbs { margin-bottom: 1.2rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { text-decoration: none; }
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 4.5rem;
  align-items: start;
}
.article-body { font-size: 1.06rem; }
.article-body h2 { margin: 3.5rem 0 1rem; font-size: clamp(2rem,4vw,3rem); }
.article-body h3 { margin-top: 2rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul { padding-left: 1.3rem; }
.article-body li { margin: .45rem 0; }
.article-aside { position: sticky; top: 96px; }
.aside-box, .source-box, .answer-box, .museum-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.answer-box { border-left: 5px solid var(--forest); }
.museum-box { border-left: 5px solid var(--gold); background: #f2eadc; }
.source-box { background: #ece7db; }
.source-box a { overflow-wrap: anywhere; }
.label {
  display: inline-block;
  margin-bottom: .6rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--moss);
}
.article-nav { display: grid; gap: .5rem; }
.article-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.article-nav a:hover { color: var(--ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { color: var(--muted); }
.source-list li { margin-bottom: .75rem; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1.5rem; }
.related-grid a { display:block; border:1px solid var(--line); border-radius:14px; padding:1rem; text-decoration:none; background:rgba(251,248,241,.7); font-weight:800; }
.badge { display:inline-flex; gap:.4rem; align-items:center; border:1px solid var(--line); border-radius:999px; padding:.3rem .65rem; font-size:.78rem; font-weight:800; background:var(--paper); margin:.2rem .2rem .2rem 0; }
.bibliography-list { display:grid; gap:1rem; margin:1.5rem 0 3rem; }
.source-card { padding:1.4rem; border:1px solid var(--line); border-radius:16px; background:rgba(251,248,241,.75); }
.source-card h3 { margin-top:.25rem; }
.source-card p { margin:.55rem 0; }
.source-type { color:var(--moss); font-size:.78rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.knowledge-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:1.5rem 0 2.5rem; }
.knowledge-grid > div { padding:1.2rem; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.table-wrap { width:100%; overflow-x:auto; margin:1.5rem 0 2.5rem; }
.comparison-table { width:100%; min-width:680px; border-collapse:collapse; background:var(--paper); border:1px solid var(--line); }
.comparison-table th, .comparison-table td { padding:1rem; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.comparison-table th { background:var(--forest); color:#fff; font-size:.82rem; letter-spacing:.04em; }
.comparison-table tr:last-child td { border-bottom:0; }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .visit-grid { grid-template-columns: 1fr; }
  .thesis-card { max-width: 650px; }
  .article-shell { grid-template-columns: 1fr; gap: 2rem; }
  .article-aside { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header nav { display: none; }
  .hero { padding-top: 68px; }
  .section { padding: 70px 0; }
  .cards, .evidence-grid, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: 260px; }
  .timeline div { grid-template-columns: 72px 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero { padding-top: 60px; }
}
