@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f8efe3;
  --paper-deep: #eedbc9;
  --ink: #5b3b35;
  --muted: #8b655d;
  --berry: #a64455;
  --berry-dark: #78303f;
  --rose: #d89299;
  --blush: #edc3bd;
  --pistachio: #a5aa85;
  --gold: #b99350;
  --frame: min(440px, 100vw);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; overflow-x: hidden; }

html { background: #322925; scroll-behavior: smooth; }

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 20%, rgba(237, 195, 189, .16), transparent 35%),
    #322925;
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

img { display: block; max-width: 100%; }

.page {
  position: relative;
  width: var(--frame);
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(106, 67, 53, .035) 1px, transparent 1px) 0 0 / 7px 100%,
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.5), transparent 28%),
    var(--paper);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.35);
}

/* Opening: a dressing-up wardrobe, deliberately unrelated to the wedding envelope. */
.intro {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    linear-gradient(rgba(250,240,228,.12), rgba(250,240,228,.12)),
    url("assets/storybook-bg.webp") center / cover no-repeat,
    var(--paper);
  transition: opacity .75s ease, visibility .75s ease;
}

.js .intro { display: grid; }

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(105, 66, 52, .12);
}

.intro.is-gone { opacity: 0; visibility: hidden; }

.intro-copy { position: relative; z-index: 3; text-align: center; margin-bottom: 18px; }
.kicker, .eyebrow, .date-kicker {
  margin: 0;
  color: var(--muted);
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.intro-name {
  margin: -2px 0 0;
  color: var(--berry);
  font-size: clamp(62px, 18vw, 88px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .9;
}

.wardrobe {
  position: relative;
  z-index: 2;
  width: min(68vw, 285px);
  aspect-ratio: .71;
  padding: 0;
  border: 0;
  border-radius: 49% 49% 8px 8px / 22% 22% 8px 8px;
  background: #a8515f;
  cursor: pointer;
  perspective: 1000px;
  filter: drop-shadow(0 25px 24px rgba(92, 51, 43, .27));
  -webkit-tap-highlight-color: transparent;
}

.wardrobe:focus-visible { outline: 3px solid #fff; outline-offset: 7px; }

.wardrobe::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9px;
  border: 2px solid rgba(120,48,63,.55);
  border-radius: inherit;
  background: #dba3a3;
}

.wardrobe-top {
  position: absolute;
  z-index: 7;
  left: 50%; top: 7%;
  width: 44px; height: 25px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(111, 61, 50, .35);
  background: #edc9b6;
  box-shadow: inset 0 -3px 0 rgba(136, 76, 63, .12);
}
.wardrobe-top::after {
  content: "A";
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--berry-dark);
  font-size: 18px;
  font-style: italic;
}

.wardrobe-photo {
  position: absolute;
  inset: 2px;
  overflow: hidden;
  border-radius: inherit;
  background: #f4d8d4;
}
.wardrobe-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.surprise {
  position: absolute;
  left: 0; right: 0; bottom: 7%;
  color: #fffdf7;
  font-size: 31px;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(82, 44, 37, .6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s .55s ease, transform .45s .55s ease;
}

.door {
  position: absolute;
  z-index: 5;
  top: 0;
  width: 50%; height: 100%;
  overflow: hidden;
  border: 1px solid rgba(91, 42, 50, .25);
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 30%, rgba(85,27,40,.08)),
    #ad5967;
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(.2,.74,.24,1);
}
.door-left { left: 0; border-radius: 100% 0 0 7px / 22% 0 0 7px; transform-origin: left center; }
.door-right { right: 0; border-radius: 0 100% 7px 0 / 0 22% 7px 0; transform-origin: right center; }
.panel {
  position: absolute;
  inset: 18% 13% 12%;
  border: 1px solid rgba(247, 215, 202, .45);
  border-radius: 48% 48% 6px 6px / 18% 18% 6px 6px;
  box-shadow: inset 0 0 0 7px rgba(113, 45, 59, .08);
}
.knob {
  position: absolute;
  top: 54%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #c7a263;
  box-shadow: 0 1px 3px rgba(67, 35, 27, .45), inset 0 1px 1px rgba(255,255,255,.55);
}
.door-left .knob { right: 8px; }
.door-right .knob { left: 8px; }

.wardrobe-feet::before, .wardrobe-feet::after {
  content: "";
  position: absolute;
  z-index: -2;
  bottom: -18px;
  width: 35px; height: 27px;
  border-radius: 0 0 7px 7px;
  background: #7d3948;
}
.wardrobe-feet::before { left: 15px; transform: rotate(4deg); }
.wardrobe-feet::after { right: 15px; transform: rotate(-4deg); }

.intro.is-opening .door-left { transform: rotateY(-112deg); }
.intro.is-opening .door-right { transform: rotateY(112deg); }
.intro.is-opening .surprise { opacity: 1; transform: none; }
.intro.is-opening .tap-hint { opacity: 0; }

.tap-hint {
  position: relative;
  z-index: 3;
  margin: 36px 0 0;
  color: var(--berry-dark);
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity .3s ease;
  animation: breathe 2.4s ease-in-out infinite;
}
.tap-hint span { color: var(--gold); padding: 0 4px; }

/* Main story */
.hero {
  position: relative;
  min-height: min(1000px, max(820px, 100svh));
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(248,239,227,.05) 50%, rgba(248,239,227,.86) 92%, var(--paper) 100%),
    url("assets/storybook-bg.webp") top center / cover no-repeat,
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(101,67,47,.035), transparent 30%, rgba(255,255,255,.08));
  mix-blend-mode: multiply;
}

.seam {
  position: absolute;
  z-index: 4;
  right: 18px; top: 0;
  width: 15px; height: 34%;
  opacity: .62;
  border-inline: 1px dashed rgba(104,76,56,.28);
  background: rgba(217,145,151,.42);
}

.eyebrow { position: relative; z-index: 3; padding-top: max(62px, calc(env(safe-area-inset-top) + 40px)); }

.hero h1 {
  position: relative;
  z-index: 3;
  margin: 2px 0 0;
  color: var(--berry);
  font-size: clamp(83px, 25vw, 112px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .78;
  text-shadow: 0 3px 0 rgba(255,255,255,.38);
}
.hero h1:focus { outline: none; }

.turning {
  position: relative; z-index: 3;
  margin: 18px 0 -23px;
  color: var(--muted);
  font-size: 25px;
  font-style: italic;
}

.big-two {
  position: relative;
  z-index: 3;
  height: .83em;
  margin: 0;
  overflow: hidden;
  color: var(--berry-dark);
  font-size: 156px;
  font-weight: 300;
  letter-spacing: -.08em;
  line-height: .83;
}
.number-window { position: relative; display: block; width: .65em; height: .83em; margin: 0 auto; overflow: hidden; clip-path: inset(0); }
.number-reel { position: absolute; top: 0; left: 0; display: block; width: 100%; transform: translateY(-1.66em); }
.number-reel span { display: block; height: .83em; line-height: .83; text-align: center; }
.js .number-reel:not(.is-rolling) { transform: translateY(0); }
.js .number-reel.is-rolling { animation: number-roll 1.45s ease-in-out both; }

.years {
  position: relative; z-index: 3;
  margin: 0;
  color: var(--berry-dark);
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .33em;
  text-indent: .33em;
  text-transform: uppercase;
}

.hero-photo {
  position: absolute;
  z-index: 2;
  left: 34%;
  bottom: 0;
  width: 124%;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}
.hero-photo img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 15px 18px rgba(85,56,43,.18)); }
.hero-shadow {
  position: absolute;
  left: 24%; right: 16%; bottom: 4%;
  height: 7%;
  border-radius: 50%;
  background: rgba(90,67,50,.17);
  filter: blur(12px);
}

.hero-scroll {
  position: absolute;
  z-index: 6;
  left: 50%; bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  min-width: 180px;
  min-height: 38px;
  padding: 8px 30px;
  border-radius: 999px;
  color: var(--berry-dark);
  background: rgba(255,250,242,.78);
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(83,49,39,.1);
}
.hero-scroll:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.hero-scroll span { white-space: nowrap; }
.hero-scroll svg { position: absolute; right: 12px; top: 50%; width: 11px; height: 18px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.3; }

.chapter { position: relative; padding: 94px 38px 48px; text-align: center; }
.chapter-number {
  position: absolute;
  left: 50%; top: 14px;
  transform: translateX(-50%) rotate(-5deg);
  color: rgba(166,68,85,.12);
  font-size: 100px;
  font-style: italic;
  line-height: 1;
}
.chapter h2, .date-card h2 {
  position: relative;
  margin: 0;
  color: var(--berry-dark);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .93;
}
.intro-chapter h2 { scroll-margin-top: 32px; }
.chapter p {
  position: relative;
  max-width: 310px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.memory-book { position: relative; min-height: clamp(1880px, calc(1480px + 128vw), 2040px); padding: 26px 0 90px; }
.memory-book::before {
  content: "";
  position: absolute;
  top: 20px; bottom: 30px; left: 50%;
  border-left: 1px dashed rgba(152,114,87,.22);
}

.snapshot {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 11px 11px 38px;
  background: #fffaf0;
  box-shadow: 0 12px 30px rgba(92,58,47,.16), 0 1px 0 rgba(110,73,54,.12);
}
.snapshot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(.96); }
.snapshot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  color: var(--berry-dark);
  text-align: center;
  font-size: 20px;
  font-style: italic;
}
.snapshot-red { top: 26px; left: -4%; width: 72%; height: 460px; transform: rotate(-5deg); }
.snapshot-cozy { top: 490px; right: -5%; width: 66%; height: 405px; transform: rotate(5deg); }
.snapshot-sun { top: 910px; left: 4%; width: 74%; height: 480px; transform: rotate(-3deg); }
.snapshot-fit { top: 1400px; right: 6%; width: 66%; height: auto; padding-bottom: 42px; transform: rotate(4deg); }
.snapshot-fit video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--paper-deep); }
.snapshot-red img { object-position: center 22%; }
.snapshot-cozy img { object-position: center 35%; }
.snapshot-sun img { object-position: center 30%; }

.tape {
  position: absolute;
  z-index: 3;
  left: 50%; top: -17px;
  width: 76px; height: 31px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(221,160,157,.72);
  clip-path: polygon(3% 5%, 98% 0, 95% 100%, 0 93%);
  mix-blend-mode: multiply;
}
.tape-green { background: rgba(160,169,133,.68); transform: translateX(-50%) rotate(-2deg); }
.stitch {
  position: absolute;
  z-index: 3;
  left: 50%; top: -22px;
  width: 86px; height: 42px;
  transform: translateX(-50%) rotate(4deg);
  border: 1px dashed rgba(101,76,57,.4);
  background: rgba(242,213,180,.78);
}

.date-section { position: relative; padding: 72px 22px 84px; }
.date-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(218,151,157,.27), transparent 21%),
    radial-gradient(circle at 93% 70%, rgba(165,170,133,.24), transparent 23%);
}
.date-card {
  position: relative;
  z-index: 2;
  padding: 72px 24px 46px;
  text-align: center;
  border: 1px solid rgba(144,102,76,.18);
  border-radius: 180px 180px 24px 24px / 90px 90px 24px 24px;
  background: rgba(255,250,241,.88);
  box-shadow: 0 20px 50px rgba(103,65,48,.13), inset 0 0 45px rgba(221,181,151,.11);
  backdrop-filter: blur(3px);
}
.date-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px dashed rgba(149,109,80,.24);
  border-radius: inherit;
}
.bow { position: absolute; z-index: 3; left: 50%; top: -13px; width: 48px; height: 30px; transform: translateX(-50%); }
.bow::before, .bow::after {
  content: "";
  position: absolute;
  top: 0;
  width: 29px; height: 23px;
  border: 1px solid rgba(114,52,64,.3);
  border-radius: 75% 22% 62% 30%;
  background: #ca7e88;
}
.bow::before { right: 22px; transform: rotate(18deg); }
.bow::after { left: 22px; transform: scaleX(-1) rotate(18deg); }
.bow i { position: absolute; z-index: 2; left: 50%; top: 7px; width: 17px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: var(--berry); }
.bow b::before, .bow b::after { content: ""; position: absolute; top: 20px; width: 13px; height: 26px; background: #bd6472; clip-path: polygon(0 0,100% 5%,78% 100%,45% 74%,0 100%); }
.bow b::before { left: 16px; transform: rotate(10deg); }
.bow b::after { right: 16px; transform: scaleX(-1) rotate(10deg); }

.date-kicker { margin-bottom: 14px; }
.date-main { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 0; }
.date-main strong { color: var(--berry); font-size: 94px; font-weight: 400; letter-spacing: -.08em; line-height: .8; }
.date-main span { color: var(--muted); text-align: left; font-family: ui-rounded, "Avenir Next", system-ui, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .17em; line-height: 1.55; text-transform: uppercase; }
.date-rule { display: flex; align-items: center; gap: 12px; margin: 25px auto 16px; color: var(--gold); }
.date-rule::before, .date-rule::after { content: ""; flex: 1; height: 1px; background: rgba(141,105,71,.22); }
.date-rule span { font-size: 10px; }
.nepali-date { margin: 0; color: var(--muted); font-size: 21px; font-style: italic; }

.countdown { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 5px 0; }
.countdown div { display: flex; flex-direction: column; gap: 4px; }
.countdown div + div { border-left: 1px solid rgba(126,91,70,.18); }
.countdown strong { color: var(--berry-dark); font-size: 31px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown span { color: var(--muted); font-family: ui-rounded, "Avenir Next", system-ui, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }

.calendar-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 34px;
  padding: 13px 25px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--berry);
  box-shadow: 0 8px 18px rgba(128,54,70,.22);
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.calendar-button:hover { background: var(--berry-dark); transform: translateY(-2px); box-shadow: 0 11px 22px rgba(128,54,70,.28); }
.calendar-button:active { transform: translateY(0); }
.calendar-button:focus-visible { outline: 3px solid rgba(166,68,85,.3); outline-offset: 4px; }
.calendar-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.details-note { position: relative; margin: 24px 0 0; color: var(--muted); font-size: 15px; font-style: italic; line-height: 1.45; }

.dance-section { padding: 64px 24px 85px; text-align: center; background: radial-gradient(circle at 50% 55%, rgba(237,195,189,.24), transparent 57%), var(--paper); }
.dance-section h2 { margin: 15px 0 0; color: var(--berry-dark); font-size: clamp(40px, 11vw, 50px); font-weight: 500; font-style: italic; line-height: .95; }
.dance-note { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.3; }
.dance-card { position: relative; width: min(100%, 315px); margin: 44px auto 0; padding: 12px 12px 48px; background: #fffaf0; box-shadow: 0 18px 40px rgba(92,58,47,.18); transform: rotate(-3deg); }
.dance-screen { position: relative; }
.dance-card video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--paper-deep); }
.dance-sound { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; background: rgba(57,38,49,.72); font-family: ui-rounded, "Avenir Next", system-ui, sans-serif; font-size: 10px; font-weight: 700; cursor: pointer; }
.dance-sound:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.dance-card figcaption { position: absolute; right: 0; bottom: 10px; left: 0; color: var(--berry-dark); font-size: 23px; font-style: italic; }

.footer { min-height: 340px; padding: 90px 25px 70px; text-align: center; background: linear-gradient(rgba(248,239,227,.32), rgba(248,239,227,.1)), url("assets/storybook-bg.webp") bottom center / 100% auto no-repeat; }
.footer-script { margin: 0 0 22px; color: var(--berry-dark); font-size: 34px; font-style: italic; line-height: 1; }
.footer p:last-child { margin: 0; color: var(--muted); font-family: ui-rounded, "Avenir Next", system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .28em; }

.music-toggle {
  position: fixed;
  z-index: 60;
  right: max(14px, calc((100vw - 440px) / 2 + 14px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(144,102,76,.22);
  border-radius: 999px;
  color: var(--berry-dark);
  background: rgba(255,250,241,.94);
  box-shadow: 0 5px 18px rgba(92,58,47,.15);
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.music-toggle[hidden] { display: none; }
.music-toggle:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.music-note { font-size: 17px; line-height: .7; }

.tap-sparkles { position: fixed; z-index: 100; inset: 0; overflow: hidden; pointer-events: none; }
.tap-particle { position: absolute; opacity: 0; animation: tap-burst .72s cubic-bezier(.18,.7,.35,1) forwards; }
.tap-particle.is-confetti { width: 5px; height: 9px; border-radius: 1px; background: currentColor; }
.tap-particle.is-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.tap-particle.is-star::before { content: "✦"; font-size: 12px; line-height: 1; text-shadow: 0 0 5px currentColor; }

@keyframes tap-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.7) rotate(var(--spin)); }
}

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .snapshot-red.reveal { transform: translateY(26px) rotate(-5deg); }
.js .snapshot-cozy.reveal { transform: translateY(26px) rotate(5deg); }
.js .snapshot-sun.reveal { transform: translateY(26px) rotate(-3deg); }
.js .snapshot-fit.reveal { transform: translateY(26px) rotate(4deg); }
.js .snapshot-red.reveal.is-visible { transform: rotate(-5deg); }
.js .snapshot-cozy.reveal.is-visible { transform: rotate(5deg); }
.js .snapshot-sun.reveal.is-visible { transform: rotate(-3deg); }
.js .snapshot-fit.reveal.is-visible { transform: rotate(4deg); }

@keyframes breathe { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes number-roll {
  0%, 15% { transform: translateY(0); }
  38%, 53% { transform: translateY(-.83em); }
  85%, 100% { transform: translateY(-1.66em); }
}

@media (min-width: 500px) and (min-height: 780px) {
  .page { border-radius: 24px; margin-block: 28px; }
}

@media (max-width: 499px) {
  html, body { background: var(--paper); }
  .page { box-shadow: none; }
}

@media (max-height: 690px) {
  .intro-copy { margin-bottom: 8px; }
  .wardrobe { width: min(54vw, 220px); }
  .tap-hint { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .number-reel:not(.is-rolling) { transform: translateY(-1.66em); }
}
