:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #221e23;
  --muted: #665e65;
  --accent: #963954;
  --accent-dark: #76263e;
  --line: #e9dce1;
  --surface: #f6f5f7;
  --hero-rgb: 255 245 246;
  --header-bg: #fffbfbf4;
  --counter-ink: #493a43;
  --field-bg: #fcf8fa;
  --placeholder: #776971;
  --control-hover: #f5e3ec;
  --module-bg: #f7e8ef;
  --notes-base: #fdf1f3;
  --notes-glow: #f5dce5;
  --action-bg: #76263e;
  --action-hover: #622239;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-text-size-adjust: 100%; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, textarea, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(a, button, input, textarea):focus-visible { outline: 2px solid #a9506b; outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.12; font-weight: 720; letter-spacing: -.065em; }
.container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; display: inline-block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}
.header-inner { min-height: 53px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark { width: fit-content; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.2; font-weight: 720; white-space: nowrap; }
.brand-icon { color: var(--accent); }
.brand-icon .icon { width: 16px; height: 16px; fill: currentColor; stroke-width: 1; }
nav { display: flex; justify-content: center; gap: clamp(12px, 2.6vw, 38px); }
nav a { position: relative; display: grid; place-items: center; min-height: 52px; color: var(--muted); font-size: 13px; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--accent-dark); }
nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--accent); }
.header-edition { justify-self: end; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .22em; white-space: nowrap; }

.hero { position: relative; isolation: isolate; min-height: clamp(680px, 54vw, 830px); overflow: hidden; background: rgb(var(--hero-rgb)); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(48px, 5.9vw, 88px); text-align: center; }
.hero-label, .eyebrow { color: var(--accent); font-size: 11px; font-weight: 720; letter-spacing: .22em; }
h1 { margin: 11px 0 13px; font-size: clamp(47px, 7vw, 105px); line-height: 1.02; font-weight: 740; letter-spacing: -.083em; }
h1 span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: clamp(15px, 1.57vw, 22px); letter-spacing: -.015em; }
.love-counter { margin: clamp(20px, 2.5vw, 34px) auto 0; }
.counter-label { color: var(--accent-dark); font-size: 12px; font-weight: 680; letter-spacing: .12em; }
.counter-display { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 2px 19px; margin: 1px 0 8px; }
.day-count { display: flex; gap: 7px; align-items: baseline; }
.day-count strong { color: var(--accent-dark); font-size: clamp(54px, 5.9vw, 84px); line-height: .98; font-weight: 680; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.day-count span { color: var(--accent-dark); font-size: 16px; font-weight: 600; }
.small-count { display: flex; gap: 10px; }
.small-count div { display: flex; align-items: baseline; gap: 3px; color: var(--counter-ink); }
.small-count b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.small-count span { font-size: 11px; }
.counter-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 36px; color: var(--counter-ink); font-size: 12px; }
.text-button { border: 0; padding: 7px 0; color: var(--accent-dark); background: transparent; font-size: 13px; font-weight: 600; }
.text-button .icon { width: 12px; height: 12px; margin-left: 2px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-art { position: absolute; z-index: 0; inset: auto 0 0; height: 68%; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--hero-rgb)) 0%, rgb(var(--hero-rgb) / .94) 17%, rgb(var(--hero-rgb) / 0) 52%, #22131900 74%, #22131988 100%);
}
.hero-caption { position: absolute; z-index: 1; inset: auto 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: white; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #ffffff70; border-radius: 999px; background: #24151e65; font-size: 13px; font-weight: 600; transition: background .2s; }
.hero-link:hover { background: #25121bd1; }
.hero-link .icon { width: 13px; height: 13px; }
.hero-caption span { padding: 4px 9px; border-radius: 999px; background: #24151e84; font-size: 11px; letter-spacing: .08em; }

.album { padding-block: clamp(62px, 8vw, 117px) clamp(44px, 5vw, 72px); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 29px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.eyebrow span { font-variant-numeric: tabular-nums; opacity: .8; }
.eyebrow span::after { content: ""; display: inline-block; width: 16px; height: 1px; margin-left: 9px; vertical-align: middle; background: currentColor; }
.section-header p:not(.eyebrow), .section-description { color: var(--muted); margin-top: 12px; }
.soft-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; white-space: nowrap; }
.soft-badge .icon { width: 14px; height: 14px; }
.album-arrow { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border: 1px solid #ffffff75; background: #2b172170; color: white; border-radius: 50%; transition: background .2s; }
.collection-card:hover .album-arrow { background: #2b1721d4; }
.album-arrow .icon { width: 16px; height: 16px; }
.empty-album { grid-column: 1 / -1; padding: 28px; border-radius: 24px; background: var(--surface); color: var(--muted); }

.memories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.memories-grid > section { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 4vw, 55px); border-radius: 27px; }
.memories-grid h2, .notes-panel h2 { font-size: clamp(31px, 3.6vw, 53px); }
.anniversary { background: radial-gradient(ellipse at top right, #66304b 0, #351d2b 58%, #281924 100%); color: #fff5f9; }
.anniversary::before, .anniversary::after { content: ""; position: absolute; z-index: -1; top: -110px; right: -115px; width: 340px; aspect-ratio: 1; border: 1px solid #ffe7f027; border-radius: 50%; }
.anniversary::after { top: -90px; right: -95px; width: 300px; }
.anniversary .eyebrow, .anniversary .section-description, .anniversary-title p { color: #f0cadb; }
.anniversary-card { margin-top: 28px; padding-top: 20px; border-top: 1px solid #fff0f439; }
.anniversary-title { display: flex; align-items: center; gap: 11px; }
.module-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--module-bg); color: var(--accent-dark); }
.anniversary .module-icon { background: #ffecf220; color: #fff2f7; }
.module-icon .icon { width: 21px; height: 21px; }
.anniversary-title p { font-size: 12px; }
.anniversary-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 23px; }
.anniversary-count div { display: grid; text-align: center; gap: 2px; padding: 2px 3px; }
.anniversary-count div + div { border-left: 1px solid #fff0f439; }
.anniversary-count strong { font-size: clamp(27px, 3.45vw, 48px); line-height: 1.1; font-weight: 620; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.anniversary-count span { color: #f0cadb; font-size: 12px; }
.timeline { background: var(--surface); }
.timeline-preview { display: grid; justify-items: start; gap: 18px; margin-top: 27px; }
.timeline-preview > div { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-preview span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.notes { padding-block: clamp(44px, 5.5vw, 79px) clamp(64px, 8vw, 115px); }
.notes-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 74px); align-items: center; padding: clamp(25px, 5vw, 65px); border-radius: 28px; background: radial-gradient(ellipse at 0 100%, var(--notes-glow), transparent 72%), var(--notes-base); }
.notes-decoration { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 18px; border-radius: 50%; background: var(--paper); color: var(--accent-dark); }
.notes-decoration .icon { width: 22px; height: 22px; }
.notes-intro > p:last-child { color: var(--muted); margin-top: 14px; }
.notes-content form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 21px; }
label { font-weight: 650; }
.field-hint { color: var(--muted); font-size: 12px; }
textarea, input[type="date"] { width: 100%; min-width: 0; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
textarea::placeholder { color: var(--placeholder); }
.form-actions, .date-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; border: 0; border-radius: 999px; background: var(--action-bg); color: white; font-weight: 600; font-size: 13px; transition: background .2s; }
.primary-button:hover { background: var(--action-hover); }
.primary-button .icon { width: 14px; height: 14px; }
.form-status { color: var(--accent-dark); font-size: 12px; }
.form-status:not(:empty) { margin-top: 7px; }
.notes-list { list-style: none; margin: 0; padding: 0; }
.note-item { margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; }
.note-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.footer { background: var(--surface); }
.footer-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { color: var(--muted); font-size: 13px; }
.top-link { white-space: nowrap; color: var(--accent-dark); font-size: 13px; }
.top-link .icon { width: 14px; height: 14px; }

dialog { max-width: calc(100% - 32px); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 70px #2b172459; }
dialog::backdrop { background: #291824ad; backdrop-filter: blur(7px); }
.photo-dialog { width: min(860px, calc(100% - 32px)); padding: 10px; }
.photo-dialog img { width: 100%; height: auto; max-height: 70vh; max-height: 70dvh; object-fit: contain; background: var(--surface); border-radius: 16px; }
.photo-close { position: absolute; top: 16px; right: 16px; }
.photo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 3px 1px; }
.photo-info { display: grid; text-align: center; }
.photo-info span { font-size: 12px; color: var(--muted); }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--accent-dark); }
.icon-button:hover { background: var(--control-hover); }
.icon-button:disabled { opacity: .45; cursor: default; }
.date-dialog { width: 440px; padding: 26px; }
.date-dialog h2 { margin: 10px 0; font-size: 30px; }
.date-dialog > p { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.date-actions button:last-child { margin-left: auto; }

@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .header-inner { grid-template-columns: auto 1fr; }
  nav { justify-self: end; }
  .header-edition { display: none; }
  .hero { min-height: 660px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 100px; }
  .container { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr; justify-items: center; gap: 0; padding-top: 10px; }
  nav { justify-self: center; width: 100%; gap: clamp(11px, 4vw, 25px); }
  nav a { min-height: 41px; font-size: 12px; }
  .hero { min-height: 630px; }
  .hero-inner { padding-top: 42px; }
  h1 { font-size: clamp(40px, 10.8vw, 65px); margin-block: 9px 13px; }
  .hero-art { height: 60%; }
  .hero-art img { object-position: 50% 50%; }
  .hero-caption { bottom: 18px; }
  .section-header { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .album-arrow { width: 28px; height: 28px; }
  .album-arrow .icon { width: 12px; height: 12px; }
  .memories-grid, .notes-panel { grid-template-columns: 1fr; }
  .memories-grid > section, .notes-panel { border-radius: 22px; }
  .notes-content form { padding: 15px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; padding-block: 15px; gap: 8px; }
  .footer p { grid-row: 2; }
  .top-link { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

[data-parallax] > img { transform: translateY(var(--drift, 0px)) scale(1.035); }
[data-reveal] { transition: transform .72s cubic-bezier(.22,.68,.18,1), opacity .66s ease; }
[data-reveal].reveal-pending:not(:focus-within) { opacity: .06; transform: translateY(30px); }

.collection { margin-top: 35px; }
.collection + .collection { margin-top: 48px; }
.collection-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 15px; }
.collection-label { font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--accent); }
.collection-head h3 { margin: 2px 0 0; font-size: clamp(23px, 3vw, 35px); line-height: 1.24; letter-spacing: -.04em; }
.collection-controls { display: flex; gap: 7px; }
.collection-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(215px, 30%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  padding: 5px 4px 12px;
  margin-inline: -4px;
  scroll-padding-inline: 4px;
}
.collection-rail-wide { grid-auto-columns: calc((100% - 14px) / 2); }
.collection-card { display: block; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.03; border-radius: 22px; scroll-snap-align: start; background: #392831; color: white; }
.collection-rail-wide .collection-card { aspect-ratio: 1.68; }
.collection-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.collection-card:hover img { transform: scale(1.055); }
.collection-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(#20101963, transparent 28%, #27192308 47%, #211720e3); }
.collection-card-head { position: absolute; top: 17px; left: 18px; color: #fff0f6; font-size: 10px; font-weight: 650; letter-spacing: .17em; }
.collection-card-text { position: absolute; left: 18px; bottom: 17px; display: grid; }
.collection-card-text strong { font-size: clamp(19px, 2.3vw, 29px); line-height: 1.2; letter-spacing: -.055em; }
.collection-card-text small { margin-top: 5px; color: #ffeaf3; font-size: 11px; }
.collection-card .album-arrow { position: absolute; right: 14px; bottom: 15px; }

.chapter-page { --chapter-nav-height: 92px; }
.chapter-header { position: sticky; z-index: 4; top: 0; background: var(--header-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.chapter-global, .chapter-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chapter-global { min-height: 40px; border-bottom: 1px solid var(--line); }
.chapter-return { font-size: 12px; color: var(--accent-dark); white-space: nowrap; }
.chapter-return .icon { width: 13px; height: 13px; }
.chapter-navigation { min-height: 51px; }
.chapter-navigation strong { font-size: 15px; white-space: nowrap; }
.chapter-navigation nav a { min-height: 49px; }
.chapter-page :is(#story, #photos) { scroll-margin-top: 35px; }
.chapter-hero { position: relative; isolation: isolate; min-height: clamp(510px, 72svh, 810px); display: grid; place-items: end center; color: #fff5fa; background: #2b1d27; overflow: hidden; }
.chapter-hero-media, .chapter-hero-media::after { position: absolute; inset: 0; }
.chapter-hero-media { z-index: -1; }
.chapter-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.chapter-hero-media::after { content: ""; background: linear-gradient(180deg, #20131d33 0%, #20131d11 35%, #20131d9c 70%, #201820 100%); }
.chapter-hero-copy { padding-block: 76px 58px; text-align: center; }
.chapter-hero h1 { margin: 10px 0 12px; font-size: clamp(47px, 8.4vw, 113px); }
.chapter-hero .hero-label, .chapter-hero-copy > p:last-of-type { color: #ffdfed; }
.chapter-hero-copy > a { margin-top: 22px; }
.chapter-story { background: #201820; color: #fff7fb; }
.story-intro { padding-block: clamp(62px, 9vw, 125px) 34px; }
.story-intro .eyebrow { color: #edb7d0; }
.story-intro > p:last-child { margin-top: 13px; color: #e5cdd9; }
.story-track { min-height: var(--story-length, 240svh); }
.story-pin { position: sticky; top: var(--chapter-nav-height); height: calc(100svh - var(--chapter-nav-height)); display: grid; grid-template-rows: minmax(0, 1fr) 3px; gap: 8px; padding-bottom: 11px; }
.story-stage { position: relative; overflow: hidden; background: #130f16; clip-path: inset(0 var(--story-inset, 7%) round var(--story-radius, 24px)); }
.story-frame { position: absolute; inset: 0; overflow: hidden; opacity: var(--frame-opacity, 0); background: #130f16; }
.story-frame:first-child { opacity: 1; --caption-visible: visible; }
.story-frame img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: scale(var(--frame-scale, 1)); }
.story-frame .story-ambient { position: absolute; inset: 0; object-fit: cover; transform: scale(1.13); filter: blur(35px) brightness(.45); }
.story-frame figcaption { visibility: var(--caption-visible, hidden); position: absolute; left: clamp(16px, 4vw, 60px); bottom: 20px; padding: 6px 11px; border-radius: 999px; background: #211720e8; color: #fff5fa; font-size: 12px; letter-spacing: .055em; }
.story-progress { width: min(260px, 56%); height: 3px; justify-self: center; background: #ffffff30; overflow: hidden; border-radius: 9px; }
.story-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #ffb9d6; }
.chapter-photos { padding-block: clamp(65px, 8vw, 110px) 40px; }
.chapter-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chapter-photo { padding: 0; border: 0; overflow: hidden; border-radius: 16px; background: var(--surface); }
.chapter-photo img { width: 100%; aspect-ratio: 1.16; object-fit: cover; transition: transform .32s ease; }
.chapter-photo:hover img { transform: scale(1.045); }
.album-cover-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.cover-menu { position: fixed; inset: auto; margin: 0; min-width: 148px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 28px #25152230; }
.cover-menu button { display: block; width: 100%; border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; text-align: left; font-size: 14px; }
.cover-menu button:is(:hover, :focus-visible) { background: var(--control-hover); outline-offset: -2px; }
.cover-toast:not(:empty) { position: fixed; z-index: 6; right: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 12px; background: var(--action-bg); color: #fff; font-size: 14px; }
.photo-cover-button { display: block; margin: 0 auto; }
.cover-feedback:not(:empty) { padding-bottom: 5px; text-align: center; color: var(--accent-dark); font-size: 13px; }
.load-photos { display: flex; margin: 25px auto 0; }
.chapter-more { padding: 22px 0 78px; }
.chapter-more h2 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 44px); }
.chapter-more-links { display: flex; flex-wrap: wrap; gap: 9px; }
.chapter-more-links a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px; background: var(--surface); color: var(--accent-dark); font-weight: 650; }
.chapter-more-links a:hover { background: var(--control-hover); }
.chapter-more-links .icon { width: 15px; height: 15px; }
.chapter-unavailable { padding-block: 82px; }
.chapter-unavailable h1 { font-size: clamp(32px, 6vw, 64px); }

@media (max-width: 620px) {
  .collection { margin-top: 27px; }
  .collection + .collection { margin-top: 33px; }
  .collection-rail { grid-auto-columns: max(180px, 74%); gap: 10px; }
  .collection-rail-wide { grid-auto-columns: calc((100% - 10px) / 2); }
  .collection-rail-wide .collection-card { aspect-ratio: .96; }
  .collection-card-head { top: 12px; left: 11px; }
  .collection-card-text { left: 11px; bottom: 13px; }
  .collection-card .album-arrow { right: 9px; bottom: 11px; }
  .collection-rail-wide .collection-card .album-arrow { top: 9px; bottom: auto; }
  .chapter-page :is(#story, #photos) { scroll-margin-top: 5px; }
  .chapter-navigation nav { width: auto; gap: 12px; }
  .chapter-hero { min-height: 66svh; }
  .chapter-hero-copy { padding-bottom: 35px; }
  .story-pin { height: min(70svh, 560px); }
  .story-frame figcaption { bottom: 12px; }
  .chapter-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .chapter-photo { border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] > img, .story-frame img { transform: none; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
  .story-track, .story-pin { min-height: 0; height: auto; }
  .story-pin { display: block; position: static; padding: 0 0 22px; }
  .story-stage { display: grid; gap: 9px; clip-path: none; }
  .story-frame { position: relative; opacity: 1; }
  .story-frame img { height: auto; max-height: 72svh; }
  .story-frame .story-ambient { display: none; }
  .story-frame figcaption { visibility: visible; }
  .story-progress { display: none; }
}

.collection-rail-single { grid-auto-columns: 100%; }
.collection-rail-single .collection-card { aspect-ratio: auto; height: clamp(180px, 23vw, 300px); }
.collection-rail-single img { object-position: center 57%; }

.timeline-content { width: min(870px, calc(100% - 48px)); margin-inline: auto; }
.timeline-hero { padding: clamp(60px, 9vw, 116px) 0 clamp(40px, 6vw, 76px); background: radial-gradient(ellipse at top, var(--notes-glow), rgb(var(--hero-rgb)) 70%); }
.timeline-hero h1 { margin-block: 12px; font-size: clamp(44px, 7.6vw, 96px); }
.timeline-hero p:not(.hero-label) { color: var(--muted); font-size: clamp(16px, 2.5vw, 23px); }
.timeline-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.timeline-jumps a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--accent-dark); font-size: 13px; }
.timeline-jumps a:hover { background: var(--control-hover); }
.timeline-records { padding-block: clamp(40px, 6vw, 75px) 72px; }
.timeline-group + .timeline-group { margin-top: 38px; padding-top: 31px; border-top: 1px solid var(--line); }
.timeline-group-head h2 { font-size: clamp(28px, 4.7vw, 50px); }
.timeline-group-label h2 { color: var(--accent-dark); font-size: 14px; letter-spacing: .12em; }
.timeline-list { list-style: none; padding: 0; margin: 19px 0 0 10px; }
.timeline-item { position: relative; border-left: 1px solid var(--line); padding: 0 0 16px 25px; }
.timeline-item::before { position: absolute; content: ""; left: -5px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline-item:last-child::after { position: absolute; content: ""; left: -1px; top: 0; width: 1px; height: 15px; background: var(--line); }
.timeline-major:last-child::after { height: 22px; }
.timeline-event { padding: 5px 0; }
.timeline-date { color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.timeline-item h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.5; font-weight: 620; overflow-wrap: anywhere; }
.timeline-major::before { left: -8px; top: 22px; width: 15px; height: 15px; box-shadow: 0 0 0 5px var(--module-bg); }
.timeline-major .timeline-event { padding: clamp(15px, 3vw, 26px); border-radius: 19px; background: linear-gradient(110deg, var(--module-bg), var(--surface)); }
.timeline-major h3 { font-size: clamp(24px, 4vw, 37px); font-weight: 730; letter-spacing: -.045em; }
.timeline-album-link { display: inline-block; margin-top: 9px; color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.timeline-album-link:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1a161c;
    --ink: #fff6fa;
    --muted: #d0beca;
    --accent: #f0a8c3;
    --accent-dark: #ffc4dc;
    --line: #493743;
    --surface: #251e27;
    --hero-rgb: 30 23 33;
    --header-bg: #1a161cf5;
    --counter-ink: #f5dce8;
    --field-bg: #251e27;
    --placeholder: #bfaab7;
    --control-hover: #3e2a38;
    --module-bg: #3c2735;
    --notes-base: #281f2a;
    --notes-glow: #432b3b;
    --action-bg: #983955;
    --action-hover: #ad4261;
  }
}
