/* Damascene Philosophy: site styles */
:root {
  --bg: #f7f4ec;
  --paper: #fbf9f3;
  --ink: #1a1813;
  --muted: #6e675c;
  --soft: #8f877a;
  --line: #e2dccd;
  --line-strong: #cfc6b2;
  --gold: #b89b6a;
  --gold-ink: #8a6a36;
  --gold-wash: rgba(184, 155, 106, 0.12);
  --serif-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --serif-text: "EB Garamond", Georgia, "Times New Roman", serif;
  --measure: 680px;
  --wide: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #13120f;
  --paper: #1a1915;
  --ink: #ece7dc;
  --muted: #a69f92;
  --soft: #8a8376;
  --line: #2d2a24;
  --line-strong: #3d3930;
  --gold: #b89b6a;
  --gold-ink: #c9ae7a;
  --gold-wash: rgba(184, 155, 106, 0.1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 20px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
::selection { background: var(--gold-wash); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .bar {
  max-width: var(--wide); margin: 0 auto; padding: 18px 28px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 46px; height: 46px; display: block; }
.brand span {
  font-family: var(--serif-display); font-weight: 500; font-size: 17px;
  letter-spacing: 0.26em; text-transform: uppercase;
}
.tools { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  appearance: none; border: 0; background: none; color: var(--ink);
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  text-decoration: none;
}
.icon-btn:hover { background: var(--gold-wash); color: var(--gold-ink); }
.icon-btn svg { width: 20px; height: 20px; }
.site-nav { max-width: var(--wide); margin: 0 auto; padding: 6px 28px 0; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 26px;
}
.site-nav a {
  display: inline-block; padding: 12px 0 13px; text-decoration: none;
  font-family: var(--serif-display); font-size: 17px; letter-spacing: 0.06em; color: var(--muted);
  border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- layout ---------- */
main { display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.measure { max-width: var(--measure); margin: 0 auto; }
.page-head { padding: 72px 0 40px; }
.eyebrow {
  font-family: var(--serif-display); font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow svg { width: 22px; height: 22px; color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 500; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.01em; }
.lede { font-style: italic; font-size: clamp(21px, 2.4vw, 26px); color: var(--muted); margin: 18px 0 0; line-height: 1.45; }
h2 { font-size: clamp(30px, 3.6vw, 38px); margin: 64px 0 18px; }
h3 { font-size: 26px; margin: 34px 0 10px; }
p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 18px; }
.prose li { margin: 0 0 8px; }
hr.rule { border: 0; height: 1px; background: var(--line); margin: 56px 0; }
.small { font-size: 16px; color: var(--muted); }
.sc { font-variant: small-caps; letter-spacing: 0.04em; }

/* ---------- entry ---------- */
.numeral { font-family: var(--serif-display); color: var(--gold-ink); font-size: 22px; margin-right: 4px; }
.glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 36px 0 0;
}
.glance div { padding: 14px 16px 14px 0; }
.glance div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.glance dt {
  font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft);
}
.glance dd { margin: 4px 0 0; font-size: 18px; }
figure.diagram { margin: 44px 0 8px; }
figure.diagram svg { display: block; width: 100%; height: auto; color: var(--gold); }
figure.diagram svg text { fill: var(--muted); font-family: var(--serif-display); font-size: 15px; letter-spacing: 0.04em; }
figure.diagram figcaption { font-size: 16px; color: var(--muted); font-style: italic; text-align: center; margin-top: 10px; }
.quote {
  margin: 40px 0; padding: 0 0 0 0; text-align: center;
}
.quote p { font-family: var(--serif-display); font-size: clamp(25px, 3vw, 31px); line-height: 1.32; font-style: italic; margin: 0; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 16px; color: var(--muted); letter-spacing: 0.04em; }
.quote cite::before { content: ""; display: block; width: 36px; height: 1px; background: var(--gold); margin: 0 auto 12px; }

.terms-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.terms-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 210px 1fr; gap: 18px; }
.terms-list b { font-family: var(--serif-display); font-weight: 500; font-size: 21px; }
.terms-list span { color: var(--muted); font-size: 18px; }

.positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 8px 0 0; }
.position {
  border: 1px solid var(--line); background: var(--paper); padding: 22px 22px 20px; position: relative;
}
.position .tag { font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); }
.position h3 { margin: 6px 0 10px; font-size: 25px; }
.position p { font-size: 18px; margin: 0; color: var(--ink); }
.argument { border-left: 1px solid var(--gold); padding: 2px 0 2px 24px; margin: 30px 0; }
.argument h3 { margin-top: 0; }
.argument dl { margin: 0; }
.argument dt { font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-top: 16px; }
.argument dd { margin: 4px 0 0; }
.who { list-style: none; padding: 0; margin: 0; }
.who li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.who li b { font-family: var(--serif-display); font-weight: 500; font-size: 20px; margin-right: 8px; }
.variations { counter-reset: v; }
.variation { margin: 0 0 22px; }
.variation h3 { font-size: 23px; margin: 0 0 6px; }

details.deeper { border-top: 1px solid var(--line); padding: 4px 0; }
details.deeper:last-of-type { border-bottom: 1px solid var(--line); }
details.deeper summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--serif-display); font-size: 23px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.deeper summary::-webkit-details-marker { display: none; }
details.deeper summary::after { content: "+"; color: var(--gold-ink); font-size: 26px; line-height: 1; transition: transform .2s; }
details.deeper[open] summary::after { transform: rotate(45deg); }
details.deeper .inner { padding: 0 0 18px; }

.open-q { list-style: none; padding: 0; margin: 0; }
.open-q li { font-family: var(--serif-display); font-size: clamp(23px, 2.6vw, 28px); line-height: 1.3; font-style: italic; padding: 16px 0; border-bottom: 1px solid var(--line); }
.open-q li:first-child { border-top: 1px solid var(--line); }
.ending { text-align: center; margin: 56px 0 0; }
.ending img { width: 48px; opacity: .9; }

.reading { list-style: none; padding: 0; margin: 0; }
.reading li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.reading .kind { font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); margin-right: 10px; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

/* ---------- cards & lists ---------- */
.card {
  display: block; text-decoration: none; border: 1px solid var(--line); background: var(--paper);
  padding: 18px 20px 18px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.card .k { font-family: var(--serif-display); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); }
.card h3 { font-size: 23px; margin: 6px 0 6px; }
.card p { font-size: 16.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.index-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: baseline;
  padding: 22px 0; text-decoration: none;
}
.index-list .num { font-family: var(--serif-display); color: var(--gold-ink); font-size: 20px; }
.index-list .t { font-family: var(--serif-display); font-size: clamp(25px, 3vw, 31px); line-height: 1.15; display: block; }
.index-list .d { display: block; color: var(--muted); font-size: 17px; margin-top: 4px; font-style: italic; }
.index-list .m { font-size: 14px; color: var(--soft); white-space: nowrap; font-family: var(--serif-display); letter-spacing: 0.08em; }
.index-list a:hover .t { color: var(--gold-ink); }
.group-title { font-family: var(--serif-display); font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--soft); margin: 48px 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip {
  appearance: none; font: inherit; font-family: var(--serif-display); font-size: 16px; letter-spacing: 0.04em;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); padding: 8px 16px; min-height: 40px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- home ---------- */
.hero { padding: 96px 0 56px; text-align: center; }
.hero img { width: clamp(110px, 16vw, 168px); display: block; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(50px, 9vw, 104px); }
.hero .lede { max-width: 620px; margin-left: auto; margin-right: auto; }
.qotd {
  max-width: 820px; margin: 24px auto 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  padding: 34px 12px 30px; text-align: center;
}
.qotd .label { font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink); }
.qotd a { display: block; text-decoration: none; font-family: var(--serif-display); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; margin: 12px 0 10px; }
.qotd .sub { font-style: italic; color: var(--muted); }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 18px; }
.sections a {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 26px 26px; text-decoration: none; display: block;
  background: transparent; transition: background .15s;
}
.sections a:hover { background: var(--paper); color: var(--ink); }
.sections svg { width: 30px; height: 30px; color: var(--gold); }
.sections h3 { font-size: 27px; margin: 14px 0 6px; }
.sections p { font-size: 16.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.sections .count { font-family: var(--serif-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-top: 12px; display: block; }
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink);
  font-family: var(--serif-display); font-size: 17px; letter-spacing: 0.08em; text-decoration: none; background: transparent; color: var(--ink); cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.gold { border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: var(--gold); color: #1a1813; }

/* ---------- glossary ---------- */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 34px; position: sticky; top: 0; background: var(--bg); padding: 10px 0; z-index: 3; border-bottom: 1px solid var(--line); }
.az a { width: 38px; height: 38px; display: grid; place-items: center; text-decoration: none; font-family: var(--serif-display); font-size: 19px; }
.az a:hover { background: var(--gold-wash); }
.gloss { list-style: none; padding: 0; margin: 0; }
.gloss li { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.gloss li:target { background: var(--gold-wash); }
.gloss dfn { font-style: normal; font-family: var(--serif-display); font-size: 25px; font-weight: 500; display: block; }
.gloss p { margin: 4px 0 0; }
.gloss .ex { color: var(--muted); font-style: italic; font-size: 18px; }
.gloss .see { font-size: 16px; color: var(--soft); margin-top: 6px; }
.letter { font-family: var(--serif-display); font-size: 54px; color: var(--gold); margin: 40px 0 0; scroll-margin-top: 72px; }

/* hover definition */
a.term { text-decoration-style: dotted; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; cursor: help; }
.term-card {
  position: absolute; z-index: 60; max-width: 330px; background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(26, 24, 19, 0.14); padding: 14px 16px 12px; font-size: 16.5px; line-height: 1.5;
}
.term-card b { font-family: var(--serif-display); font-weight: 500; font-size: 20px; display: block; margin-bottom: 2px; }
.term-card a { font-size: 14px; color: var(--gold-ink); }

/* ---------- votes ---------- */
.vote { border: 1px solid var(--line); background: var(--paper); padding: 26px 26px 22px; }
.vote .q { font-family: var(--serif-display); font-size: 24px; margin: 0 0 16px; }
.vote-options { display: grid; gap: 10px; }
.vote-option {
  appearance: none; font: inherit; text-align: left; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  padding: 13px 16px; min-height: 50px; cursor: pointer; position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 12px; font-size: 18px;
}
.vote-option:hover:not([disabled]) { border-color: var(--gold); }
.vote-option .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold-wash); transition: width .6s ease; }
.vote-option span { position: relative; }
.vote-option .pct { font-family: var(--serif-display); color: var(--gold-ink); }
.vote-option.mine { border-color: var(--gold); }
.vote-option[disabled] { cursor: default; }
.vote .note { font-size: 15px; color: var(--soft); margin: 12px 0 0; }

/* ---------- debates ---------- */
.debate-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--line); }
.debate-col { padding: 26px 24px; border-right: 1px solid var(--line); }
.debate-col:last-child { border-right: 0; }
.debate-col h2 { font-size: 30px; margin: 4px 0 12px; }
.debate-col dl { margin: 0; }
.debate-col dt { font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-top: 18px; }
.debate-col dd { margin: 4px 0 0; font-size: 18px; }

/* ---------- thinkers ---------- */
.thinker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lifeline { font-family: var(--serif-display); font-size: 19px; color: var(--muted); letter-spacing: 0.04em; margin-top: 14px; }
.works { list-style: none; padding: 0; margin: 0; }
.works li { padding: 8px 0; border-bottom: 1px solid var(--line); font-style: italic; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 20px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 0; bottom: 0; width: 1px; background: var(--gold); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 0; padding: 0 0 26px; position: relative; }
.timeline .yr { font-family: var(--serif-display); font-size: 18px; color: var(--gold-ink); padding-right: 22px; text-align: right; padding-top: 2px; }
.timeline .ev { padding-left: 28px; position: relative; }
.timeline .ev::before { content: ""; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.timeline .ev b { font-family: var(--serif-display); font-weight: 500; font-size: 22px; display: block; line-height: 1.25; }
.timeline .ev span { color: var(--muted); font-size: 17px; }
.era { font-family: var(--serif-display); font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); padding: 18px 0 18px 138px !important; display: block !important; }

/* ---------- map ---------- */
.map-wrap { border: 1px solid var(--line); background: var(--paper); overflow: auto; }
.map svg { display: block; width: 100%; height: auto; min-width: 760px; }
.map .edge { stroke: var(--line-strong); stroke-width: 1; fill: none; transition: stroke .15s, opacity .15s; }
.map .node circle { fill: var(--bg); stroke: var(--gold); stroke-width: 1.5; transition: fill .15s; }
.map .node text { fill: var(--ink); font-family: var(--serif-display); font-size: 13px; }
.map .node:hover circle, .map .node:focus circle { fill: var(--gold); }
.map .hub text { fill: var(--gold-ink); font-size: 17px; letter-spacing: .18em; text-transform: uppercase; }
.map .hub circle { fill: var(--gold-wash); stroke: none; }
.map.focus .edge { opacity: .15; }
.map.focus .edge.on { opacity: 1; stroke: var(--gold); }

/* ---------- interactive ---------- */
.interactive { border: 1px solid var(--gold); background: var(--paper); padding: 28px; margin: 36px 0; }
.interactive .label { font-family: var(--serif-display); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); }
.interactive h3 { margin: 6px 0 16px; }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 36px; }
.ship svg { width: 100%; height: auto; display: block; }
.ship .plank { transition: fill .25s, stroke .25s; }
.readout { font-family: var(--serif-display); font-size: 22px; text-align: center; margin: 10px 0 0; }
.trolley-stage svg { width: 100%; height: auto; display: block; color: var(--gold); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* quiz */
.quiz-q { border-top: 1px solid var(--line); padding: 26px 0; }
.quiz-q legend { font-family: var(--serif-display); font-size: 25px; line-height: 1.25; padding: 0; margin: 0 0 14px; }
.quiz-q fieldset { border: 0; padding: 0; margin: 0; }
.quiz-q label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); margin: 0 0 8px; cursor: pointer; font-size: 18px; background: var(--paper); }
.quiz-q label:hover { border-color: var(--gold); }
.quiz-q input { accent-color: var(--gold); margin-top: 6px; width: 18px; height: 18px; flex: 0 0 auto; }
.quiz-q .num { font-family: var(--serif-display); color: var(--gold-ink); font-size: 18px; display: block; margin-bottom: 4px; }
.profile-axis { border-top: 1px solid var(--line); padding: 22px 0; }
.profile-axis h3 { margin: 0 0 4px; }
.scale { display: flex; height: 8px; background: var(--line); margin: 14px 0 8px; position: relative; }
.scale i { position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.scale-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--soft); font-family: var(--serif-display); letter-spacing: .06em; }

/* search */
.search-box { display: flex; gap: 10px; }
.search-box input {
  flex: 1; font: inherit; font-size: 22px; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); min-height: 54px;
}
.search-box input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.results { list-style: none; padding: 0; margin: 26px 0 0; }
.results li { border-bottom: 1px solid var(--line); }
.results a { display: block; padding: 16px 0; text-decoration: none; }
.results .k { font-family: var(--serif-display); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.results b { display: block; font-family: var(--serif-display); font-weight: 500; font-size: 25px; }
.results span { color: var(--muted); font-size: 17px; }

/* paths */
.path { border-top: 1px solid var(--line); padding: 36px 0 12px; scroll-margin-top: 20px; }
.path ol { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; }
.path li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.path li::before { content: counter(s, upper-roman) "."; font-family: var(--serif-display); color: var(--gold-ink); font-size: 20px; }
.path li a { font-family: var(--serif-display); font-size: 24px; text-decoration: none; display: block; }
.path li span { color: var(--muted); font-size: 17px; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { margin-top: 110px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: flex-start; }
.site-footer .mark { display: flex; align-items: center; gap: 12px; font-family: var(--serif-display); letter-spacing: 0.24em; font-size: 15px; text-decoration: none; }
.site-footer .mark img { width: 34px; }
.site-footer p { font-size: 16px; color: var(--muted); margin: 8px 0 0; max-width: 420px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--serif-display); font-size: 16px; letter-spacing: .06em; }
.site-footer nav a { text-decoration: none; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.subscribe { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.subscribe .btn { min-height: 40px; font-size: 15px; padding: 0 16px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 18.5px; }
  .site-header .bar, .site-nav, .wrap { padding-left: 18px; padding-right: 18px; }
  .brand span { font-size: 13px; letter-spacing: 0.18em; }
  .brand img { width: 38px; height: 38px; }
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .page-head { padding: 44px 0 28px; }
  .terms-list li { grid-template-columns: 1fr; gap: 2px; }
  .glance div + div { border-left: 0; padding-left: 0; }
  .glance { grid-template-columns: 1fr 1fr; }
  .index-list a { grid-template-columns: 44px 1fr; }
  .index-list .m { display: none; }
  .debate-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 70px 1fr; }
  .timeline .yr { font-size: 15px; padding-right: 14px; }
  .era { padding-left: 92px !important; }
  .interactive { padding: 20px; }
  .vote { padding: 20px; }
  .hero { padding: 60px 0 36px; }
}

/* ---------- print ---------- */
@media print {
  :root { --bg: #fff; --paper: #fff; --ink: #000; --muted: #333; --line: #ccc; }
  body { font-size: 12pt; }
  .site-header .tools, .site-nav, .site-footer nav, .subscribe, .vote, .interactive, .no-print, .filters, .az { display: none !important; }
  details.deeper > *:not(summary) { display: block !important; }
  details.deeper summary::after { content: ""; }
  a { text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  h2 { break-after: avoid; }
  .position, .argument, figure { break-inside: avoid; }
  .site-footer { margin-top: 24pt; }
}

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

/* ---------- interactive details ---------- */
.ship svg .cap, .trolley-stage svg text { fill: var(--muted); font-family: var(--serif-display); font-size: 15px; letter-spacing: .04em; }
.ship .plank { fill: var(--bg); stroke: var(--muted); stroke-width: 1.2; stroke-linejoin: round; }
.ship .plank.a.new { fill: rgba(184, 155, 106, .38); stroke: var(--gold-ink); }
.ship .plank.b.gone { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 4; }
.ship .rig { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linejoin: round; }
.ship .rig.b { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.ship .water { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .7; }
.ship #ship-b.pile .plank.b.old { transform: translateY(8px); }
.ship #ship-b.pile .plank.b.gone, .ship #ship-b.pile .rig.b { opacity: 0; }
.ship #ship-b .plank { transition: transform .4s ease, opacity .3s; }
.ship .toggle { margin: 12px 0 26px; font-size: 17px; }
.ship .toggle input { accent-color: var(--gold); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.trolley-stage { margin: 8px 0 4px; }
.trolley-stage .track { fill: none; stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.trolley-stage .bridge, .trolley-stage .trap { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.trolley-stage .car rect { fill: var(--gold); }
.trolley-stage .car circle { fill: var(--ink); }
.trolley-stage .fig circle, .trolley-stage .fig path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.trolley-stage .fig.you circle, .trolley-stage .fig.you path { stroke: var(--gold-ink); }
.trolley-stage .lever path { stroke: var(--gold-ink); stroke-width: 3; stroke-linecap: round; }
.trolley-stage .lever circle { fill: var(--gold-ink); }
.trolley-stage .beds rect { fill: var(--gold-wash); stroke: var(--line-strong); }
.t-step { font-family: var(--serif-display); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin: 14px 0 0; }
.t-answers { padding-left: 22px; }
.t-answers li { padding: 6px 0; }
.t-verdict { border-left: 1px solid var(--gold); padding-left: 18px; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 8px; }
.quiz-result h3 { font-size: 28px; }

/* ---------- diagram primitives ---------- */
figure.diagram svg text { stroke: none; }
figure.diagram svg .sub { font-size: 13px; fill: var(--soft); }
figure.diagram svg .big { font-size: 40px; fill: var(--gold); }
figure.diagram svg .f { fill: currentColor; stroke: none; }
figure.diagram svg .w { fill: var(--gold-wash); }
figure.diagram svg .m { stroke: var(--muted); }
figure.diagram svg .d { stroke-dasharray: 4 5; }
figure.diagram svg g.d path, figure.diagram svg g.d circle { stroke-dasharray: 4 5; }
.vote .vote-label { font-family: var(--serif-display); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin: -6px 0 10px; }
.vote .note:empty { display: none; }
.signup { border: 1px solid var(--gold); background: var(--paper); padding: 26px 26px 24px; margin: 56px 0 0; text-align: center; }
.signup .label { font-family: var(--serif-display); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.signup p { margin: 0 0 16px; }
