:root {
  --paper: #f7f1ec;
  --paper-deep: #efe4dc;
  --ink: #2d2524;
  --muted: #746765;
  --wine: #6f2d3c;
  --wine-deep: #4f1d29;
  --rose: #c69094;
  --line: rgba(77, 46, 48, 0.16);
  --white: #fffdfb;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 30px 70px rgba(61, 39, 41, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(111, 45, 60, 0.16); }

a { color: inherit; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--wine);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(22px, 5vw, 72px);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand,
.header-link {
  text-decoration: none;
  transition: opacity 180ms ease;
}
.brand { font-weight: 600; }
.header-link { color: var(--muted); }
.brand:hover,
.header-link:hover { opacity: 0.62; }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 90px;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 18%, rgba(198, 144, 148, 0.20), transparent 28%),
    radial-gradient(circle at 84% 74%, rgba(111, 45, 60, 0.10), transparent 34%),
    linear-gradient(180deg, #fbf7f3 0%, var(--paper) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(111, 45, 60, 0.11);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine);
}

h1 {
  margin: 0;
  font-size: clamp(58px, 9.6vw, 130px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-deck {
  max-width: 660px;
  margin: 36px auto 0;
  font-size: clamp(23px, 2.25vw, 31px);
  line-height: 1.35;
  color: #625654;
  font-style: italic;
  text-wrap: balance;
}

.story-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 48px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(111, 45, 60, 0.32);
  color: var(--wine-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.story-link span { transition: transform 180ms ease; }
.story-link:hover span { transform: translateY(4px); }

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}
.orb-one {
  width: 320px;
  height: 320px;
  left: -160px;
  bottom: 8%;
  border: 1px solid rgba(111, 45, 60, 0.12);
}
.orb-two {
  width: 520px;
  height: 520px;
  right: -300px;
  top: 10%;
  border: 1px solid rgba(111, 45, 60, 0.09);
}

.story-shell {
  padding: clamp(88px, 12vw, 170px) 24px;
  position: relative;
}

.story-column {
  width: min(100%, 720px);
  margin: 0 auto;
}

.story-section {
  margin: 0 0 72px;
}

.story-section p,
.epilogue p {
  margin: 0 0 1.2em;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.62;
  letter-spacing: -0.006em;
}

.story-section p:last-child,
.epilogue p:last-child { margin-bottom: 0; }

.opening-line {
  font-size: clamp(34px, 4vw, 48px) !important;
  line-height: 1.28 !important;
  font-weight: 500;
  letter-spacing: -0.025em !important;
  margin-bottom: 1.1em !important;
}

.opening-line::first-letter {
  float: left;
  font-size: 3.35em;
  line-height: 0.75;
  padding: 0.08em 0.08em 0 0;
  color: var(--wine);
  font-weight: 500;
}

.story-section strong { color: var(--wine-deep); font-weight: 600; }
.story-section em { color: var(--wine); font-weight: 500; }

.chapter-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 98px 0;
}
.chapter-mark span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
}

.pull-quote {
  position: relative;
  margin: 104px -80px;
  padding: 66px 72px 70px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote::before {
  content: "“";
  display: block;
  height: 34px;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 72px;
  line-height: 0.7;
}
.pull-quote p {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-style: italic;
}

.dialogue {
  margin: 76px -40px 82px;
  padding: 48px 56px;
  border-left: 2px solid var(--wine);
  background: rgba(255, 253, 251, 0.55);
}
.dialogue p {
  margin: 0;
  color: var(--wine-deep);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-style: italic;
}

.love-quote {
  margin: 110px -120px;
  padding: 92px 60px;
  text-align: center;
  color: #fff9f6;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.08), transparent 25%),
    linear-gradient(145deg, var(--wine-deep), #7a3948);
  box-shadow: var(--shadow);
}
.love-quote p {
  margin: 0;
  font-size: clamp(66px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-style: italic;
}
.love-quote span {
  display: block;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}


.memory-photo {
  width: min(860px, calc(100vw - 48px));
  margin: 116px 0 122px;
  position: relative;
  left: 50%;
  translate: -50% 0;
  text-align: center;
}

.memory-photo-frame {
  position: relative;
  padding: 12px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 34px 80px rgba(61, 39, 41, 0.14);
}

.memory-photo-frame::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 1;
}

.memory-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.memory-photo figcaption {
  margin-top: 24px;
  color: var(--wine-deep);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  font-style: italic;
  letter-spacing: -0.015em;
}

.future-transition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 54px 0 44px;
}

.future-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 45, 60, 0.34));
}

.future-line:last-child {
  background: linear-gradient(90deg, rgba(111, 45, 60, 0.34), transparent);
}

.future-transition p {
  margin: 0 !important;
  color: var(--wine);
  font-size: clamp(20px, 2vw, 25px) !important;
  line-height: 1.25 !important;
  font-style: italic;
  letter-spacing: -0.01em !important;
  white-space: nowrap;
}

.epilogue {
  margin: 0;
  padding: 0;
}

.epilogue p {
  margin: 0 0 1.2em;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.62;
  letter-spacing: -0.006em;
}

.epilogue p:last-child {
  margin-bottom: 0;
}

.final-line {
  position: relative;
  margin: 2.35em 0 0 !important;
  padding: 1.7em 0 0;
  color: var(--wine-deep);
  font-size: clamp(42px, 6vw, 68px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.035em !important;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  text-wrap: balance;
}

.final-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 1px;
  background: rgba(111, 45, 60, 0.44);
  transform: translateX(-50%);
}

.site-footer {
  padding: 58px 24px 72px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 0;
  font-size: 24px;
  font-style: italic;
}
.site-footer span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .pull-quote { margin-left: -24px; margin-right: -24px; padding-left: 36px; padding-right: 36px; }
  .dialogue { margin-left: 0; margin-right: 0; }
  .love-quote { margin-left: -24px; margin-right: -24px; padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 640px) {
  .future-transition {
    gap: 12px;
    margin: 44px 0 34px;
  }
  .future-line { width: 34px; }
  .future-transition p {
    font-size: 20px !important;
    white-space: normal;
    text-align: center;
  }
  .final-line {
    margin-top: 2em !important;
    padding-top: 1.55em;
    font-size: 43px !important;
  }

  .site-header { padding: 22px 20px; }
  .hero { min-height: 92svh; padding: 110px 20px 72px; }
  .hero::before { inset: 12px; }
  h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-deck { margin-top: 26px; font-size: 22px; }
  .story-link { margin-top: 38px; }

  .story-shell { padding: 78px 20px 92px; }
  .story-section { margin-bottom: 58px; }
  .story-section p,
  .epilogue p { font-size: 22px; line-height: 1.58; }
  .opening-line { font-size: 34px !important; }

  .chapter-mark { margin: 74px 0; }
  .pull-quote { margin-top: 82px; margin-bottom: 82px; padding: 48px 28px 52px; }
  .pull-quote p { font-size: 35px; }
  .dialogue { margin-top: 60px; margin-bottom: 64px; padding: 34px 28px; }
  .dialogue p { font-size: 39px; }
  .love-quote { margin-top: 86px; margin-bottom: 86px; padding-top: 68px; padding-bottom: 70px; }
  .love-quote p { font-size: 68px; }
  .memory-photo {
    width: calc(100vw - 24px);
    margin-top: 82px;
    margin-bottom: 88px;
  }
  .memory-photo-frame { padding: 7px; }
  .memory-photo-frame::before { inset: 13px; }
  .memory-photo figcaption { margin-top: 18px; font-size: 27px; }
}

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