:root {
  --white: #ffffff;
  --soft: #f3f5f8;
  --ink: #15171c;
  --ink-soft: #626773;
  --line: #d9dde5;
  --pink: #ef4f78;
  --pink-dark: #c92d58;
  --pink-deep: #b5234b;
  --pink-soft: #fdeaf0;
  --blue: #245fd6;
  --blue-soft: #eaf0ff;
  --dark: #181a20;
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-numeric: "Iowan Old Style", "Times New Roman", serif;
  --container: 1360px;
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
  background: var(--white);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-170%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-inner,
.section-container,
.footer-inner {
  width: min(calc(100% - 2 * clamp(24px, 4vw, 64px)), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.primary-nav a {
  position: relative;
  padding-block: 13px;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 8px;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--pink);
  transition: right 220ms ease, left 220ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  right: 0;
  left: 0;
}

.primary-nav > span {
  color: #a5aab3;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.nav-toggle-close {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(100%, 1536px);
  min-height: calc(100svh - var(--header-height));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(64px, 7vw, 112px) clamp(36px, 6vw, 92px);
}

.hero-copy h1,
.section-heading h2,
.portrait-copy h2,
.letter-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero-copy h1 {
  max-width: 8.5em;
  font-size: clamp(50px, 5.1vw, 78px);
  line-height: 1.18;
}

.section-stroke {
  display: block;
  width: 62px;
  height: 3px;
  margin-block: 28px 24px;
  background: var(--blue);
}

.hero-copy p {
  max-width: 25em;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.75;
}

.primary-button {
  display: inline-flex;
  min-width: 166px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border: 1px solid var(--blue);
  border-radius: 0;
  color: var(--white);
  background: var(--blue);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--ease);
}

.primary-button:hover {
  color: var(--blue);
  background: var(--white);
  transform: translateY(-3px);
}

.number-signature {
  margin-top: 42px;
  color: var(--pink);
  font-family: var(--font-numeric);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.22em;
}

.hero-art,
.hero-paper,
.hero-paper-inner {
  min-height: 100%;
}

.hero-art {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.hero-paper {
  height: 100%;
}

.hero-paper-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-paper-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: none;
  opacity: 1;
}

.photo-slot-mark {
  position: absolute;
  right: 24px;
  bottom: 20px;
  padding: 6px 10px;
  color: var(--white);
  background: rgb(21 23 28 / 72%);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: calc(46% - 24px);
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--white);
}

.scroll-cue span {
  display: none;
}

.scroll-cue svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.section {
  padding-block: clamp(84px, 9vw, 136px);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-heading h2,
.portrait-copy h2,
.letter-copy h2 {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.2;
}

.story-section {
  background: var(--white);
}

.story-section .section-container {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(50px, 7vw, 110px);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
}

.timeline-entry {
  position: relative;
  min-width: 0;
  padding-top: 38px;
}

.timeline-dot {
  position: absolute;
  top: 1px;
  left: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.timeline-entry:nth-child(2) .timeline-dot {
  background: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}

.timeline-entry h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}

.timeline-entry p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.timeline-entry .timeline-date {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: var(--font-numeric);
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.timeline-entry:nth-child(2) .timeline-date {
  color: var(--pink-dark);
}

.timeline-entry:last-child .timeline-date {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gallery-section {
  overflow: clip;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.gallery-section > .section-container > .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: end;
  gap: 40px;
}

.gallery-section > .section-container > .section-heading::after {
  justify-self: end;
  max-width: 23em;
  color: var(--ink-soft);
  content: "我们把日常的心动，写进这本只属于两个人的书里。";
  line-height: 1.75;
}

.memory-chapters {
  margin-top: clamp(46px, 6vw, 82px);
}

.memory-chapter {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 76px);
  padding-block: clamp(68px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.memory-chapter:nth-child(even)::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  content: "";
  background: var(--soft);
  transform: translateX(-50%);
}

.memory-chapter-heading {
  min-width: 0;
}

.chapter-index {
  margin: 0 0 30px;
  color: var(--pink);
  font-family: var(--font-numeric);
  font-size: clamp(62px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.memory-chapter:nth-child(even) .chapter-index {
  color: var(--blue);
}

.memory-chapter-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.3;
}

.memory-chapter-heading div > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.chapter-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.chapter-date::before {
  width: 18px;
  height: 3px;
  content: "";
  background: var(--pink);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 1.4vw, 20px);
}

.memory-grid--three .memory-card {
  grid-column: span 4;
}

.memory-grid--two .memory-card {
  grid-column: span 6;
}

.memory-grid--one .memory-card {
  grid-column: 1 / -1;
}

.memory-grid--portrait-single .memory-card {
  grid-column: 3 / span 6;
}

.memory-grid--many .memory-card {
  grid-column: span 3;
}

.memory-grid--many .memory-card:nth-child(5) {
  grid-column: span 4;
}

.memory-grid--many .memory-card:nth-child(6) {
  grid-column: span 5;
}

.memory-grid--many .memory-card:nth-child(7) {
  grid-column: span 3;
}

.memory-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e6e9ee;
  cursor: zoom-in;
  isolation: isolate;
}

.memory-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color 220ms ease, inset 220ms var(--ease);
}

.memory-card:hover::after,
.memory-card:focus-visible::after {
  inset: 8px;
  border-color: var(--white);
}

.memory-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  transform: none;
  transition: transform 560ms var(--ease);
}

.memory-card:hover img {
  transform: scale(1.035);
}

.memory-card--art {
  aspect-ratio: 4 / 3;
}

.memory-card--art img,
.memory-card img[src$="memory-09.webp"] {
  object-fit: contain;
  background: var(--white);
}

.memory-card--landscape {
  aspect-ratio: 16 / 9;
}

.memory-card-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 54px 14px 13px;
  color: var(--white);
  background: linear-gradient(to top, rgb(15 17 22 / 82%), transparent);
  text-align: left;
}

.memory-card-label > span {
  flex: 0 0 auto;
  color: #ff86a3;
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.memory-card-label strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gallery-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.gallery-help > span {
  width: min(10vw, 90px);
  height: 1px;
  background: var(--line);
}

.gallery-help svg {
  width: 18px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
}

.portrait-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.portrait-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(52px, 8vw, 132px);
}

.portrait-frame {
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(560px, 62vw, 820px);
  overflow: hidden;
  background: var(--soft);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 50% 28%;
  filter: none;
  opacity: 1;
  transform: none;
}

.portrait-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 580px;
}

.portrait-copy h2 span,
.letter-copy h2 span {
  color: var(--pink);
}

.portrait-copy p {
  margin: 0;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.75;
}

.letter-section {
  padding-block: clamp(88px, 9vw, 140px);
  color: var(--white);
  background: var(--dark);
  scroll-margin-top: var(--header-height);
}

.letter-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 8vw, 130px);
}

.letter-mark {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(180px, 24vw, 340px);
  line-height: 0.72;
}

.letter-copy {
  max-width: 780px;
}

.letter-copy h2 {
  color: var(--white);
}

.section-stroke-light {
  background: var(--blue);
}

.letter-copy p {
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 32px);
  line-height: 2;
}

.site-footer {
  padding-block: 54px;
  border-top: 3px solid var(--blue);
  background: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  text-align: center;
}

.footer-inner p {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
}

.footer-name,
.footer-love {
  border-right: 1px solid var(--line);
}

.footer-name {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.footer-name span {
  color: var(--pink);
}

.footer-love {
  color: var(--pink);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.18;
}

.footer-number {
  color: var(--ink);
  font-family: var(--font-numeric) !important;
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: 0.12em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 64px 24px 24px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(10 11 15 / 96%);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 920px) 52px;
  align-items: center;
  gap: 18px;
  width: min(100%, 1120px);
  max-height: calc(100svh - 88px);
}

.lightbox-stage {
  position: relative;
  display: grid;
  grid-column: 2;
  height: min(70svh, 760px);
  place-items: center;
  overflow: hidden;
  background: #0f1116;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-image[hidden],
.lightbox-empty[hidden] {
  display: none;
}

.lightbox-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--pink);
}

.lightbox-empty span {
  font-family: var(--font-numeric);
  font-size: clamp(72px, 12vw, 138px);
}

.lightbox-copy {
  grid-column: 2;
  padding-top: 16px;
  color: var(--white);
  text-align: center;
}

.lightbox-copy h2 {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
}

.lightbox-copy p {
  margin: 0;
  color: rgb(255 255 255 / 65%);
  font-size: 14px;
}

.lightbox-copy .lightbox-count {
  color: #ff86a3;
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.lightbox-close,
.lightbox-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  border-color: var(--pink);
  background: var(--pink);
}

.lightbox-close svg,
.lightbox-arrow svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  transform: translateY(calc(-100% - 12px));
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 1;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .hero-copy {
    padding-inline: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 5.6vw, 64px);
  }

  .story-section .section-container {
    grid-template-columns: 1fr;
  }

  .timeline {
    margin-top: 0;
  }

  .memory-chapter {
    grid-template-columns: minmax(180px, 0.25fr) minmax(0, 1fr);
  }

  .memory-grid--many .memory-card,
  .memory-grid--many .memory-card:nth-child(n) {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .header-inner,
  .section-container,
  .footer-inner {
    width: calc(100% - 36px);
  }

  .wordmark {
    font-size: 22px;
  }

  .js .nav-toggle {
    display: flex;
  }

  .js .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 22px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 98%);
    box-shadow: 0 16px 34px rgb(15 17 22 / 10%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .js .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .js .primary-nav > span {
    display: none;
  }

  .js .primary-nav a {
    min-height: 48px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .js .primary-nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: block;
  }

  .no-js .primary-nav {
    gap: 12px;
    font-size: 12px;
  }

  .no-js .primary-nav > span,
  .no-js .primary-nav a:first-child {
    display: none;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(570px, calc(100svh - var(--header-height)));
    width: 100%;
    min-height: 0;
  }

  .hero-copy,
  .hero-art {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-art {
    min-height: 0;
  }

  .hero-art::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(to top, rgb(10 11 15 / 78%) 0%, rgb(10 11 15 / 18%) 58%, transparent 82%);
    pointer-events: none;
  }

  .hero-paper-inner img {
    object-position: 22% 30%;
  }

  .hero-copy {
    align-self: end;
    justify-content: flex-end;
    padding: 52px 26px 48px;
    color: var(--white);
  }

  .hero-copy h1 {
    max-width: 8.8em;
    font-size: clamp(40px, 11.5vw, 52px);
    line-height: 1.17;
  }

  .hero-copy .section-stroke,
  .number-signature,
  .photo-slot-mark,
  .scroll-cue {
    display: none;
  }

  .hero-copy p {
    margin-block: 20px 26px;
    color: rgb(255 255 255 / 88%);
    font-size: 15px;
  }

  .primary-button {
    min-width: 156px;
    min-height: 52px;
    border-color: var(--pink);
    background: var(--pink-dark);
  }

  .primary-button:hover {
    color: var(--white);
    background: var(--pink-deep);
  }

  .section {
    padding-block: 76px;
  }

  .section-heading h2,
  .portrait-copy h2,
  .letter-copy h2 {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .story-section .section-container {
    gap: 30px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .timeline-entry {
    padding-top: 32px;
  }

  .timeline-entry:last-child {
    grid-column: 1 / -1;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }

  .timeline::before {
    right: 50%;
  }

  .timeline-entry h3 {
    font-size: 22px;
  }

  .timeline-entry p {
    font-size: 14px;
  }

  .timeline-entry .timeline-date {
    font-size: clamp(22px, 6.6vw, 28px);
  }

  .gallery-section > .section-container > .section-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-section > .section-container > .section-heading::after {
    justify-self: start;
    max-width: 27em;
    font-size: 14px;
  }

  .memory-chapters {
    margin-top: 42px;
  }

  .memory-chapter {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 64px;
  }

  .memory-chapter-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px 22px;
  }

  .memory-chapter-heading > div {
    display: contents;
  }

  .chapter-index {
    grid-row: 1;
    margin: 0;
    font-size: clamp(60px, 20vw, 82px);
  }

  .memory-chapter-heading h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: clamp(27px, 8vw, 34px);
  }

  .memory-chapter-heading div > p {
    grid-column: 1 / -1;
    margin-top: 14px;
    font-size: 14px;
  }

  .chapter-date {
    grid-column: 1 / -1;
    margin: 10px 0 0;
  }

  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .memory-grid .memory-card,
  .memory-grid--many .memory-card,
  .memory-grid--many .memory-card:nth-child(n) {
    grid-column: span 1;
  }

  .memory-grid--one .memory-card,
  .memory-grid--portrait-single .memory-card,
  .memory-card--landscape {
    grid-column: 1 / -1;
  }

  .memory-grid--portrait-single .memory-card {
    width: min(78%, 330px);
    justify-self: center;
  }

  .memory-card {
    aspect-ratio: 4 / 5;
  }

  .memory-card--art,
  .memory-card--landscape {
    aspect-ratio: 4 / 3;
  }

  .memory-card-label {
    display: block;
    padding: 44px 10px 9px;
  }

  .memory-card-label > span {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
  }

  .memory-card-label strong {
    display: block;
    font-size: 13px;
  }

  .gallery-help {
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .gallery-help > span {
    width: 16px;
  }

  .portrait-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .portrait-frame {
    grid-column: 1;
    grid-row: 1;
    min-height: min(118vw, 610px);
  }

  .portrait-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .portrait-copy p {
    font-size: 16px;
  }

  .letter-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .letter-mark {
    height: 94px;
    font-size: 160px;
  }

  .letter-copy p {
    font-size: clamp(19px, 5.4vw, 24px);
    line-height: 1.9;
  }

  .site-footer {
    padding-block: 44px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-name,
  .footer-love {
    width: 100%;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lightbox {
    padding: 62px 14px 16px;
  }

  .lightbox-panel {
    grid-template-columns: 48px 1fr 48px;
    grid-template-rows: minmax(0, 1fr) auto 48px;
    gap: 10px;
    width: 100%;
    height: calc(100svh - 84px);
    max-height: none;
  }

  .lightbox-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .lightbox-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 4px 10px 0;
  }

  .lightbox-copy h2 {
    font-size: 21px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: static;
    grid-row: 3;
    align-self: end;
  }

  .lightbox-prev {
    grid-column: 1;
  }

  .lightbox-next {
    grid-column: 3;
  }

  .lightbox-close {
    right: 0;
  }
}

@media (max-width: 390px) {
  .hero-copy {
    padding-inline: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 43px);
  }

  .memory-chapter-heading {
    gap: 8px 16px;
  }

  .chapter-index {
    font-size: 58px;
  }

  .memory-chapter-heading h3 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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