:root {
  --paper: #f4efe7;
  --ink: #343b32;
  --muted: #797a6b;
  --line: #d8d1c4;
  --accent: #bd725c;
  --sage: #e6e8de;
  --gutter: clamp(18px, 5vw, 76px);
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

figure {
  margin: 0;
}

.mono,
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 10px;
}

.page-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.topbar {
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.08em;
}

.topbar-note {
  font: 10px var(--mono);
  letter-spacing: .05em;
  color: var(--muted);
}

.section-pad {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero {
  min-height: min(720px, calc(100svh - 64px));
  padding-top: 25px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.hero-title-wrap {
  padding: clamp(75px, 13vw, 170px) 0 35px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 15vw, 210px);
  line-height: .81;
  letter-spacing: -.105em;
  font-weight: 800;
}

.title-line {
  display: block;
}

.title-indent {
  padding-left: clamp(0px, 11vw, 160px);
  white-space: nowrap;
}

.period {
  color: var(--accent);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
}

.intro-copy {
  max-width: 780px;
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.45;
  margin: 0;
  letter-spacing: -.03em;
}

.hero-side {
  margin: 0;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

.chapter {
  padding-top: 55px;
  padding-bottom: clamp(75px, 10vw, 145px);
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 9px;
}

.chapter-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.section-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(35px, 5vw, 68px) 0 25px;
}

.section-intro h2 {
  margin: 0;
  font: 600 clamp(35px, 5vw, 65px)/1 var(--display);
  letter-spacing: -.075em;
}

.section-intro p {
  max-width: 500px;
  margin: 0;
  color: rgba(16, 18, 20, 0.78);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  letter-spacing: -.02em;
}

.story-block {
  max-width: 780px;
  margin-top: 18px;
  margin-bottom: 40px;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
}

.story-block > p {
  margin: 0 0 18px;
}

.story-block > p:last-child {
  margin-bottom: 0;
}

.story-block .eyebrow {
  margin-bottom: 12px;
}

.story-memory {
  margin-top: clamp(35px, 5vw, 65px);
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 2px solid var(--accent);
}

.story-routine {
  max-width: 900px;
  margin-top: clamp(60px, 8vw, 105px);
}

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 8px;
  column-gap: clamp(8px, 1.4vw, 18px);
  row-gap: 12px;
  align-items: start;
}

.photo-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #e7dfd2;
  grid-row-end: span var(--image-rows, 24);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.image-viewer {
  position: fixed;
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 94dvh;
  padding: 48px 24px 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

.image-viewer::backdrop {
  background: rgb(20 22 19 / 88%);
}

.image-viewer-image {
  width: 100%;
  max-height: calc(94dvh - 100px);
  object-fit: contain;
}

.image-viewer-close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 32px/1 var(--sans);
}

.moodboard-grid .photo-card:nth-child(7n + 2),
.moodboard-grid .photo-card:nth-child(7n + 5) {
  grid-column: span 2;
}

.moodboard-grid .photo-card:nth-child(11n + 4) {
  grid-column: span 2;
}

.people {
  background: var(--sage);
}

.closing {
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: 25px;
  border-top: 1px solid var(--line);
}

.closing-title {
  margin: 0 0 clamp(30px, 5vw, 65px);
  font: 600 clamp(44px, 10vw, 140px)/.9 var(--display);
  letter-spacing: -.085em;
}

.closing-copy {
  max-width: 720px;
  margin: 0 0 clamp(60px, 9vw, 110px);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
  letter-spacing: -.02em;
}

.closing-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.back-top {
  color: var(--ink);
}

.site-footer {
  padding: 16px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 1500px) {
  main {
    max-width: 1800px;
    margin: 0 auto;
  }
}

@media (max-width: 800px) {
  .moodboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 7px;
    gap: 9px;
  }

  .moodboard-grid .photo-card:nth-child(7n + 2),
  .moodboard-grid .photo-card:nth-child(7n + 5),
  .moodboard-grid .photo-card:nth-child(11n + 4) {
    grid-column: span 1;
  }

  .moodboard-grid .photo-card:nth-child(9n + 1),
  .moodboard-grid .photo-card:nth-child(9n + 6) {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 55px;
  }

  .topbar {
    height: 55px;
  }

  .topbar-note {
    font-size: 8px;
  }

  .hero {
    min-height: min(620px, calc(88svh - 55px));
    padding-top: 17px;
    padding-bottom: 38px;
  }

  .hero-meta {
    font-size: 7px;
  }

  .hero-meta span:first-child {
    display: none;
  }

  .hero-title-wrap {
    padding: 70px 0 28px;
  }

  .hero-title {
    font-size: clamp(54px, 15.3vw, 86px);
  }

  .title-indent {
    padding-left: 1vw;
  }

  .hero-side {
    font-size: 8px;
  }

  .chapter {
    padding-top: 38px;
    padding-bottom: 72px;
  }

  .chapter-head {
    gap: 9px;
    font-size: 7px;
  }

  .chapter-head > span:last-child {
    max-width: 48%;
    text-align: right;
  }

  .section-intro {
    display: block;
    padding: 37px 0 21px;
  }

  .section-intro h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .section-intro p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.55;
  }

  .story-block {
    font-size: 14px;
    line-height: 1.7;
  }

  .story-routine {
    margin-top: 55px;
  }

  .intro-copy {
    font-size: 14px;
  }

  .moodboard-grid {
    grid-auto-rows: 5px;
    gap: 7px;
  }

  .people {
    margin: 0;
  }

  .closing-title {
    font-size: clamp(42px, 11vw, 68px);
  }

  .closing-copy {
    margin-bottom: 55px;
    font-size: 15px;
  }

  .closing-footer {
    font-size: 8px;
  }

  .site-footer {
    font-size: 7px;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}