/* ==========================================================================
   The Shroud of Turin — site styles
   Palette: charred umber ground, raw-linen text, old-gold accent.
   ========================================================================== */

:root {
  --bg: #0e0b09;
  --surface: #17120e;
  --surface-2: #1f1813;
  --line: rgba(233, 223, 204, 0.14);
  --line-faint: rgba(233, 223, 204, 0.07);
  --text: #e9dfcc;
  --muted: #a99c88;
  --gold: #c9a35c;
  --gold-bright: #e4c585;
  --slate: #9db1c7;
  --ok: #9cc29a;
  --bad: #e0907f;

  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --container: 1240px;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* faint woven texture */
  background-image:
    repeating-linear-gradient(0deg, rgba(233, 223, 204, 0.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(233, 223, 204, 0.012) 0 1px, transparent 1px 3px);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
h1 em, .brand em, .footer-brand em { font-style: italic; color: var(--gold); font-weight: 400; }

p { margin: 0 0 1.1em; }
a { color: inherit; }
code { font-size: 0.85em; color: var(--muted); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--bg); }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow, .narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.stack > * + * { margin-top: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d3c8b4; max-width: 62ch; }
.center .lede, .lede.center { margin-inline: auto; }
.text-link {
  color: var(--gold-bright); text-decoration: underline;
  text-decoration-color: rgba(201, 163, 92, 0.4); text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: currentColor; }
.caption, figcaption { font-size: 0.85rem; color: var(--muted); }

/* ── Buttons & chips ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.9rem/1 var(--sans); letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a130b; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(233, 223, 204, 0.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
  font: 500 0.85rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(233, 223, 204, 0.35); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.2rem 0.5rem; white-space: nowrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-documented { color: var(--ok); }
.badge-disputed { color: #e3b266; }
.badge-disputed::before { border-radius: 1px; transform: rotate(45deg); }
.badge-tradition { color: var(--slate); }
.badge-tradition::before { background: transparent; border: 2px solid currentColor; }

/* ── Top navigation ────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 8, 6, 0.9); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topnav-inner { height: 100%; display: flex; align-items: center; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-main, .nav-account { display: flex; align-items: center; gap: 0.15rem; }
.nav-main { margin-left: -0.8rem; }
.site-nav a, .nav-link-btn {
  position: relative; padding: 0.5rem 0.8rem; text-decoration: none; white-space: nowrap;
  font: 500 0.88rem/1.2 var(--sans); color: var(--muted); transition: color 0.2s;
  background: none; border: 0; cursor: pointer;
}
.site-nav a:hover, .site-nav a.active, .nav-link-btn:hover { color: var(--text); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -0.35rem; height: 2px; background: var(--gold);
}
.site-nav a.nav-admin { color: var(--gold); }
.site-nav a.nav-cta {
  margin-left: 0.4rem; padding: 0.45rem 1rem; border-radius: 999px; background: var(--gold); color: #1a130b; font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--gold-bright); color: #1a130b; }
.nav-user { font-size: 0.85rem; color: var(--text); padding: 0 0.6rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account form { display: flex; margin: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: -10px; padding: 0; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.25rem 1.25rem; background: rgba(10, 8, 6, 0.98); border-bottom: 1px solid var(--line);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-main, .nav-account { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-account { margin-top: 0.75rem; }
  .site-nav a, .nav-link-btn { padding: 0.85rem 0; font-size: 1rem; text-align: left; border-bottom: 1px solid var(--line-faint); }
  .site-nav a.active::after { display: none; }
  .site-nav a.active { color: var(--gold-bright); }
  .site-nav a.nav-cta { margin: 0.75rem 0 0; text-align: center; border-bottom: 0; }
  .nav-user { padding: 0.85rem 0 0; max-width: none; color: var(--muted); }
}

/* ── Banner & logo ─────────────────────────────────────────────────────── */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #1a120c;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../images/shroud-full-landscape.jpg") center 46% / cover no-repeat;
  filter: saturate(0.75) brightness(0.8);
}
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(14, 11, 9, 0.94) 0%, rgba(14, 11, 9, 0.72) 38%, rgba(14, 11, 9, 0.28) 70%, rgba(14, 11, 9, 0.5) 100%),
    linear-gradient(to bottom, rgba(14, 11, 9, 0.35), rgba(14, 11, 9, 0) 40%, rgba(14, 11, 9, 0.55));
}
.banner-inner {
  min-height: clamp(170px, 22vw, 250px); padding-block: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.banner-tag {
  margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.logo { display: inline-flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.5rem); text-decoration: none; }
.logo-mark {
  flex: none; width: clamp(84px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); outline: 1px solid rgba(201, 163, 92, 0.45); outline-offset: 5px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); background: #000;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.35) contrast(1.1); }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02;
  color: var(--text); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}
.logo-name em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.logo-sub { margin-top: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-bright); }
.logo-sm .logo-mark { width: 56px; outline-offset: 3px; border-width: 1.5px; }
.logo-sm .logo-name { font-size: 1.6rem; text-shadow: none; }
.logo-sm .logo-sub { font-size: 0.6rem; margin-top: 0.3rem; }
@media (max-width: 720px) { .banner-tag { display: none; } }

/* ── Intro (home) & shared page furniture ──────────────────────────────── */
.intro { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.intro h1 { max-width: 24ch; font-size: clamp(2.4rem, 5vw, 4rem); }
.page-end { padding-bottom: clamp(4rem, 8vw, 7rem); }
.narrow-form { max-width: 520px; }
.flash {
  margin-top: 1.5rem; padding: 0.9rem 1.2rem; border-radius: var(--radius);
  border: 1px solid rgba(201, 163, 92, 0.5); background: rgba(201, 163, 92, 0.08); color: var(--gold-bright);
}
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--gold-bright); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 0.4rem; opacity: 0.5; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.head-row .lede { margin-bottom: 0; }
.list-head { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.list-head:first-child { margin-top: 0; }
.nowrap { white-space: nowrap; }
.tag-gold { color: var(--gold-bright); border-color: rgba(201, 163, 92, 0.6); }
.tag-danger { color: var(--bad); border-color: rgba(224, 144, 127, 0.6); }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font: 500 0.85rem var(--sans);
  color: var(--gold-bright); text-decoration: underline; text-decoration-color: rgba(201, 163, 92, 0.4); text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn.danger, .chip-danger { color: var(--bad); }
.chip-danger:hover { color: var(--bad); border-color: var(--bad); }
.pager { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pager a {
  min-width: 2.4rem; padding: 0.45rem 0.7rem; text-align: center; text-decoration: none; border-radius: 6px;
  border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
}
.pager a:hover { color: var(--text); border-color: var(--gold); }
.pager a.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.3rem; justify-items: start; }
.field { display: grid; gap: 0.4rem; width: 100%; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 400 1rem/1.6 var(--sans);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.18); }
.field .input-validation-error { border-color: var(--bad); }
.field-hint { font-size: 0.8rem; color: var(--muted); }
.field-error, .form-errors { font-size: 0.85rem; color: var(--bad); }
.field-error:empty, .form-errors.validation-summary-valid { display: none; }
.form-errors { width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(224, 144, 127, 0.5); border-radius: 8px; background: rgba(224, 144, 127, 0.07); }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; cursor: pointer; }
.check input { accent-color: var(--gold); width: 1.05rem; height: 1.05rem; margin: 0; }

/* ── Forum ─────────────────────────────────────────────────────────────── */
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 980px) { .forum-layout { grid-template-columns: 1fr; } }
.boards, .topics, .recent, .posts { list-style: none; margin: 0; padding: 0; }
.boards, .topics { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.board, .topic-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 240px); gap: 1.5rem; align-items: center;
  padding: 1.3rem 1.5rem; border-top: 1px solid var(--line-faint); transition: background-color 0.2s;
}
.board:first-child, .topic-row:first-child { border-top: 0; }
.board:hover, .topic-row:hover { background: var(--surface-2); }
.board h3, .topic-row h3 { font-size: 1.45rem; margin: 0 0 0.2em; }
.topic-row h3 { font-size: 1.3rem; }
.board h3 a, .topic-row h3 a { text-decoration: none; }
.board h3 a:hover, .topic-row h3 a:hover { color: var(--gold-bright); }
.board p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.topic-main > span { font-size: 0.82rem; color: var(--muted); }
.topic-row .tag { vertical-align: 0.25em; margin-right: 0.3rem; font-family: var(--sans); }
.board-stats { display: grid; gap: 0.1rem; font-size: 0.82rem; color: var(--muted); }
.board-stats strong { color: var(--text); font-weight: 600; }
.board-latest { display: grid; gap: 0.15rem; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.board-latest a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-latest a:hover { color: var(--gold-bright); }
@media (max-width: 720px) {
  .board, .topic-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .board-stats { display: flex; gap: 1rem; }
}
.side-box { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.side-box + .side-box { margin-top: 1.25rem; }
.side-box h2 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.side-box .btn-row { margin-top: 1rem; }
.recent li { padding: 0.7rem 0; border-top: 1px solid var(--line-faint); display: grid; gap: 0.1rem; }
.recent li:first-child { border-top: 0; padding-top: 0; }
.recent a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.recent a:hover { color: var(--gold-bright); }
.recent span { font-size: 0.78rem; color: var(--muted); }

.topic-title { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 26ch; }
.topic-info { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0; font-size: 0.9rem; }
.mod-bar {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 0.8rem 1rem;
  border: 1px dashed rgba(201, 163, 92, 0.45); border-radius: var(--radius);
}
.mod-bar .eyebrow { margin: 0 0.4rem 0 0; }
.mod-bar form { margin: 0; }
.post {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.post:target .post-body { box-shadow: -3px 0 0 var(--gold); padding-left: 1.2rem; margin-left: -1.2rem; }
.post-author { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; font-size: 0.95rem; overflow-wrap: anywhere; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--gold); color: var(--gold-bright); font: 500 1.4rem/1 var(--serif);
}
.post-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; margin-bottom: 0.6rem; }
.post-meta a { color: var(--muted); text-decoration: none; }
.post-meta a:hover { color: var(--gold-bright); }
.post-meta form { margin: 0; }
.post-text { max-width: 78ch; overflow-wrap: anywhere; color: #ddd2be; }
.post-text p:last-child { margin-bottom: 0; }
.post-text a { color: var(--gold-bright); }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; gap: 0.9rem; }
  .post-author { flex-direction: row; align-items: center; }
  .avatar { width: 36px; height: 36px; font-size: 1.1rem; }
}
.reply { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 860px; }

/* ── Admin ─────────────────────────────────────────────────────────────── */
.admin-nav { margin-top: 1.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.stat {
  display: grid; gap: 0.2rem; padding: 1.5rem 1.6rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s;
}
a.stat:hover { border-color: var(--gold); }
.stat-num { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--gold-bright); }
.stat-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.admin-search { margin-bottom: 1.5rem; }
.row-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.row-actions form { margin: 0; }
td .tag { margin-left: 0.4rem; }
.board-edit-list { display: grid; gap: 1rem; }
.board-edit { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.board-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.board-form .field { width: auto; flex: 1 1 200px; }
.board-form .field.grow { flex: 3 1 320px; }
.board-form .field.tiny { flex: 0 0 90px; }
.board-form .field input { padding: 0.6rem 0.8rem; font-size: 0.95rem; background: var(--bg); }
.board-form .btn { margin-bottom: 2px; }
.board-edit-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.9rem; }
.board-edit-foot form { margin: 0; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.container { padding-inline: 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-faint); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head.center .lede { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Facts ─────────────────────────────────────────────────────────────── */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.fact { padding: 1.8rem 1.6rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact-value { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: var(--gold-bright); margin: 0 0 0.3rem; white-space: nowrap; }
.fact-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.7rem; }
.fact-detail { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 980px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ── Compare slider ────────────────────────────────────────────────────── */
.compare { margin: 0 auto; max-width: 440px; --pos: 50%; }
.compare-frame {
  position: relative; aspect-ratio: 354 / 465; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--gold-bright); pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-bright); color: #1a130b; font: 600 1.1rem/1 var(--sans); letter-spacing: 0.1em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(.compare-range:focus-visible) { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.compare-tag {
  position: absolute; bottom: 0.7rem; padding: 0.3rem 0.6rem; border-radius: 4px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(14, 11, 9, 0.75); color: var(--text); pointer-events: none;
}
.compare-tag-left { left: 0.7rem; }
.compare-tag-right { right: 0.7rem; }
.compare figcaption { margin-top: 0.8rem; text-align: center; }

/* ── Panels, duo, cards ────────────────────────────────────────────────── */
.panel {
  padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2);
}
.panel p:last-child { margin-bottom: 0; color: #cfc4b0; }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; margin-bottom: 2.5rem; }
.duo-notes { grid-template-columns: 1fr 1fr; margin: 2.5rem 0 0; }
.duo-divider { display: grid; place-items: center; }
.duo-divider span { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold); }
@media (max-width: 780px) { .duo, .duo-notes { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; padding: 2rem 1.8rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.25s, transform 0.25s, background-color 0.25s;
}
a.card:hover { border-color: var(--gold); transform: translateY(-4px); background: var(--surface-2); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .eyebrow { color: var(--gold); font-size: 0.75rem; }
.card-cta { margin-top: auto; color: var(--gold-bright); font-size: 0.9rem; font-weight: 600; }
.card-static p:last-child { margin-bottom: 0; }
.section-alt .card { background: var(--surface-2); }
@media (max-width: 980px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .cards, .cards-4 { grid-template-columns: 1fr; } }

/* ── Highlights (home) ─────────────────────────────────────────────────── */
.highlights { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.highlight { border-top: 1px solid var(--line); padding-top: 1.4rem; position: relative; }
.highlight::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.highlight-year { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-bright); display: block; margin-bottom: 0.6rem; }
.highlight h3 { font-size: 1.3rem; }
.highlight p { font-size: 0.9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }

/* ── Quotes ────────────────────────────────────────────────────────────── */
.quote { padding: 2rem 0 7rem; text-align: center; }
blockquote { margin: 0; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; margin-bottom: 1rem; }
blockquote footer { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pull { border-left: 2px solid var(--gold); padding: 0.4rem 0 0.4rem 1.6rem; }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; margin-bottom: 0.8rem; }

/* ── History: filters & timeline ───────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.search { display: flex; gap: 0.5rem; flex: 1 1 280px; max-width: 420px; }
.search input {
  flex: 1; min-width: 0; padding: 0.65rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 0.9rem var(--sans);
}
.search input::placeholder { color: #7d7262; }
.search input:focus { outline: none; border-color: var(--gold); }
.result-count { margin: 1.2rem 0 0.6rem; color: var(--muted); font-size: 0.9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 0.8rem; color: var(--muted); }
.legend .badge { margin-right: 0.3rem; }
.empty { text-align: center; padding: 4rem 1rem 6rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 1rem 0 6rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 190px; width: 1px; background: linear-gradient(to bottom, transparent, var(--line) 4rem, var(--line) calc(100% - 4rem), transparent); }
.timeline-era { padding: 3.5rem 0 1.5rem 230px; max-width: 900px; }
.timeline-era h2 { margin-bottom: 0.3em; }
.timeline-era p:last-child { color: var(--muted); margin: 0; }
.timeline-item { display: grid; grid-template-columns: 190px 1fr; position: relative; padding: 0.75rem 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 186px; top: 1.75rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.timeline-date { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-bright); padding: 1.05rem 2rem 0 0; text-align: right; line-height: 1.25; }
.timeline-card {
  margin-left: 40px; max-width: 700px; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color 0.25s;
}
.timeline-card:hover { border-color: rgba(201, 163, 92, 0.5); }
.timeline-card h3 { font-size: 1.45rem; margin-bottom: 0.4em; }
.timeline-card p { margin: 0; color: #cfc4b0; font-size: 0.95rem; }
.timeline-meta { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.8rem; flex-wrap: wrap; }
@media (max-width: 780px) {
  .timeline::before { left: 4px; }
  .timeline-era { padding-left: 32px; }
  .timeline-item { grid-template-columns: 1fr; padding-left: 32px; }
  .timeline-item::before { left: 0; top: 1.2rem; }
  .timeline-date { text-align: left; padding: 0.5rem 0 0.5rem; }
  .timeline-card { margin-left: 0; }
}

/* ── Image explorer ────────────────────────────────────────────────────── */
.explorer { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.explorer-stage { position: sticky; top: calc(var(--header-h) + 1rem); }
.explorer-toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.explorer-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000;
  max-height: calc(100vh - var(--header-h) - 9rem); aspect-ratio: 955 / 1880; margin-inline: auto;
}
.explorer-frame img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s; filter: sepia(0.25); }
.explorer[data-mode="positive"] .explorer-frame img { filter: invert(1) sepia(0.55) brightness(0.92) contrast(0.8); }
.explorer .caption { margin-top: 0.8rem; }
.hotspot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--gold-bright); background: rgba(14, 11, 9, 0.7); color: var(--gold-bright);
  font: 600 0.75rem/1 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.hotspot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--gold-bright); opacity: 0;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover, .hotspot.active { background: var(--gold-bright); color: #1a130b; transform: scale(1.12); }
.hotspot.active::after { animation: none; }

.feature-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.feature-tab {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 0.85rem/1.2 var(--sans); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.feature-tab .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 0.7rem; font-weight: 600; }
.feature-tab:hover { color: var(--text); }
.feature-tab[aria-selected="true"] { color: var(--text); border-color: var(--gold); }
.feature-tab[aria-selected="true"] .num { background: var(--gold); color: #1a130b; }
html:not(.js) .feature-tabs { display: none; }

.feature { padding-bottom: 2.5rem; }
.js .feature { display: none; }
.js .feature.active { display: block; animation: fade-up 0.4s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.feature-obs { font-size: 1.1rem; color: #d8cdb9; }
.readings, .topic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.reading { padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); }
.reading-m { border-top-color: var(--slate); }
.reading h3 { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.reading-m h3 { color: var(--slate); }
.reading p { margin: 0; font-size: 0.95rem; color: #cfc4b0; }
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-stage { position: static; }
  .explorer-frame { max-height: none; max-width: 420px; }
}
@media (max-width: 560px) { .readings, .topic-cols { grid-template-columns: 1fr; } }

/* ── Full cloth ────────────────────────────────────────────────────────── */
.fullcloth { margin: 0; }
.fullcloth-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.fullcloth-inner { position: relative; min-width: 980px; }
.fullcloth-inner img { width: 100%; }
.fullcloth-label, .fullcloth-mid {
  position: absolute; top: 0.8rem; transform: translateX(-50%); padding: 0.3rem 0.7rem; border-radius: 4px;
  background: rgba(14, 11, 9, 0.8); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.fullcloth-mid { left: 51.5%; top: auto; bottom: 0.8rem; color: var(--gold-bright); }
.fullcloth figcaption { margin-top: 0.8rem; }

/* ── Charts ────────────────────────────────────────────────────────────── */
.chart { margin: 0 0 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); overflow-x: auto; }
.chart figcaption h3 { font-size: 1.45rem; color: var(--text); margin-bottom: 0.3em; }
.chart figcaption p { margin-bottom: 1.2rem; max-width: 70ch; }
.chart svg { display: block; width: 100%; min-width: 620px; height: auto; font-family: var(--sans); }
.chart .axis { stroke: rgba(233, 223, 204, 0.45); stroke-width: 1; }
.chart .tick { stroke: rgba(233, 223, 204, 0.45); stroke-width: 1; }
.chart .grid { stroke: var(--line-faint); stroke-width: 1; }
.chart .tick-label { fill: var(--muted); font-size: 12px; }
.chart .band { fill: var(--gold); }
.chart .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .ref-dot { fill: var(--text); stroke: var(--surface-2); stroke-width: 2; }
.chart .mark-label { fill: var(--muted); font-size: 13px; }
.chart .mark-label.strong { fill: var(--text); font-weight: 600; }
.chart .row-label { fill: var(--text); font-size: 13px; font-weight: 500; }
.chart .value-label { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .err { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.chart .dot { fill: var(--gold); stroke: var(--surface-2); stroke-width: 2; }
.chart .mean .err { stroke: var(--text); }
.chart .diamond { fill: var(--text); }
.chart .hit { fill: transparent; }
.chart .lab-row:hover .hit { fill: rgba(233, 223, 204, 0.05); }
.chart .lab-row:hover .value-label { fill: var(--text); }
.chart-table { margin-top: 1rem; font-size: 0.9rem; }
.chart-table summary { cursor: pointer; color: var(--gold-bright); width: fit-content; }
.chart-table .table-wrap { margin-top: 0.8rem; }

/* ── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-faint); }
th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(233, 223, 204, 0.025); }
td.year { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-bright); line-height: 1.2; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Studies ───────────────────────────────────────────────────────────── */
.studies { margin-top: 2rem; border-top: 1px solid var(--line); }
.study { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.study[hidden] { display: none; }
.study-year { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold-bright); }
.study-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.study h3 { margin-bottom: 0.2em; }
.study p { max-width: 75ch; }
.study .reception { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }
.study .reception strong { color: var(--text); font-weight: 600; }
.lean { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 4px; border: 1px solid currentColor; }
.lean-medieval { color: var(--slate); }
.lean-authentic { color: var(--gold); }
.lean-open { color: var(--muted); }
@media (max-width: 640px) { .study { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ── Disclosure lists ──────────────────────────────────────────────────── */
.hypotheses { border-top: 1px solid var(--line); }
.hypothesis { border-bottom: 1px solid var(--line); }
.hypothesis summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.hypothesis summary::-webkit-details-marker { display: none; }
.hypothesis summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  font: 300 1.6rem/1 var(--sans); color: var(--gold); transition: transform 0.25s;
}
.hypothesis[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hyp-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; display: block; }
.hyp-who { font-size: 0.85rem; color: var(--muted); }
.hyp-body { padding: 0 2.5rem 1.4rem 0; max-width: 75ch; color: #cfc4b0; }
.hyp-body strong { color: var(--text); }

/* ── Debate ────────────────────────────────────────────────────────────── */
.debate-controls { display: grid; gap: 1.2rem; padding-bottom: 1rem; }
.debate-jump { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.88rem; }
.debate-jump a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.debate-jump a:hover { color: var(--gold-bright); border-color: var(--gold); }
.topic { padding: 3rem 0; border-top: 1px solid var(--line); }
.topic:last-child { padding-bottom: 6rem; }
.topic header { display: flex; align-items: baseline; gap: 1.2rem; }
.topic-num { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); font-style: italic; }
.topic h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
[data-view="authentic"] [data-side="medieval"], [data-view="medieval"] [data-side="authentic"] { display: none; }
[data-view="authentic"] .topic-cols, [data-view="medieval"] .topic-cols { grid-template-columns: 1fr; max-width: 760px; }
.topic-status { margin: 1.4rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--line); color: var(--muted); max-width: 80ch; }
.topic-status strong { color: var(--text); }

/* ── Visit ─────────────────────────────────────────────────────────────── */
.notice { padding: 1.3rem 1.6rem; border: 1px solid rgba(201, 163, 92, 0.45); border-radius: var(--radius); background: rgba(201, 163, 92, 0.07); margin-bottom: 2rem; }
.notice strong { color: var(--gold-bright); }
.places .card h3 { font-size: 1.6rem; }

/* ── Quiz ──────────────────────────────────────────────────────────────── */
.quiz { padding-bottom: 6rem; }
.quiz-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; position: sticky; top: var(--header-h); z-index: 5; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s; }
.question { border: 0; padding: 0; margin: 2.5rem 0; min-width: 0; }
.question legend { font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; padding: 0; margin-bottom: 1rem; }
.question legend .topic-num { margin-right: 0.5rem; }
.option {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem; margin-bottom: 0.5rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.option:hover { border-color: rgba(233, 223, 204, 0.35); }
.option:has(input:checked) { border-color: var(--gold); background: var(--surface-2); }
.option input { accent-color: var(--gold); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.question:disabled .option { cursor: default; }
.option .mark { margin-left: auto; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.option.correct { border-color: var(--ok); }
.option.correct .mark { color: var(--ok); }
.option.wrong { border-color: var(--bad); }
.option.wrong .mark { color: var(--bad); }
.explain { margin: 0.9rem 0 0; padding-left: 1rem; border-left: 2px solid var(--gold); color: var(--muted); font-size: 0.93rem; }
.score { display: flex; align-items: center; gap: 2rem; padding: 2rem; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--surface); flex-wrap: wrap; }
.score-num { font-family: var(--serif); font-size: 5rem; line-height: 1; margin: 0; color: var(--gold-bright); }
.score-num span { font-size: 2rem; color: var(--muted); }
.score-verdict { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 0.6rem; }

/* ── Sources ───────────────────────────────────────────────────────────── */
.sources-head { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.sources { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 0.8rem 0 0.8rem 1.4rem; text-indent: -1.4rem; border-bottom: 1px solid var(--line-faint); font-size: 0.95rem; color: #cfc4b0; }
.sources + p, .sources-head + p { padding-bottom: 5rem; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: #0a0806; padding: 4.5rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 2.5rem 2rem; }
.footer-about p { max-width: 40ch; margin-top: 1.2rem; }
.footer-about p + p { margin-top: 0; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-footer h2 {
  font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); width: 100%;
}
.site-footer nav a, .site-footer .nav-link-btn, .footer-note {
  display: block; padding: 0.28rem 0; text-decoration: none; color: #cfc4b0; font: 400 0.88rem/1.45 var(--sans); text-align: left; white-space: normal;
}
.site-footer nav a .muted { font-size: 0.78rem; white-space: nowrap; }
.site-footer nav a:hover, .site-footer .nav-link-btn:hover { color: var(--gold-bright); }
.site-footer nav form { margin: 0; }
.footer-note { color: var(--muted); }
.footer-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-faint); color: var(--muted); font-size: 0.8rem;
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--gold-bright); }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Scroll reveal (only when JS is running) ───────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .chips, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
