[hidden] { display: none !important; }
/* Keep native hidden controls hidden even when JS-ready class rules apply. */
@font-face {
  font-family: "Fraunces";
  src: url("/notre-dame-din-paris-2019/assets/fonts/fraunces-normal-latin.48282a415ec2.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("/notre-dame-din-paris-2019/assets/fonts/fraunces-normal-latin-ext.f120089b9440.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/notre-dame-din-paris-2019/assets/fonts/IBMPlexSans-latin.056e4e2459f5.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/notre-dame-din-paris-2019/assets/fonts/IBMPlexSans-latin-ext.ae1d854fefa1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ink: #182124;
  --slate: #29393C;
  --paper: #E8E4D9;
  --limestone: #F3F0E8;
  --bronze: #A85E3B;
  --cold: #78969B;
  --quiet: #536368;
  --rule: #B8BDB5;
  --topbar-h: 4rem;
  --measure: 42rem;
  --wide: 74rem;
  --focus: #813F27;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E8E4D9;
  --paper: #182124;
  --limestone: #F3F0E8;
  --slate: #29393C;
  --quiet: #C1C9C4;
  --rule: #536368;
  --focus: #D5906D;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Arial", sans-serif;
  font-size: 1.125rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .12em; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 200;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  background: var(--limestone);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .35rem clamp(1rem, 3vw, 2.7rem);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
}
.brand-mark { width: 1.35rem; height: 1.65rem; color: var(--bronze); }
.top-links {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.5vw, 1.35rem);
  margin-left: auto;
}
.top-links a, .language-switch a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.top-links a:hover, .language-switch a:hover { text-decoration: underline; }
.language-switch { display: flex; gap: .28rem; border-left: 1px solid var(--rule); padding-left: .7rem; }
.language-switch a {
  min-width: 2.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  letter-spacing: .04em;
}
.language-switch a[aria-current="page"] { border-color: var(--rule); }
.theme-control {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}
.theme-control svg { width: 1.1rem; height: 1.1rem; }
.theme-control:hover { background: color-mix(in srgb, var(--cold) 20%, transparent); }

main { min-height: 70vh; }
.story-section {
  max-width: var(--wide);
  margin-inline: auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  scroll-margin-top: calc(var(--topbar-h) + 1.25rem);
}
.story-section h2 {
  max-width: 18ch;
  margin: 0 0 1.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.story-section h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}
.story-section p { max-width: var(--measure); margin: 0 0 1.45rem; }
.eyebrow {
  margin: 0 0 .8rem !important;
  color: var(--focus);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.permalink {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: .3rem;
  vertical-align: .2em;
  color: var(--quiet);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: .8rem;
  font-weight: 400;
  opacity: 0;
  text-decoration: none;
}
h2:hover .permalink, .permalink:focus-visible { opacity: 1; }
.section-lead { font-size: 1.24rem; line-height: 1.6; }
.ending {
  margin-top: 2.2rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.32;
}
.citation-links {
  display: inline;
  margin-left: .28rem;
  font-size: .78rem;
  line-height: 1.5;
}
.citation-links a { white-space: normal; overflow-wrap: anywhere; }
.citation-links a + a::before { content: " · "; color: var(--quiet); }
.figure-gallery {
  max-width: 68rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin: 2.25rem 0 2.75rem;
}
.figure-gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.commons-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.commons-photo { display: block; width: 100%; height: auto; }
.commons-figure figcaption {
  max-width: none;
  padding: .8rem clamp(.8rem, 2vw, 1.2rem) .55rem;
  font-size: .86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.figure-caption { display: block; }
.image-credit {
  max-width: none !important;
  margin: .55rem 0 .2rem !important;
  color: var(--quiet);
  font-size: .75rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.image-credit a { text-underline-offset: .15em; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#fire {
  max-width: none;
  padding: clamp(3.25rem, 6vw, 5.5rem) max(1.25rem, calc((100vw - var(--wide)) / 2 + 4rem)) 5rem;
  background: #182124;
  color: #E8E4D9;
}
#fire .eyebrow { color: #D8906D; }
#fire h2 { margin-top: 0; }
#fire .ending { border-color: #536166; }
.opening-copy { grid-area: copy; max-width: 38rem; margin: 0; }
.opening-copy h1 {
  max-width: 17ch;
  margin: 0 0 1.1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -.047em;
  line-height: .98;
}
.deck {
  max-width: 49rem;
  color: #D6DAD2;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}
.opening-line {
  max-width: 42rem !important;
  margin-top: 1.6rem !important;
  margin-bottom: 0 !important;
  color: #E8E8E0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  line-height: 1.22;
}
.opening-copy h2 { margin-top: 1.5rem !important; }
.visual-prompt {
  max-width: 40rem !important;
  margin: .9rem 0 .7rem !important;
  color: #D99A79;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .95fr);
  grid-template-areas: "copy visual" "steps visual";
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 76rem;
  margin: 0 auto;
}
.journey-visual {
  grid-area: visual;
  grid-row: 1 / span 2;
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  align-self: start;
  min-width: 0;
}
.night-figure {
  position: relative;
  isolation: isolate;
  margin: 0;
  height: clamp(27rem, calc(100svh - var(--topbar-h) - 2rem), 34rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 2rem);
  background: #29393C;
  border: 1px solid #617276;
  color: var(--limestone);
}
.night-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(10, 18, 21, .55), transparent 54%);
}
.night-figure::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border: 1rem solid transparent;
  border-image: linear-gradient(90deg, rgba(227,230,225,.04), rgba(227,230,225,0)) 1;
}
.scene-topline, .scene-bottomline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #D8E0DD;
  font-size: .7rem;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}
.scene-topline span:last-child { color: #D8906D; }
.night-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: min(52vh, 25rem);
  min-height: 16rem;
  margin: auto 0;
  shape-rendering: crispEdges;
}
.night-svg .stone { fill: #27383D; stroke: #D7DED9; stroke-width: 2; }
.night-svg .stone-line { fill: none; stroke: #D7DED9; stroke-width: 2; }
.night-svg .window { fill: #596A6F; stroke: #A8B5B3; stroke-width: 1.5; }
.night-svg .roof-line { fill: none; stroke: #D7DED9; stroke-width: 4; stroke-linejoin: round; }
.night-svg .spire-upright { fill: none; stroke: #D7DED9; stroke-width: 4; stroke-linecap: square; }
.night-svg .spire-fallen { fill: none; stroke: #D8906D; stroke-width: 5; stroke-linecap: square; opacity: 0; }
.night-svg .event-mark { fill: #A85E3B; stroke: #F3F0E8; stroke-width: 2; opacity: 0; }
.night-svg .response-mark { fill: #78969B; opacity: 0; }
.night-svg .roof-heat { fill: none; stroke: #A85E3B; stroke-width: 8; stroke-linecap: round; opacity: 0; }
.night-svg .scene-time { fill: #E8E4D9; font: 700 22px "IBM Plex Sans", Arial, sans-serif; letter-spacing: 2px; }
.night-svg .scene-label { fill: #D2DCDA; font: 400 13px "IBM Plex Sans", Arial, sans-serif; letter-spacing: 1px; }
.night-svg .scene-ghost { fill: none; stroke: #78969B; stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .32; }
.night-figure[data-state="0"] .mark-0,
.night-figure[data-state="1"] .mark-1,
.night-figure[data-state="2"] .mark-2,
.night-figure[data-state="3"] .mark-3,
.night-figure[data-state="4"] .mark-4 { opacity: 1; }
.night-figure[data-state="1"] .roof-heat,
.night-figure[data-state="2"] .roof-heat,
.night-figure[data-state="3"] .roof-heat { opacity: .92; }
.night-figure[data-state="2"] .response-mark,
.night-figure[data-state="3"] .response-mark { opacity: 1; }
.night-figure[data-state="3"] .spire-upright,
.night-figure[data-state="4"] .spire-upright { opacity: 0; }
.night-figure[data-state="3"] .spire-fallen,
.night-figure[data-state="4"] .spire-fallen { opacity: 1; }
.night-figure[data-state="4"] .roof-heat { opacity: 0; }
.scene-copy {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: -1rem;
}
.scene-current { display: grid; gap: .2rem; }
.scene-current strong {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.scene-current span { color: #CBD5D2; font-size: .84rem; }
.scene-caption { max-width: 13rem; color: #CBD5D2; font-size: .72rem; line-height: 1.4; text-align: right; }
.journey-steps { grid-area: steps; min-width: 0; }
.journey-intro { padding-top: .2rem; }
.journey-intro h2 { max-width: 18ch; margin: 0 0 .8rem; }
.fire-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3rem 1.5rem;
  border-left: 1px solid #526368;
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}
.fire-step.on { border-left: 3px solid var(--bronze); padding-left: calc(1.5rem - 2px); }
.fire-step h3 { margin: .25rem 0 1rem; color: var(--limestone); font-size: clamp(1.6rem, 3vw, 2.35rem); }
.fire-step p { color: #D9E0DC; }
.fire-step .step-time {
  margin: 0;
  color: #D9A17E;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.step-nav { display: flex; gap: .7rem; margin-top: 1rem; }
.step-nav button {
  min-width: 2.9rem;
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border: 1px solid #718286;
  background: transparent;
  color: var(--limestone);
  cursor: pointer;
}
.step-nav button:disabled { opacity: .42; cursor: default; }
.step-nav button:not(:disabled):hover { background: #31454A; }
.fire-step .citation-links { color: #D7DED9; }

.share-block {
  max-width: 76rem;
  margin: 2.7rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid #536166;
}
.share-block > p { margin-bottom: .65rem; color: #D3DAD6; font-size: .8rem; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share-row a, .share-row button {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid #758488;
  border-radius: 50%;
  background: transparent;
  color: var(--limestone);
  cursor: pointer;
}
.share-row svg { width: 1.2rem; height: 1.2rem; }
.share-row a:hover, .share-row button:hover { background: #31454A; }
.share-status { min-height: 1.5rem; margin: .5rem 0 0 !important; color: #D6DED9; font-size: .8rem; }
.js-only { display: none !important; }
.js-ready .js-only:not([hidden]) { display: inline-grid !important; }
.js-ready .journey-steps .js-only:not([hidden]) { display: flex !important; }

.graphic {
  max-width: 68rem;
  margin: 3rem 0 2.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--limestone) 56%, var(--paper));
}
.graphic h3 { margin: 0 0 .4rem; }
.graphic-intro { color: var(--quiet); font-size: .94rem; }
.graphic-note {
  margin: 1.5rem 0 0 !important;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: .87rem;
}
.ledger-groups { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.ledger-group { padding-top: 1rem; border-top: 1px solid var(--rule); }
.ledger-group h4 {
  margin: 0 0 .8rem;
  color: var(--quiet);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ledger-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ledger-row {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.ledger-amount {
  display: block;
  margin-bottom: .45rem;
  color: var(--focus);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.ledger-row strong { display: block; line-height: 1.35; }
.ledger-row p { margin: .45rem 0 0 !important; color: var(--quiet); font-size: .86rem; line-height: 1.48; }

.build-timeline {
  max-width: 68rem;
  margin: 3rem 0 2.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border-block: 1px solid var(--rule);
}
.build-timeline h3 { margin: 0 0 .4rem; }
.timeline-intro { color: var(--quiet); font-size: .92rem; }
.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: .42rem;
  top: .35rem;
  bottom: .35rem;
  width: 1px;
  background: var(--cold);
}
.timeline-item {
  position: relative;
  min-width: 0;
  padding: 0 0 1.35rem 1.45rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: .25rem;
  left: .12rem;
  width: .62rem;
  height: .62rem;
  border: 2px solid var(--bronze);
  border-radius: 50%;
  background: var(--paper);
}
.timeline-date {
  display: block;
  margin-bottom: .35rem;
  color: var(--focus);
  font-size: .77rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.timeline-item strong { display: block; line-height: 1.3; }
.timeline-item p { margin: .4rem 0 0 !important; color: var(--quiet); font-size: .86rem; line-height: 1.45; }

.locator-figure {
  max-width: 54rem;
  margin: 3rem 0 2rem;
  border: 1px solid #51666B;
  background: var(--slate);
  color: var(--limestone);
}
.locator-figure img { display: block; width: 100%; height: auto; }
.locator-figure figcaption { padding: 1rem clamp(1rem, 3vw, 1.5rem); font-size: .83rem; line-height: 1.5; }
.locator-figure a { color: #E8E4D9; }
.locator-credit { display: block; margin-top: .45rem; color: #D4DEDA; font-size: .75rem; }

.related-link {
  display: inline-block;
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--bronze);
  background: color-mix(in srgb, var(--cold) 16%, transparent);
  font-size: .95rem;
}
.source-list {
  max-width: 66rem;
  margin: 2rem 0 0;
  padding-left: 1.5rem;
}
.source-list li { padding: .65rem 0 .75rem .25rem; border-bottom: 1px solid var(--rule); }
.source-list a { font-weight: 600; }
.source-kind { display: block; color: var(--quiet); font-size: .78rem; line-height: 1.4; }

.site-footer {
  padding: 2.3rem max(1.25rem, calc((100vw - var(--wide)) / 2 + 4rem));
  background: var(--ink);
  color: var(--limestone);
  font-size: .86rem;
}
.site-footer p { max-width: var(--measure); margin: 0; }
.site-footer a { color: #E8E4D9; }
.rail {
  position: fixed;
  z-index: 60;
  top: 50%;
  right: max(.75rem, calc((100vw - 94rem) / 2));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .56rem;
  padding: .55rem .25rem;
  border: 1px solid color-mix(in srgb, var(--rule) 64%, transparent);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.rail a {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}
.rail-dot {
  width: .58rem;
  height: .58rem;
  display: block;
  border: 1px solid var(--quiet);
  border-radius: 50%;
  background: transparent;
}
.rail a[aria-current="location"] .rail-dot { background: var(--bronze); border-color: var(--bronze); }
.rail-label {
  position: absolute;
  right: 100%;
  top: 50%;
  z-index: 2;
  width: max-content;
  max-width: 13rem;
  padding: .18rem .45rem;
  transform: translate(-.45rem, -50%);
  background: var(--ink);
  color: var(--limestone);
  font-size: .72rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
}
.rail a:hover .rail-label, .rail a:focus-visible .rail-label { opacity: 1; }
.to-top {
  position: fixed;
  z-index: 55;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: .55rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  background: var(--ink);
  color: var(--limestone);
  box-shadow: 0 1px 8px rgba(17,25,27,.22);
  cursor: pointer;
}
.to-top[hidden] { display: none; }

@media (max-width: 62rem) {
  .top-links { gap: .5rem; }
  .top-links a { font-size: .76rem; }
  .journey-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, .92fr); column-gap: 1.5rem; }
  .night-figure { min-height: 24rem; }
}
@media (max-width: 50rem) {
  :root { --topbar-h: 3.75rem; }
  body { font-size: 1.04rem; }
  .site-header { gap: .45rem; padding-inline: .75rem; }
  .brand { font-size: .79rem; }
  .brand-mark { width: 1.05rem; }
  .top-links { display: none; }
  .language-switch { margin-left: auto; padding-left: .45rem; }
  .language-switch a { min-width: 2.35rem; font-size: .76rem; }
  .theme-control { width: 2.6rem; height: 2.6rem; }
  .rail { display: none; }
  #fire { padding: 3rem 1.125rem 3.5rem; }
  .opening-copy { max-width: none; }
  .opening-copy h1 { max-width: 23ch; font-size: clamp(2.25rem, 11.2vw, 3.5rem); }
  .opening-line { margin-top: 1rem !important; margin-bottom: 0 !important; font-size: clamp(1.45rem, 6.3vw, 2rem); }
  .opening-copy h2 { margin-top: .85rem !important; margin-bottom: .7rem !important; font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .visual-prompt { margin: .4rem 0 .65rem !important; }
  .journey-layout { display: flex; flex-direction: column; gap: 1.2rem; }
  .journey-visual { top: calc(var(--topbar-h) + .375rem); z-index: 10; margin-bottom: .25rem; width: 100%; max-height: 32svh; overflow: hidden; }
  .journey-steps { width: 100%; }
  .journey-intro h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .night-figure { min-height: 0; height: min(22rem, 30svh); padding: .5rem .75rem; justify-content: flex-start; gap: .3rem; overflow: hidden; }
  .night-svg { width: auto; max-width: calc(100% - .125rem); height: 100%; max-height: 19svh; min-height: 0; aspect-ratio: 640 / 500; flex: 1 1 auto; margin: 0 auto; }
  .scene-topline, .scene-bottomline { font-size: .6rem; line-height: 1rem; }
  .scene-caption { max-width: 8rem; font-size: .65rem; }
  .commons-figure figcaption { font-size: .86rem; }
  .image-credit { font-size: .75rem; }
  .scene-copy { margin-top: 0; }
  .fire-step { min-height: 50svh; padding: 1.6rem 0 2rem 1rem; scroll-margin-top: calc(var(--topbar-h) + 32svh + 1rem); }
  .fire-step.on { padding-left: calc(1rem - 2px); }
  .fire-step h3 { font-size: 1.7rem; }
  .story-section { padding: 4.7rem 1.15rem; }
  .story-section h2 { font-size: clamp(2.15rem, 10vw, 3.35rem); }
  .ledger-rows { grid-template-columns: 1fr; }
  .timeline-list { grid-template-columns: 1fr; }
  .timeline-item { padding-bottom: 1.2rem; }
  .share-block { margin-top: 2rem; }
  .site-footer { padding: 2rem 1.15rem; }
}
@media (max-width: 23rem) {
  .brand-name { max-width: 6.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language-switch { gap: 0; }
  .language-switch a { min-width: 2.05rem; }
  .theme-control { width: 2.45rem; height: 2.45rem; }
  .night-figure { height: 14.5rem; }
}
@media print {
  .site-header, .rail, .to-top, .share-block, .step-nav { display: none !important; }
  body { background: #fff; color: #111; }
  .story-section { max-width: none; padding: 1.5rem 0; }
  #fire, .site-footer { background: #fff; color: #111; }
  #fire .fire-step p, #fire .fire-step h3 { color: #111; }
  .journey-layout { display: block; }
  .journey-visual { position: static; }
  .fire-step { min-height: 0; page-break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
