:root {
  --ink: #0b1119;
  --ink-soft: #111c29;
  --paper: #f4f7f8;
  --white: #ffffff;
  --cyan: #4ad8eb;
  --red: #d64a59;
  --gold: #efbd63;
  --muted: #9cafbd;
  --line: rgba(255, 255, 255, 0.14);
  --radius: 1.4rem;
  --max: 78rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; background: var(--white); color: var(--ink); padding: .8rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; background: transparent; z-index: 80; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--gold), var(--red)); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 92rem;
  margin: auto;
  padding: 1.4rem 4vw;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.wordmark { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; font-weight: 650; line-height: 1.1; }
.wordmark small { display: block; margin-bottom: .3rem; color: rgba(255,255,255,.7); font-size: .67rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.wing-mark { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: var(--cyan); font-size: 1.2rem; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { color: white; text-decoration: none; font-size: .88rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.site-header nav a:hover { color: var(--cyan); }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: white; background: transparent; padding: .55rem 1rem; }

.hero { position: relative; display: grid; align-items: end; min-height: 100svh; overflow: hidden; }
.hero-photo, .hero-shade, .snow { position: absolute; inset: 0; }
.hero-photo { background: center 38% / cover no-repeat; transform: scale(1.015); }
.hero-shade { background: linear-gradient(90deg, rgba(5,10,16,.9) 0%, rgba(5,10,16,.58) 48%, rgba(5,10,16,.14) 78%), linear-gradient(0deg, var(--ink) 0%, transparent 28%); }
.snow { opacity: .7; background-image: radial-gradient(circle at 16% 18%, rgba(255,255,255,.9) 0 1px, transparent 2px), radial-gradient(circle at 65% 12%, rgba(255,255,255,.65) 0 1px, transparent 2px), radial-gradient(circle at 88% 38%, rgba(255,255,255,.75) 0 1.5px, transparent 2.5px), radial-gradient(circle at 36% 58%, rgba(255,255,255,.55) 0 1px, transparent 2px); background-size: 11rem 13rem, 15rem 17rem, 18rem 19rem, 21rem 16rem; animation: snow 22s linear infinite; }
@keyframes snow { to { background-position: 2rem 13rem, -3rem 17rem, 1rem 19rem, -2rem 16rem; } }
.hero-content { position: relative; z-index: 2; width: min(92%, var(--max)); margin: 0 auto; padding: 13rem 0 11vh; }
.eyebrow { margin: 0 0 1rem; color: var(--cyan); font-size: .78rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, blockquote { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; }
h1 { max-width: 13ch; margin: 0; font-size: clamp(3.7rem, 8.3vw, 8.5rem); line-height: .9; }
h1 em { color: var(--gold); font-size: .54em; font-weight: 400; }
.hero-deck { max-width: 42rem; margin: 2rem 0 2.2rem; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; border: 1px solid var(--cyan); border-radius: .35rem; padding: .75rem 1.25rem; color: var(--paper); background: transparent; cursor: pointer; font-weight: 750; text-decoration: none; }
.button:hover { color: var(--ink); background: var(--cyan); }
.button-bright { color: var(--ink); background: var(--cyan); }
.button-bright:hover { background: white; border-color: white; }
.scroll-cue { position: absolute; right: 4vw; bottom: 2rem; z-index: 2; margin: 0; color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; }

.intro, .section-heading { width: min(92%, var(--max)); margin: auto; }
.intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 5vw; align-items: end; padding: clamp(6rem, 11vw, 11rem) 0; }
h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.3rem); line-height: 1.02; }
.intro-copy { margin: 0; color: #bdd0dc; font-size: 1.08rem; }

.story-sections { border-top: 1px solid var(--line); }
.story-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 1fr); min-height: 46rem; border-bottom: 1px solid var(--line); }
.story-panel:nth-child(even) .story-image { order: 2; }
.story-image { min-height: 34rem; background: center / cover no-repeat; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 8rem); background: var(--ink-soft); }
.story-number { color: var(--gold); font-family: Georgia, serif; font-size: 3.7rem; line-height: 1; }
.story-copy h2 { margin: .7rem 0 1.5rem; font-size: clamp(2.5rem, 4.5vw, 4.8rem); }
.story-copy p { max-width: 37rem; margin: 0; color: #b9cad6; font-size: 1.04rem; }

.faith-band { padding: clamp(6rem, 12vw, 12rem) max(4vw, calc((100vw - var(--max))/2)); text-align: center; background: radial-gradient(circle at top, rgba(74,216,235,.13), transparent 45%), #0f1722; }
.faith-band blockquote { max-width: 24ch; margin: 1rem auto 2rem; color: white; font-size: clamp(2.35rem, 5vw, 5.2rem); line-height: 1.08; }
.faith-band > p:last-child { max-width: 50rem; margin: auto; color: #afc3d0; }

.gallery-section { padding: clamp(6rem, 10vw, 10rem) 0; }
.section-heading { display: grid; grid-template-columns: 1fr 22rem; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.section-heading > p { margin: 0; color: #aebfca; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; width: min(96%, 96rem); margin: auto; }
.photo-button { position: relative; display: block; min-height: 15rem; overflow: hidden; border: 0; padding: 0; background: #172330; cursor: zoom-in; }
.photo-button:nth-child(9n+1), .photo-button:nth-child(9n+7) { grid-column: span 2; grid-row: span 2; }
.photo-button img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.photo-button:hover img { transform: scale(1.035); }
.photo-button[hidden] { display: none; }
.gallery-more { display: flex; margin: 2.5rem auto 0; }

.letter-section { padding: clamp(5rem, 10vw, 10rem) 4vw; background: var(--paper); color: #1a2630; }
.letter-card { max-width: 68rem; margin: auto; }
.letter-heading { max-width: 50rem; margin-bottom: 3rem; }
.letter-heading .eyebrow { color: #217b8c; }
.letter-heading > p:last-child { color: #526574; }
details { border-top: 1px solid #c6d2d9; border-bottom: 1px solid #c6d2d9; }
summary { padding: 1.25rem 0; color: #12212b; cursor: pointer; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: #217b8c; font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "−"; }
.full-letter { padding: 1.5rem 0 4rem; columns: 2 24rem; column-gap: 4rem; }
.full-letter p { margin: 0 0 1.3rem; break-inside: avoid; color: #334a59; }
.full-letter p:first-child { font-family: Georgia, serif; font-size: 1.55rem; color: #10212c; }

.closing { display: grid; grid-template-columns: 1fr auto; gap: 6rem; align-items: center; width: min(92%, var(--max)); margin: auto; padding: clamp(7rem, 12vw, 13rem) 0; }
.closing h2 { max-width: 20ch; font-size: clamp(2.5rem, 4.4vw, 4.8rem); }
.signature { margin-top: 2rem; color: var(--gold); font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: clamp(1.9rem, 4vw, 3.5rem); }
.ornament { display: grid; place-items: center; width: clamp(10rem, 20vw, 16rem); aspect-ratio: 1; border: 1px solid rgba(239,189,99,.55); border-radius: 50%; box-shadow: inset 0 0 0 1.1rem var(--ink), inset 0 0 0 1.15rem rgba(239,189,99,.35); color: var(--gold); font-family: Georgia, serif; font-size: 2rem; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 4vw; border-top: 1px solid var(--line); color: #91a5b2; font-size: .82rem; }
footer p { margin: 0; }
footer a:hover { color: var(--cyan); }

.lightbox { position: fixed; width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; border: 0; padding: 0; background: rgba(4,8,13,.95); color: white; }
.lightbox::backdrop { background: rgba(4,8,13,.95); }
.lightbox[open] { display: grid; grid-template-columns: 5rem 1fr 5rem; place-items: center; }
.lightbox figure { display: grid; place-items: center; gap: 1rem; margin: 4rem; max-width: calc(100vw - 12rem); max-height: calc(100vh - 8rem); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; }
.lightbox figcaption { color: #b5c5cf; font-size: .82rem; }
.lightbox button { border: 0; color: white; background: transparent; cursor: pointer; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; padding: .8rem; }
.lightbox-nav { width: 100%; height: 100%; font-size: 0; }
.lightbox-nav::after { content: "‹"; font-size: 3rem; }
.lightbox-nav.next::after { content: "›"; }

@media (max-width: 800px) {
  .site-header {
    position: relative;
    inset: auto;
    align-items: flex-start;
    max-width: none;
    background: var(--ink);
  }
  .site-header nav { position: absolute; top: 5.8rem; left: 4vw; right: 4vw; display: none; flex-direction: column; gap: .8rem; padding: 1.2rem; background: rgba(11,17,25,.96); border: 1px solid var(--line); }
  .site-header.nav-open nav { display: flex; }
  .menu-button { display: block; }
  .hero { display: block; min-height: 100svh; }
  .hero-photo {
    inset: 0 0 auto;
    height: 66.667vw;
    background-color: var(--ink);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    transform: none;
  }
  .hero-shade {
    background: linear-gradient(180deg, rgba(5,10,16,.28) 0, rgba(5,10,16,.08) 44vw, var(--ink) 70vw, var(--ink) 100%);
  }
  .hero-content { padding: calc(66.667vw + 4.5rem) 0 7rem; }
  .intro, .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .story-panel { grid-template-columns: 1fr; min-height: 0; }
  .story-panel:nth-child(even) .story-image { order: 0; }
  .story-image { min-height: 60vw; }
  .story-copy { padding: 4rem 6vw 5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-button { min-height: 12rem; }
  .photo-button:nth-child(9n+1), .photo-button:nth-child(9n+7) { grid-column: auto; grid-row: auto; }
  .photo-button:nth-child(7n+1) { grid-column: span 2; min-height: 22rem; }
  .full-letter { columns: 1; }
  .closing { grid-template-columns: 1fr; }
  .ornament { justify-self: center; }
  footer { flex-direction: column; }
  .lightbox[open] { grid-template-columns: 3rem 1fr 3rem; }
  .lightbox figure { margin: 3.5rem .4rem; max-width: calc(100vw - 7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
