@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #472632;
  --paper: #fff8f2;
  --muted: #785c64;
  --rose: #faedf0;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --content: 1120px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--rose);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { color: var(--ink); background: #edc3cf; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  transform: translateY(-150%);
  border-radius: .35rem;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1.1rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 1.1rem max(var(--gutter), env(safe-area-inset-left));
  color: var(--paper);
  text-shadow: 0 1px 9px rgb(71 38 50 / 55%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark { width: 2rem; fill: none; stroke: #f0c39f; stroke-width: 1.4; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(.75rem, 3vw, 2.5rem); }
.site-nav a, .site-footer a { font-size: .875rem; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-footer a:hover { color: #f0c39f; }

.hero {
  position: relative;
  display: grid;
  min-height: min(100vh, 52rem);
  min-height: min(100svh, 52rem);
  overflow: hidden;
  align-items: end;
  isolation: isolate;
  padding: 8rem max(var(--gutter), env(safe-area-inset-right)) 5rem max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(145deg, #f2c9d4 0%, #d9839d 58%, #a84f6b 100%);
}
.hero::before, .hero::after, .letter-section::after {
  position: absolute;
  z-index: 2;
  color: rgb(255 248 242 / 46%);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}
.hero::before { content: "♡"; top: 18%; right: 12%; font-size: clamp(5rem, 14vw, 12rem); transform: rotate(12deg); }
.hero::after { content: "♡  ♡"; right: 9%; bottom: 28%; font-size: clamp(1.4rem, 4vw, 3rem); letter-spacing: .6em; transform: rotate(-10deg); }
.hero__photo, .hero__shade { position: absolute; inset: 0; pointer-events: none; }
.hero__photo { z-index: 0; display: grid; place-items: center; background: transparent; }
.hero__photo img { width: 100%; height: 100%; object-fit: contain; }
.hero__shade {
  z-index: 1;
  background: linear-gradient(90deg, rgb(91 30 52 / 38%), rgb(91 30 52 / 4%) 95%),
    linear-gradient(0deg, rgb(82 25 46 / 82%), rgb(160 70 96 / 10%) 82%);
}
.hero__content { position: relative; z-index: 3; width: min(100%, var(--content)); margin: 0 auto; color: var(--paper); }
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow--gold { color: #99516a; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 {
  max-width: 12ch;
  margin-bottom: .1em;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  letter-spacing: -.055em;
  line-height: .98;
}
.hero__subtitle { max-width: 34rem; margin: 1.25rem 0 2rem; color: #fff2ee; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero__date { position: absolute; z-index: 3; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(2rem, env(safe-area-inset-bottom)); margin: 0; color: #fff2ee; font-size: .8rem; letter-spacing: .08em; }
.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .7rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--paper); color: #702c46; }
.button:focus-visible, a:focus-visible { outline: 2px solid #bd6b86; outline-offset: 4px; }

.section { padding: clamp(4.5rem, 10vw, 9rem) max(var(--gutter), env(safe-area-inset-right)) clamp(4.5rem, 10vw, 9rem) max(var(--gutter), env(safe-area-inset-left)); }
.section > * { width: min(100%, var(--content)); margin-right: auto; margin-left: auto; }
.section-heading { margin-bottom: 2.5rem; }
.section-heading h2, .letter-card h2 { max-width: 18ch; margin-bottom: .8rem; font-size: clamp(2.5rem, 5.5vw, 4.8rem); letter-spacing: -.035em; line-height: 1.05; }
.section-heading__text { max-width: 42rem; margin-bottom: 0; color: var(--muted); }
.section-heading--center { text-align: center; }
.section-heading--center h2, .section-heading--center .section-heading__text { margin-right: auto; margin-left: auto; }

.intro { background: #faedf0; }
.intro__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.prose { color: #62464e; }
.prose p { margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.lead { color: var(--ink); font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.35; }

.photo-slot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: .3rem;
  background: #e8c9c6;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-slot--portrait { min-height: 24rem; aspect-ratio: 4 / 5; }

.timeline { position: relative; overflow: hidden; background: #741f3b; color: #fff5f0; }
.timeline::before {
  position: absolute;
  top: 1.2rem;
  right: 5%;
  color: rgb(255 223 217 / 12%);
  content: "♡";
  font-family: var(--serif);
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 1;
  pointer-events: none;
}
.timeline .section-heading__text, .timeline .prose { color: #f8e2df; }
.timeline .eyebrow--gold { color: #f2c7aa; }
.timeline > * { position: relative; z-index: 1; }
.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: clamp(4rem, 9vw, 8rem);
}
.story-row:first-of-type { margin-top: 4rem; }
.story-row--reverse .story-row__photo { order: 2; }
.story-row--reverse .story-row__text { order: 1; }
.story-row__photo { aspect-ratio: 5 / 4; }
.story-row__text h3 { margin-bottom: 1rem; color: #fff8f2; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; }
.story-row__text p:last-child { margin-bottom: 0; }

.little-things { background: #f2dfcf; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.photo-grid__item { aspect-ratio: 4 / 5; }
.photo-grid__item:nth-child(even) { margin-top: 2.5rem; }

.letter-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  background: linear-gradient(135deg, #f8e6e7, #f1d2d9 58%, #efd9c6);
}
.letter-section::after { z-index: 0; content: "♡"; right: 4%; bottom: 4%; color: rgb(153 81 106 / 13%); font-size: clamp(8rem, 18vw, 15rem); }
.eye-pair { position: relative; z-index: 1; width: min(100%, 52rem); }
.eye-pair__photo { width: 100%; aspect-ratio: 3 / 2; border: 1px solid rgb(107 54 69 / 15%); background: #f4e6e3; }
.letter-card { position: relative; z-index: 1; width: min(100%, 42rem); }
.letter-card h2 { margin-bottom: 2rem; }
.letter-copy { color: #62464e; }
.letter-copy__sign { padding-top: .7rem; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; }

.site-footer {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem max(var(--gutter), env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid rgb(71 38 50 / 16%);
  background: #faedf0;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 800px) {
  .hero { min-height: 88vh; min-height: 88svh; }
  .intro__grid { grid-template-columns: 1fr; }
  .photo-slot--portrait { width: min(100%, 34rem); }
  .intro__copy { max-width: 40rem; }
  .story-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-row--reverse .story-row__photo, .story-row--reverse .story-row__text { order: initial; }
  .story-row__text { max-width: 42rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .photo-grid__item:nth-child(even) { margin-top: 1.5rem; }
  .eye-pair__photo { aspect-ratio: 3 / 2; }
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; padding-top: max(.8rem, env(safe-area-inset-top)); }
  .brand { gap: .4rem; font-size: .88rem; }
  .brand__mark { width: 1.5rem; }
  .site-nav { gap: .65rem; padding-top: .15rem; }
  .site-nav a { font-size: .76rem; }
  .hero { min-height: 82vh; min-height: 82svh; padding-top: 7rem; padding-bottom: max(5.5rem, env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .hero__date { bottom: max(1.25rem, env(safe-area-inset-bottom)); font-size: .7rem; }
  .section { padding-top: 4.25rem; padding-bottom: 4.25rem; }
  .section-heading { margin-bottom: 2rem; }
  .section-heading h2, .letter-card h2 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .story-row { margin-top: 3.25rem; }
  .story-row:first-of-type { margin-top: 3rem; }
  .photo-grid__item:nth-child(even) { margin-top: 1rem; }
  .eye-pair__photo { aspect-ratio: 4 / 3; }
  .site-footer { flex-wrap: wrap; font-size: .75rem; }
}

@media (max-width: 360px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { width: 100%; justify-content: flex-end; }
}

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