:root {
  --bg: #faf7f4;
  --ink: #26201f;
  --muted: #8a7f7a;
  --line: #e7dfd9;
  --accent: #b4637a;
  --paper: #f1ebe6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.locked {
  overflow: hidden;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.display {
  font-size: clamp(3.6rem, 13vw, 7rem);
  line-height: 0.95;
  font-style: italic;
}
h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
}
.lead,
.body {
  color: var(--muted);
  max-width: 34rem;
}
.lead {
  margin-top: 22px;
  font-size: 1.05rem;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px;
}
.wide-wrap {
  max-width: 1040px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 40;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition:
    opacity 1s var(--ease),
    visibility 1s;
}
.gate.gone {
  opacity: 0;
  visibility: hidden;
}
.gate-title {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-style: italic;
  margin-bottom: 18px;
}
.btn {
  font: 400 0.8rem var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 14px 34px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  margin: 22px 0 0;
}
.btn.ghost:hover {
  color: #fff;
}

.hero .photo {
  width: 100%;
  max-width: 330px;
  justify-self: center;
}
.hero {
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.since {
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Photos: fixed ratios, every upload is cropped to fit */
.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: 2px;
}
.photo.portrait {
  aspect-ratio: 9/16;
}
.photo.wide {
  aspect-ratio: 16/9;
}
.gallery .photo {
  cursor: zoom-in;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease),
    opacity 0.6s;
}
.photo:hover img {
  transform: scale(1.03);
}
.photo.empty {
  cursor: default;
  border: 1px dashed var(--line);
}
.photo.empty img {
  display: none;
}
.photo.empty::after {
  content: attr(data-label) " goes here";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 36px;
  align-items: center;
}
.step.full {
  grid-template-columns: 1fr;
  gap: 18px;
}
.step-text {
  display: grid;
  gap: 6px;
}
.num {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.step-text p {
  color: var(--muted);
  max-width: 32rem;
}

.notes {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.notes li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.notes span {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
}
.notes p {
  color: var(--muted);
}

.ramble {
  margin-top: 28px;
  min-height: 7.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
  font-style: italic;
  max-width: 34rem;
}
.ramble b {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.someday {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.sd {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.sd span {
  font-family: var(--serif);
  font-size: 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sd span::after {
  content: "+";
  font-family: var(--sans);
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}
.sd p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  transition: all 0.5s var(--ease);
}
.sd[aria-expanded="true"] p {
  max-height: 6rem;
  opacity: 1;
  margin-top: 8px;
}
.sd[aria-expanded="true"] span::after {
  transform: rotate(45deg);
}

.letter .body {
  margin-bottom: 18px;
}
.sign {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.3;
}
.foot {
  text-align: center;
  padding: 50px 24px 70px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 16, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.35s var(--ease);
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
}
.close {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0));
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font: 400 0.75rem var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 60px;
    min-height: auto;
  }
  .hero .photo {
    order: -1;
    max-width: 240px;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step .photo.portrait {
    max-width: 260px;
  }
  .notes li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .wrap {
    padding: 72px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
