@font-face {
  font-family: Geist;
  src: url("fonts/geist-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("fonts/geist-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("fonts/geist-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #faf8f2;
  --paper-deep: #f1ede4;
  --ink: #111111;
  --muted: #56544f;
  --rule: #ded9ce;
  --slate: #334e55;
  --coral: #a34d3d;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
button, a { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: .65rem 1rem;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.reading-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
}

.hero {
  width: min(100%, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.hero-copy { align-self: center; }
.eyebrow,
.chapter-number,
.chapter-date,
.milestone-list span {
  font-family: "Geist Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 1.4rem; color: var(--coral); }
h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .9;
}
.hero-lede {
  max-width: 32rem;
  margin: clamp(1.8rem, 4vw, 3.5rem) 0 2rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}
.hero-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin: 0;
  font-weight: 500;
}
.hero-byline span { color: var(--muted); }
.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.hero-media img {
  position: relative;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: .68rem;
  line-height: 1.45;
}

.journey { width: 100%; }
.chapter {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 10rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.chapter-copy { max-width: 34rem; }
.chapter-number { margin: 0 0 .4rem; color: var(--slate); }
.chapter-date { margin: 0 0 2rem; color: var(--coral); }
h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.chapter-copy > p:not(.chapter-number, .chapter-date) {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.chapter-media img {
  max-height: 78vh;
  object-fit: cover;
  background: var(--paper-deep);
}
.illustration-media img { aspect-ratio: 3 / 2; object-fit: cover; }

.media-stack,
.gallery-grid { display: grid; gap: 1.5rem; }
.media-stack figure,
.gallery-grid figure { min-width: 0; }
.media-stack img { aspect-ratio: 4 / 5; }
.media-stack figure:nth-child(even) img { aspect-ratio: 4 / 3; }
.baptism-stack figure:nth-child(even) img { aspect-ratio: 592 / 1050; }

.gallery-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.gallery-grid figure:first-child { grid-row: span 2; }
.gallery-grid figure:first-child img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-grid figure:not(:first-child) img { aspect-ratio: 4 / 3; object-fit: cover; }

.chapter-milestones { align-items: center; }
.milestone-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.milestone-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.milestone-list span { color: var(--coral); }
.milestone-list strong { font-size: 1.08rem; font-weight: 500; }

.closing-media img { aspect-ratio: 3 / 4; object-fit: cover; }
.closing-cta {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 14vw, 12rem) var(--gutter);
  text-align: center;
}
.closing-cta h2 { max-width: 17ch; margin-inline: auto; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.5rem;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--slate); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--paper-deep); }
.privacy-note {
  max-width: 44rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: .82rem;
}
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-family: "Geist Mono", monospace;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
#journeyComplete { width: 1px; height: 1px; }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .motion-ok .chapter-stacked { min-height: 210vh; }
  .motion-ok .chapter-long { min-height: 270vh; }
  .motion-ok .chapter-stacked .chapter-copy {
    position: sticky;
    top: 18vh;
  }
  .motion-ok .media-stack {
    position: sticky;
    top: 10vh;
    height: 80vh;
    display: block;
  }
  .motion-ok .media-stack figure {
    position: absolute;
    inset: 0;
    opacity: 0;
  }
  .motion-ok .media-stack figure:first-child { opacity: 1; }
  .motion-ok .media-stack img {
    width: 100%;
    height: calc(100% - 2rem);
    max-height: none;
    object-fit: cover;
  }
  .motion-ok .chapter-copy > * { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 899px) {
  html { scroll-behavior: auto; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }
  h1 { font-size: clamp(3.4rem, 17vw, 6rem); }
  .hero-media { margin-top: 1rem; }
  .chapter {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .chapter-media { order: -1; }
  .chapter-copy { max-width: 42rem; }
  .media-stack { grid-template-columns: 1fr; }
  .media-stack img { max-height: none; }
}

@media (max-width: 620px) {
  .hero { padding-inline: 1rem; }
  .hero-media::before { display: none; }
  .chapter { padding-inline: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child { grid-row: auto; }
  .milestone-list li { grid-template-columns: 1fr; gap: .45rem; }
  .site-footer { flex-direction: column; }
  .button { width: 100%; }
}

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