/* 25 Years of Us — styles. You should not need to edit this file. */

:root {
  /* warm paper + ink, rose and amber accents. Photos carry the colour. */
  --paper:        #FBF6F0;
  --paper-2:      #F4EBE2;
  --ink:          #241A1E;
  --ink-soft:     #5C4A50;
  --ink-faint:    #79666D;
  --rose:         #B01E55;
  --on-rose:      #FFFFFF;   /* text sitting on a rose fill */
  --rose-soft:    #D4698E;
  --amber:        #9F6B2C;
  --night:        #1C1317;
  --night-2:      #2A1D22;
  --on-night:     #F7EDE6;
  --on-night-soft:#C9B4AE;
  --border:       #E6D7CC;
  --card:         #FFFFFF;
  --shadow:       0 1px 2px rgba(36,26,30,.06), 0 8px 24px rgba(36,26,30,.08);
  --shadow-lift:  0 2px 4px rgba(36,26,30,.08), 0 18px 48px rgba(36,26,30,.16);
  --radius:       14px;
  --maxw:         1180px;
  --gutter:       16px;
  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 40px; --space-5: 64px; --space-6: 96px;
  --fade: 420ms cubic-bezier(.2,.7,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #16100F;
    --paper-2: #1E1618;
    --ink:     #F4E9E2;
    --ink-soft:#C6B2AC;
    --ink-faint:#9A8780;
    --rose:    #F5869F;
    --on-rose: #1C1317;   /* dark-mode rose is light, so its text goes dark */
    --rose-soft:#E0758F;
    --amber:   #DFA95F;
    --border:  #332628;
    --card:    #1F1719;
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper:   #16100F;
  --paper-2: #1E1618;
  --ink:     #F4E9E2;
  --ink-soft:#C6B2AC;
  --ink-faint:#9A8780;
  --rose:    #F5869F;
  --on-rose: #1C1317;
  --rose-soft:#E0758F;
  --amber:   #DFA95F;
  --border:  #332628;
  --card:    #1F1719;
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-motion { scroll-behavior: auto; }

/* ---------------------------------------------------------------- type system
   Display  Playfair Display, tight and large, for the big moments
   Body     Inter, quiet and modern
   Label    JetBrains Mono, uppercase and wide, for places and dates
   Hand     Caveat, used sparingly and only where a human aside is meant   */
:root {
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body:    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label:   "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-hand:    Caveat, ui-rounded, cursive;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* the editorial label: place names, dates, section numbers */
.label {
  font-family: var(--f-label);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--rose); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px var(--gutter);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar__name {
  font-family: var(--f-label); font-size: .64rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
  margin-right: auto; white-space: nowrap;
}

/* no conversion button in the top bar: both controls are quiet icons */
.bar .btn { background: none; border-color: transparent; color: var(--ink-soft); }
.bar .btn:hover { background: var(--paper-2); color: var(--rose); box-shadow: none; transform: none; }
.bar .btn--song { background: none; color: var(--ink-soft); min-width: 44px; padding: 10px; }
.bar .btn--song:hover { color: var(--rose); }
.bar .btn--song span { display: none; }
.bar__nav { display: none; gap: 4px; }
@media (min-width: 900px) { .bar__nav { display: flex; } }
.bar__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-soft); text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: 0 12px; border-radius: 999px; transition: background var(--fade), color var(--fade);
}
.bar__nav a:hover { color: var(--rose); background: var(--paper-2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  font: inherit; font-weight: 700; font-size: .9rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform var(--fade), box-shadow var(--fade), background var(--fade), color var(--fade);
}
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: var(--rose); }
.no-motion .btn:hover { transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--song { background: var(--rose); color: var(--on-rose); border-color: transparent; }
.btn--song:hover { color: var(--on-rose); }
.btn--icon { min-width: 44px; padding: 10px; justify-content: center; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 64px);
  display: grid; place-items: center;
  padding: var(--space-5) var(--gutter) var(--space-4);
  text-align: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(85% 65% at 50% 32%, rgba(28,19,23,.18), rgba(28,19,23,.68) 74%),
    linear-gradient(to bottom, rgba(28,19,23,.46), rgba(28,19,23,.18) 38%, rgba(28,19,23,.88));
}
.hero__inner { max-width: 760px; color: #fff; }
.hero__kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin: 0 0 var(--space-2);
}
.hero__num {
  font-family: var(--f-display); font-weight: 900; letter-spacing: -.035em;
  font-size: clamp(5.5rem, 26vw, 13rem);
  line-height: .82; font-weight: 700; margin: 0;
  color: #fff; text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
.hero__title {
  font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 600; margin: 0 0 var(--space-3); color: var(--rose-soft);
}
.hero__date {
  font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin: 0 0 var(--space-3);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero__date::before, .hero__date::after {
  content: ""; height: 1px; width: 36px; background: rgba(255,255,255,.4);
}
.hero__line {
  font-size: clamp(1.05rem, 3.6vw, 1.4rem); line-height: 1.5;
  color: #fff; margin: 0 auto; max-width: 30ch; text-wrap: balance;
}
.hero__cue {
  position: absolute; bottom: 20px; left: 0; right: 0;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero__cue span { display: block; margin-top: 6px; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.no-motion .hero__cue span { animation: none; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--space-6) 0; }
@media (min-width: 900px) { .section { padding: 132px 0; } }
.section--intro { padding-top: 112px; padding-bottom: 112px; }
.section--tint { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--on-night); }

/* chapter openers: left aligned, numbered in the margin, no ornament */
.head {
  display: grid; gap: 10px; text-align: left;
  margin: 0 0 var(--space-6); max-width: none;
}
@media (min-width: 900px) {
  .head { grid-template-columns: 104px minmax(0, 1fr); column-gap: 30px; align-items: start; }
  .head__n { grid-row: 1; justify-self: start; padding-top: 1.15rem; }
  .head h2 { grid-row: 1; }
  .head p  { grid-column: 2; }
}
/* the chapter numeral, set large and ghosted rather than as a tiny label */
.head__n {
  color: var(--rose); font-family: var(--f-display) !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important; font-weight: 900 !important;
  letter-spacing: -.04em !important; line-height: 1 !important;
  opacity: .22; text-transform: none !important;
}
.section--night .head__n { color: var(--rose-soft); opacity: .34; }
.head h2 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.038em;
  font-size: clamp(2.7rem, 9.5vw, 6.2rem);
  margin: 0; color: var(--ink); line-height: .94; text-wrap: balance;
}
.section--night .head h2 { color: var(--on-night); }
.head p {
  margin: var(--space-2) 0 0; max-width: 54ch;
  color: var(--ink-soft); font-size: 1.06rem; text-wrap: pretty;
}
.section--night .head p { color: var(--on-night-soft); }

/* the decorative dash under every heading has been removed on purpose */
.rule { display: none; }

/* favourite photo feature */
.fav { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 820px) { .fav { grid-template-columns: 1.1fr .9fr; gap: var(--space-5); } }
.fav__text h2 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(2.2rem, 7vw, 3.6rem);
  color: var(--rose); margin: 0 0 var(--space-2); line-height: 1;
}
.fav__text p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

/* her picture: text first, photograph second, and a portrait never stretched */
.section--her { padding-top: var(--space-5); }
@media (min-width: 820px) {
  .fav--her { grid-template-columns: .95fr 1.05fr; }
  .fav--her .fav__text { order: 1; }
  .fav--her .frame { order: 2; justify-self: end; }
}
.fav--her .frame { max-width: 460px; }
.fav--her .frame--tilt { transform: rotate(1.2deg); }
.no-motion .fav--her .frame--tilt { transform: none; }

/* polaroid-ish frame */
.frame {
  background: var(--card); padding: 10px 10px 0; border-radius: 6px;
  box-shadow: var(--shadow-lift); transition: transform var(--fade);
}
.frame img { border-radius: 3px; width: 100%; height: auto; }
.frame figcaption {
  font-family: var(--f-body); font-size: .9rem; color: var(--ink-soft);
  padding: 8px 4px 12px; text-align: center; line-height: 1.25;
}
.frame--tilt { transform: rotate(-1.4deg); }
.frame--tilt:hover { transform: rotate(0deg) scale(1.01); }
.no-motion .frame--tilt, .no-motion .frame--tilt:hover { transform: none; }

/* chips */
/* the countries, set as a masthead strip rather than a row of buttons */
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  max-width: 780px; margin: 0 auto var(--space-6);
  padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.chip {
  position: relative; white-space: nowrap;
  font-family: var(--f-label); font-size: .63rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  background: none; border: 0; border-radius: 0; padding: 7px 15px;
}
.chip::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 10px; background: var(--border);
}
.chip:last-child { color: var(--ink-faint); }
.chip:last-child::after { display: none; }

/* ---------------------------------------------------------------- photo mosaic */
/* an editorial grid, not a masonry wall: photographs get different weight,
   and every seventh one runs the full width as a breath */
.mosaic {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--space-3); row-gap: var(--space-5);
  align-items: start;
}
.mosaic .shot { grid-column: 1 / -1; margin: 0; }

@media (min-width: 760px) {
  .mosaic { row-gap: 72px; }
  /* the span is chosen in site.js from each photograph's real pixel width,
     so nothing is ever enlarged past its own resolution */
  .mosaic .shot--s3  { grid-column: span 3; }
  .mosaic .shot--s4  { grid-column: span 4; }
  .mosaic .shot--s5  { grid-column: span 5; }
  .mosaic .shot--s6  { grid-column: span 6; }
  .mosaic .shot--s7  { grid-column: span 7; }
  .mosaic .shot--s12 { grid-column: 1 / -1; }

  /* the stagger is purely rhythmic and does not affect resolution */
  .mosaic .shot:nth-child(7n+2) { margin-top: 56px; }
  .mosaic .shot:nth-child(7n+4) { margin-top: 40px; }
  .mosaic .shot:nth-child(7n+7) { margin-top: 48px; }

  /* a full-width photograph is cropped cinematically, never left enormous */
  .mosaic .shot--s12 .shot__media { aspect-ratio: 2.4 / 1; }
  .mosaic .shot--s12 img { width: 100%; height: 100%; object-fit: cover; }
  .mosaic .shot--s12 .shot__cap { max-width: 46ch; }
}

/* photographs sit on the page, not inside little white cards */
.shot {
  break-inside: avoid; margin: 0 0 var(--space-4); position: relative;
  background: none; border-radius: 0; box-shadow: none;
  cursor: zoom-in; border: 0; padding: 0;
  width: 100%; text-align: left; font: inherit; color: inherit; display: block;
}
@media (min-width: 1000px) { .shot { margin-bottom: var(--space-5); } }
.shot__media {
  display: block; overflow: hidden; border-radius: 3px;
  background: var(--paper-2);
}
.shot img {
  width: 100%; height: auto; display: block;
  transform: scale(1.001);
  transition: transform 1100ms cubic-bezier(.17,.73,.27,1),
              filter 700ms ease;
  filter: saturate(.96);
}
.shot:hover img { transform: scale(1.05); filter: saturate(1.06); }
.no-motion .shot:hover img { transform: none; }
.shot__cap {
  padding: 14px 0 0;
  font-family: var(--f-body); font-size: .95rem; line-height: 1.55;
  color: var(--ink-soft);
}
.shot__place {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-label); font-size: .64rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rose);
  margin-bottom: 4px;
}
.shot__place svg { width: 11px; height: 11px; }

/* ---------------------------------------------------------------- stories */
.stories { display: grid; gap: var(--space-4); }
.story {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: grid; gap: 0;
}
@media (min-width: 860px) {
  .story { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .story:nth-child(even) .story__media { order: 2; }
}
.story__body { padding: var(--space-4) var(--space-3); }
@media (min-width: 860px) { .story__body { padding: var(--space-5) var(--space-4); align-self: center; } }
.story__tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-rose);
  background: var(--rose); padding: 5px 11px; border-radius: 999px; margin-bottom: var(--space-2);
}
.story__title {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.028em; font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  line-height: 1.05; margin: 0 0 var(--space-2); color: var(--ink);
}
.story__body p { margin: 0 0 var(--space-2); color: var(--ink-soft); }
.story__punch {
  margin: var(--space-3) 0 0; padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
  font-family: Caveat, cursive; font-size: 1.4rem; color: var(--amber); line-height: 1.3;
}
.story__media { display: grid; gap: 2px; background: var(--paper-2); }
.story__media--3 { grid-template-columns: 1fr 1fr; }
.story__media--3 > button:first-child { grid-column: 1 / -1; }
/* with exactly two photos, let the second one span too, so no gap is left */
.story__media--3 > button:nth-child(2):last-child { grid-column: 1 / -1; }
.story__media button {
  border: 0; padding: 0; background: none; cursor: zoom-in; display: block;
  overflow: hidden; min-height: 0;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform var(--fade); }
.story__media--3 > button:first-child img { aspect-ratio: 16/9; }
.story__media button:hover img { transform: scale(1.04); }
.no-motion .story__media button:hover img { transform: none; }

.story__slot {
  display: grid; place-items: center; text-align: center; gap: 8px;
  min-height: 220px; padding: var(--space-3);
  border: 2px dashed var(--border); margin: var(--space-3);
  border-radius: var(--radius); color: var(--ink-faint);
}
.story__slot svg { width: 26px; height: 26px; opacity: .55; }
.story__slot span { font-size: .85rem; max-width: 26ch; }

/* ---------------------------------------------------------------- closing */
.closing { text-align: center; }
.video-wrap {
  max-width: 880px; margin: 0 auto var(--space-5);
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: var(--shadow-lift); position: relative;
}
.video-wrap video { width: 100%; height: auto; display: block; }
.video-controls {
  display: flex; align-items: center; justify-content: center; gap: var(--space-1);
  padding: 12px; background: var(--night-2);
}

/* our song: a small player that stays with you while you scroll */
.songbox {
  position: fixed; left: 12px; bottom: 12px; z-index: 80;
  width: min(300px, calc(100vw - 24px));
  border-radius: 12px; overflow: hidden;
  background: var(--night); border: 1px solid rgba(247,237,230,.16);
  box-shadow: 0 10px 44px rgba(0,0,0,.5);
  animation: songin 420ms cubic-bezier(.2,.7,.3,1) both;
}
@keyframes songin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.no-motion .songbox { animation: none; }
.songbox__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.songbox__bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px;
  background: var(--night-2);
}
.songbox__name {
  flex: 1; min-width: 0; font-size: .74rem; font-weight: 600; color: var(--on-night-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.songbox__x {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--on-night-soft);
  border-radius: 8px; transition: background var(--fade), color var(--fade);
}
.songbox__x:hover { background: rgba(247,237,230,.12); color: var(--on-night); }
.songbox__blocked { padding: var(--space-2); display: grid; gap: 10px; justify-items: center; text-align: center; }
.songbox__blocked p { margin: 0; font-size: .82rem; color: var(--on-night-soft); line-height: 1.5; }
.songbox__x svg { width: 17px; height: 17px; }
@media (max-width: 520px) {
  .songbox { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

/* a stand-in film: nothing loads from YouTube until it is pressed */
.facade-wrap { max-width: 920px; margin: 0 auto var(--space-5); }
.facade {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius);
  /* a designed backdrop, so the block looks deliberate even when the
     YouTube thumbnail is refused by the page it is published on */
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(176,30,85,.42), transparent 60%),
    radial-gradient(110% 90% at 85% 90%, rgba(159,107,44,.40), transparent 62%),
    linear-gradient(160deg, #27323d 0%, #1d2630 45%, #2a1d22 100%);
  box-shadow: var(--shadow-lift);
}
.facade__fallback {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; gap: 6px; text-align: center;
  padding: var(--space-3) var(--space-2) 128px;
  pointer-events: none;
}
.facade__fallback strong {
  font-family: var(--f-display); font-weight: 700; color: #fff; letter-spacing: -.03em;
  font-size: clamp(1.8rem, 5vw, 2.9rem); line-height: 1.1;
  text-shadow: 0 3px 24px rgba(0,0,0,.5);
}
.facade__fallback span {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
.facade__thumb { opacity: 0; transition: opacity 600ms ease; }
.facade__thumb.is-on { opacity: 1; }
.facade__thumb.is-on ~ .facade__fallback { display: none; }

/* shown only if YouTube refuses to run inside the page */
.facade__blocked {
  position: absolute; inset: 0; z-index: 4; display: grid;
  place-content: center; gap: 12px; text-align: center; padding: var(--space-3);
  background: rgba(22,15,18,.93); color: var(--on-night);
}
.facade__blocked p { margin: 0; font-size: .95rem; max-width: 34ch; }
.facade__hit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; background: none; cursor: pointer; display: block;
}
.facade__thumb { width: 100%; height: 100%; object-fit: cover; }
.facade__hit::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(22,15,18,.18), rgba(22,15,18,.55));
  transition: background var(--fade);
}
.facade__hit:hover::after { background: linear-gradient(to bottom, rgba(22,15,18,.08), rgba(22,15,18,.44)); }
.facade__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 2; display: grid; place-items: center;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--rose); color: var(--on-rose);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  transition: transform var(--fade);
}
.facade__hit:hover .facade__play { transform: translate(-50%,-50%) scale(1.07); }
.no-motion .facade__hit:hover .facade__play { transform: translate(-50%,-50%); }
.facade__play svg { width: 30px; height: 30px; margin-left: 4px; }
.facade__frame { width: 100%; height: 100%; border: 0; display: block; }
.facade__cap {
  margin: var(--space-2) auto 0; max-width: 56ch; text-align: center;
  font-size: .9rem; color: var(--on-night-soft); line-height: 1.55;
}
.facade__cap strong { display: block; color: var(--on-night); font-weight: 700; margin-bottom: 2px; }
.facade__cap span { display: block; }
.facade__out {
  display: inline-block; margin-top: 8px; min-height: 44px; line-height: 44px;
  color: var(--rose-soft); font-weight: 700; text-decoration: underline;
}

.placeholder {
  max-width: 880px; margin: 0 auto var(--space-5);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center; align-content: center; gap: 12px; text-align: center;
  padding: var(--space-3);
  border: 2px dashed rgba(247,237,230,.3); border-radius: var(--radius);
  background: var(--night-2); color: var(--on-night-soft);
}
.placeholder svg { width: 38px; height: 38px; opacity: .6; }
.placeholder strong {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem;
  color: var(--on-night); font-weight: 700;
}
.placeholder span { font-size: .92rem; max-width: 42ch; }
.placeholder code {
  font-size: .8rem; background: rgba(247,237,230,.1); padding: 3px 7px; border-radius: 5px;
  font-family: ui-monospace, Consolas, monospace;
}

.letter {
  max-width: 620px; margin: 0 auto; text-align: left;
  background: var(--night-2); border: 1px solid rgba(247,237,230,.12);
  border-radius: var(--radius); padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 700px) { .letter { padding: var(--space-5) var(--space-4); } }
.letter h3 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(2.2rem, 7vw, 3.2rem);
  color: var(--rose-soft); margin: 0 0 var(--space-3); line-height: 1; text-align: center;
}
.letter p { color: var(--on-night-soft); margin: 0 0 var(--space-3); font-size: 1.05rem; }
.letter p:last-of-type { margin-bottom: 0; }
.letter__sign {
  font-family: Caveat, cursive; font-size: 1.75rem; color: var(--on-night);
  margin-top: var(--space-4); text-align: right; line-height: 1.3;
}

.song {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: var(--space-5);
}
.song__meta { font-size: .85rem; color: var(--on-night-soft); }
.song__note { font-size: .8rem; color: rgba(201,180,174,.75); font-style: italic; max-width: 34ch; text-align: center; }

.foot {
  padding: var(--space-4) var(--gutter); text-align: center;
  font-size: .82rem; color: var(--ink-faint); background: var(--paper);
  border-top: 1px solid var(--border);
}
.foot p { margin: 0 0 4px; }

/* ---------------------------------------------------------------- lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(16,10,12,.95);
  place-items: center; padding: 56px 12px 84px;
}
.lb[open], .lb.is-open { display: grid; }
.lb__fig { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 12px; }
.lb__fig img {
  max-width: 100%; max-height: calc(100svh - 190px);
  width: auto; height: auto; margin: 0 auto;
  border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.lb__cap {
  font-family: var(--f-body); font-size: .98rem; color: #F7EDE6;
  text-align: center; line-height: 1.3;
}
.lb__cap em { display: block; font-family: var(--f-label); font-style: normal;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rose-soft); margin-bottom: 4px; }
.lb__count {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: rgba(247,237,230,.6);
}
.lb__btn {
  position: absolute; min-width: 48px; min-height: 48px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(247,237,230,.12); color: #F7EDE6;
  border: 1px solid rgba(247,237,230,.2); border-radius: 50%;
  transition: background var(--fade);
}
.lb__btn:hover { background: rgba(247,237,230,.26); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 10px; right: 10px; }
.lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (min-width: 700px) { .lb__prev { left: 24px; } .lb__next { right: 24px; } }
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- the opening passage */
.intro { max-width: 740px; margin: 0 auto; text-align: center; }
.intro p {
  font-size: clamp(1.05rem, 2.6vw, 1.26rem);
  line-height: 1.72; color: var(--ink-soft);
  margin: 0 0 var(--space-4); text-wrap: pretty;
}
/* the travel prose inside the places section: body-sized, not a headline */
.intro--lead { margin: 0 0 var(--space-6); text-align: left; max-width: 66ch; }
/* share a left edge with the chapter heading above it */
@media (min-width: 900px) { .intro--lead { margin-left: 134px; } }
.intro--lead p { font-size: 1.02rem; margin-bottom: var(--space-3); }
.intro--lead p:first-child,
.intro--lead p:last-child {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3;
  color: var(--ink); letter-spacing: -.015em;
}

.intro p:first-child {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.22; color: var(--rose); margin-bottom: var(--space-4);
}
.intro p:last-child {
  font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  color: var(--amber); margin-bottom: 0;
}

/* ---------------------------------------------------------------- the message */
.section--note { padding-top: var(--space-6); padding-bottom: var(--space-5); }
.note {
  max-width: 62ch; margin: 0 auto; text-align: left;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.note p {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.1rem, 2.6vw, 1.32rem); line-height: 1.62; color: var(--ink);
}
.note p:first-child::first-letter {
  float: left; font-family: var(--f-display); font-weight: 700;
  font-size: 3.4em; line-height: .82; padding: .06em .09em 0 0; color: var(--rose);
}
.note__last {
  margin: 0; font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem); color: var(--ink-soft);
}

/* ---------------------------------------------------------------- finish
   A fine grain over everything, so the page reads as printed matter rather
   than a screen. Nothing interactive sits under it. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='180' height='180' filter='url(%23n)' opacity='.5'/></svg>");
}
:root[data-theme="dark"] body::after,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; opacity: .20; } }

/* how far down the page you are */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 95;
  width: 0; background: var(--rose); transition: width 120ms linear;
  pointer-events: none;
}

/* the tease at the end of the opening passage */
.intro__tease {
  margin-top: var(--space-5) !important;
  color: var(--ink-faint) !important;
  font-size: .66rem !important; font-family: var(--f-label) !important;
  font-style: normal !important; letter-spacing: .2em;
}

/* the words, where a photograph would have gone */
.story__plate {
  display: grid; place-content: center; gap: 4px; text-align: center;
  padding: var(--space-5) var(--space-3); min-height: 280px;
  background:
    radial-gradient(90% 80% at 30% 20%, rgba(176,30,85,.16), transparent 60%),
    linear-gradient(150deg, var(--paper-2), var(--paper));
}
.section--night .story__plate {
  background:
    radial-gradient(90% 80% at 30% 20%, rgba(245,134,159,.14), transparent 60%),
    linear-gradient(150deg, #241A1E, var(--night));
}
.story__plate-q {
  font-family: var(--f-display); font-size: 5rem; line-height: .4;
  color: var(--rose); opacity: .5;
}
.story__plate p {
  margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--ink); max-width: 14ch;
}
.section--night .story__plate p { color: var(--on-night); }

/* the lead-in to the song */
.song__lead {
  margin: 0 0 var(--space-3); max-width: 34ch; text-align: center;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.25;
  color: var(--on-night);
}

/* ---------------------------------------------------------------- the tally */
.section--ledger { padding-top: var(--space-5); }
.ledger__head {
  color: var(--ink-faint); text-align: center; margin: 0 0 var(--space-5);
}
.ledger {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--border);
  max-width: 940px; margin: 0 auto;
}
@media (min-width: 620px) { .ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ledger { grid-template-columns: repeat(4, 1fr); } }
.ledger__cell {
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
@media (min-width: 720px) {
  .ledger__cell { border-bottom: 0; border-right: 1px solid var(--border); }
  .ledger__cell:last-child { border-right: 0; }
  .ledger { border-bottom: 1px solid var(--border); }
}
.ledger__n {
  display: block;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3.6rem, 11vw, 6.4rem); line-height: .9;
  letter-spacing: -.045em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ledger__label { display: block; margin-top: 12px; color: var(--ink-faint); }
.ledger__note {
  max-width: 54ch; margin: var(--space-4) auto 0; text-align: center;
  color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7;
}

/* ---------------------------------------------------------------- the verdict */
.section--quote { padding-top: var(--space-5); padding-bottom: var(--space-6); }
.verdict { margin: 0 auto; max-width: 820px; text-align: center; }
.verdict__q {
  margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.1rem, 7.5vw, 4.2rem); line-height: 1.08;
  letter-spacing: -.03em; color: var(--ink); text-wrap: balance;
}
.verdict__src {
  display: block; margin-top: var(--space-3); color: var(--rose);
}
.verdict__after {
  margin: var(--space-3) 0 0; color: var(--ink-soft); font-size: 1.02rem;
}
.chapter {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 78svh; display: grid; place-items: center;
  padding: var(--space-5) var(--gutter);
}
@media (min-width: 900px) { .chapter { min-height: 88svh; } }
.chapter__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.chapter__bg img { width: 100%; height: 100%; object-fit: cover; }
.chapter::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 60% at 50% 50%, rgba(22,15,18,.26), rgba(22,15,18,.72) 78%),
    linear-gradient(to bottom, rgba(22,15,18,.55), rgba(22,15,18,.20) 45%, rgba(22,15,18,.78));
}
.chapter p {
  margin: 0; max-width: 16ch; text-align: center; color: #fff;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  text-shadow: 0 4px 36px rgba(0,0,0,.5);
}

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(7px); }
.reveal.in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 1100ms cubic-bezier(.22,.61,.36,1),
              transform 1100ms cubic-bezier(.22,.61,.36,1),
              filter 900ms ease;
}
.no-motion .reveal { opacity: 1; transform: none; filter: none; transition: none; }

/* the stories chapter runs dark, so the page breathes between chapters */
.section--night .story {
  background: var(--night-2);
  border-color: rgba(247, 237, 230, .13);
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.45);
}
.section--night .story__title { color: var(--on-night); }
.section--night .story__body p { color: var(--on-night-soft); }
.section--night .story__punch {
  color: #DFA95F;                       /* legible amber on a dark card */
  border-top-color: rgba(247, 237, 230, .18);
}
.section--night .story__media { background: var(--night); }

/* the letter arrives a line at a time */
.letter p.reveal { transform: translateY(16px); }

/* when GSAP is driving, it owns the entrances: never leave anything hidden */
.gsap-on .reveal { opacity: 1; transform: none; filter: none; transition: none; }
.gsap-on .shot__media { will-change: clip-path; }

/* slow drift on the opening photo */
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(0, -1.6%, 0); }
}
.hero__bg img { animation: kenburns 26s ease-out forwards; }
.no-motion .hero__bg img { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__cue span, .hero__bg img { animation: none !important; }
  .chapter__bg { transform: none !important; inset: 0; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------------------------------------------------------------- phones
   The mono labels drop to about 10px on a narrow screen, which is below
   comfortable reading. Everything of that family gets a floor here. */
@media (max-width: 600px) {
  .label,
  .chip,
  .shot__place,
  .ledger__label,
  .ledger__head,
  .intro__tease,
  .bar__name,
  .lb__cap em,
  .verdict__src,
  .story__tag { font-size: .78rem !important; letter-spacing: .15em; }
  .song__meta, .song__note, .facade__cap { font-size: .86rem; }
  .foot { font-size: .86rem; }

  /* the tally stacks two-up rather than four across */
  .ledger__n { font-size: clamp(3.2rem, 17vw, 4.4rem); }

  /* give the chapter openers room to breathe on a small screen */
  .head h2 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .head__n { font-size: 2rem !important; opacity: .3; }
}

@media print {
  .bar, .lb, .hero__cue, .song, .btn { display: none !important; }
  .section { padding: 24px 0; break-inside: avoid; }
}
