:root {
  --ink: #41242b;
  --wine: #752d43;
  --paper: #fdf8f0;
  --blush: #f7e6e2;
  --rose: #eed2d1;
  --line: #d6b6ae;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --heart-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14 2.6 8.7a3.5 3.5 0 0 1 5-5L8 4l.4-.3a3.5 3.5 0 0 1 5 5Z'/%3E%3C/svg%3E");
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 1.25rem; }
body { margin: 0; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.icon-close, .photo-viewer-step {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--icon-surface, #752d4312);
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-close::before, .photo-viewer-step::before {
  width: 1.16rem;
  height: 1.16rem;
  background: currentColor;
  content: "";
}
.icon-close::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 5 10 10M15 5 5 15' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.icon-close:focus-visible, .photo-viewer-step:focus-visible { outline-offset: 2px; }
.icon-close:active, .photo-viewer-step:active { background: var(--icon-pressed, #752d4327); }

.page-width { width: min(100% - 5rem, 70rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header { background: var(--blush); }
.header-inner, .footer-inner {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.header-inner { border-block-end: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font: italic 1.12rem var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--wine); font: normal 1.38rem/1 var(--sans); }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .92rem;
  text-decoration: none;
  text-underline-offset: .28em;
}

.cover {
  background: var(--blush);
  padding-block: clamp(2.55rem, 6vw, 4.75rem) clamp(2.5rem, 5.8vw, 4.5rem);
}
.cover-portrait {
  display: grid;
  justify-items: center;
  gap: clamp(1.45rem, 4vw, 2.45rem);
  text-align: center;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.cover h1 {
  font-size: clamp(2.9rem, 12vw, 5.75rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.cover h1 em { color: var(--wine); }
h2 {
  font-size: clamp(2.55rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
h3 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; }
p { line-height: 1.63; }
.cover-copy p {
  max-width: 43ch;
  margin: clamp(.72rem, 2.3vw, 1.2rem) auto 0;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  text-wrap: pretty;
}
.cover-photo {
  --print-padding: clamp(.45rem, 1.8vw, .75rem);
  width: min(100% - .9rem, 26rem);
  padding: var(--print-padding) var(--print-padding) 0;
  border: 1px solid #ecd8cc;
  background: var(--paper);
  box-shadow: 0 1rem 2.5rem #6b303322, 0 .2rem .45rem #6b303316;
  transform: rotate(1.8deg);
}
.cover-photo img { aspect-ratio: 1.22; object-position: center 20%; }
.cover-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: clamp(2.55rem, 6vw, 3.25rem);
  padding-inline: .28rem;
  font: italic 1.05rem var(--serif);
}
.cover-photo figcaption span + span { color: var(--wine); font: .84rem var(--sans); }

.story {
  --story-paper: #f8eee9;
  background: var(--story-paper);
  padding-block: clamp(3.25rem, 7vw, 7.25rem);
}
.story-header { text-align: center; }
.story-header h2 {
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  letter-spacing: -.04em;
}
.story-header p { margin-block-start: .85rem; }
.year-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  margin-block: 1.65rem clamp(3.25rem, 7vw, 5.5rem);
}
.year-links a {
  min-width: 3.25rem;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.year-links a:active { background: var(--rose); }

.memory-track {
  --thread-x: 50%;
  --branch: clamp(1.8rem, 4.5vw, 4rem);
  position: relative;
  isolation: isolate;
  padding-block-end: 3.25rem;
}
.memory-thread {
  position: absolute;
  z-index: -1;
  inset-block: 1rem 0;
  inset-inline-start: var(--thread-x);
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}
.memory-thread span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wine);
  transform: scaleY(1);
  transform-origin: top;
}
.has-timeline-motion .memory-thread span { transform: scaleY(var(--thread-progress, 0)); }
.memory-year { position: relative; }
.memory-year + .memory-year { margin-block-start: clamp(3.5rem, 8vw, 6.75rem); }
.year-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: max-content;
  max-width: 100%;
  justify-items: center;
  gap: .35rem;
  margin: 0 auto clamp(2.1rem, 5.5vw, 4.75rem);
  padding: .75rem 1.3rem .9rem;
  background: var(--story-paper);
  text-align: center;
}
.year-marker h3 {
  font-size: clamp(2.3rem, 5vw, 4.15rem);
  color: var(--wine);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}
.year-marker p { font: italic clamp(.95rem, 2vw, 1.3rem)/1.3 var(--serif); }
[data-timeline-opening] { isolation: isolate; }
.timeline-hearts, .year-hearts, .anniversary-hearts {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.timeline-hearts span, .year-hearts span, .anniversary-hearts span {
  position: absolute;
  width: var(--heart-size, .85rem);
  aspect-ratio: 1;
  background: currentColor;
  color: var(--heart-color, #aa6575);
}
.timeline-hearts span::before, .timeline-hearts span::after,
.year-hearts span::before, .year-hearts span::after,
.anniversary-hearts span::before, .anniversary-hearts span::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.timeline-hearts span::before, .year-hearts span::before, .anniversary-hearts span::before { transform: translateY(-50%); }
.timeline-hearts span::after, .year-hearts span::after, .anniversary-hearts span::after { transform: translateX(50%); }
.timeline-hearts span {
  top: 75%;
  left: calc(50% + var(--start-x));
  opacity: .46;
  transform: translate(var(--heart-x), var(--lift)) rotate(calc(-45deg + var(--turn)));
}
.timeline-hearts span:nth-child(1) { --start-x: -2.7rem; --heart-x: -3.25rem; --lift: -3.1rem; --turn: -17deg; --delay: 30ms; }
.timeline-hearts span:nth-child(2) { --start-x: -2rem; --heart-x: -4.8rem; --lift: -2rem; --turn: -32deg; --delay: 230ms; --heart-size: .65rem; }
.timeline-hearts span:nth-child(3) { --start-x: -1.4rem; --heart-x: -3.3rem; --lift: -5.3rem; --turn: -7deg; --delay: 170ms; --heart-color: #c06c80; }
.timeline-hearts span:nth-child(4) { --start-x: 1.8rem; --heart-x: 4rem; --lift: -3.35rem; --turn: 15deg; --delay: 120ms; --heart-size: 1rem; }
.timeline-hearts span:nth-child(5) { --start-x: 2.4rem; --heart-x: 5.4rem; --lift: -1.9rem; --turn: 31deg; --delay: 250ms; --heart-size: .57rem; }
.timeline-hearts span:nth-child(6) { --start-x: 1.5rem; --heart-x: 3.3rem; --lift: -5.2rem; --turn: 19deg; --delay: 275ms; --heart-color: #c06c80; }
.timeline-hearts span:nth-child(7) { --start-x: 2.8rem; --heart-x: 4.45rem; --lift: -4.45rem; --turn: -8deg; --delay: 70ms; --heart-size: .54rem; }
.year-hearts span, .anniversary-hearts span {
  top: var(--y);
  left: var(--x);
  opacity: var(--heart-opacity, .48);
  transform: rotate(calc(-45deg + var(--turn, 0deg)));
}
.memory-year:nth-of-type(even) .year-hearts { transform: scaleX(-1); }
.year-hearts span:nth-child(1) { --x: 6%; --y: 12%; --turn: -13deg; }
.year-hearts span:nth-child(2) { --x: 78%; --y: 22%; --heart-size: 1rem; --turn: 19deg; --heart-color: #b16078; }
.year-hearts span:nth-child(3) { --x: 27%; --y: 39%; --heart-size: .54rem; --turn: 8deg; }
.year-hearts span:nth-child(4) { --x: 90%; --y: 58%; --turn: -21deg; }
.year-hearts span:nth-child(5) { --x: 7%; --y: 76%; --heart-size: .64rem; --turn: 12deg; }
.year-hearts span:nth-child(6) { --x: 70%; --y: 94%; --heart-size: .65rem; --turn: 24deg; --heart-color: #b16078; }
.anniversary-hearts {
  inset-block: -1.45rem;
  width: min(100%, 40.5rem);
  margin-inline: auto;
  --heart-opacity: .68;
}
.anniversary-hearts span:nth-child(1) { --x: 0%; --y: 38%; --heart-size: .9rem; --turn: -12deg; }
.anniversary-hearts span:nth-child(2) { --x: 6%; --y: 53%; --heart-size: .48rem; --turn: 15deg; }
.anniversary-hearts span:nth-child(3) { --x: 12%; --y: 10%; --heart-size: .69rem; --turn: -15deg; }
.anniversary-hearts span:nth-child(4) { --x: 20%; --y: 89%; --heart-size: .56rem; --turn: -26deg; }
.anniversary-hearts span:nth-child(5) { --x: 32%; --y: 4%; --heart-size: .46rem; --turn: -14deg; }
.anniversary-hearts span:nth-child(6) { --x: 39%; --y: 95%; --heart-size: .84rem; --turn: 17deg; }
.anniversary-hearts span:nth-child(7) { --x: 54%; --y: 0%; --heart-size: .6rem; --turn: 17deg; }
.anniversary-hearts span:nth-child(8) { --x: 65%; --y: 91%; --heart-size: .49rem; --turn: -8deg; }
.anniversary-hearts span:nth-child(9) { --x: 74%; --y: 8%; --heart-size: .88rem; --turn: 17deg; }
.anniversary-hearts span:nth-child(10) { --x: 83%; --y: 84%; --heart-size: .84rem; --turn: -9deg; }
.anniversary-hearts span:nth-child(11) { --x: 90%; --y: 28%; --heart-size: .66rem; --turn: 29deg; }
.anniversary-hearts span:nth-child(12) { --x: 96%; --y: 58%; --heart-size: .89rem; --turn: 12deg; }
.memory-list {
  display: grid;
  gap: clamp(2.5rem, 6.5vw, 5.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.memory {
  --print-angle: 1.4deg;
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) var(--branch) var(--branch) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  min-width: 0;
}
.memory--left { --print-angle: -1.4deg; }
.memory::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 50%;
  inset-inline-start: var(--thread-x);
  width: var(--branch);
  border-block-start: 1px solid var(--line);
}
.memory--left::before { inset-inline-start: calc(var(--thread-x) - var(--branch)); }
.memory::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: var(--thread-x);
  width: .78rem;
  height: .78rem;
  border: 2px solid var(--wine);
  border-radius: 50%;
  background: var(--story-paper);
  transform: translate(-50%, -50%);
}
.memory.is-seen::after { background: var(--wine); }
.memory-note, .memory-photos { grid-row: 1; min-width: 0; }
.memory-note { grid-column: 1; padding-inline-start: .4rem; text-align: end; }
.memory--left .memory-note { grid-column: 4; padding-inline: 0 .4rem; text-align: start; }
.memory-note time {
  color: var(--wine);
  font: 400 clamp(1.55rem, 3.25vw, 2.85rem)/1.1 var(--serif);
  letter-spacing: -.025em;
}
.memory-note p { max-width: 34ch; margin-block-start: .55rem; margin-inline-start: auto; }
.memory--left .memory-note p { margin-inline: 0 auto; }
.memory--milestone::before, .memory--milestone::after { display: none; }
.memory--milestone .memory-note {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  padding: 1.25rem clamp(1.3rem, 4vw, 2.9rem);
  border: 1px solid var(--wine);
  background: #f4dfdc;
  text-align: center;
}
.memory--milestone .memory-note::before {
  position: absolute;
  inset: .35rem;
  border: 1px solid #aa6575;
  content: "";
  pointer-events: none;
}
.memory--milestone time { font: 600 .95rem / 1.3 var(--sans); letter-spacing: 0; }
.memory--milestone p {
  margin-inline: 0;
  color: var(--wine);
  font: italic clamp(1.55rem, 3.4vw, 2.5rem) / 1.15 var(--serif);
}

@media (prefers-reduced-motion: no-preference) {
  .has-timeline-motion .memory--milestone:not(.is-seen) .memory-note { opacity: .25; }
  .has-timeline-motion .memory--milestone.is-seen .memory-note {
    animation: anniversary-stamp 760ms var(--ease-out) both;
  }
  .has-timeline-motion .memory--milestone.is-seen .memory-note::after {
    position: absolute;
    inset: 0;
    border: 1px solid var(--wine);
    content: "";
    pointer-events: none;
    animation: anniversary-imprint 640ms var(--ease-out) 140ms both;
  }
}

@keyframes anniversary-stamp {
  from { opacity: .25; transform: translateY(-.7rem) scale(.88) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}

@keyframes anniversary-imprint {
  from { opacity: .65; transform: scale(1); }
  to { opacity: 0; transform: scale(1.1, 1.32); }
}

.memory-photos {
  grid-column: 4;
  display: flex;
  justify-content: flex-start;
  gap: clamp(.5rem, 1.4vw, 1.15rem);
  min-width: 0;
}
.memory--left .memory-photos { grid-column: 1; justify-content: flex-end; }
.memory-print {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: clamp(.35rem, .9vw, .68rem);
  border-block-end: .4rem solid #fffcf7;
  background: #fffcf7;
  box-shadow: 0 .4rem 1.4rem #552b3524;
  transform: rotate(var(--print-angle));
}
.memory-print img {
  width: auto;
  max-width: 100%;
  max-height: clamp(17rem, 30vw, 26.25rem);
  object-fit: contain;
}
.memory-photos--pair .memory-print { max-width: calc(50% - .35rem); }
.memory-photos--pair .memory-print img { max-height: 20rem; }
.memory-photos--pair .memory-print + .memory-print { transform: rotate(calc(-1 * var(--print-angle))); }
.memory--trip {
  display: block;
  width: min(100%, 47rem);
  margin-inline: auto;
  padding: clamp(.8rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: #f4e3de;
}
.memory--trip::before, .memory--trip::after { display: none; }
.memory--trip .trip-heading {
  margin-block-end: clamp(.95rem, 3vw, 1.65rem);
  padding: 0;
  text-align: center;
}
.trip-heading h4 {
  margin: 0;
  color: var(--wine);
  font: 400 clamp(1.65rem, 4.5vw, 3.3rem) / 1.12 var(--serif);
  letter-spacing: -.03em;
}
.trip-heading time {
  display: inline-block;
  margin-block-start: .35rem;
  font: italic 1rem / 1.25 var(--serif);
  letter-spacing: 0;
}
.memory--trip .memory-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.memory--trip .memory-print { transform: none; }
.memory--trip .memory-print img {
  width: 100%;
  max-height: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
}
.memory--trip .memory-print--wide img { aspect-ratio: 16 / 9; }
.memory-photo-link {
  position: relative;
  display: block;
  overflow: clip;
  perspective: 740px;
  cursor: zoom-in;
}
.memory-photo-link::after {
  position: absolute;
  inset-block-end: .42rem;
  inset-inline-end: .42rem;
  width: 1.8rem;
  aspect-ratio: 1;
  border: 1px solid #fff8edb8;
  border-radius: 50%;
  background:
    linear-gradient(var(--paper), var(--paper)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--paper), var(--paper)) center / 1.5px 10px no-repeat,
    #4b2634e6;
  content: "";
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-timeline-opening].is-seen .timeline-hearts span {
    animation: timeline-heart 940ms var(--ease-out) var(--delay) both;
  }
  .has-timeline-motion .memory-photos:not(.is-seen) .memory-photo-link:not(:focus-visible) img { opacity: 0; }
  .has-timeline-motion .memory-photos.is-turning .memory-photo-link img {
    animation: photo-turn-in 540ms var(--ease-out) 105ms both;
  }
  .has-timeline-motion .memory-photos:not(.is-seen) .memory-photo-link:not(:focus-visible)::before,
  .has-timeline-motion .memory-photos.is-turning .memory-photo-link::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: #ead2cf;
    content: "";
    pointer-events: none;
  }
  .has-timeline-motion .memory-photos.is-turning .memory-photo-link::before {
    animation: photo-turn-away 255ms var(--ease-in-out) both;
  }
}

@keyframes timeline-heart {
  0% { opacity: 0; transform: translateY(.5rem) rotate(-45deg) scale(.55); }
  35% { opacity: .86; }
  100% { opacity: .46; transform: translate(var(--heart-x), var(--lift)) rotate(calc(-45deg + var(--turn))); }
}
@keyframes photo-turn-in {
  from { opacity: .15; transform: rotateY(-58deg); }
  to { opacity: 1; transform: none; }
}
@keyframes photo-turn-away {
  from { opacity: 1; transform: rotateY(0); }
  to { opacity: 0; transform: rotateY(78deg); }
}

.has-photo-viewer { overflow: hidden; }
.photo-viewer {
  --icon-surface: #fff3e924;
  --icon-pressed: #fff3e940;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(.7rem, env(safe-area-inset-top)) max(.8rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left));
  border: 0;
  overflow: hidden;
  background: #26141c;
  color: var(--paper);
}
.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .65rem;
}
.photo-viewer-bar, .photo-viewer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
}
.photo-viewer-bar form { margin: 0; }
.photo-viewer-date { font-size: .9rem; color: #f3d7d7; }
.photo-viewer-stage { min-height: 0; min-width: 0; }
.photo-viewer-stage img { width: 100%; height: 100%; object-fit: contain; }
.photo-viewer-nav { justify-content: center; gap: 1rem; }
.photo-viewer-step::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 4 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.photo-viewer-step[data-photo-step="-1"]::before { transform: scaleX(-1); }
.photo-viewer-step[aria-disabled="true"] { opacity: .5; cursor: default; }
.album-postscript {
  padding-block-start: clamp(1.85rem, 5vw, 3.5rem);
  text-align: center;
}
.album-postscript h3 {
  color: var(--wine);
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  font-style: italic;
  text-wrap: balance;
}
.album-postscript p { margin-block-start: .72rem; }

.kitchen { color: var(--paper); background: #542838; }
.kitchen-layout {
  width: min(100% - 2.25rem, 45rem);
  padding-block: clamp(3.8rem, 8vw, 6.6rem);
}
.kitchen-copy { text-align: center; }
.kitchen-copy h2 {
  max-width: 19ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 5.6vw, 3.95rem);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.kitchen-copy p {
  max-width: 49ch;
  margin: .95rem auto 0;
  color: #f5d8d5;
  text-wrap: pretty;
}
.recipe-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.2rem);
  margin: clamp(1.65rem, 4vw, 2.85rem) 0 0;
  padding: 0;
  list-style: none;
}
.recipe-videos li h3 { height: 100%; }
.recipe-video {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  gap: .75rem;
  padding: .48rem .48rem .78rem;
  border: 1px solid #f3c4ba;
  border-radius: .24rem;
  background: #fff2e7;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.recipe-video:focus-visible { outline-color: #ffe3bf; }
.recipe-poster {
  display: grid;
  position: relative;
  aspect-ratio: 9 / 16;
  place-items: center;
  overflow: hidden;
  background: #2c181e;
}
.recipe-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-play {
  display: grid;
  position: relative;
  width: clamp(2.25rem, 7vw, 3.15rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ffeed3;
  border-radius: 50%;
  background: #3c202dd9;
  color: #fff9eb;
}
.recipe-play::before {
  width: .68rem;
  height: .82rem;
  margin-inline-start: .12rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}
.recipe-video .recipe-name {
  align-self: center;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.recipe-video:active .recipe-play { color: #462333; background: #ffe2b9; }
.recipe-viewer:not([open]) { display: none; }
.recipe-viewer {
  width: min(100% - 1.5rem, 24rem);
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: .65rem .72rem .75rem;
  border: 0;
  border-radius: .9rem;
  background: #fff2e7;
  color: var(--ink);
  overscroll-behavior: contain;
}
.recipe-viewer::backdrop { background: #28151ee0; }
.recipe-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding-block-end: .55rem;
}
.recipe-viewer-bar h3 { font-size: clamp(1.25rem, 5.5vw, 1.7rem); }
.recipe-viewer-bar form { flex: none; margin: 0; }
.recipe-viewer-stage {
  position: relative;
  width: 100%;
  min-height: 12.5rem;
  max-height: calc(100dvh - 8.5rem);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: .47rem;
  background: #21141b;
}
.recipe-viewer-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.recipe-youtube-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-block-start: .26rem;
  color: var(--wine);
  font-size: .9rem;
  text-underline-offset: .2em;
}

.letter-section { background: var(--rose); }
.letter-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.25rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 9.5vw, 8.5rem);
}
.letter-copy p { margin-block-start: 1.25rem; font-size: 1.12rem; }
.envelope-button {
  width: min(100%, 23rem);
  justify-self: center;
  padding: 0;
  border: 0;
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.envelope {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1.65;
  border-radius: 4px;
  background: #be757e;
  box-shadow: 0 17px 31px #7331432a, 0 2px 4px #73314325;
  perspective: 650px;
}
.envelope-button:active .envelope { box-shadow: 0 5px 14px #73314340; }
.envelope-pocket, .envelope-flap { position: absolute; inset: 0; display: block; border-radius: inherit; }
.envelope-pocket {
  z-index: 3;
  background: conic-gradient(from 57deg at 50% 60%, #da9da1 0deg 65deg, #e9b6b5 65deg 176deg, #dc9ba2 176deg 245deg, #cf8f9a 245deg 360deg);
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
}
.envelope-flap {
  z-index: 4;
  background: #efbabc;
  clip-path: polygon(0 0, 100% 0, 50% 64%);
  transform-origin: top center;
  transition: transform 270ms var(--ease-in-out), z-index 0s 120ms;
}
.envelope-card {
  position: absolute;
  z-index: 2;
  inset: 9% 10% 10%;
  display: block;
  border: 1px solid #dfc6b7;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, #fff9ef 0 1.35rem, #f2e3d4 1.35rem calc(1.35rem + 1px));
  transform: translateY(0);
  transition: transform 270ms var(--ease-out);
}
.envelope-seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 59%;
  display: grid;
  place-items: center;
  width: clamp(2rem, 9vw, 3rem);
  aspect-ratio: 1;
  border: 2px solid #a25064;
  border-radius: 50%;
  box-shadow: 0 2px 5px #5e263e66, inset 0 0 0 2px #d9859152;
  background: #8c4056;
  color: #f7d4cf;
  transform: translate(-50%, -50%);
  transition: opacity 130ms ease;
}
.envelope-seal::after, .signature::after, .gift-reveal-day::after, .calendar-door[data-gift-seen]::after {
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  mask: var(--heart-icon) center / contain no-repeat;
  content: "";
}
.envelope-recipient {
  position: absolute;
  z-index: 4;
  inset-inline: 1rem;
  inset-block-end: 8%;
  color: #672c44;
  font: italic clamp(1.2rem, 4vw, 1.55rem) / 1.15 var(--serif);
}
.is-open .envelope-flap { z-index: 1; transform: scaleY(.47) rotateX(178deg); }
.is-open .envelope-card { transform: translateY(-37%); transition-delay: 130ms; }
.is-open .envelope-seal { opacity: 0; }
.letter-paper {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 41rem);
  padding: clamp(1.6rem, 6vw, 4rem);
  background: var(--paper);
  border: 1px solid #dcb5ad;
  box-shadow: 0 10px 24px #73314316;
  font: 1.14rem / 1.65 var(--serif);
  scroll-margin-block: 1.25rem;
}
.letter-close { position: absolute; inset-block-start: .55rem; inset-inline-end: .55rem; color: var(--wine); }
.is-open .letter-paper { animation: show-letter 260ms var(--ease-out) 210ms both; }
.letter-paper h3 { margin-block-end: 1rem; padding-inline-end: 2.75rem; color: var(--wine); }
.letter-paper h3:focus { outline: none; }
.letter-paper p + p { margin-block-start: .95rem; }
.signature { padding-block-start: .35rem; font-style: italic; }
.signature span { font-size: 1.7rem; color: var(--wine); }
.signature::after { margin-block-start: .3rem; color: var(--wine); }
@keyframes show-letter {
  from { opacity: 0; transform: translateY(.78rem); }
  to { opacity: 1; transform: translateY(0); }
}
.instant .envelope-flap, .instant .envelope-card, .instant .envelope-seal { transition: none; }
.instant .letter-paper { animation: none; }

.gift-calendar {
  --calendar-gold: #f0bc83;
  --calendar-gap: clamp(.46rem, 1.5vw, .9rem);
  background: radial-gradient(ellipse 46rem 34rem at 50% 16%, #68344a, #3e2235);
  color: #fff3e9;
}
.gift-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100% - 2.25rem, 45rem);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(3.75rem, 9vw, 8rem);
}
.calendar-copy { text-align: center; }
.calendar-copy h2 {
  font-size: clamp(2.65rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.calendar-copy p {
  max-width: 40ch;
  margin: .8rem auto 0;
  color: #f7d9d5;
  font-size: 1.04rem;
  text-wrap: pretty;
}
.calendar-board { display: grid; gap: var(--calendar-gap); min-width: 0; }
.calendar-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--calendar-gap); }
.calendar-row--final { grid-template-columns: 1fr; }
.calendar-door {
  --door-surface: #78364f;
  --door-edge: #cf927e;
  --door-trim: #efbd8d;
  --door-ink: #fff3e9;
  --door-shape: 48% 48% .34rem .34rem / 33% 33% .34rem .34rem;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 3.65rem;
  aspect-ratio: 1.25;
  padding: 0;
  border: 0;
  border-radius: var(--door-shape);
  overflow: clip;
  background: #2b1726;
  color: var(--door-ink);
  font: 400 clamp(1.65rem, 5.5vw, 3rem) / 1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  cursor: pointer;
  isolation: isolate;
  perspective: 520px;
  -webkit-tap-highlight-color: transparent;
}
.calendar-door:disabled { cursor: default; }
.calendar-door:focus-visible { outline: 2px solid #ffe2bc; outline-offset: 2px; }
.calendar-row:nth-of-type(odd) .calendar-door:nth-child(4n + 2),
.calendar-row:nth-of-type(even) .calendar-door:nth-child(4n + 3) {
  --door-surface: #a04b59;
  --door-edge: #e5a38a;
}
.calendar-row:nth-of-type(odd) .calendar-door:nth-child(4n + 3),
.calendar-row:nth-of-type(even) .calendar-door:nth-child(4n + 1) {
  --door-surface: #eeb59e;
  --door-edge: #ffdcc3;
  --door-trim: #763e53;
  --door-ink: #452638;
}
.calendar-row:nth-of-type(odd) .calendar-door:nth-child(4n),
.calendar-row:nth-of-type(even) .calendar-door:nth-child(4n + 2) {
  --door-surface: #562d4b;
  --door-edge: #b7899e;
}
.calendar-door-inside, .calendar-door-front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid var(--door-edge);
  border-radius: inherit;
}
.calendar-door-inside {
  background: radial-gradient(ellipse at 35% 56%, #a96254, #472335 72%);
  color: #ffe1af;
}
.calendar-door-front {
  overflow: hidden;
  background: linear-gradient(145deg, #fff4de16, transparent 63%), var(--door-surface);
  backface-visibility: hidden;
  transform-origin: left center;
}
.calendar-door-front::before {
  position: absolute;
  inset: clamp(.21rem, 1vw, .48rem);
  border: 1px solid var(--door-trim);
  border-radius: inherit;
  opacity: .48;
  content: "";
  pointer-events: none;
}
.calendar-door-front::after {
  position: absolute;
  inset-inline-end: clamp(.46rem, 1.4vw, .85rem);
  inset-block-start: 55%;
  width: clamp(.32rem, 1vw, .52rem);
  aspect-ratio: .86;
  border: 1.5px solid var(--door-trim);
  border-radius: 50%;
  content: "";
}
.calendar-door[aria-expanded="true"] .calendar-door-front { opacity: 0; transform: rotateY(-86deg); pointer-events: none; }
.calendar-door--final {
  --door-shape: .65rem;
  --door-edge: #fff0c9;
  --door-trim: #774652;
  --door-ink: #3c2031;
  aspect-ratio: auto;
  margin-block-start: .3rem;
  min-height: clamp(4.65rem, 8vw, 6.05rem);
  perspective: 100rem;
}
.calendar-door--final .calendar-door-front {
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2.1rem);
  background: linear-gradient(116deg, #fff2d961, transparent 48%), var(--calendar-gold);
}
.calendar-door--final .calendar-door-front::after { display: none; }
.calendar-final-label { font: italic clamp(1.05rem, 2.6vw, 1.35rem) / 1.15 var(--serif); }
.calendar-ticket {
  position: relative;
  padding: 2.9rem clamp(1.3rem, 4vw, 2.2rem) 1.5rem;
  border: 1px solid #deb3a4;
  background: #fff3e8;
  color: var(--ink);
}
.calendar-ticket::before {
  position: absolute;
  inset: .3rem;
  border: 1px solid #caa0a1;
  content: "";
  pointer-events: none;
}
.calendar-ticket--final { border-color: var(--calendar-gold); background: #f8e3c8; }
.calendar-ticket-day { margin-block-end: .55rem; color: var(--wine); font-size: .95rem; font-weight: 600; }
.calendar-ticket h3 { font-size: clamp(1.85rem, 4.6vw, 3rem); letter-spacing: -.035em; text-wrap: balance; }
.calendar-ticket h3:focus { outline: none; }
.calendar-ticket-copy { max-width: 40ch; margin-block-start: .65rem; }
.calendar-ticket-close {
  position: absolute;
  inset-block-start: .55rem;
  inset-inline-end: .55rem;
  color: var(--wine);
}
@media (prefers-reduced-motion: no-preference) {
  .calendar-door-front { transition: transform 550ms var(--ease-out), opacity 350ms ease; }
  .calendar-ticket:not([hidden]) { animation: reveal-calendar-ticket 430ms var(--ease-out) both; }
}
@keyframes reveal-calendar-ticket {
  from { opacity: .2; transform: translateY(-.45rem); }
  to { opacity: 1; transform: none; }
}

.calendar-door[data-gift-seen]::after {
  position: absolute;
  inset-block-end: .5rem;
  inset-inline-start: .55rem;
  width: .69rem;
  height: .69rem;
  color: var(--door-trim);
  pointer-events: none;
}
.calendar-door--final[data-gift-seen]::after {
  inset-block-end: .55rem;
  inset-inline-start: auto;
  inset-inline-end: .65rem;
}

html:has(.gift-reveal[open], .recipe-viewer[open]) { overflow: hidden; }
.gift-reveal:not([open]) { display: none; }
.gift-reveal {
  width: min(100% - 2rem, 29rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: .9rem;
  background: transparent;
  color: var(--ink);
  overscroll-behavior: contain;
}
.gift-reveal::backdrop { background: #28151ee0; }
.gift-reveal-stage { position: relative; isolation: isolate; }
.gift-reveal-paper {
  position: relative;
  z-index: 1;
  padding: 3.6rem clamp(1.25rem, 6vw, 2.4rem) 1.55rem;
  border-radius: .9rem;
  background: #fff3e7;
  color: var(--ink);
}
.gift-reveal-paper::before {
  position: absolute;
  inset: .42rem;
  border: 1px solid #d3a99e;
  border-radius: .55rem;
  content: "";
  pointer-events: none;
}
.gift-reveal-paper h3 {
  font-size: clamp(2rem, 8.9vw, 3.25rem);
  letter-spacing: -.03em;
  line-height: 1.03;
  text-wrap: balance;
}
#cartita-texto {
  max-width: 35ch;
  margin-block-start: .8rem;
  font-size: 1.06rem;
  line-height: 1.5;
  color: #5d343e;
}
.gift-reveal-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 1.2rem;
  font: italic .95rem var(--serif);
  color: var(--wine);
}
.gift-reveal-day::after { width: 1.17rem; height: 1.17rem; }
.gift-reveal-close {
  position: absolute;
  inset-block-start: .65rem;
  inset-inline-end: .65rem;
  color: var(--wine);
}
.gift-reveal-envelope {
  display: none;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: min(65%, 13rem);
  aspect-ratio: 1.62;
  perspective: 38rem;
  transform: translate(-50%, -44%);
  transform-style: preserve-3d;
  pointer-events: none;
}
.gift-reveal-envelope-back,
.gift-reveal-envelope-flap,
.gift-reveal-envelope-pocket {
  position: absolute;
  inset: 0;
}
.gift-reveal-envelope-back {
  border-radius: .32rem;
  background: #c67d7f;
}
.gift-reveal-envelope-flap {
  inset-block-end: auto;
  height: 67%;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #ffcca5;
  transform-origin: top;
}
.gift-reveal-envelope-pocket {
  z-index: 2;
  border-radius: .32rem;
  background: linear-gradient(156deg, #eeb19a, #d9908a);
  clip-path: polygon(0 0, 50% 61%, 100% 0, 100% 100%, 0 100%);
}
.gift-reveal--final .gift-reveal-paper { background: #fbe7ca; }
.gift-reveal--final .gift-reveal-paper::before { border-color: #b98b63; }
.gift-reveal-passes {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-block-start: 1.3rem;
}
.gift-reveal--final .gift-reveal-passes { display: flex; }
.gift-reveal-passes span {
  width: min(42%, 7rem);
  aspect-ratio: 2.35;
  background:
    radial-gradient(circle at 0 50%, #fbe7ca .23rem, transparent .25rem),
    radial-gradient(circle at 100% 50%, #fbe7ca .23rem, transparent .25rem),
    #85505a;
  border-radius: .24rem;
  rotate: -8deg;
  position: relative;
}
.gift-reveal-passes span + span { rotate: 8deg; }
.gift-reveal-passes span::before,
.gift-reveal-passes span::after {
  position: absolute;
  content: "";
}
.gift-reveal-passes span::before {
  inset: .4rem 25% .4rem auto;
  border-inline-start: 1px dashed #fbe7ca;
}
.gift-reveal-passes span::after {
  inset: 35% 39% 35% 16%;
  border-block: 1px solid #fbe7ca;
}

@media (prefers-reduced-motion: no-preference) {
  .calendar-door[aria-expanded="false"] .calendar-door-front { transition-duration: 250ms, 160ms; }
  .gift-reveal[open]::backdrop {
    animation: gift-backdrop-in 360ms ease 90ms both;
    transition: background-color 145ms ease;
  }
  .gift-reveal[open] .gift-reveal-envelope {
    display: block;
    animation: gift-envelope-in 760ms var(--ease-out) both;
  }
  .gift-reveal[open] .gift-reveal-envelope-flap { animation: gift-flap-open 340ms var(--ease-out) 230ms both; }
  .gift-reveal[open] .gift-reveal-paper { animation: gift-paper-out 520ms var(--ease-out) 265ms both; }
  .gift-reveal--final[open] .gift-reveal-passes { animation: gift-passes-in 285ms var(--ease-out) 610ms both; }
  .gift-reveal[data-closing] { animation: gift-reveal-out 145ms ease both; }
  .gift-reveal[data-closing]::backdrop { background-color: transparent; }
}
@keyframes gift-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gift-envelope-in {
  0% { opacity: 0; transform: translate(-50%, -31%) scale(.86); }
  27%, 51% { opacity: 1; transform: translate(-50%, -44%) scale(1); }
  86%, 100% { opacity: 0; transform: translate(-50%, -32%) scale(.96); }
}
@keyframes gift-flap-open {
  from { transform: rotateX(0); }
  to { transform: rotateX(168deg); }
}
@keyframes gift-paper-out {
  0% { opacity: 0; transform: translateY(15%) scale(.64); clip-path: inset(0 18% 96% round .4rem); }
  40% { opacity: 1; transform: translateY(3%) scale(.64); clip-path: inset(0 18% 53% round .4rem); }
  100% { opacity: 1; transform: none; clip-path: inset(0 round .9rem); }
}
@keyframes gift-reveal-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes gift-passes-in {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: none; }
}

.site-footer { background: var(--blush); }
.footer-inner { min-height: 4.3rem; }


@media (hover: hover) and (pointer: fine) {
  nav a:hover { text-decoration: underline; }
  .icon-close:hover, .photo-viewer-step:not([aria-disabled="true"]):hover { background: var(--icon-pressed, #752d4327); }
  .recipe-video:hover .recipe-play { color: #462333; background: #ffe2b9; }
  .envelope-button:not([aria-expanded="true"]):hover .envelope-flap { transform: rotateX(18deg); }
  .calendar-door:hover .calendar-door-front { border-color: #f7d4ad; }
}

@media (max-width: 56rem) {
  .page-width { width: calc(100% - 3.25rem); }
}

@media (max-width: 43rem) {
  .page-width { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 4rem; gap: .5rem; }
  .wordmark { font-size: 1rem; gap: .3rem; }
  nav { gap: .65rem; }
  nav a { font-size: .88rem; }
  .letter-layout { grid-template-columns: 1fr; }

  .story-header h2 { font-size: clamp(2.65rem, 12vw, 4.5rem); }
  .year-links {
    display: grid;
    max-width: 19rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: auto;
  }
  .memory-track { --thread-x: .5rem; --branch: 1.35rem; }
  .year-marker {
    justify-items: start;
    margin-inline: 0;
    padding-inline: 0 .5rem;
    text-align: start;
  }
  .memory-list { gap: 2.4rem; }
  .memory {
    grid-template-columns: calc(var(--thread-x) + var(--branch)) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: .7rem .3rem;
  }
  .memory::before, .memory::after { inset-block-start: .75rem; }
  .memory--left::before { inset-inline-start: var(--thread-x); }
  .memory .memory-note { grid-area: 1 / 2; padding-inline: 0; text-align: start; }
  .memory .memory-photos { grid-area: 2 / 2; justify-content: flex-start; padding-inline-end: .45rem; }
  .memory--trip { width: calc(100% - 1.65rem); margin-inline: auto 0; }
  .memory--trip .trip-heading { text-align: start; }
  .memory--trip .memory-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0;
  }

  .memory-note p { margin-block-start: .3rem; margin-inline: 0 auto; }
  .memory-note time { font-size: 1.45rem; }
  .memory--milestone::after { display: block; inset-block-start: 1.6rem; }
  .memory--milestone .memory-note { justify-self: start; padding: .85rem 1rem; }
  .memory--milestone .memory-note time { font-size: .95rem; }
  .year-hearts span { --heart-opacity: .4; }
  .year-hearts span:nth-child(1), .year-hearts span:nth-child(3), .year-hearts span:nth-child(5) { --x: .05rem; }
  .year-hearts span:nth-child(2), .year-hearts span:nth-child(4), .year-hearts span:nth-child(6) { --x: calc(100% - .7rem); }
  .memory-year:nth-of-type(even) .year-hearts { transform: none; }
  .anniversary-hearts { inset-inline-start: 1.2rem; width: auto; }
  .anniversary-hearts span:nth-child(1) { --x: 3%; --y: 14%; --heart-size: .63rem; }
  .anniversary-hearts span:nth-child(2) { --x: 15%; --y: 87%; }
  .anniversary-hearts span:nth-child(11) { --x: 87%; --y: 16%; }
  .anniversary-hearts span:nth-child(12) { --x: 93%; --y: 70%; --heart-size: .68rem; }
  .memory-print img { max-height: 23rem; }

  .letter-layout { text-align: center; gap: 2rem; }
  .letter-copy p { margin-block-start: .8rem; }
  .letter-paper { text-align: start; }
  .envelope-button { width: min(86%, 20rem); margin-block-start: 1.6rem; }
  .desktop-break { display: none; }
}

@media (max-width: 34rem) {
  .recipe-videos { grid-template-columns: 1fr; }
  .recipe-video {
    grid-template: 1fr / clamp(3.9rem, 21vw, 5.8rem) minmax(0, 1fr);
    gap: .85rem;
    padding: .4rem .85rem .4rem .4rem;
    text-align: start;
  }
  .recipe-video .recipe-name { font-size: clamp(1.25rem, 5vw, 1.6rem); }
}

@media (max-width: 23rem) {
  .header-inner { flex-wrap: wrap; gap: 0 .5rem; padding-block-start: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-flap, .envelope-card, .envelope-seal { transition: none; }
  .is-open .letter-paper { animation: none; }
  .has-timeline-motion .memory-thread span { transform: none; }

}
