/* =========================================================================
   Sonia & Anthony, guest site
   Burgundy on cream. Script for the names, Cormorant for the letterspaced
   capitals, Gentium for reading. Mobile first.
   ========================================================================= */

:root {
  /* ground */
  --paper:      #ffffff;
  --paper-2:    #fdf7f6;   /* the alternating sections, barely there */
  --card:       #f9e7e5;
  --petal:      #f2dcda;

  /* the blush family */
  --primary:       #dfafab;   /* the brand blush, for fills */
  --primary-tint:  #f6e3e1;   /* a wash of it, for soft backgrounds */
  --primary-deep:  #cf9793;   /* hover, and borders that need to be seen */
  --primary-light: #98565a;   /* the blush as text, 5.5:1 on paper */
  --champagne:     #f2dcda;   /* decorative only, never type */
  --gold:          #dcb892;   /* the wax seal */

  --ink:        #382b2c;
  --ink-soft:   #6f5658;
  --muted:      #7e6164;   /* 5.2:1 on paper, 4.65:1 on the card */
  --line:       #ecd9d7;
  --on-primary: #3a2426;   /* a pale fill needs dark text, 7.75:1 */

  --danger:     #b3261e;
  --danger-bg:  #fdece9;

  --script: 'Parisienne', 'Segoe Script', cursive;
  --serif:  'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body:   'Gentium Plus', Georgia, 'Times New Roman', serif;

  /* type ramp: seven steps, sized for a serif */
  --fs-2xs: 11.5px;   /* letterspaced capitals */
  --fs-xs:  14px;     /* hints, addresses, fineprint */
  --fs-sm:  16px;     /* secondary body */
  --fs-md:  18px;     /* body, form fields */
  --fs-lg:  24px;     /* card titles */
  --fs-xl:  30px;     /* sub-headings */
  --fs-2xl: clamp(34px, 9vw, 50px);    /* section titles */
  --fs-3xl: clamp(48px, 15vw, 92px);   /* the names, in script */

  --fw-normal: 400;
  --fw-semi:   500;
  --fw-bold:   600;

  --pad: 24px;
  --shadow-sm: 0 2px 10px rgba(58, 36, 38, .06);
  --shadow:    0 14px 40px rgba(58, 36, 38, .12);
  --shadow-lg: 0 28px 70px rgba(58, 36, 38, .2);
}

* { box-sizing: border-box; }

/* Author display rules outrank the UA [hidden] rule, so restate it. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

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

::selection { background: var(--primary); color: var(--on-primary); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 6px rgba(152, 86, 90, .16);
}

/* the pale blush damask, as before */
.damask {
  position: relative;
  background-color: var(--paper);
  isolation: isolate;
}
.damask::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-size: 320px 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='200' height='200'%3E%3Cg fill='none' stroke='%23f2d9d7' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M100 20c-15 13-23 27-23 42 0 16 12 27 23 31 11-4 23-15 23-31 0-15-8-29-23-42z'/%3E%3Cpath d='M100 93c-8 10-10 22-4 32 4 7 4 14 4 21'/%3E%3Cpath d='M100 146c11 0 21 7 25 17'/%3E%3Cpath d='M100 146c-11 0-21 7-25 17'/%3E%3Cpath d='M62 58c-15 5-25 17-25 31 0 11 6 19 15 23'/%3E%3Cpath d='M138 58c15 5 25 17 25 31 0 11-6 19-15 23'/%3E%3Cpath d='M18 122c9-11 21-15 33-11'/%3E%3Cpath d='M182 122c-9-11-21-15-33-11'/%3E%3Cpath d='M100 0c-6 6-9 12-9 18'/%3E%3C/g%3E%3Cg fill='%23f8e8e7'%3E%3Ccircle cx='100' cy='60' r='5'/%3E%3Ccircle cx='52' cy='112' r='4'/%3E%3Ccircle cx='148' cy='112' r='4'/%3E%3Cellipse cx='76' cy='121' rx='9' ry='4.5' transform='rotate(-28 76 121)'/%3E%3Cellipse cx='124' cy='121' rx='9' ry='4.5' transform='rotate(28 124 121)'/%3E%3Cellipse cx='100' cy='180' rx='8' ry='4'/%3E%3C/g%3E%3C/svg%3E");
}
.section-alt.damask { background-color: var(--paper-2); }

/* ---------------------------------------------------------- the dividers */

/* two hairlines flanking a small heart, as on the invitation */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 42px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 130px;
  height: 1px;
  background: var(--line);
}

.heart {
  display: block;
  flex: none;
  width: 15px;
  height: 14px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1.8 14.3 1.8 7.6A5.6 5.6 0 0 1 12 4.4a5.6 5.6 0 0 1 10.2 3.2C22.2 14.3 12 21 12 21z' fill='%2398565a'/%3E%3C/svg%3E");
}

/* a short rule with a diamond, under the smaller headings */
.rule-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 20px;
  max-width: 150px;
  color: var(--champagne);
  font-size: 9px;
}
.rule-diamond::before,
.rule-diamond::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ------------------------------------------------------------- typography */

/* the letterspaced capitals that carry every label on this design */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 18px;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-2xl);
  line-height: 1.25;
  color: var(--primary-light);
}
.section-title-sm {
  margin: 0 0 16px;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-xl);
  line-height: 1.3;
  color: var(--primary-light);
}

.section-sub {
  margin: 0 auto 34px;
  max-width: 28em;
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose { font-size: var(--fs-md); line-height: 1.9; color: var(--ink-soft); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.narrow { max-width: 32em; }

.mono { font-family: var(--serif); letter-spacing: .1em; }
.opt {
  font-family: var(--serif);
  color: var(--muted);
  font-weight: var(--fw-normal);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--fs-2xs);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary-light);
}
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary-light);
}
.btn-ghost:hover { background: var(--primary); color: var(--on-primary); }

.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* =========================================================== THE ENVELOPE */

.envelope-stage {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  perspective: 1400px;
  overflow: hidden;
}

.envelope-stage.gone { animation: stageOut .7s ease forwards; }
@keyframes stageOut { to { opacity: 0; visibility: hidden; } }

.envelope {
  position: relative;
  width: min(86vw, 360px);
  aspect-ratio: 3 / 2;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: breathe 4.5s ease-in-out infinite;
  transition: transform .8s cubic-bezier(.6, .05, .2, 1), opacity .5s ease;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

.env-back, .env-front, .env-flap {
  position: absolute;
  inset: 0;
  border-radius: 4px;
}

.env-back {
  background: linear-gradient(160deg, #e6bcb8, #c98f8a);
  box-shadow: var(--shadow-lg);
}

.env-letter {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  height: 84%;
  background: #fffdfa;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(58, 36, 38, .2);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform 1s cubic-bezier(.5, 0, .2, 1) .35s, opacity .4s ease;
}
.env-letter-mark {
  margin: 0;
  font-family: var(--script);
  font-size: 34px;
  color: var(--primary-light);
}

.env-front {
  z-index: 3;
  background: linear-gradient(170deg, #e9c2be, #d6a29d);
  clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.env-flap {
  z-index: 4;
  height: 62%;
  background: linear-gradient(180deg, #efd0cd, #dfafab);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .8s cubic-bezier(.6, .05, .2, 1);
  backface-visibility: hidden;
}

/* the gold wax seal */
.seal {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  z-index: 6;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f6e0c8, var(--gold) 54%, #b98a63 100%);
  box-shadow: 0 8px 20px rgba(120, 80, 60, .32), inset 0 -2px 6px rgba(140, 100, 75, .45), inset 0 2px 5px rgba(255, 246, 236, .7);
  transition: transform .5s ease, opacity .4s ease;
  animation: sealPulse 2.6s ease-in-out infinite;
}
.seal-mark {
  font-family: var(--script);
  font-size: 20px;
  color: #7a4a3c;
  line-height: 1;
  padding-bottom: 3px;
  max-width: 82%;
  overflow: hidden;
}
@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  55%      { transform: scale(1.05); }
}

.env-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeInUp 1s ease .8s both;
}

/* opening choreography */
.envelope-stage.opening .seal   { transform: scale(.4) rotate(-120deg); opacity: 0; }
.envelope-stage.opening .env-flap { transform: rotateX(180deg); }
.envelope-stage.opening .env-letter { transform: translateY(-62%) scale(1.04); }
.envelope-stage.opening .env-hint { opacity: 0; }
.envelope-stage.opening .envelope {
  animation: none;
  transform: translateY(14vh) scale(.92);
  opacity: 0;
  transition-delay: .9s;
}

/* ------------------------------------------------------------- the letter */

.letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.envelope-stage.reading .letter {
  opacity: 1;
  visibility: visible;
  animation: letterIn .9s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes letterIn {
  from { opacity: 0; transform: translateY(34px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.letter-inner {
  width: min(100%, 540px);
  margin: auto;
  padding: 44px 28px 36px;
  background: #fffdfa;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}
/* a hairline frame, printed-invitation style */
.letter-inner::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--champagne);
  pointer-events: none;
  opacity: .6;
}

.letter-eyebrow {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}
.letter-greeting {
  margin: 0 0 24px;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-xl);
  color: var(--primary-light);
}
.letter-body {
  font-size: var(--fs-sm);
  line-height: 2;
  text-wrap: pretty;
  color: var(--ink-soft);
}
.letter-body p { margin: 0 0 1.4em; }
.letter-body p:last-child { margin-bottom: 0; }

.letter-signoff {
  margin: 32px 0 4px;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--muted);
}
.letter-names {
  margin: 0 0 28px;
  font-family: var(--script);
  font-size: clamp(36px, 10vw, 48px);
  color: var(--primary-light);
}
.letter-enter { min-width: 200px; }

/* ------------------------------------------------------------------ petals
   Burgundy rose petals, reused by the RSVP burst. */

.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  top: -8%;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3c9 5 14 12 14 19 0 8-6 15-14 15S6 30 6 22C6 15 11 8 20 3z' fill='%2398565a'/%3E%3Cpath d='M20 8c5 4 8 9 8 14 0 5-4 9-8 9s-8-4-8-9c0-5 3-10 8-14z' fill='%23a61e36'/%3E%3C/svg%3E");
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate3d(var(--drift, 0), 115vh, 0) rotate(420deg); opacity: 0; }
}

/* ================================================================== TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad);
  background: rgba(255, 252, 248, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 8px;
  font-family: var(--serif);
  font-weight: var(--fw-bold);
  font-size: 22px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--primary-light);
}
.topbar-mark span { color: var(--muted); margin: 0 3px; }   /* champagne would be 2.23:1 here */

.topbar-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.topbar-nav::-webkit-scrollbar { display: none; }
@media (max-width: 719px) {
  .topbar-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }
}
.topbar-nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0 9px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.topbar-nav a:hover { color: var(--primary-light); }

/* the menu button, which only exists on a phone */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-bars { display: block; width: 20px; }
.nav-bars i {
  display: block;
  height: 1.5px;
  background: var(--primary-light);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-bars i + i { margin-top: 5px; }
.nav-toggle[aria-expanded='true'] .nav-bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 719px) {
  .nav-toggle { display: grid; }

  /* the row becomes a sheet under the bar */
  .topbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 6px var(--pad) 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(58, 36, 38, .14);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .topbar-nav.is-open { display: flex; animation: navDrop .22s ease; }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } }

  .topbar-nav a {
    min-height: 52px;
    padding: 0 2px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    letter-spacing: .22em;
  }
  .topbar-nav a:last-child { border-bottom: 0; }
}

/* On a wide screen the page is easy to scroll, so the nav keeps only the
   three entries that lead somewhere a guest acts. The phone keeps them all. */
@media (min-width: 720px) {
  .topbar-nav a.nav-phone { display: none; }
  .topbar-nav { gap: 10px; }
}

/* ==================================================================== HERO */

.hero {
  position: relative;
  min-height: calc(100svh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--pad) 92px;
  background: var(--paper);
  overflow: hidden;
}

/* the split monogram from the invitation */
.monogram {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: var(--fw-normal);
  font-size: clamp(38px, 11vw, 58px);
  line-height: 1;
  color: var(--primary-light);
}
.monogram i {
  display: block;
  width: 1px;
  height: 1.15em;
  background: var(--primary-light);
  font-style: normal;
}
.monogram b:first-of-type { align-self: flex-start; font-weight: var(--fw-normal); }
.monogram b:last-of-type  { align-self: flex-end;   font-weight: var(--fw-normal); }

.hero-eyebrow {
  margin: 0 0 18px;
  max-width: 16em;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  line-height: 2.2;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-names {
  margin: 0;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  color: var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-names .amp { font-size: .62em; line-height: 1.1; }

/* the heart rule under the names */
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(78%, 300px);
  margin: 18px 0 20px;
}
.hero-rule::before,
.hero-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--champagne);
}

.hero-tagline {
  margin: 0 auto 26px;
  max-width: 20em;
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.5;
  color: var(--primary-light);
}

.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.hero-date {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-place {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.reopen-letter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reopen-letter:hover { color: var(--primary-light); }

/* --------------------------------------------------- the scroll chevron */

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(152, 86, 90, .9);
  backdrop-filter: blur(6px);
  color: #fffdfd;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.scroll-cue:hover { background: var(--primary-deep); }
.scroll-cue.hidden { opacity: 0; transform: translate(-50%, 130%); pointer-events: none; }

/* ================================================================ SECTIONS */

.section {
  position: relative;
  padding: 68px var(--pad);
  scroll-margin-top: 60px;
  text-align: center;
}

.hashtag {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary-light);   /* champagne is decorative only, it fails as text */
}

/* --------------------------------------------------------------- countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.countdown > div { padding: 6px 2px; }
.countdown b {
  display: block;
  font-family: var(--serif);
  font-weight: var(--fw-normal);
  font-size: clamp(34px, 9.5vw, 48px);
  line-height: 1.1;
  color: var(--primary-light);
}
.countdown span {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- our song */

.song-our {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
}
.song-title { margin-bottom: 26px; line-height: 1.45; }

.song-name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.song-artist {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.song-note {
  margin: 0 auto 28px;
  max-width: 26em;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--muted);
}

/* the sleeve and the record, as on the invitation */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.song-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  width: min(100%, 320px);
}

.song-sleeve {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* the record covers 46px of the right edge, so centre in what is left */
  padding: 14px 46px 14px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.song-sleeve-our {
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.song-sleeve-word {
  font-family: var(--script);
  font-size: 34px;
  line-height: .9;
  color: var(--primary-light);
}

/* the record slides out from behind the sleeve */
.song-record {
  flex: none;
  margin-left: -46px;
  width: 140px;
  height: 140px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.song-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 21%, transparent 21%),
    repeating-radial-gradient(circle at 50% 50%, var(--primary-deep) 0 3px, var(--primary) 3px 6px);
  box-shadow: 0 6px 18px rgba(58, 36, 38, .3), inset 0 0 0 1px rgba(58, 36, 38, .3);
}
/* the play triangle, which becomes a pause bar while it is running */
.song-disc i {
  display: block;
  width: 0; height: 0;
  border-left: 15px solid var(--primary-light);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
  transition: border-color .2s ease;
}
.song-record[aria-pressed='true'] .song-disc { animation: spin 3.4s linear infinite; }
.song-record[aria-pressed='true'] .song-disc i {
  width: 14px; height: 18px; margin-left: 0;
  border: 0;
  border-left: 5px solid var(--primary-light);
  border-right: 5px solid var(--primary-light);
}
.song-record:hover .song-disc i { border-left-color: var(--on-primary); border-right-color: var(--on-primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.song-listen {
  margin: 0 0 6px;
  font-family: var(--body);
  font-size: clamp(20px, 5.4vw, 26px);
  font-style: italic;
  color: var(--primary-light);
}

/* The player is the sound only. It has to stay rendered and inside the
   viewport or the browser throttles it, so it is a two-pixel square with
   no opacity rather than display:none. */
.song-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.song-frame iframe { width: 300px; height: 170px; border: 0; display: block; }

.song-fallback { margin: 14px 0 0; font-size: var(--fs-sm); font-style: italic; }
.song-fallback a { color: var(--primary-light); }

/* ---------------------------------------------------------------- location */

.venue { margin-bottom: 52px; }
.venue:last-of-type { margin-bottom: 0; }

.venue-lead {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.venue-name {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: var(--fw-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.venue-time {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  color: var(--ink);
}
.venue-addr { margin: 0 0 18px; font-size: var(--fs-sm); font-style: italic; color: var(--muted); }

.maps-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.maps-link:hover { color: var(--primary-light); border-bottom-color: var(--primary-light); }

/* --------------------------------------------------------------- schedule */

.schedule-date {
  margin: 0 auto 40px;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  margin-left: -.5px;
  background: var(--line);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  margin-bottom: 26px;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-side { grid-column: 1; text-align: right; padding-right: 8px; }
.tl-item:nth-child(even) .tl-side { grid-column: 3; text-align: left; padding: 0 0 0 8px; }

.tl-pill {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 2px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .14em;
}
.tl-label { margin: 9px 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); }
.tl-note { margin: 2px 0 0; font-size: var(--fs-xs); font-style: italic; color: var(--muted); }

.tl-node {
  grid-column: 2;
  justify-self: center;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--primary-light);
}
.tl-node svg { width: 19px; height: 19px; }

/* -------------------------------------------------------------- dress code */

.dress-sub {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}

.dress-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 36px 26px 40px;
  background: var(--card);
  position: relative;
}
.dress-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(152, 86, 90, .18);
  pointer-events: none;
}
.dress-note {
  margin: 0 0 28px;
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.8;
  color: var(--ink);
}
.dress-block + .dress-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(152, 86, 90, .16); }
.dress-block h3 {
  margin: 0 0 12px;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-xl);
  color: var(--primary-light);
}
.dress-block p { margin: 0; font-size: var(--fs-sm); line-height: 1.85; color: var(--ink-soft); }

/* ---------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 34px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 12px 10px;
  font-size: var(--fs-xs);
  font-style: italic;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(58, 36, 38, .78));
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 48px 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-style: italic;
}
.gallery-empty .big { font-size: 32px; display: block; margin-bottom: 12px; }

/* ------------------------------------------------------------------ gifts */

.gift-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 38px 0;
  text-align: left;
}

.gift {
  display: flex;
  flex-direction: column;
  background: #fffdfa;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gift:not(.claimed):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gift.claimed { opacity: .6; }

.gift-media {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 40px;
  background: var(--card);
}
/* store photos: show the whole product on white, never crop or overflow */
.gift-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  background: #fff;
}
.gift-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gift-body { padding: 20px 18px 20px; display: flex; flex-direction: column; flex: 1; }
/* the cards are for reading and comparing, so plain Gentium throughout */
.gift-body h3 {
  margin: 0 0 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}
.gift-desc { margin: 0 0 16px; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }

.gift-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--body);
}
.gift-price { color: var(--primary-light); font-weight: 700; font-size: var(--fs-md); }
.gift-left { color: var(--muted); font-size: var(--fs-xs); }

.gift-bar {
  height: 2px;
  margin: 12px 0 16px;
  background: var(--line);
  overflow: hidden;
}
.gift-bar i { display: block; height: 100%; background: var(--primary-light); }

.gift-actions { display: flex; gap: 10px; }
.gift-actions .btn {
  flex: 1;
  min-height: 46px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}
.gift .gift-tag { font-family: var(--body); font-size: 13px; letter-spacing: .04em; text-transform: none; font-weight: 700; }

/* the gift list is one deliberate tap away, not a wall of cards */
.gift-cta-wrap { margin: 34px 0 0; }

.gift-cta {
  min-height: 58px;
  padding: 0 30px;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(152, 86, 90, .24);
}
.gift-cta-icon { font-size: 19px; line-height: 1; }
.gift-cta-arrow {
  font-size: 16px;
  transition: transform .2s ease;
}
.gift-cta:hover .gift-cta-arrow { transform: translateX(4px); }

.gift-cta-note {
  margin: 14px 0 0;
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--muted);
}

/* the gift page itself */
.gift-couple {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.gift-back { margin: 44px 0 0; }

.registry-link {
  max-width: 560px;
  margin: 30px auto 40px;
}
.gift-actions .btn-wide { flex: 1 1 100%; }

.registry-link p {
  margin: 0 0 18px;
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- bank */

.bank {
  max-width: 540px;
  margin: 0 auto;
  padding: 34px 26px;
  background: var(--card);
  position: relative;
}
.bank::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(152, 86, 90, .18);
  pointer-events: none;
}
.bank-note {
  margin: 0 0 24px;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink);
}
.bank-details { margin: 0 0 24px; display: grid; gap: 14px; text-align: left; }
.bank-details dt {
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.bank-details dd { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--ink); }
.bank-details dd.mono { font-family: var(--serif); font-size: var(--fs-lg); letter-spacing: .1em; color: var(--primary-light); }

/* ------------------------------------------------------------------- RSVP */

.rsvp-note { margin: 0 auto 10px; font-size: var(--fs-sm); font-style: italic; line-height: 1.8; color: var(--ink-soft); }
.rsvp-note p { margin: 0 0 .6em; }
.rsvp-note p:last-child { margin-bottom: 0; }

.deadline {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.rsvp-open { min-width: 240px; }

.form {
  text-align: left;
  max-width: 540px;
  margin: 34px auto 0;
  animation: fadeInUp .5s ease both;
}

.field { display: block; margin-bottom: 20px; border: 0; padding: 0; }

.field > label,
.field legend {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdfa;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #b09b90; font-style: italic; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(152, 86, 90, .14);
}

.hint { margin: 8px 0 0; font-size: var(--fs-xs); font-style: italic; color: var(--muted); }

.choices { display: grid; gap: 10px; }
.choices-3 { grid-template-columns: repeat(3, 1fr); }

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdfa;
  text-align: center;
  font-size: var(--fs-sm);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.choice span:hover { border-color: var(--primary-light); }
.choice input:checked + span {
  background: var(--primary);
  border-color: var(--primary-light);
  color: var(--on-primary);
}
.choice input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.form-error {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: var(--fs-sm);
}

.field-error {
  margin: 8px 0 0;
  font-size: var(--fs-xs);
  color: var(--danger);
}
.field-error::before { content: '⚠ '; }
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.field input[aria-invalid='true']:focus,
.field textarea[aria-invalid='true']:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(163, 35, 27, .18);
}

.fineprint { margin: 16px 0 0; text-align: center; font-size: var(--fs-xs); font-style: italic; color: var(--muted); }

.rsvp-done {
  max-width: 480px;
  margin: 30px auto 0;
  padding: 44px 26px;
  background: var(--card);
}
.rsvp-done .tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 26px;
}
.rsvp-done h3 {
  margin: 0 0 12px;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-xl);
  color: var(--primary-light);
}
.rsvp-done p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }

.lookup { max-width: 540px; margin: 28px auto 0; text-align: left; }
.lookup summary {
  padding: 13px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.lookup summary:hover { color: var(--primary-light); }
.lookup-form { display: flex; gap: 10px; margin-top: 16px; }
.lookup-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdfa;
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.lookup-form input:focus { outline: none; border-color: var(--primary-light); }
.lookup-result { margin: 14px 0 0; font-size: var(--fs-sm); font-style: italic; color: var(--ink-soft); }

/* ----------------------------------------------------------------- footer */

.footer {
  position: relative;
  padding: 78px var(--pad) calc(96px + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--primary);
}
.footer-names {
  margin: 0 0 10px;
  font-family: var(--script);
  font-size: clamp(34px, 9vw, 46px);
  color: var(--on-primary);
}
.footer-line {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #4a3234;
}
.footer-hash {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #5c4042;
}
.footer-admin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5c4042;
  text-decoration: none;
}
.footer-admin:hover { color: var(--on-primary); }

/* ------------------------------------------------------------------ modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(58, 36, 38, .6);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px 24px calc(30px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -20px 60px rgba(58, 36, 38, .4);
  animation: sheetUp .34s cubic-bezier(.2, .8, .3, 1);
  text-align: left;
}
@keyframes sheetUp { from { transform: translateY(100%); } }

.modal-sheet h3 {
  margin: 0 0 8px;
  font-family: var(--script);
  font-weight: var(--fw-normal);
  font-size: var(--fs-xl);
  color: var(--primary-light);
}
.modal-sub { margin: 0 0 24px; font-size: var(--fs-sm); font-style: italic; color: var(--ink-soft); }
.modal-sheet .form { margin-top: 0; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--primary-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(46, 30, 31, .95);
  animation: fadeIn .25s ease;
}
.lightbox figure { margin: 0; max-width: 100%; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 16px; text-align: center; color: #f6e9e8; font-size: var(--fs-sm); font-style: italic; }
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 248, .16);
  color: #fffcf8;
  font-size: 24px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 140;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  padding: 14px 22px;
  background: #4a3234;
  color: #fdf4f3;
  font-size: var(--fs-sm);
  text-align: center;
  box-shadow: var(--shadow);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

/* the toast grows a little when it is asking something */
.toast-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 16px;
  max-width: calc(100vw - 32px);
  width: 360px;
  text-align: center;
}
.toast-text { font-size: var(--fs-sm); }
.toast-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.toast-go,
.toast-stay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.toast-go {
  background: var(--paper);
  color: #4a3234;
  text-decoration: none;
  border: 1px solid var(--paper);
}
.toast-go:hover { background: var(--card); }
.toast-stay {
  background: transparent;
  color: #fdf4f3;
  border: 1px solid rgba(253, 244, 243, .5);
}
.toast-stay:hover { border-color: #fdf4f3; }

.toast-count {
  font-family: var(--serif);
  font-size: var(--fs-2xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(253, 244, 243, .78);
}

/* ------------------------------------------------------- reveal-on-scroll */

.reveal { opacity: 0; }
.reveal.in { animation: fadeInUp .7s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================ BIGGER SCREENS */

@media (min-width: 600px) {
  :root { --pad: 40px; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-details { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure { aspect-ratio: 3 / 4.4; }
  .countdown { gap: 20px; }
  .tl-item { grid-template-columns: 1fr 64px 1fr; }
}

@media (min-width: 900px) {
  :root { --pad: 60px; }
  .section { padding: 96px max(var(--pad), calc((100vw - 1000px) / 2)); }
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { max-width: 760px; margin-inline: auto; }
}

/* ---------------------------------------------------------- accessibility */

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