/* The Jewel City — site styles.
   Palette after Jules Guérin's 1915 color scheme: old-ivory travertine walls,
   deep cerulean, pinkish vermilion, burnt orange, terra-cotta domes, French
   green lattice, gold statuary, verde-antique urns. Night theme after
   W. D'Arcy Ryan's illumination. */

:root {
  --paper: #f4ecdc;
  --paper-2: #ebe0c9;
  --stone: #e2d3b3;
  --ink: #2a2119;
  --ink-2: #4d3f30;
  --muted: #7a6853;
  --rule: #cdbb98;
  --cerulean: #2e5b88;
  --cerulean-deep: #1c3a5c;
  --vermilion: #b0452e;
  --burnt: #c4762c;
  --terracotta: #a4522f;
  --green: #55704d;
  --gold: #a9853a;
  --verde: #5b7f6f;
  --link: #2e5b88;
  --link-hover: #b0452e;
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 8px 24px rgba(60, 40, 10, .08);
  --radius: 3px;
  --measure: 68ch;
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-caps: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --f-body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1522;
    --paper-2: #141d2e;
    --stone: #1b263a;
    --ink: #efe5d0;
    --ink-2: #d8ccb3;
    --muted: #a39479;
    --rule: #2c3a52;
    --cerulean: #86b3e0;
    --vermilion: #ee8a6c;
    --burnt: #eba45a;
    --gold: #e2c173;
    --green: #9bbf8e;
    --link: #9cc3ea;
    --link-hover: #f0b27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1522;
  --paper-2: #141d2e;
  --stone: #1b263a;
  --ink: #efe5d0;
  --ink-2: #d8ccb3;
  --muted: #a39479;
  --rule: #2c3a52;
  --cerulean: #86b3e0;
  --vermilion: #ee8a6c;
  --burnt: #eba45a;
  --gold: #e2c173;
  --green: #9bbf8e;
  --link: #9cc3ea;
  --link-hover: #f0b27a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.075rem/1.68 var(--f-body);
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: .06em; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
::selection { background: var(--burnt); color: #fff; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .inner {
  max-width: 78rem; margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font: 600 1.05rem/1 var(--f-caps); letter-spacing: .12em; }
.brand small { display: block; font: 500 .68rem/1.2 var(--f-ui); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: .2rem; }
.site-nav { display: flex; gap: .15rem; margin-left: auto; flex-wrap: nowrap; align-items: center; }
/* the story chapters fold into one menu so the bar fits on one line */
.nav-group { position: relative; }
.nav-group summary { list-style: none; cursor: pointer; font: 500 .8rem/1 var(--f-ui); letter-spacing: .04em; color: var(--ink-2); padding: .5rem .6rem; border-radius: var(--radius); white-space: nowrap; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: " ▾"; font-size: .7em; opacity: .7; }
.nav-group summary:hover, .nav-group[open] summary, .nav-group[data-current] summary { background: var(--paper-2); color: var(--ink); }
.nav-group .nav-menu { position: absolute; top: calc(100% + .35rem); left: 0; min-width: 12rem; display: flex; flex-direction: column; padding: .4rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.nav-group .nav-menu a { padding: .6rem .7rem; white-space: nowrap; }
.site-nav a {
  font: 500 .8rem/1 var(--f-ui); letter-spacing: .04em; color: var(--ink-2);
  text-decoration: none; padding: .5rem .6rem; border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.site-nav a.explore { background: var(--cerulean-deep); color: #f6ecd6; }
:root[data-theme="dark"] .site-nav a.explore { background: var(--gold); color: #1a1408; }
.site-nav a.explore:hover { background: var(--vermilion); color: #fff; }
.site-nav a.film { border: 1px solid var(--gold); color: var(--ink); }
.site-nav a.film:hover { background: var(--gold); color: #1a1408; }
.theme-toggle, .menu-toggle {
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  border-radius: 99px; width: 2.1rem; height: 2.1rem; cursor: pointer; flex: none;
  display: grid; place-items: center; font-size: 1rem;
}
.menu-toggle { display: none; }
/* tablets and small laptops: the same bar, set tighter, so the hamburger is a phone thing */
@media (max-width: 1080px) and (min-width: 761px) {
  .site-head .inner { gap: .7rem; padding: .5rem .9rem; }
  .brand small { display: none; }
  .brand b { font-size: .95rem; letter-spacing: .1em; }
  .site-nav { gap: .05rem; }
  .site-nav a, .nav-group summary { font-size: .72rem; padding: .45rem .45rem; letter-spacing: .02em; }
}
@media (max-width: 760px) {
  .menu-toggle { display: grid; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1rem 1rem; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .5rem; font-size: .95rem; }
  /* in the column the story chapters are listed flat, under a heading */
  .nav-group summary { pointer-events: none; font: 500 .66rem/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: .75rem .5rem .2rem; }
  .nav-group summary::after { content: none; }
  .nav-group .nav-menu { position: static; display: flex; padding: 0; border: 0; box-shadow: none; background: transparent; min-width: 0; }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin: .2em 0 .25em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.45rem; margin: 1.8em 0 .4em; }
h4 { font-size: 1.15rem; margin: 0 0 .35em; }
.kicker { font: 600 .78rem/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--vermilion); }
p { margin: 0 0 1.05em; }
.lede { font-size: 1.28rem; line-height: 1.55; color: var(--ink-2); }
.lede::first-letter { font-family: var(--f-display); font-size: 3.4em; float: left; line-height: .82; padding: .06em .08em 0 0; color: var(--terracotta); }
hr { border: 0; height: 1px; background: var(--rule); margin: 2.5rem 0; }
strong { font-weight: 650; }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }

/* ---------- article layout ---------- */
.page { max-width: 78rem; margin: 0 auto; padding: 0 1.25rem 5rem; }
.article-head { max-width: var(--measure); margin: 3.2rem auto 2rem; }
.article-head .desc { font-size: 1.2rem; color: var(--muted); font-style: italic; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose > figure, .prose > .wide { margin-left: -6rem; margin-right: -6rem; }
@media (max-width: 1000px) { .prose > figure, .prose > .wide { margin-left: 0; margin-right: 0; } }
.toc {
  max-width: var(--measure); margin: 0 auto 2.5rem; padding: 1rem 1.25rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2);
  font: .9rem/1.5 var(--f-ui);
}
.toc b { font: 600 .72rem/1 var(--f-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .5rem; }
.toc ol { margin: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

figure { margin: 2rem 0; }
figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--stone); }
figcaption { font: .86rem/1.45 var(--f-ui); color: var(--muted); margin-top: .55rem; }
figcaption .credit { display: block; font-size: .75rem; opacity: .85; margin-top: .15rem; }
figure.missing { display: none; }

blockquote.period {
  margin: 2rem 0; padding: 1.1rem 1.4rem 1.1rem 1.6rem;
  border-left: 3px solid var(--gold); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--f-display); font-size: 1.3rem; line-height: 1.45; font-style: italic; color: var(--ink-2);
}
blockquote.period p { margin: 0 0 .5em; }
blockquote.period cite { display: block; font: normal .8rem/1.4 var(--f-ui); color: var(--muted); }
blockquote.period cite::before { content: "— "; }

aside.note {
  margin: 2rem 0; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-top: 3px solid var(--cerulean);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent); border-radius: var(--radius);
  font-size: .98rem;
}
aside.note p:last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
.stats > div { background: var(--paper); padding: 1rem 1.1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats b { display: block; font: 600 1.9rem/1.05 var(--f-display); color: var(--terracotta); font-variant-numeric: lining-nums; }
.stats span { font: .8rem/1.3 var(--f-ui); color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font: .9rem/1.45 var(--f-ui); display: block; overflow-x: auto; }
table.data th, table.data td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
ul.sources { font: .86rem/1.5 var(--f-ui); color: var(--ink-2); }

a.place { text-decoration-style: dotted; }

/* ---------- page footer nav ---------- */
.pager { max-width: var(--measure); margin: 3.5rem auto 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; font: .9rem/1.4 var(--f-ui); }
.pager a { text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

.site-foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding: 2.5rem 1.25rem 3rem; font: .85rem/1.6 var(--f-ui); color: var(--muted); }
.site-foot .inner { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-foot h4 { font: 600 .72rem/1 var(--f-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .8rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--link-hover); }
@media (max-width: 760px) { .site-foot .inner { grid-template-columns: 1fr; } }

/* ---------- home ---------- */
.hero {
  position: relative; min-height: min(88vh, 54rem); display: grid; align-items: end;
  color: #f7eedb; overflow: hidden; background: #0c1320;
}
.hero canvas, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 20, 0) 30%, rgba(8, 12, 20, .78) 100%); pointer-events: none; }
.hero .hero-credit { position: absolute; right: 1rem; bottom: .8rem; z-index: 3; font: 500 .72rem/1 var(--f-ui); letter-spacing: .04em; color: rgba(247, 238, 219, .78); text-decoration: none; background: rgba(8, 12, 20, .45); padding: .4rem .6rem; border-radius: 99px; }
.hero .hero-credit:hover { color: #fff; background: rgba(8, 12, 20, .7); }
.hero .copy { position: relative; z-index: 2; max-width: 78rem; width: 100%; margin: 0 auto; padding: 0 1.25rem 3.5rem; }
.hero h1 { color: #fbf3e2; font-size: clamp(2.8rem, 7vw, 6rem); margin: .1em 0 .15em; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.hero .kicker { color: #f0b36f; }
.hero p { max-width: 42rem; font-size: 1.2rem; color: #efe3cb; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font: 600 .92rem/1 var(--f-ui); letter-spacing: .02em;
  padding: .85rem 1.2rem; border-radius: 99px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: #f0b36f; color: #1b1308; }
.btn.primary:hover { background: #ffd39b; color: #1b1308; }
.btn.ghost { border-color: rgba(247, 238, 219, .5); color: #f7eedb; }
.btn.ghost:hover { background: rgba(247, 238, 219, .12); color: #fff; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }

.band { max-width: 78rem; margin: 0 auto; padding: 4.5rem 1.25rem; }
.film-band {
  display: flex; align-items: flex-end; min-height: 24rem; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #f6ecd6;
  background: linear-gradient(90deg, rgba(8, 8, 8, .92) 0%, rgba(8, 8, 8, .65) 45%, rgba(8, 8, 8, .1) 100%), url('poster.jpg') center / cover no-repeat, #0b0a08;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.film-band:hover { transform: translateY(-2px); color: #fff; }
.film-band .film-copy { padding: 2.4rem 2.6rem; max-width: 36rem; }
.film-band .kicker { color: #d9c599; letter-spacing: .3em; }
.film-band h2 { color: #fbf3e2; font-size: clamp(3rem, 7vw, 5.2rem); margin: .2em 0 .25em; font-weight: 500; letter-spacing: .02em; }
.film-band p { color: #e4d8c0; font-size: 1.08rem; }
.film-band .btn { margin-top: .6rem; }
.band h2 { margin-top: 0; }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.band-head p { max-width: 40rem; color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card .thumb { aspect-ratio: 4/3; background: var(--stone) center/cover no-repeat; position: relative; }
.card .thumb.none { background: linear-gradient(135deg, var(--stone), var(--paper-2)); display: grid; place-items: center; }
.card .thumb.none svg { width: 38%; opacity: .35; }
.card .body { padding: .9rem 1rem 1.1rem; }
.card .kicker { font-size: .66rem; }
.card h3 { font-size: 1.3rem; margin: .35rem 0 .35rem; }
.card p { font-size: .92rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.chapter-list a { display: grid; grid-template-columns: 3rem 1fr; gap: .8rem; padding: 1.1rem .4rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.chapter-list a:hover { background: var(--paper-2); }
.chapter-list .n { font: 600 1.7rem/1 var(--f-display); color: var(--terracotta); }
.chapter-list b { font: 600 1.25rem/1.2 var(--f-display); display: block; }
.chapter-list span { font-size: .9rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.swatches div { aspect-ratio: 1; border-radius: var(--radius); display: flex; align-items: end; padding: .45rem; font: 600 .66rem/1.2 var(--f-ui); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* ---------- gazetteer ---------- */
.filters { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.filters button, .filters input {
  font: 500 .82rem/1 var(--f-ui); padding: .55rem .85rem; border-radius: 99px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink-2); cursor: pointer;
}
.filters input { cursor: text; min-width: 14rem; flex: 1; max-width: 22rem; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; max-width: 72rem; margin: 0 auto; }
@media (max-width: 960px) { .place-layout { grid-template-columns: 1fr; } }
.place-layout .prose { margin: 0; }
.place-layout .prose > figure { margin-left: 0; margin-right: 0; }
.place-layout .prose > figure img { max-height: 34rem; object-fit: contain; background: var(--paper-2); }
.factbox { position: sticky; top: 5rem; align-self: start; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); padding: 1.1rem 1.2rem; font: .88rem/1.5 var(--f-ui); }
.factbox dl { margin: 0; }
.factbox dt { font: 600 .66rem/1 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .9rem; }
.factbox dt:first-child { margin-top: 0; }
.factbox dd { margin: .3rem 0 0; color: var(--ink); }
.factbox .btn { margin-top: 1.1rem; width: 100%; justify-content: center; background: var(--cerulean-deep); color: #f6ecd6; }
:root[data-theme="dark"] .factbox .btn { background: var(--gold); color: #1a1408; }
.factbox .btn:hover { background: var(--vermilion); color: #fff; }
ul.facts { padding-left: 1.1em; }
ul.facts li::marker { color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery figure { margin: 0; }
.crumbs { font: .82rem/1 var(--f-ui); color: var(--muted); margin: 2.2rem auto 0; max-width: 72rem; }
.crumbs a { color: var(--muted); }

/* ---------- photographs ---------- */
.masonry { columns: 3 18rem; column-gap: 1.1rem; }
.masonry figure.ph { break-inside: avoid; margin: 0 0 1.2rem; display: block; }
.ph-open { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.ph-open img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: none; transition: transform .25s ease; }
.ph-open:hover img { transform: scale(1.02); }
.ph figcaption { font-size: .82rem; }
.ph .ph-places { display: block; margin-top: .2rem; font-size: .75rem; }
.ph-theme { margin-bottom: 1rem; }
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 8, 12, .94); display: grid; place-items: center; padding: 3rem 4rem; }
#lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
#lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
#lightbox figcaption { color: #e7dcc5; margin-top: .8rem; text-align: center; max-width: 60rem; }
#lightbox button { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 99px; font-size: 1.8rem; cursor: pointer; }
#lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* ---------- timeline ---------- */
.timeline { max-width: 52rem; margin: 0 auto; position: relative; padding-left: 7.5rem; }
.timeline::before { content: ""; position: absolute; left: 6rem; top: .4rem; bottom: 0; width: 2px; background: var(--rule); }
.timeline .year { font: 600 2rem/1 var(--f-display); color: var(--terracotta); margin: 2.8rem 0 1rem -7.5rem; }
.timeline .ev { position: relative; margin: 0 0 1.3rem; }
.timeline .ev::before { content: ""; position: absolute; left: -1.83rem; top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline .date { position: absolute; left: -7.5rem; width: 5.2rem; text-align: right; font: 600 .78rem/1.9 var(--f-ui); color: var(--muted); }
.timeline h4 { margin: 0 0 .2rem; font-size: 1.2rem; }
.timeline p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.timeline .src { font: .72rem/1.4 var(--f-ui); color: var(--muted); }
@media (max-width: 640px) {
  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: 0; }
  .timeline .year { margin-left: -1.5rem; }
  .timeline .ev::before { left: -1.83rem; }
  .timeline .date { position: static; display: block; text-align: left; width: auto; }
}

/* ---------- utility ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt0 { margin-top: 0; }

/* "Today" slots: Keith's present-day photographs and video, or a placeholder until they exist */
.today { margin: 2.5rem 0; }
.today h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; margin: 1.6rem 0 .6rem; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.today-slot { border-radius: var(--radius); overflow: hidden; }
.today-slot .today-frame { aspect-ratio: 16 / 9; border: 1.5px dashed var(--gold, #a8843a); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: center; gap: .3rem; background: var(--paper-2); }
.today-slot .today-frame .kicker { font-size: .66rem; }
.today-slot .today-frame b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; line-height: 1.15; font-weight: 600; }
.today-slot .today-frame p { margin: 0; font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.today-slot .today-frame p.small { font-size: .78rem; -webkit-line-clamp: 3; }
.today-slot.has-media { grid-column: span 2; }
.today-slot.has-media .today-media { margin: 0 0 .4rem; }
.today-slot.has-media img, .today-slot.has-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
.today-slot.has-media figcaption { font-size: .86rem; }
@media (max-width: 40rem) { .today-slot.has-media { grid-column: span 1; } }

/* period-film cards and the film band's facts */
.film-card .thumb { aspect-ratio: 16 / 10; filter: sepia(.25) contrast(1.05); }
.film-card .in-film { font: 500 .78rem/1.4 var(--f-ui); color: var(--vermilion); margin-top: .5rem; }
.film-card .credit { font-size: .74rem; color: var(--muted); margin-top: .4rem; }
.film-band .facts { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin: .2rem 0 1rem; font: 500 .74rem/1 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; color: #d9c599; }
.film-band .facts span::before { content: '·'; margin-right: .9rem; opacity: .6; }
.film-band .facts span:first-child::before { content: none; margin: 0; }

/* the poster and the book: upright frames that hold a placeholder until the artwork lands */
.covers { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(12rem, 16rem) 1fr; gap: 2rem; align-items: center; }
.covers-copy { max-width: 32rem; }
.covers-copy h2 { margin: .3em 0 .4em; }
.cover-slot { margin: 0; position: relative; }
.cover-slot img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); }
.cover-book img { aspect-ratio: 6 / 9; }
.cover-slot .cover-frame { display: none; }
figure.cover-slot.missing { display: block; }   /* the generic figure.missing rule hides a whole figure; these frames stay */
.cover-slot.missing img { display: none; }
.cover-slot.missing .cover-frame { display: flex; flex-direction: column; justify-content: center; gap: .35rem; aspect-ratio: 2 / 3; padding: 1.1rem 1.2rem; border: 1.5px dashed var(--gold, #a8843a); border-radius: 4px; background: var(--paper-2); text-align: center; }
.cover-book.missing .cover-frame { aspect-ratio: 6 / 9; }
.cover-slot .cover-frame .kicker { font-size: .62rem; }
.cover-slot .cover-frame b { font: 600 2rem/1 var(--f-display); letter-spacing: .02em; }
.cover-slot .cover-frame p { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.cover-slot .cover-frame code { font-size: .72rem; }
.cover-slot figcaption { margin-top: .6rem; font: 500 .7rem/1 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; }
@media (max-width: 52rem) { .covers { grid-template-columns: 1fr 1fr; } .covers-copy { grid-column: 1 / -1; } }

/* contribute page */
.steps { padding-left: 1.2rem; display: grid; gap: .8rem; font-size: 1.02rem; }
.steps li::marker { color: var(--vermilion); font-weight: 600; }
.card.stop .body p { margin-top: .4rem; }
.card.stop.have { border-color: var(--gold, #a8843a); }
.card.stop.have .kicker { color: var(--gold, #a8843a); }

.callout { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; margin-top: 1.25rem; padding: 1.6rem 2rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); }
.callout h2 { margin: .25em 0 .35em; }
.callout p { margin: 0; max-width: 46rem; }
@media (max-width: 52rem) { .callout { grid-template-columns: 1fr; } }

/* ---------- search ---------- */
.search-link { border: 1px solid var(--rule); color: var(--ink-2); border-radius: 99px; width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center; font-size: 1.25rem; text-decoration: none; line-height: 1; }
.search-link:hover { background: var(--paper-2); color: var(--ink); }
.search-form input { width: 100%; max-width: 40rem; font: 500 1.15rem/1.3 var(--f-ui); padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.search-form input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.results { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 46rem; }
.results li { border-top: 1px solid var(--rule); }
.results a { display: grid; grid-template-columns: 9rem 1fr; gap: .2rem .9rem; padding: .8rem .2rem; text-decoration: none; color: var(--ink); align-items: baseline; }
.results a:hover { background: var(--paper-2); }
.results .k { font: 600 .66rem/1.4 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); grid-row: span 2; }
.results b { font: 600 1.05rem/1.25 var(--f-display); }
.results .s { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .results a { grid-template-columns: 1fr; } .results .k { grid-row: auto; } }

/* ---------- on this day ---------- */
.otd { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: none; }
.otd .split { max-width: 78rem; margin: 0 auto; }
.otd-day { display: grid; place-items: center; text-align: center; padding: 1rem; }
.otd-day b { display: block; font: 600 clamp(4rem, 9vw, 7rem)/1 var(--f-display); color: var(--terracotta); font-variant-numeric: lining-nums tabular-nums; }
.otd-day span { font: 500 .78rem/1.3 var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- the walk ---------- */
.walk-group { margin: 2.5rem 0; }
.walk-group h2 { border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.stops { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.25rem; }
.stop { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; scroll-margin-top: 5rem; }
.stop-head { display: flex; align-items: baseline; gap: .7rem; }
.stop-head .code { font: 600 .7rem/1 var(--f-caps); letter-spacing: .12em; color: var(--paper); background: var(--terracotta); border-radius: 99px; padding: .35rem .55rem; flex: none; }
.stop h3 { margin: 0; font-size: 1.25rem; }
.stop .where { color: var(--ink-2); font-size: .92rem; }
.stop .pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0 .4rem; }
.stop figure { margin: 0; }
.stop figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
.stop figcaption { font: .72rem/1.3 var(--f-ui); color: var(--muted); margin-top: .3rem; }
.stop-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: #c0532c; color: #fff; font: 700 11px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ph-filter { display: flex; align-items: center; gap: .8rem; margin: .6rem 0 1.4rem; }
.ph-filter input { flex: 1; max-width: 30rem; font: 500 .95rem/1.3 var(--f-ui); padding: .55rem .8rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.timeline .day { display: block; font: 600 .62rem/1.3 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-top: .2rem; }
/* the walk prints as a guide */
@media print {
  .site-head, .site-foot, #walkmap, .skip, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .stops { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stop { break-inside: avoid; border: 1px solid #999; }
  .stop .pair img { aspect-ratio: 4/3; }
  a { color: inherit; text-decoration: none; }
}
.where-map { height: 22rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0e1522; margin: .6rem 0 .5rem; }
/* the hero cycles through four plates: each fades in for a quarter of a 40-second loop */
.hero .hero-img.fade { opacity: 0; animation: heroFade 40s linear infinite; }
.hero .hero-img.fade:nth-of-type(2) { animation-delay: 10s; }
.hero .hero-img.fade:nth-of-type(3) { animation-delay: 20s; }
.hero .hero-img.fade:nth-of-type(4) { animation-delay: 30s; }
@keyframes heroFade { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .hero-img.fade { display: none; } }
.in-film-head { margin: 1.2rem 0 .3rem; font: 600 .7rem/1 var(--f-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.in-film-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.in-film-list li { padding: .25rem 0; border-top: 1px solid var(--rule); }
.in-film-link { font-weight: 600; }
.watch-part { margin: .6rem 0 0; }
.watch-part a { display: inline-block; font: 600 .82rem/1 var(--f-ui); letter-spacing: .04em; color: var(--ink); border: 1px solid var(--gold); border-radius: 99px; padding: .55rem .9rem; text-decoration: none; }
.watch-part a:hover { background: var(--gold); color: #1a1408; }
figure.ph { scroll-margin-top: 5rem; }
.watch-reel { margin: .5rem 0 .2rem; font: 600 .8rem/1 var(--f-ui); letter-spacing: .04em; color: var(--ink); background: transparent; border: 1px solid var(--gold); border-radius: 99px; padding: .5rem .85rem; cursor: pointer; }
.watch-reel:hover { background: var(--gold); color: #1a1408; }
.film-card .thumb { aspect-ratio: 16/9; }
.reel-player { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.badges { margin: .5rem 0 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { font: 600 .62rem/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--gold); border-radius: 99px; padding: .32rem .5rem; }
.badge.walk { border-color: var(--terracotta); }
.timeline .ev.today { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 4px; }
.read-time { font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.chapter-places { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.chapter-places b { font: 600 .7rem/1 var(--f-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chapter-places p { margin: .4rem 0 0; line-height: 1.9; }
.year-chips { gap: .3rem; flex-wrap: wrap; }
.year-chips a { font: 600 .72rem/1 var(--f-ui); letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 99px; padding: .4rem .6rem; text-decoration: none; }
.year-chips a:hover { background: var(--paper-2); color: var(--ink); }
.timeline .year { scroll-margin-top: 5rem; }
.copy-link { font: 600 .72rem/1 var(--f-ui); letter-spacing: .04em; color: var(--ink-2); background: transparent; border: 1px solid var(--rule); border-radius: 99px; padding: .4rem .7rem; cursor: pointer; }
.copy-link:hover { background: var(--paper-2); color: var(--ink); }
