:root {
  color-scheme: light;
  --paper: #f5efdf;
  --paper-light: #fbf8ef;
  --ink: #3d3025;
  --muted: #766754;
  --gold: #aa8144;
  --gold-light: #cbb27b;
  --rule: rgba(146, 111, 57, 0.35);
  --serif: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 10% 8%, rgba(255, 255, 255, 0.64), transparent 36rem),
    radial-gradient(ellipse at 95% 46%, rgba(213, 192, 146, 0.17), transparent 30rem),
    repeating-linear-gradient(0deg, rgba(112, 80, 40, 0.018) 0, rgba(112, 80, 40, 0.018) 1px, transparent 1px, transparent 5px);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 64px, 1280px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wordmark,
.header-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark-mark {
  color: var(--gold);
  font-size: 1.2rem;
}

.header-note {
  gap: 8px;
  transition: color 180ms ease;
}

.header-note:hover,
.header-note:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.58fr);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
  padding: clamp(68px, 9vw, 126px) clamp(10px, 3vw, 42px) clamp(82px, 10vw, 138px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 6px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-copy > .eyebrow {
  white-space: nowrap;
}

.eyebrow span {
  width: 19px;
  height: 1px;
  background: var(--gold-light);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.25vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
}

h1 em,
h2 em {
  color: var(--gold);
  font-weight: 400;
}

h1 em {
  font-size: 0.74em;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 340px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.38rem);
  line-height: 1.55;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-link span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.9rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.page-link:hover span,
.page-link:focus-visible span {
  transform: translateY(2px);
  color: var(--paper-light);
  background: var(--gold);
}

.album-frame {
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.25vw, 17px);
  border: 1px solid var(--gold-light);
  outline: 1px solid rgba(170, 129, 68, 0.18);
  outline-offset: 5px;
  background: rgba(255, 252, 242, 0.55);
  box-shadow: 0 20px 55px rgba(67, 47, 26, 0.14), 0 3px 8px rgba(67, 47, 26, 0.08);
}

.album-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  background: #dfd0ad;
}

.album-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 3px 1px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
  font-style: italic;
}

.album-frame figcaption i {
  padding-left: 5px;
  color: var(--gold);
  font-style: normal;
}

.frame-corner {
  position: absolute;
  z-index: 2;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1;
  text-shadow: 0 1px 0 var(--paper-light);
}

.frame-corner-tl {
  top: -13px;
  left: -12px;
  transform: rotate(-45deg);
}

.frame-corner-tr {
  top: -13px;
  right: -12px;
  transform: scaleX(-1) rotate(-45deg);
}

.frame-corner-bl {
  bottom: 22px;
  left: -12px;
  transform: scaleY(-1) rotate(-45deg);
}

.frame-corner-br {
  right: -12px;
  bottom: 22px;
  transform: scale(-1) rotate(-45deg);
}

.hero-sparkle {
  position: absolute;
  color: var(--gold-light);
  pointer-events: none;
}

.sparkle-one {
  top: 19%;
  right: 0;
  font-size: 1.15rem;
}

.sparkle-two {
  bottom: 16%;
  left: 41%;
  font-size: 1.45rem;
}

.memory-note {
  position: relative;
  max-width: 780px;
  margin: 0 auto clamp(78px, 10vw, 136px);
  padding: clamp(36px, 6.5vw, 82px) clamp(24px, 9vw, 120px);
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 45%),
    rgba(250, 246, 234, 0.62);
  box-shadow: 0 12px 40px rgba(67, 47, 26, 0.06);
  text-align: center;
}

.memory-note::before,
.memory-note::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 7px;
  border-block: 1px solid rgba(170, 129, 68, 0.19);
  content: "";
  pointer-events: none;
}

.memory-note::before {
  top: 8px;
  bottom: auto;
}

.note-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 19px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.note-rule::before,
.note-rule::after {
  width: 44px;
  height: 1px;
  background: var(--gold-light);
  content: "";
}

.memory-note .eyebrow {
  justify-content: center;
  margin-bottom: 13px;
}

.memory-note h2 {
  max-width: 550px;
  margin: 0 auto 17px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.letter-copy {
  max-width: 520px;
  margin: 0 auto 19px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.7vw, 1.27rem);
  line-height: 1.65;
}

.letter-signoff {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
}

.letter-signoff span {
  padding-left: 4px;
  color: #a15d4d;
}

.note-rule-bottom {
  margin: 19px auto 0;
  transform: rotate(180deg);
}

.chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 clamp(5px, 3vw, 38px) clamp(72px, 9vw, 116px);
}

.chapter {
  position: relative;
  padding: 0 clamp(19px, 4vw, 53px);
  text-align: center;
}

.chapter + .chapter {
  border-left: 1px solid var(--rule);
}

.chapter-number {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

.chapter h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
}

.chapter p {
  max-width: 290px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: var(--gold);
  font-size: 0.85rem;
}

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

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 40px, 700px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 72px 4px 96px;
  }

  .hero-copy {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-copy > .eyebrow {
    justify-content: center;
  }

  .hero-intro {
    max-width: 470px;
    margin-inline: auto;
  }

  .album-frame {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(4.2rem, 12vw, 6rem);
  }

  .sparkle-one {
    top: 40%;
    right: 1%;
  }

  .sparkle-two {
    bottom: 7%;
    left: 10%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 32px, 500px);
  }

  .site-header {
    min-height: 65px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .wordmark,
  .header-note {
    gap: 6px;
  }

  .hero {
    gap: 34px;
    padding: 65px 0 78px;
  }

  .hero-copy > .eyebrow {
    gap: 7px;
    margin-bottom: 21px;
    font-size: 0.57rem;
    letter-spacing: 0.13em;
  }

  .eyebrow span {
    width: 14px;
  }

  h1 {
    margin-bottom: 17px;
    font-size: clamp(3.55rem, 15vw, 4.8rem);
  }

  .hero-intro {
    max-width: 390px;
    font-size: 1.13rem;
  }

  .album-frame {
    padding: 8px;
  }

  .album-frame figcaption {
    padding-top: 9px;
    font-size: 0.73rem;
  }

  .frame-corner {
    font-size: 1.45rem;
  }

  .memory-note {
    margin-bottom: 74px;
    padding: 40px 24px;
  }

  .memory-note .eyebrow {
    font-size: 0.59rem;
  }

  .memory-note h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .letter-copy {
    font-size: 1.08rem;
  }

  .chapters {
    grid-template-columns: 1fr;
    gap: 29px;
    padding: 0 9px 72px;
  }

  .chapter {
    padding: 0 12px 28px;
  }

  .chapter + .chapter {
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding-top: 25px;
  }

  .site-footer {
    gap: 11px;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
