@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-italic-latin-ext.woff2?v=2) format('woff2');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:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-italic-latin.woff2?v=2) format('woff2');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';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin-ext.woff2?v=2) format('woff2');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:'Fraunces';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin.woff2?v=2) format('woff2');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:'Source Serif 4';font-style:italic;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-italic-latin-ext.woff2?v=2) format('woff2');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:'Source Serif 4';font-style:italic;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-italic-latin.woff2?v=2) format('woff2');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:'Source Serif 4';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-normal-latin-ext.woff2?v=2) format('woff2');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:'Source Serif 4';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-normal-latin.woff2?v=2) format('woff2');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}
/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f5efe3;
  --paper-deep: #ece3d2;
  --surface: #fcf8f0;
  --ink: #1a1712;
  --ink-soft: #3b352c;
  --ink-muted: #4a4237;
  --rule: #d9cdb6;
  --rule-strong: #b6a88c;
  --accent: #1c4a7e;
  --accent-text: #164070;
  --on-accent: #fdf8ee;
  --gold: #74490c;
  --draw: #efe3cd;
  --draw-line: #6b5c40;
  --wood: #7a5230;
  --shadow: 0 1px 2px #1c181414, 0 8px 24px #1c181412;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --bar: 2.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #11130f;
    --paper-deep: #1a1c16;
    --surface: #1d201a;
    --ink: #f0ebde;
    --ink-soft: #dcd5c6;
    --ink-muted: #c0b8a6;
    --rule: #343a2e;
    --rule-strong: #545b49;
    --accent: #e2aa5c;
    --accent-text: #f0bd75;
    --on-accent: #15130d;
    --gold: #e2c36a;
    --draw: #232620;
    --draw-line: #9a9280;
    --wood: #b08a5a;
    --shadow: 0 1px 2px #0006, 0 8px 24px #0005;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11130f;
  --paper-deep: #1a1c16;
  --surface: #1d201a;
  --ink: #f0ebde;
  --ink-soft: #dcd5c6;
  --ink-muted: #c0b8a6;
  --rule: #343a2e;
  --rule-strong: #545b49;
  --accent: #e2aa5c;
  --accent-text: #f0bd75;
  --on-accent: #15130d;
  --gold: #e2c36a;
  --draw: #232620;
  --draw-line: #9a9280;
  --wood: #b08a5a;
  --shadow: 0 1px 2px #0006, 0 8px 24px #0005;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.62;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
section { scroll-margin-top: calc(var(--bar) + .5rem); }
section[tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem .8rem; border-radius: 4px; }
.skip:focus { left: .8rem; top: .8rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .55rem;
  min-height: var(--bar); padding: .3rem var(--gutter);
  padding-top: calc(.3rem + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .78rem;
}
.topbar .home { font-weight: 650; color: var(--ink-soft); text-decoration: none; flex: none; padding-block: .35rem; }
.topbar .spacer { flex: 1; }
.topnav {
  display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; min-width: 6rem; flex: 1 1 auto; align-self: stretch; margin-left: .25rem;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.6rem), transparent 100%);
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a { display: flex; align-items: center; padding: .25rem .55rem; border-radius: 999px; text-decoration: none; color: var(--ink-muted); white-space: nowrap; }
.topnav a:hover { color: var(--accent-text); background: var(--paper-deep); }
.topnav a[aria-current="true"] { color: var(--ink); background: var(--paper-deep); font-weight: 650; }
.chip {
  display: inline-flex; align-items: center; padding: .22rem .6rem; border-radius: 999px; flex: none; position: relative;
  border: 1px solid var(--ink-muted); color: var(--ink-soft); text-decoration: none; background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip::before, .icon-btn::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative;
  width: 1.95rem; height: 1.95rem; padding: 0; border-radius: 999px; cursor: pointer;
  color: var(--ink-muted); background: var(--surface); border: 1px solid var(--ink-muted);
}
.icon-btn:hover { color: var(--accent-text); border-color: var(--accent); }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
@media (max-width: 34rem) {
  .topbar { gap: .35rem; }
  .topbar .home { max-width: 5.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topnav a { padding: .25rem .4rem; }
}

/* ---------- reading rail ---------- */
.rail { display: none; position: fixed; top: 50%; right: 1.1rem; transform: translateY(-50%); flex-direction: column; align-items: flex-end; gap: .5rem; z-index: 30; }
@media (min-width: 88rem) { .rail { display: flex; } }
.rail-dot { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 14px; padding: .15rem 0; text-decoration: none; }
.rail-dot .dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); transition: background-color .15s, transform .15s; }
.rail-dot:hover .dot, .rail-dot:focus-visible .dot { background: var(--ink-soft); }
.rail-dot.active .dot { background: var(--accent); transform: scale(1.5); }
.rail-label {
  position: absolute; right: 100%; top: 50%; margin-top: -.85rem; margin-right: .5rem;
  font-family: var(--sans); font-size: .75rem; line-height: 1.2; color: var(--ink-soft); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .55rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .12s, transform .12s;
}
.rail-dot:hover .rail-label, .rail-dot:focus-visible .rail-label { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rail-dot .dot, .rail-label, .card, .hotspot span { transition: none; } }
@media print { .rail, .topbar { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-rows: min(46svh, 23rem) auto; isolation: isolate; overflow: clip; }
.hero-media { position: relative; margin: 0; min-height: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; border-radius: 0; box-shadow: none; }
.hero-scrim { position: absolute; inset: 0 0 auto 0; height: min(46svh, 23rem); background: linear-gradient(to bottom, transparent 52%, var(--paper) 98%); pointer-events: none; }
.hero-caption {
  position: absolute; top: .7rem; right: var(--gutter); z-index: 1; margin: 0; max-width: 21rem;
  font-family: var(--sans); font-size: .72rem; line-height: 1.4; color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule); border-radius: .6rem; padding: .5rem .7rem; box-shadow: var(--shadow);
}
.hero-caption .credit { display: none; }
@media (min-width: 64rem) { .hero-caption .credit { display: block; } }
@media (max-width: 63.99rem) { .hero-caption { max-width: 15rem; font-size: .68rem; } }
.hero-copy { position: relative; z-index: 1; margin-top: -3.2rem; padding: 0 var(--gutter) 2.2rem; }
.hero-panel {
  position: relative; padding: clamp(1.3rem, 3vw, 2.1rem); border-radius: 1.2rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.25) blur(12px); -webkit-backdrop-filter: saturate(1.25) blur(12px);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
}
@media (min-width: 64rem) {
  .hero { grid-template-rows: none; align-items: center; min-height: calc(100svh - var(--bar)); }
  .hero-media { position: absolute; inset: 0; z-index: -2; }
  .hero-media img { object-position: center 42%; }
  .hero-scrim {
    inset: 0; height: auto; z-index: -1;
    background:
      linear-gradient(to top, color-mix(in srgb, var(--paper) 55%, transparent), transparent 22%),
      linear-gradient(100deg, color-mix(in srgb, var(--paper) 94%, transparent) 0%, color-mix(in srgb, var(--paper) 72%, transparent) 36%, transparent 62%);
  }
  .hero-copy { margin: 0; width: 100%; max-width: 96rem; margin-inline: auto; padding-block: clamp(1.5rem, 4vh, 2.5rem); }
  .hero-panel { max-width: 41rem; padding: clamp(1.2rem, 2.4vw, 1.8rem); }
  .hero-caption { top: auto; bottom: 1rem; }
}
.kicker { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .9rem; }
.hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.9rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.1rem; font-weight: 640; font-variation-settings: "SOFT" 30, "WONK" 0; }
@media (min-width: 64rem) { .hero h1 { font-size: clamp(2.7rem, 4.2vw, 3.7rem); } }
.deck { font-size: clamp(1.05rem, 1.8vw, 1.18rem); line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 37rem; }
.hero-cta { margin: 1.25rem 0 1rem; }
.cta {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .7rem 1.35rem;
  border-radius: 999px; font: 650 1rem var(--sans); text-decoration: none;
  color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow);
}
.cta:hover { color: var(--on-accent); filter: brightness(1.1); text-decoration: none; }
.byline { font-family: var(--sans); font-size: .82rem; color: var(--ink-muted); margin: 0; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; margin: 1.3rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--rule); }
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-label { margin: .1rem 0 0; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.35; }
/* seal: a stamped medallion for the 1886 manifesto house */
.seal { position: absolute; top: -2.7rem; right: .9rem; width: 5.4rem; height: auto; z-index: 2; filter: drop-shadow(0 2px 6px #1c181133); }
@media (min-width: 64rem) { .seal { top: -3.1rem; right: -2.4rem; width: 7rem; } }
.seal-disc { fill: var(--accent); }
.seal-inner { fill: var(--paper); stroke: var(--on-accent); stroke-width: 1.5; stroke-dasharray: 3 2; }
.seal-outer { font: 700 12.5px var(--sans); letter-spacing: 1.6px; fill: var(--on-accent); }
.seal-year { font: 700 27px var(--display); fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .seal-outer { transform-box: view-box; transform-origin: 60px 60px; animation: seal-spin 48s linear infinite; }
  @keyframes seal-spin { to { transform: rotate(360deg); } }
}

/* ---------- sections ---------- */
.timeline-sec, .elements-sec, .decoder-sec, .walk-sec, .city-sec, .game, .sources { padding: 4rem 0 3rem; border-top: 1px solid var(--rule); }
.timeline-sec h2, .elements-sec h2, .decoder-sec h2, .walk-sec h2, .city-sec h2, .game h2, .sources h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 1rem; }
.section-intro { max-width: 40rem; color: var(--ink-soft); margin: 0 0 1.8rem; }
.figure { margin: 1.8rem 0; }
.figure img { width: 100%; height: auto; border-radius: 6px; background: var(--paper-deep); box-shadow: var(--shadow); }
figcaption { font-family: var(--sans); font-size: .82rem; line-height: 1.45; color: var(--ink-muted); margin-top: .6rem; }
.credit { display: block; margin-top: .15rem; }
.credit a { color: var(--ink-muted); }
.pull { margin: 2rem 0 0; padding: 1.1rem 0 0; border-top: 2px solid var(--accent); max-width: 46rem; }
.pull-label { margin: 0 0 .5rem; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pull blockquote, .pull .pull-text { margin: 0; }
.pull blockquote p, .pull .pull-text { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.35; color: var(--ink); }

/* ---------- timeline ---------- */
.tl-grid { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .tl-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } .tl-fig { margin-top: 0; position: sticky; top: calc(var(--bar) + 1rem); } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline li:last-child { padding-bottom: 0; }
.tl-years { margin: 0; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: .1rem 0 .3rem; font-size: 1.25rem; line-height: 1.2; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.timeline p + p { margin-top: .3rem; }

/* ---------- elements ---------- */
.el-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; counter-reset: el; }
.el-card { counter-increment: el; position: relative; padding: 1.1rem 1.1rem 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.el-card::after { content: counter(el, upper-roman); position: absolute; right: .9rem; top: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink-muted); opacity: .55; line-height: 1; }
.el-tag { margin: 0 0 .2rem; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.el-card h3 { margin: 0 2.2rem .5rem 0; font-size: 1.3rem; line-height: 1.2; }
.el-card p { margin: 0 0 .6rem; font-size: 1rem; color: var(--ink-soft); }
.el-building { margin: 0; font-family: var(--sans); font-size: .82rem; font-weight: 650; color: var(--accent-text); }

/* ---------- facade decoder ---------- */
.dec-grid { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .dec-grid { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; } }
.dec-fig { margin: 0; }
.dec-stage { position: relative; max-width: 26rem; margin-inline: auto; }
.facade { width: 100%; height: auto; display: block; background: var(--draw); border: 1px solid var(--rule); border-radius: 10px; }
.facade .roof { fill: var(--draw-line); opacity: .85; }
.facade .finial { fill: none; stroke: var(--draw-line); stroke-width: 2.5; stroke-linecap: round; }
.facade .eaves, .facade .base { fill: var(--draw-line); }
.facade .dentil { fill: var(--draw); }
.facade .wall { fill: none; stroke: var(--draw-line); stroke-width: 2; }
.facade .string, .facade .balc { fill: var(--draw-line); opacity: .55; }
.facade .disc { stroke: var(--draw-line); stroke-width: 2; }
.facade .disc.d-blue { fill: #2c5f8a; }
.facade .disc.d-ochre { fill: #c08a2d; }
.facade .disc.d-white { fill: #f7f2e6; }
.facade .col { fill: var(--wood); }
.facade .cap, .facade .pbase, .facade .sill { fill: var(--draw-line); }
.facade .arch { fill: none; stroke: var(--draw-line); stroke-width: 2.5; stroke-linecap: round; }
.facade .win rect { fill: none; stroke: var(--draw-line); stroke-width: 2; }
.facade .win line { stroke: var(--draw-line); stroke-width: 1.5; }
.facade .colon { fill: var(--accent); opacity: .8; }
.facade .door { fill: var(--draw-line); opacity: .35; stroke: var(--draw-line); stroke-width: 2; }
.hotspot {
  position: absolute; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  display: grid; place-items: center; text-decoration: none;
}
.hotspot span {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  font: 700 .95rem var(--sans); color: var(--on-accent); background: var(--accent);
  box-shadow: var(--shadow); transition: transform .15s;
}
.hotspot:hover span { transform: scale(1.15); }
@media (prefers-reduced-motion: no-preference) {
  .hotspot::before {
    content: ""; position: absolute; inset: .45rem; border-radius: 50%;
    border: 2px solid var(--accent); animation: ping 2.4s ease-out infinite;
  }
  .hotspot.found::before { display: none; }
  @keyframes ping { 0% { transform: scale(.55); opacity: .9; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }
}
.hotspot.found span { background: var(--gold); }
.hotspot.found::after { content: ""; position: absolute; inset: .35rem; border-radius: 50%; border: 2px solid var(--gold); }
.dec-score, .walk-score { margin: 0 0 1rem; font-family: var(--display); font-weight: 650; font-size: 1.25rem; }
.dec-answer { margin: 0 0 .6rem; padding: .7rem .9rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); }
.dec-answer summary { font: 600 .92rem var(--sans); color: var(--ink); cursor: pointer; }
.dec-answer p { margin: .4rem 0 .2rem; font-size: 1rem; color: var(--ink-soft); }
.dec-answer.found { border-color: var(--gold); }

/* ---------- walk ---------- */
.walk-grid { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .walk-grid { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; } .walk-fig { position: sticky; top: calc(var(--bar) + 1rem); } }
.walk-fig { margin: 0; }
.walk-stage { max-width: 26rem; margin-inline: auto; }
.walkmap { width: 100%; height: auto; display: block; background: var(--draw); border: 1px solid var(--rule); border-radius: 10px; }
.walk-route { fill: none; stroke: var(--draw-line); stroke-width: 2.5; stroke-dasharray: 7 5; opacity: .7; }
.walk-dot circle { fill: var(--accent); }
.walk-dot text { font: 700 13px var(--sans); fill: var(--on-accent); }
.walk-dot .wl { font: 650 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--draw); stroke-width: 4px; stroke-linejoin: round; }
.walk-dot.seen circle { fill: var(--gold); }
.walk-dot:focus-visible { outline-offset: -2px; }
.walkmap .city { font: italic 600 15px var(--serif); fill: var(--ink-muted); letter-spacing: .18em; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.stop { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; padding: .9rem 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); scroll-margin-top: calc(var(--bar) + .5rem); }
.stop.seen { border-color: var(--gold); }
.stop-num { grid-row: 1 / span 3; display: grid; place-items: center; width: 2rem; height: 2rem; margin: 0; border-radius: 50%; font: 700 1rem var(--sans); color: var(--on-accent); background: var(--accent); }
.stop.seen .stop-num { background: var(--gold); }
.stop h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.stop-meta { margin: .15rem 0 .35rem; font-family: var(--sans); font-size: .8rem; color: var(--accent-text); font-weight: 600; }
.stop p:last-child { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.walk-photo { max-width: 46rem; }

/* ---------- city ---------- */
.city-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; counter-reset: city; }
.city-list li { counter-increment: city; border-top: 3px solid var(--ink); padding-top: .9rem; }
.city-list h3 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .5rem; }
.city-list h3::before { content: counter(city, upper-roman) " "; color: var(--accent-text); }
.city-list p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
/* ---------- then/now comparison ---------- */
.compare { margin: 2.2rem 0 0; max-width: 56rem; }
.compare-title { margin: 0 0 .8rem; font-family: var(--display); font-weight: 650; font-size: 1.3rem; }
.compare-frames { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.compare-frame { position: relative; margin: 0; min-width: 0; }
.compare-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.compare-tag {
  position: absolute; top: .6rem; margin: 0; padding: .25rem .65rem; border-radius: 999px;
  font: 700 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--rule); pointer-events: none;
}
.tag-then { left: .6rem; }
.tag-now { right: .6rem; }
.compare-handle { display: none; }
.compare.ready .compare-frames { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y; }
.compare.ready .compare-frame img { border-radius: 0; box-shadow: none; }
.compare.ready .is-now { position: relative; }
.compare.ready .is-now img { aspect-ratio: 2.4 / 1; object-position: right center; }
.compare.ready .is-then img { object-position: center; }
.compare.ready .is-then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare.ready .is-then img { position: absolute; inset: 0; }
.compare.ready .compare-handle {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px;
  margin-left: -1.5px; background: #fdf8ee; box-shadow: 0 0 0 1px #1c181155; pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  font: 700 1rem var(--sans); color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow);
}
.compare-range { display: none; }
.compare.ready .compare-range {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range:focus-visible { outline: none; }
.compare-range:focus-visible ~ .compare-handle { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.compare-caption { max-width: 56rem; }

/* ---------- game ---------- */
.game { background: var(--paper-deep); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.card-num { position: absolute; right: .9rem; top: .7rem; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink-muted); line-height: 1; }
.card-q { margin: 0 2rem .9rem 0; font-size: 1.15rem; line-height: 1.3; }
.card-buttons { display: grid; gap: .5rem; margin-top: auto; }
.card-buttons button, .btn {
  flex: 1; font: 650 .92rem var(--sans); padding: .6rem .8rem; border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink-muted); min-height: 2.75rem;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.card-buttons button:hover, .btn:hover { border-color: var(--accent); color: var(--accent-text); }
.card-buttons button:active, .btn:active { transform: scale(.97); }
.card-buttons button.chosen { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-buttons button:disabled { cursor: default; }
.card-buttons button:disabled:not(.chosen) { opacity: .62; }
.card-verdict { margin: .6rem 0 0; font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; min-height: 0; }
.card-verdict:empty { display: none; }
.card.right { border-color: var(--gold); }
.card.right .card-verdict { color: var(--gold); }
.card.wrong .card-verdict { color: var(--accent-text); }
.card.answered { transform: translateY(-2px); }
.card-answer { margin-top: .6rem; font-size: .98rem; }
.card-answer summary { font: 600 .82rem var(--sans); color: var(--ink-muted); cursor: pointer; }
.card-answer p { margin: .4rem 0 .5rem; }
.game.ready .card-answer summary { display: none; }
.card-verdict:focus { outline: none; }
.card-verdict:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.game.ready .card:not(.answered) .card-answer { display: none; }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1) translateY(-2px); } }
.game.ready .card.answered { animation: pop .4s ease-out; }
@media (prefers-reduced-motion: reduce) { .game.ready .card.answered { animation: none; } }
.scoreboard { margin-top: 1.6rem; padding: 1.2rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); display: grid; gap: .6rem; }
.score { margin: 0; font-family: var(--display); font-weight: 650; font-size: 1.35rem; }
.score-done { margin: 0; color: var(--ink-soft); min-height: 1.5em; }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.share-status { font: 600 .85rem var(--sans); color: var(--accent-text); }
.score-actions .btn { flex: 0 1 auto; }
.btn.share { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.share:hover { color: var(--on-accent); filter: brightness(1.08); }

/* ---------- share line ---------- */
.share-line { margin: 0.6rem 0 0; font-size: 0.86rem; color: var(--ink-muted); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.share-btn { font: inherit; color: var(--accent-text); background: none; border: 0; padding: 0.3rem 0; min-height: 2.75rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.share-note { min-height: 1em; }

/* ---------- sources ---------- */
.sources { font-size: 1rem; }
.sources > .wrap > p { max-width: 46rem; color: var(--ink-soft); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.2rem 2rem; margin-top: 2rem; }
.src-group h3, .img-heading { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .4rem; }
.img-heading { margin-top: 2.2rem; }
.src-group ul, .img-credits { margin: 0; padding-left: 1.1rem; font-family: var(--sans); font-size: .86rem; line-height: 1.5; }
.src-group li, .img-credits li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.img-credits { color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom, 0px)); text-align: center; font-family: var(--sans); font-size: .88rem; color: var(--ink-muted); }
.site-footer p { margin: 0; }

/* ---------- 404 ---------- */
.nf-main { padding-block: 5rem; max-width: 40rem; }
.nf-main .btn { display: inline-block; }

/* hotspot positions, generated from HOTSPOTS */
.hotspot.hs-foisor{left:50%;top:40%}
.hotspot.hs-arcade{left:20%;top:37%}
.hotspot.hs-ancadramente{left:21%;top:76%}
.hotspot.hs-discuri{left:50%;top:17%}
.hotspot.hs-colonete{left:60%;top:79%}
