/* anchoredcausality.org v5 — scholarly base, with field (blue) and event (amber) colors */

:root {
  --paper: #FBF8F1;
  --paper-2: #F4EFE4;
  --plate: #FFFDF8;
  --ink: #1B1A17;
  --ink-2: #3A3732;
  --ink-3: #4A4740;
  --muted: #6A655B;
  --rule: #D9D2C3;
  --field: #1E3A5F;
  --field-tint: #EEF2F6;
  --event: #B45309;
  --event-tint: #FBF1E4;
  --event-rule: #E7C9A2;
  --panel: #0B1120;
  --panel-2: #121A2E;
  --panel-line: #24314A;
  --panel-ink: #E6EDF7;
  --panel-muted: #B9C5D8;
  --glow-field: #7DD3FC;
  --glow-event: #FCD34D;
  --serif: 'EB Garamond', 'Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--field); text-decoration: none; }
a:hover { color: #0F2440; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--event); outline-offset: 3px; border-radius: 2px;
}
p { margin: 0 0 1em; }
em { font-style: italic; }
strong { font-weight: 600; }
sup { line-height: 0; }

.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  font-family: var(--sans); font-size: 15px;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 760px; margin: 0 auto; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.center { text-align: center; }

/* ---------- masthead ---------- */
.masthead { padding-top: 28px; }
.masthead-row {
  border-top: 3px double var(--ink); padding-top: 18px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
}
.wordmark { color: var(--ink); font-size: 22px; font-variant: small-caps; letter-spacing: 0.08em; }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--field); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--field); border-bottom: 1px solid var(--field); }
.masthead-rule { border-bottom: 1px solid var(--ink); margin-top: 16px; }
.menu-toggle {
  display: none; font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: 1px solid var(--ink-3); color: var(--ink); padding: 10px 14px; cursor: pointer; min-height: 44px;
}

/* ---------- type ---------- */
.kicker { margin: 0 0 18px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--field); }
.kicker.event { color: var(--event); }
.display { margin: 0; font-weight: 500; font-size: 66px; line-height: 1.08; letter-spacing: -0.01em; }
.display em.field, em.field { color: var(--field); }
.display em.event, em.event { color: var(--event); }
.lede { font-size: 22px; line-height: 1.6; color: var(--ink-2); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; }
.section-title { margin: 0 0 8px; font-size: 44px; }
.section-rule { width: 64px; border-top: 1px solid var(--ink); margin: 20px auto 0; }
h3 { font-size: 28px; margin: 40px 0 12px; }
h4 { font-size: 22px; margin: 28px 0 8px; font-weight: 600; }
.smallcaps { font-variant: small-caps; letter-spacing: 0.06em; }
.label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.label.field { color: var(--field); } .label.event { color: var(--event); }
.muted { color: var(--muted); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.dropcap::first-letter { float: left; font-size: 74px; line-height: 0.8; padding: 6px 10px 0 0; color: var(--field); }

/* ---------- links row ---------- */
.linkrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-family: var(--sans); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.linkrow a { border-bottom: 1px solid currentColor; padding: 10px 2px; }
.linkrow a:hover { text-decoration: none; }
.linkrow.left { justify-content: flex-start; }

/* ---------- plate (figure) ---------- */
.plate { margin: 0; border: 1px solid var(--rule); background: var(--plate); padding: 28px 28px 18px; }
.plate img { display: block; width: 100%; }
.plate figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; justify-content: center; font-size: 17px; color: var(--ink-3); text-align: center; }
.plate .plate-no { font-variant: small-caps; letter-spacing: 0.1em; color: var(--ink); }
.plate .caption { font-style: italic; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.field { background: var(--field); } .dot.event { background: var(--event); }
.diagram .lbl-m { display: none; }

/* ---------- principles ---------- */
.principles { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.principle { flex: 1 1 300px; min-width: 0; padding: 34px 30px; border-right: 1px solid var(--rule); }
.principle:last-child { border-right: 0; }
.principle .numeral { font-size: 44px; line-height: 1; color: var(--field); }
.principle .numeral.event { color: var(--event); }
.principle h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 600; font-variant: small-caps; letter-spacing: 0.06em; }
.principle blockquote { margin: 0; font-size: 21px; line-height: 1.55; font-style: italic; }
.principle .developed { margin: 18px 0 0; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- two-up notes ---------- */
.notes { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.note { flex: 1 1 420px; min-width: 0; }
.note h3 { margin: 6px 0 10px; font-size: 30px; }
.note p { color: var(--ink-2); }

/* ---------- chain and maxim ---------- */
.chain { margin: 36px 0 0; text-align: center; font-variant: small-caps; letter-spacing: 0.05em; font-size: 19px; line-height: 2; color: var(--muted); }
.chain .f { color: var(--field); } .chain .e { color: var(--event); }
.maxim { margin: 40px 0 0; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: center; font-size: 25px; line-height: 1.5; font-style: italic; }
.maxim .e { color: var(--event); }

/* ---------- numbered sentences ---------- */
.sentences { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sentences li { position: relative; padding: 0 0 32px 72px; counter-increment: s; }
.sentences li::before { content: counter(s); position: absolute; left: 0; top: -6px; font-size: 44px; line-height: 1; color: var(--field); }
.sentences h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; font-variant: small-caps; letter-spacing: 0.05em; }
.sentences p { color: var(--ink-2); margin-bottom: 6px; }
.sentences .ptag { margin: 0 0 6px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--field); }
.sentences .pq { margin: 0 0 14px; padding: 2px 0 2px 16px; border-left: 2px solid var(--rule); font-size: 20px; line-height: 1.5; font-style: italic; color: var(--ink); }
.sentences .pq .pq-note { font-style: normal; font-size: 17px; color: var(--muted); }
.defended { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- boxes ---------- */
.box { border: 1px solid var(--rule); background: var(--plate); padding: 28px 30px; }
.box.event { border-color: var(--event-rule); background: var(--event-tint); }
.box.field { border-color: #C9D4E2; background: var(--field-tint); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin: 4px 0 20px; }
.numbers > div { min-width: 0; }
@media (max-width: 600px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.numbers .n { font-size: 46px; line-height: 1; color: var(--event); }
.numbers .n.f { color: var(--field); }
.numbers .c { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.commitments { margin-top: 40px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 22px 0; text-align: center; font-size: 21px; line-height: 1.55; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; }
.cols > * { flex: 1 1 340px; min-width: 0; }
.cols ul { margin: 12px 0 0; padding-left: 1.2em; }
.cols li { margin-bottom: 12px; color: var(--ink-2); }

/* ---------- page header ---------- */
.page-head { padding: 64px 0 36px; }
.page-head .display { font-size: 58px; }
.contents { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.contents a { color: var(--ink-2); border-bottom: 1px solid var(--rule); padding: 6px 0; }
.contents a:hover { color: var(--field); border-bottom-color: var(--field); text-decoration: none; }

/* ---------- article sections ---------- */
.article-section { padding: 56px 0; border-top: 1px solid var(--rule); }
.article-section:first-of-type { border-top: 0; }
.article-section h2 { margin: 0 0 6px; font-size: 40px; }
.article-section .label { display: block; margin-bottom: 10px; }
.quote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--event); font-style: italic; color: var(--ink-2); }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.claim { margin: 28px 0; padding: 22px 26px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 23px; line-height: 1.5; text-align: center; }
.claim .e { color: var(--event); }

/* ---------- evidence: the four thought experiments ---------- */
.quote.picture { font-size: 22px; line-height: 1.55; padding-left: 24px; }
.plate svg.diagram text { font-kerning: normal; }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  /* keep the figure labels legible on phones: the drawing scrolls sideways, like the tables */
  .fig-scroll { margin: 0 -14px; padding: 0 14px; }
  .fig-scroll svg.diagram { min-width: 760px; }
}

/* ---------- equations ---------- */
.eq { margin: 22px 0; padding: 18px 12px; overflow-x: auto; overflow-y: hidden; text-align: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--plate); }
.eq mjx-container[display="true"] { margin: 0.4em 0 !important; }
.eq.pair { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 2em; }
.eq.pair > div { max-width: 100%; }
.proof { margin: 10px 0 24px; padding-left: 22px; border-left: 1px solid var(--rule); color: var(--ink-2); }
.theorem { margin: 24px 0; }
.theorem > .label { margin-bottom: 6px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
table.ruled { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; min-width: 720px; }
table.ruled th { text-align: left; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
table.ruled td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
table.ruled tr:last-child td { border-bottom: 0; }
table.ruled td:first-child { white-space: nowrap; color: var(--ink); font-variant: small-caps; letter-spacing: 0.04em; }
table.ruled tr.act td { background: var(--event-tint); }
table.ruled tr.act td:first-child { color: var(--event); }
table.ruled.exhibits td:first-child { white-space: normal; min-width: 170px; max-width: 240px; }
table.ruled.exhibits td { font-size: 16.5px; }

/* ---------- claim ledger ---------- */
table.ledger { min-width: 860px; }
table.ledger td:first-child { white-space: normal; font-variant: normal; letter-spacing: 0; color: var(--ink); width: 30%; }
table.ledger th.group { font-family: var(--serif); font-variant: small-caps; letter-spacing: 0.08em; font-size: 19px; color: var(--ink); text-transform: none; padding: 26px 14px 8px; border-bottom: 1px solid var(--ink); }
table.ledger td:nth-child(2) { white-space: nowrap; }
.st { display: inline-block; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.st.est { border-color: #C9D4E2; background: var(--field-tint); color: var(--field); }
.st.der, .st.thm { border-color: var(--field); color: var(--field); }
.st.def, .st.sc { color: var(--ink-3); }
.st.fr { background: var(--paper-2); }
.st.post { border-color: var(--event); background: var(--event-tint); color: var(--event); }
.st.int { border-style: dashed; color: var(--ink-3); }
.st.open { border-color: var(--event-rule); color: var(--event); }
.gloss dt .st { font-size: 12px; vertical-align: 2px; }
.gloss a.tag { color: var(--field); border-color: #C9D4E2; text-decoration: none; }
.gloss a.tag:hover { border-color: var(--field); text-decoration: none; }

/* ---------- three-part spine figure ---------- */
.spine { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 34px 0 10px; }
.spine-col { flex: 1 1 280px; min-width: 0; padding: 22px 22px 18px; border: 1px solid var(--rule); background: var(--plate); display: flex; flex-direction: column; gap: 8px; }
.spine-col .label { display: block; }
.spine-col h3 { margin: 0; font-size: 24px; }
.spine-col p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.spine-col.lagrangian { border-color: #C9D4E2; background: var(--field-tint); }
.spine-col.hinge { border-color: var(--event-rule); background: var(--event-tint); }
.spine-arrow { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.spine-arrow .line { flex: 1; max-width: 220px; height: 1px; background: var(--ink-3); position: relative; }
.spine-arrow .line::after { content: ''; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--ink-3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* ---------- start here ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tile { flex: 1 1 300px; min-width: 0; padding: 30px 28px; border-right: 1px solid var(--rule); }
.tile:last-child { border-right: 0; }
.tile h3 { margin: 0 0 8px; font-size: 24px; }
.tile p { font-size: 18px; color: var(--ink-2); }
.tile .path { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.tiles.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
.tiles.grid2 .tile { border-bottom: 1px solid var(--rule); }
.tiles.grid2 .tile:nth-child(2n) { border-right: 0; }
a.dl { display: inline-block; font-family: var(--sans); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding: 6px 2px; }
a.dl::before { content: "\2193\00a0"; }

/* ---------- instrument panel (the one dark element) ---------- */
.panel { background: var(--panel); color: var(--panel-ink); border-radius: 6px; overflow: hidden; }
.panel a { color: var(--glow-event); }
.panel .label { color: var(--glow-field); }
.panel h2, .panel h3 { color: #F8FAFC; }
.panel p { color: var(--panel-muted); }
.panel-teaser { display: flex; flex-wrap: wrap; align-items: stretch; }
.panel-teaser .text { flex: 1 1 360px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.panel-teaser img { flex: 1 1 480px; min-width: 0; width: 100%; object-fit: cover; display: block; }
.panel-teaser .go { align-self: flex-start; font-family: var(--sans); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding: 10px 2px; }

/* simulation */
.sim { padding: 34px; }
.sim-grid { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.sim-controls { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-family: var(--sans); font-size: 15px; }
.sim-controls label, .sim-controls legend { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--panel-muted); margin-bottom: 8px; }
.sim-controls fieldset { border: 0; padding: 0; margin: 0; }
.sim-controls input[type=range] { width: 100%; accent-color: var(--glow-field); min-height: 32px; }
.sim-controls .choice { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-controls .choice label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 4px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--panel-ink); cursor: pointer; min-height: 44px; }
.sim-controls .buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-controls button { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; background: transparent; color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 4px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.sim-controls button:hover { border-color: var(--glow-field); }
.readouts { display: flex; flex-wrap: wrap; gap: 10px; }
.readout { flex: 1 1 120px; border: 1px solid var(--panel-line); border-radius: 4px; padding: 10px 12px; background: var(--panel-2); }
.readout .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--panel-muted); }
.readout .v { font-size: 26px; font-variant-numeric: tabular-nums; }
.readout .v.f { color: var(--glow-field); } .readout .v.e { color: var(--glow-event); }
.sim-stage { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sim-stage canvas { width: 100%; display: block; background: var(--panel-2); border: 1px solid var(--panel-line); border-radius: 4px; }
.sim-note { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--panel-muted); min-height: 3em; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--panel-muted); }
.sim-legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* ---------- lectures ---------- */
.lecture-part { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--rule); }
.part-head { flex: 1 1 260px; min-width: 0; }
.part-head .label { display: block; margin-bottom: 8px; }
.part-head h2 { margin: 0 0 8px; font-size: 34px; }
.part-head p { color: var(--ink-2); font-size: 18px; }
.lectures { flex: 3 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.lectures li { border-top: 1px solid var(--rule); }
.lectures li:first-child { border-top: 0; }
.lectures a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 18px; padding: 18px 8px; color: inherit; }
.lectures a:hover { background: var(--plate); text-decoration: none; }
.lectures .num { grid-row: 1 / span 2; font-size: 36px; line-height: 1; color: var(--field); font-variant-numeric: tabular-nums; }
.lectures .t { font-size: 23px; font-weight: 500; color: var(--ink); }
.lectures a:hover .t { color: var(--field); }
.lectures .d { color: var(--ink-2); font-size: 18px; margin-top: 2px; }
.panel-teaser .go { display: inline-block; }

/* ---------- glossary ---------- */
.gloss { margin: 8px 0 0; }
.gloss dt { margin: 22px 0 4px; font-size: 22px; font-weight: 600; color: var(--ink); }
.gloss dd { margin: 0; color: var(--ink-2); }
.gloss .tag { display: inline-block; margin-left: 6px; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); padding: 1px 7px; vertical-align: 2px; white-space: normal; max-width: 100%; box-sizing: border-box; line-height: 1.5; }

/* ---------- references ---------- */
.refs { font-size: 16px; line-height: 1.5; color: var(--ink-3); padding-left: 1.2em; }
.refs li { margin-bottom: 6px; }
.refs li, .box p, .footer .cite, .footer .legal { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.footer { margin-top: 24px; padding: 34px 0 56px; }
.footer-rule { border-top: 3px double var(--ink); padding-top: 22px; }
.footer .nav { justify-content: center; margin-bottom: 20px; }
.footer .meta { text-align: center; font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.7; }
.footer .cite { max-width: 720px; margin: 22px auto 0; font-size: 16px; color: var(--ink-3); text-align: center; }
.footer details { max-width: 720px; margin: 18px auto 0; font-size: 16px; color: var(--ink-3); }
.footer summary { cursor: pointer; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.footer .build { opacity: 0.6; font-variant: small-caps; }
.footer .contact { margin: 18px auto 0; text-align: center; font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; color: var(--ink-3); }
.footer .contact .email { user-select: all; -webkit-user-select: all; }
.footer .copy { margin-left: 8px; padding: 2px 9px; font: inherit; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; }
.footer .copy:hover, .footer .copy:focus-visible { color: var(--ink); border-color: var(--ink-3); }
.footer .legal { max-width: 720px; margin: 18px auto 0; text-align: center; font-family: var(--sans); font-size: 12.5px; line-height: 1.7; letter-spacing: 0.02em; color: var(--muted); }
.footer .legal a { color: var(--ink-3); }

/* ---------- responsive ---------- */
br.wide { display: inline; }
@media (max-width: 900px) {
  body { font-size: 19px; }
  br.wide { display: none; }
  .display { font-size: 44px; }
  .page-head .display { font-size: 42px; }
  .section-title, .article-section h2 { font-size: 34px; }
  .lede { font-size: 20px; }
  .principle, .tile { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tiles.grid2 { grid-template-columns: minmax(0, 1fr); }
  .principle:last-child, .tile:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-block; }
  .wordmark { font-size: 19px; letter-spacing: 0.05em; }
  .masthead .nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .masthead .nav.open { display: flex; }
  .masthead .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .masthead .nav a[aria-current="page"] { border-bottom: 1px solid var(--rule); }
  .plate { padding: 14px 14px 12px; }
  .sentences li { padding-left: 52px; }
  .sentences li::before { font-size: 34px; }
  .sim { padding: 22px; }
  .panel-teaser .text { padding: 28px; }
}
@media (max-width: 700px) {
  /* stacked tables: each row becomes a card; the column name comes from the cell's data-label */
  table.ruled, table.ledger { min-width: 0; }
  table.ruled thead { display: none; }
  table.ruled, table.ruled tbody, table.ruled tr, table.ruled td { display: block; width: 100%; box-sizing: border-box; }
  table.ruled tr { padding: 14px 0 10px; border-bottom: 1px solid var(--rule); }
  table.ruled tr.group, table.ruled th.group { display: block; width: 100%; }
  table.ruled td, table.ruled td:first-child, table.ledger td:first-child, table.ledger td:nth-child(2) { border: 0; padding: 4px 0; width: 100%; white-space: normal; overflow-wrap: anywhere; }
  table.ruled td:first-child { font-weight: 600; }
  table.ruled tr.act { background: var(--event-tint); padding-left: 12px; padding-right: 12px; }
  table.ruled tr.act td { background: transparent; }
  table.ruled td[data-label]::before { content: attr(data-label); display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; font-variant: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 2px; }
  table.ruled td:first-child[data-label]::before { margin-top: 0; }
}
@media (max-width: 600px) {
  .eq { font-size: 0.82em; padding: 14px 6px; }
  .diagram .lbl-d { display: none; }
  .diagram .lbl-m { display: inline; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .eq { font-size: 0.76em; padding: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
details.registry { max-width: none; margin: 4px 0 10px; font-size: inherit; color: inherit; }
details.registry > summary { max-width: 760px; margin: 0 auto; padding: 14px 0; text-align: left; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--field); border-top: 1px solid var(--rule); list-style: none; }
details.registry > summary::-webkit-details-marker { display: none; }
details.registry > summary::before { content: "\25B8\00A0"; }
details.registry[open] > summary::before { content: "\25BE\00A0"; }
details.registry > summary .count { color: var(--muted); letter-spacing: 0.08em; text-transform: none; font-size: 14px; }
@media print {
  .masthead .nav, .menu-toggle, .skip-link, .panel { display: none !important; }
  details.registry { display: block; }
  details.registry > .wrap { display: block !important; }
  body { background: #fff; font-size: 12pt; }
}

/* ---------- v5.31: the headline under the masthead; the four mysteries ---------- */
.tagline { margin: 10px 0 0; font-size: 17px; line-height: 1.4; font-style: italic; color: var(--ink-2); }
.tagline em.field { color: var(--field); } .tagline em.event { color: var(--event); }
body.home .tagline, body.picture .tagline { display: none; }
.mysteries { list-style: none; margin: 0; padding: 0; }
.mysteries li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.mysteries li:first-child { border-top: 0; }
.mysteries strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }

/* ---------- v5.32: the four consequences under the home page's opening ---------- */
.consequences { list-style: none; margin: 24px auto 0; padding: 0; max-width: 640px; text-align: left; }
.consequences li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.consequences li:first-child { border-top: 0; }
.consequences li::before { content: "\2192"; position: absolute; left: 0; top: 10px; color: var(--event); }
.chain.map span { white-space: nowrap; }
