@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');

:root {
  --ink: #2c241d;
  --ink-soft: #60554b;
  --cream: #f5f0e7;
  --paper: #fffdf8;
  --warm: #e8ddcc;
  --rust: #a84e2b;
  --teal: #0d4950;
  --teal-light: #72d3d5;
  --gold: #d6ad67;
  --white: #fff;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(44, 36, 29, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, audio { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; background: white; padding: .7rem 1rem; border-radius: 0 0 .5rem .5rem; }
.skip-link:focus { top: 0; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem); color: white;
  transition: background .35s, color .35s, padding .35s, box-shadow .35s;
}
.site-header.scrolled { background: rgba(255,253,248,.94); color: var(--ink); padding-block: .65rem; box-shadow: 0 1px 0 rgba(44,36,29,.1); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: .8rem; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; height: 1px; background: currentColor; transition: right .2s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 2.8rem; height: 2.8rem; border: 0; background: transparent; color: currentColor; padding: .7rem; }
.menu-button > span:not(.sr-only) { display: block; height: 1px; margin: .32rem 0; background: currentColor; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: white; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; animation: hero-in 2s ease-out both; }
@keyframes hero-in { from { transform: scale(1.05); filter: saturate(.7); } to { transform: scale(1); filter: saturate(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,20,17,.78) 0%, rgba(24,20,17,.3) 50%, rgba(24,20,17,.05) 75%), linear-gradient(0deg, rgba(24,20,17,.45), transparent 50%); }
.hero-content { position: relative; z-index: 1; width: min(760px, 90vw); padding: 9rem clamp(1.5rem, 8vw, 8rem) 5rem; }
.eyebrow, .chapter-number { margin: 0 0 1.2rem; font-size: .73rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(4.2rem, 10vw, 9rem); font-weight: 400; line-height: .78; letter-spacing: -.04em; text-wrap: balance; }
.hero h1 em { font-weight: 400; color: #f0c77e; }
.hero-deck { max-width: 42rem; margin: 2.3rem 0 2rem; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; }
.scroll-cue { display: inline-flex; align-items: center; gap: .8rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.scroll-cue span:last-child { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; transition: transform .2s, background .2s; }
.scroll-cue:hover span:last-child { transform: translateY(.25rem); background: rgba(255,255,255,.14); }

.chapter { padding: clamp(5rem, 9vw, 9rem) clamp(1.4rem, 7vw, 7rem); }
.section-dark { color: var(--cream); background: var(--ink); }
.section-warm { background: var(--cream); }
.section-teal { color: white; background: var(--teal); }
.chapter-heading { max-width: 820px; margin: 0 0 4rem; }
.chapter-heading.centered { margin-inline: auto; text-align: center; }
h2 { margin: 0 0 1.6rem; font-family: var(--serif); font-size: clamp(3rem, 6vw, 6.5rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2.15rem); line-height: 1.45; }
.section-close { max-width: 980px; margin: 5rem auto 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.35; text-align: center; }

.prologue { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(340px, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.prologue-image { position: relative; }
.prologue-image img { aspect-ratio: 4/5; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.photo-date { position: absolute; right: -1.25rem; bottom: 2rem; padding: .45rem .9rem; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.prologue-copy { max-width: 670px; }

.arrival-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.arrival-main { position: sticky; top: 6rem; margin: 0; }
.arrival-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; }
figcaption { margin-top: .65rem; font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.arrival-copy p:first-child { margin-top: 0; }
.pull-quote { margin: 2.8rem 0; padding: 1.5rem 0 1.5rem 2rem; border-left: 1px solid var(--rust); }
.pull-quote span { float: left; margin: -.6rem .7rem 0 0; color: var(--rust); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.pull-quote p { margin: 0; font-family: var(--serif); font-size: 2rem; }
.early-filmstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 7rem; }
.early-filmstrip figure { margin: 0; }
.early-filmstrip img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

.home-mosaic { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.home-mosaic figure { margin: 0; }
.home-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-tall { grid-column: 1 / span 5; grid-row: span 2; }
.tile-tall img { aspect-ratio: 3/4; }
.home-copy { grid-column: 7 / span 5; padding: 2rem 0; }
.home-mosaic .tile:not(.tile-tall):not(.tile-wide) { grid-column: span 4; }
.home-mosaic .tile:not(.tile-tall):not(.tile-wide) img { aspect-ratio: 1; }
.home-mosaic .tile-wide { grid-column: span 8; }
.tile-wide img { aspect-ratio: 16/9; }

.family-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.family-copy { max-width: 650px; }
.family-feature { margin: 0; }
.family-feature img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.family-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 5rem; }
.family-cards figure { margin: 0; }
.family-cards img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.shore-section { padding-inline: 0; }
.shore-intro { max-width: 860px; margin-left: clamp(1.4rem, 7vw, 7rem); padding-right: 1.4rem; }
.shore-wide { margin: 4rem 0 0; }
.shore-wide img { width: 100%; height: min(75vh, 820px); object-fit: cover; }
.shore-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); padding: 5rem clamp(1.4rem, 7vw, 7rem) 0; }
.shore-copy { max-width: 650px; }
.shore-postcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.shore-postcards figure { margin: 0; }
.shore-postcards img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.section-dark figcaption { color: #cbbfb1; }

.ordinary-grid { max-width: 1250px; margin: auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: start; }
.ordinary-grid figure { margin: 0; }
.ordinary-grid img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card { grid-column: 1 / span 5; }
.portrait-card img { aspect-ratio: 16/10; }
.ordinary-copy { grid-column: 7 / span 6; }
.food-card { grid-column: 1 / span 4; margin-top: 3rem !important; }
.food-card img { aspect-ratio: 4/3; }
.couch-card { grid-column: 5 / span 5; margin-top: 7rem !important; }
.couch-card img { aspect-ratio: 16/10; }
.stairs-card { grid-column: 10 / span 3; }
.stairs-card img { aspect-ratio: 3/4; }

.logo-section { min-height: 90vh; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: clamp(5rem, 9vw, 9rem) clamp(1.4rem, 9vw, 9rem); }
.logo-portrait img { width: min(520px, 100%); aspect-ratio: 3/4; object-fit: cover; object-position: center top; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.logo-copy { max-width: 700px; }
.logo-copy .chapter-number { color: var(--teal-light); }
.logo-art { width: min(340px, 65%); margin: 2.5rem auto 0; filter: drop-shadow(0 20px 20px rgba(0,0,0,.2)); }

.song-section { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 6rem 1.4rem; overflow: hidden; }
.song-backdrop { position: absolute; inset: 0; }
.song-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.75); transform: scale(1.03); }
.song-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(39,32,25,.08), rgba(39,32,25,.78)); }
.song-panel { position: relative; z-index: 1; width: min(780px, 94vw); max-height: 82vh; overflow-y: auto; padding: clamp(2rem, 5vw, 4.5rem); color: white; background: rgba(35,29,24,.82); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.song-panel h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.song-note { margin-top: -1rem; color: #d8c9b7; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.song-panel audio { width: 100%; margin: 1.5rem 0; accent-color: var(--gold); }
.lyrics-toggle { width: 100%; display: flex; justify-content: space-between; padding: 1rem 0; border: 0; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); color: white; background: transparent; text-align: left; cursor: pointer; }
.lyrics { padding-top: 1rem; columns: 2; column-gap: 3rem; }
.lyrics p { break-inside: avoid; margin: 0 0 2rem; color: #eee5db; line-height: 1.65; }
.lyrics strong { color: var(--gold); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

.seasons-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.seasons-row figure { margin: 0; }
.seasons-row img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.closing-copy { max-width: 820px; margin: 6rem auto 0; text-align: center; }
.closing-copy > p:not(.final-line) { text-align: left; }
.final-line { margin-top: 4rem; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.2; }
.final-line strong { color: var(--rust); font-weight: 400; }

.give-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; background: #d9c4a4; }
.give-image img { width: 100%; height: 100%; min-height: 70vh; object-fit: cover; }
.give-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem); }
.give-copy h2 { font-size: clamp(3rem, 5.3vw, 5.8rem); }
.give-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.5rem; padding: .8rem 1.3rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.button-primary { color: white; background: var(--rust); transition: transform .2s, background .2s; }
.button-primary:hover { transform: translateY(-2px); background: #83391e; }
.text-link { font-size: .82rem; font-weight: 600; text-underline-offset: .25rem; }
.trust-note { margin-top: 2rem; font-size: .72rem; line-height: 1.5; opacity: .72; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1.4rem, 5vw, 5rem); color: #d7cdc1; background: var(--ink); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: white; }
.site-footer p { margin: 0; }

.photo-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.photo-button img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.photo-button:hover img, .photo-button:focus-visible img { transform: scale(1.025); filter: saturate(1.05); }
.photo-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16,13,11,.97); color: white; }
.lightbox[open] { display: grid; grid-template-columns: 5rem 1fr 5rem; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.75); }
.lightbox figure { max-width: calc(100vw - 12rem); max-height: calc(100vh - 8rem); margin: 0; display: grid; place-items: center; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; }
.lightbox figcaption { color: #ddd3c8; text-align: center; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-arrow { width: 3.2rem; height: 3.2rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: white; background: transparent; font-size: 2rem; cursor: pointer; }
.lightbox-controls { grid-column: 1 / -1; display: flex; gap: 1.5rem; align-items: center; padding: 1rem 0 1.4rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-controls button { border: 0; color: white; background: transparent; cursor: pointer; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid rgba(44,36,29,.1); }
  .prologue, .arrival-grid, .family-layout, .shore-story, .logo-section, .give-section { grid-template-columns: 1fr; }
  .arrival-main { position: static; }
  .home-copy { grid-column: 6 / span 7; }
  .family-cards { grid-template-columns: repeat(3, 1fr); }
  .ordinary-copy { grid-column: 6 / span 7; }
  .food-card { grid-column: 1 / span 5; }
  .couch-card { grid-column: 6 / span 7; margin-top: 3rem !important; }
  .stairs-card { grid-column: 3 / span 5; }
  .lyrics { columns: 1; }
  .seasons-row { grid-template-columns: repeat(5, 220px); overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
  .seasons-row figure { scroll-snap-align: start; }
  .give-image img { min-height: 55vh; max-height: 70vh; }
}

@media (max-width: 620px) {
  .site-header { padding: .75rem 1rem; }
  .brand span:last-child { display: none; }
  .hero-content { padding-inline: 1.4rem; }
  .hero h1 { font-size: clamp(3.8rem, 21vw, 6rem); }
  .hero-shade { background: linear-gradient(0deg, rgba(24,20,17,.8), rgba(24,20,17,.1) 70%); }
  .prologue { padding-top: 6rem; }
  .photo-date { right: -.3rem; }
  .early-filmstrip { grid-template-columns: 1fr; }
  .home-mosaic { display: block; }
  .home-mosaic > * { margin-bottom: 2rem !important; }
  .home-copy { padding: 1rem 0; }
  .family-cards { grid-template-columns: 1fr 1fr; }
  .family-cards figure:last-child { grid-column: 1 / -1; width: 60%; justify-self: center; }
  .shore-postcards { grid-template-columns: 1fr; }
  .ordinary-grid { display: block; }
  .ordinary-grid > * { margin: 0 0 2rem !important; }
  .logo-section { min-height: 0; }
  .logo-portrait img { margin: auto; }
  .song-panel { max-height: none; }
  .give-copy { padding: 4rem 1.4rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .lightbox[open] { grid-template-columns: 3.5rem 1fr 3.5rem; }
  .lightbox figure { max-width: calc(100vw - 7rem); }
  .lightbox-arrow { width: 2.6rem; height: 2.6rem; }
}
