/* Android has no Arial: it quietly swaps any "Arial" for Roboto, which is wider and changes the spaced
   capitals. 'Device Arial' only matches a real installed Arial (iPhone, Mac, Windows); everywhere else it
   fails and the page uses Arimo (Google Fonts), which has exactly Arial's letter shapes and widths. */
@font-face { font-family: 'Device Arial'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Arial Regular'); }
@font-face { font-family: 'Device Arial'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'); }
:root {
  --paper: #F8F2E8;
  --paper-deep: #F1E8DC;
  --card: #FCF6EB;
  --blush: #EFE6DC;
  --brick: #B0342A;      /* the invite heart / red suite card */
  --brick-deep: #8E2A21;
  --ivory: #FBEDE3;      /* text on red */
  --sand: #DCD1BE;       /* the suite's details card (sampled from Fedele's One Mimosa Please screenshot, 5 Dec); was #D6C8A8 */
  --ink: #1B1A18;
  --ink-soft: #4A4642;
  --line: #2B2926;
  --muted: #8B847C;
  /* Two typefaces, as on the printed invitation: Arial MT Pro (Arial where the licensed Pro cut is not
     installed; same design) and BP-JulietteEx2. Juliette has no web font, so every script phrase is real
     Canva lettering (see scripts/make-script.py and script.css); Monsieur La Doulaise is only a fallback. */
  --script: 'Monsieur La Doulaise', 'Snell Roundhand', cursive;
  --sans: 'Arial MT Pro', 'Device Arial', 'Arimo', 'Helvetica Neue', Helvetica, sans-serif;
  --caps: var(--sans);
  --flourish: var(--script);
  --ease: cubic-bezier(.22, .8, .25, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-sealed { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
b { font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }

.caps { font-family: var(--caps); text-transform: uppercase; font-size: 13px; letter-spacing: .02em; line-height: 1.55; margin: 0; }
.tracked { letter-spacing: .32em; }
.eyebrow { font-family: var(--caps); text-transform: uppercase; letter-spacing: .4em; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.script-title { font-family: var(--script); font-weight: 400; font-size: clamp(27px, 7.4vw, 44px); line-height: 1; color: var(--brick); margin: 18px 0 30px; }
.script-title .jt { display: block; margin: 0 auto; max-width: 100%; } /* never wider than its card, so long headings stay centred on phones */
.script-red { font-family: var(--script); color: var(--brick); font-size: 54px; line-height: 1.1; margin: 18px 0 10px; }
.spaced { font-family: var(--caps); letter-spacing: .5em; font-size: 14px; margin: -6px 0 18px; }
.lede { max-width: 600px; margin: 0 auto 36px; color: var(--ink-soft); }
.link-caps { background: none; border: 0; padding: 13px 0; margin: -13px 0; /* 44px-tall tap area, same look */ font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: 11.5px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-caps:hover { color: var(--brick); }

/* ---------- Envelope intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: visibility 0s;
}
/* The backdrop is its own layer so it can fade while the invitation glides into place above it. */
.intro::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, #F4ECE0, #E7DDCF); transition: opacity .6s cubic-bezier(.4, 0, .2, 1); }
.intro.is-gone { visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s; }
.intro.is-gone::before, .intro.is-handoff::before { opacity: 0; }
.intro.is-instant, .intro.is-instant::before, .intro.is-resetting, .intro.is-resetting::before, .intro.is-resetting * { transition: none !important; }
.intro__to { font-family: var(--caps); text-transform: uppercase; font-size: 15px; letter-spacing: .04em; margin: 0; transition: opacity .3s; }
.intro__hint { font-family: var(--caps); text-transform: uppercase; letter-spacing: .4em; font-size: 11px; color: var(--muted); margin: 0; animation: breathe 2.4s ease-in-out infinite; transition: opacity .3s; }
.intro.is-open .intro__hint, .intro.is-open .intro__to, .intro.is-gone .intro__hint, .intro.is-gone .intro__to { opacity: 0; animation: none; }

/* Envelope back, as on the printed one: a deep pointed flap closed with a plain red heart. */
.envelope {
  --w: min(84vw, 420px);
  position: relative; width: var(--w); height: calc(var(--w) * .7);
  border: 0; padding: 0; background: none;
  animation: float 5s ease-in-out infinite;
}
.intro.is-open .envelope { animation-play-state: paused; }
.envelope__back, .envelope__pocket, .envelope__flap { position: absolute; inset: 0; transition: opacity .6s ease, translate .8s cubic-bezier(.4, 0, .2, 1); }
.envelope__back { background: linear-gradient(#D6D2CB, #CFCAC2); border-radius: 2px; box-shadow: 0 18px 30px rgba(60, 45, 30, .2); }
.envelope__pocket { width: 100%; height: 100%; z-index: 3; overflow: visible; }
.envelope__flap {
  width: 100%; height: 68.6%; z-index: 4; transform-origin: top center; overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(60, 45, 30, .12));
  transition: transform .75s cubic-bezier(.45, 0, .25, 1) .2s, z-index 0s .55s, opacity .6s ease, translate .8s cubic-bezier(.4, 0, .2, 1);
}
/* The card inside is a scaled-down copy of the real invitation, so it can grow into it seamlessly. */
.envelope__card {
  position: absolute; left: 50%; top: 4%; z-index: 2; width: 0; height: 0;
  transition: translate 1.15s cubic-bezier(.55, .05, .25, 1);
}
.envelope__card .card, .mini-env__card .card { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); pointer-events: none; transition: none; will-change: auto; }
.envelope__seal {
  position: absolute; left: 50%; top: 68.6%; width: 15%; z-index: 5; transform: translate(-50%, -66%);
  transition: opacity .3s, transform .45s var(--ease);
}
.envelope__seal svg { width: 100%; fill: #A8352B; filter: drop-shadow(0 1px 1.5px rgba(80, 20, 10, .3)); }

.intro.is-open .envelope__seal { opacity: 0; transform: translate(-50%, -66%) scale(.7); }
.intro.is-open .envelope__flap { transform: scaleY(-1); z-index: 1; }
.intro.is-drawn .envelope__card { translate: 0 calc(-1 * var(--lift, 0px)); }
.intro.is-handoff .envelope__card { z-index: 6; }
.intro.is-handoff .envelope__back, .intro.is-handoff .envelope__pocket, .intro.is-handoff .envelope__flap { opacity: 0; translate: 0 40px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(248, 242, 232, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%); transition: transform .5s var(--ease), border-color .3s;
}
.nav.is-visible { transform: none; border-color: rgba(43, 41, 38, .12); }
.nav__links { display: flex; gap: clamp(12px, 3vw, 30px); align-items: center; }
.nav__links a { font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; text-decoration: none; }
.nav__links a:hover { color: var(--brick); }
.nav__links a:not(.nav__rsvp) { padding: 13px 0; margin: -13px 0; }
.nav__rsvp { border: 1px solid var(--line); padding: 7px 12px 6px; }
/* Phones keep all four links (Fedele, 5 Dec): tighter lettering so they fit on one line down to 320px. */
@media (max-width: 520px) {
  .nav__links { gap: clamp(9px, 3.4vw, 16px); }
  .nav__links a { font-size: 10px; letter-spacing: .13em; white-space: nowrap; }
  .nav__rsvp { padding: 7px 9px 6px; }
}

/* ---------- Hero card ---------- */
.hero { min-height: 100svh; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 88px 16px 70px; position: relative; }
.hero__to { font-family: var(--caps); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; margin: 0 0 18px; }
/* Card geometry is measured from the Canva export (1333 x 2000). Tops are cap-top / 2000,
   minus .29em to go from an Arial cap-top to the line box top at line-height 1.32. */
.card {
  --cw: min(100vw - 32px, 520px, calc((100svh - 150px) * .6667), calc((100vh - 150px) * .6667));
  position: relative; width: var(--cw); aspect-ratio: 2 / 3;
  background: var(--card); text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 60px -18px rgba(70, 45, 25, .28);
  container-type: inline-size;
}
.card > * { position: absolute; left: 0; right: 0; margin: 0; }
.card .caps { font-family: Arial, 'Arimo', Helvetica, sans-serif; font-size: max(7.5px, 1.99cqi); line-height: 1.32; letter-spacing: 0; color: #000; }
.card__lead { top: calc(13.45% - .29em); }
.card__art { top: 18.5%; width: 100%; height: auto; }
.card__body { top: calc(76.85% - .29em); }
.card__body--time { top: calc(84.05% - .29em); }
.card__dress-art { top: 89.95%; left: 41.64%; right: auto; width: 17.63%; height: auto; }
.card__dress { top: calc(93.4% - .29em); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-cue { position: absolute; bottom: 22px; width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; opacity: .55; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--line); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; text-decoration: none; color: var(--brick); border: 1px solid var(--brick); background: transparent; transition: background .25s, color .25s, border-color .25s; }
.btn--outline:hover { background: var(--brick); color: var(--ivory); }
.btn--solid { background: var(--brick); border-color: var(--brick); color: var(--ivory); width: 100%; min-height: 54px; font-size: 12px; }
.btn--solid:hover { background: var(--brick-deep); border-color: var(--brick-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.field.is-flash input, .field.is-flash select, fieldset.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 4px rgba(176, 52, 42, .25); } }

/* ---------- The stationery suite (One Mimosa Please "Edgar Allan Poe" look) ----------
   Flat printed pieces: brick red and ivory cards, a sand envelope, softly blurred hearts, BP-JulietteEx2
   headings, small Arial capitals justified into tidy blocks, and loose red-ink sketches. */
.section { padding: clamp(40px, 8vw, 80px) 16px; text-align: center; }
.sheet { position: relative; isolation: isolate; overflow: hidden; max-width: 760px; margin: 0 auto; padding: clamp(52px, 10vw, 88px) clamp(24px, 7vw, 80px); container-type: inline-size;
  box-shadow: 0 1px 2px rgba(60, 35, 20, .07), 0 26px 50px -26px rgba(70, 35, 20, .4); }
.sheet--ivory { background: var(--card); color: var(--ink); }
.sheet--sand { background: var(--sand); color: var(--ink); }
.sheet--red { background: var(--brick); color: var(--ivory); }
/* The red invitation's fine double rule */
.sheet--red::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(251, 237, 227, .5); box-shadow: inset 0 0 0 3px var(--brick), inset 0 0 0 4px rgba(251, 237, 227, .3); pointer-events: none; }
.sheet .script-title { margin: 0 0 clamp(28px, 6vw, 44px); color: var(--brick); }
.sheet h3 { margin: 0 0 12px; font-weight: 400; font-size: clamp(22px, 5.6vw, 30px); line-height: 1; color: var(--brick); }
.sheet h3 .jt { display: block; margin: 0 auto; }
.sheet.sheet--red .script-title, .sheet.sheet--red h3 { color: var(--ivory); }
.body-caps { font-family: var(--caps); text-transform: uppercase; font-size: clamp(11px, 2.9vw, 12.5px); letter-spacing: .07em; line-height: 1.8;
  max-width: 440px; margin: 0 auto; text-align: center; -webkit-hyphens: none; hyphens: none; } /* centred, not justified: no big gaps between words (Helena, 2 Dec) */
.body-caps + .body-caps { margin-top: 12px; }

/* Softly blurred hearts, as on the invite, the red envelope and the details card. The heart shape is a
   mask on ::before and the blur sits on the parent, so the edge itself is soft. */
.blur-heart { position: absolute; z-index: -1; aspect-ratio: 100 / 92; pointer-events: none; filter: blur(var(--blur, 22px)); }
.blur-heart::before { content: ''; position: absolute; inset: 0; background: var(--heart, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C 22 68, 2 48, 2 27 C 2 12, 13 2, 27 2 C 38 2, 46 9, 50 18 C 54 9, 62 2, 73 2 C 87 2, 98 12, 98 27 C 98 48, 78 68, 50 90 Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C 22 68, 2 48, 2 27 C 2 12, 13 2, 27 2 C 38 2, 46 9, 50 18 C 54 9, 62 2, 73 2 C 87 2, 98 12, 98 27 C 98 48, 78 68, 50 90 Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.blur-heart--white { --heart: rgba(255, 255, 255, .92); }
.blur-heart--blush { --heart: #EDD3C7; }
.blur-heart--deep { --heart: #5A0F0B; }

/* Outline line drawings (white ink + alpha, coloured here). Redrawn 25 Nov 2026 from Helena's references:
   clean outlines, no shading. Made by scripts/make-outline-icons.py. */
/* BP-JulietteEx2 has hairline strokes that vanish at small sizes; thicken every script phrase a touch (28 Nov). */
.jt { filter: drop-shadow(.45px 0 0 currentColor) drop-shadow(-.45px 0 0 currentColor) drop-shadow(0 .35px 0 currentColor); }
.sketch { display: block; margin: 0 auto 16px; width: 84px; background: currentColor; color: var(--brick);
  -webkit-mask: var(--s) center / contain no-repeat; mask: var(--s) center / contain no-repeat; }
.sheet--red .sketch { color: var(--ivory); }
.sketch--coupes { --s: url('/art/sketch/coupes.webp?v=3'); aspect-ratio: 640 / 572; width: 74px; }
.sketch--map { --s: url('/art/sketch/map.webp?v=3'); aspect-ratio: 640 / 436; width: 112px; } /* brush strokes, Helena 2 Dec */
.sketch--bowtie { --s: url('/art/sketch/bowtie.webp?v=2'); aspect-ratio: 378 / 222; width: 82px; }
.sketch--gift { --s: url('/art/sketch/gift.webp?v=2'); aspect-ratio: 555 / 640; width: 58px; }
.sketch--swans { --s: url('/art/sketch/swans.webp?v=3'); aspect-ratio: 640 / 318; } /* brush strokes, Helena 2 Dec */
.sketch--locket { --s: url('/art/sketch/locket.webp?v=2'); aspect-ratio: 640 / 492; }
.sketch--recovery { --s: url('/art/sketch/recovery.webp?v=2'); aspect-ratio: 640 / 318; }
/* The wedding's twin heart lockets, with F and H in the invite script set inside each heart */
.locket { position: relative; display: block; width: 150px; margin: 0 auto; color: var(--brick); line-height: 0; }
.locket .sketch { width: 100%; margin: 0; }
.locket .jt { position: absolute; translate: -50% -50%; font-size: 13px; }
.locket__f { left: 24.4%; top: 51%; }
.locket__h { left: 62%; top: 48.5%; }

/* ---------- Keepsake: flat-lay of the red RSVP envelope and the ivory heart card ---------- */
/* --shift moves "We're getting married" down so it sits midway between the flat lay and the details card (Helena, 2 Dec). */
.keepsake { --shift: 38px; padding: clamp(36px, 7vw, 70px) 16px max(6px, calc(clamp(44px, 8vw, 80px) - var(--shift))); text-align: center; }
@media (min-width: 600px) and (max-width: 1100px) { .keepsake { --shift: 21px; } }
.flatlay { position: relative; width: min(100%, 640px); aspect-ratio: 100 / 78; margin: 0 auto; }
.piece { position: absolute; display: block; overflow: hidden; isolation: isolate; text-decoration: none; container-type: inline-size;
  box-shadow: 0 2px 3px rgba(40, 20, 10, .12), 0 26px 42px -22px rgba(60, 25, 12, .5); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.piece:hover { transform: translateY(-6px); box-shadow: 0 3px 5px rgba(40, 20, 10, .12), 0 34px 50px -22px rgba(60, 25, 12, .5); }
.piece:focus-visible { outline: 2px solid var(--brick); outline-offset: 5px; }
.piece__script { position: absolute; left: 50%; translate: -50% 0; }
.piece__caps { position: absolute; left: 0; right: 0; font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; line-height: 1.65; padding-left: .14em; }
.piece__cta { position: absolute; left: 50%; translate: -50% 0; bottom: 8%; white-space: nowrap; font-family: var(--caps); text-transform: uppercase; font-weight: 700; letter-spacing: .24em; padding-left: .24em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.piece--envelope { left: 0; top: 4%; width: 66%; aspect-ratio: 190 / 130; background: var(--brick); color: var(--ivory); z-index: 1; }
.piece__flap { position: absolute; inset: 0; width: 100%; height: 100%; }
.piece--envelope .blur-heart { width: 22%; left: 39%; top: 44%; --blur: 2.6cqi; }
.piece--envelope .piece__script { top: 6%; font-size: 5.8cqi; }
.piece--envelope .piece__caps { top: 27%; font-size: 3cqi; }
.piece--envelope .piece__cta { font-size: 2.9cqi; }

.piece--card { right: 0; top: 30%; width: 47%; aspect-ratio: 1 / 1.1; background: var(--card); color: var(--brick); z-index: 2; }
.piece--card .blur-heart { width: 80%; left: 10%; top: 12%; --blur: 4cqi; }
.piece--card .piece__script { top: 30%; font-size: 9.6cqi; }
.piece--card .piece__caps { top: 53%; font-size: 3.9cqi; color: var(--ink); }
.piece--card .piece__cta { font-size: 3.6cqi; }


@media (max-width: 560px) {
  .flatlay { aspect-ratio: 100 / 132; }
  .piece--envelope { width: 92%; top: 0; }
  .piece--card { width: 72%; top: 46%; }
}
/* Nothing decorative may ever make the page wider than the screen (iOS ignores overflow-x: hidden on body). */
.keepsake, main, body { overflow-x: clip; }
.keepsake__title { margin: calc(clamp(36px, 8vw, 64px) + var(--shift)) 0 10px; }
.keepsake__sub { color: var(--ink-soft); line-height: 1.9; }

/* ---------- The finer details (red card) ---------- */
#details .blur-heart { width: 84%; left: 8%; top: 16%; --blur: 4.2cqi; }
.detail + .detail { margin-top: clamp(34px, 7vw, 46px); }

/* ---------- The weekend (ivory card) ---------- */
.days { display: grid; gap: 44px 30px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .days { grid-template-columns: 1fr 1fr; }
  /* Side by side, the two days line up row for row (drawing, heading, lines, address, directions) even
     though the wedding has one more line. Browsers without subgrid still get the buttons level. */
  .day { display: flex; flex-direction: column; }
  .day__lines { flex: 1; }
  @supports (grid-template-rows: subgrid) {
    .days { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .day { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
  }
}
/* Both days get the same art box, so the headings and text line up side by side on a laptop */
.day__art { display: flex; align-items: center; justify-content: center; height: 92px; margin: 0 auto 18px; }
/* Sized to match the Getting there map (about 80px tall). The coupes get a little extra height for their sparkles. */
.day__art > .sketch { width: auto; height: 80px; margin: 0; }
.day__art > .sketch--coupes { height: 84px; }
.day__art > .sketch--swans { height: 72px; }
.day__lines { margin-bottom: 14px; }
.day__place { color: var(--ink-soft); margin-bottom: 18px; }
.day__actions { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.getting-there { margin-top: clamp(40px, 8vw, 56px); padding-top: clamp(36px, 7vw, 48px); border-top: 1px solid rgba(176, 52, 42, .3); }
.link-caps { color: var(--brick); }

/* ---------- Stay in Torquay (sand card) ---------- */
.stay__lede { margin-bottom: 30px; }
.hotels { display: grid; grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; border-top: 1px solid rgba(120, 45, 30, .3); }
@media (min-width: 560px) { .hotels { grid-template-columns: 1fr 1fr; } .hotel:nth-child(odd) { border-right: 1px solid rgba(120, 45, 30, .3); } }
.hotel { display: grid; gap: 4px; padding: 20px 12px; text-decoration: none; border-bottom: 1px solid rgba(120, 45, 30, .3); font-family: var(--caps); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; transition: background .25s; }
.hotel:hover { background: rgba(255, 255, 255, .25); }
.hotel b { color: var(--brick); font-size: 12.5px; letter-spacing: .12em; }
.hotel i { font-style: normal; text-decoration: underline; text-underline-offset: 4px; color: var(--ink-soft); font-size: 10.5px; letter-spacing: .14em; margin-top: 4px; }

/* ---------- RSVP (ivory card with a blush heart) ---------- */
.sheet--rsvp { max-width: 720px; }
.rsvp__heart { width: 70%; left: 15%; top: 1%; --blur: 4.6cqi; --heart: #E9C7B9; }
.rsvp__lede { margin-bottom: 34px; }

/* ---------- Closing: red envelope back with its soft white heart ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--brick); color: var(--ivory); text-align: center; padding: clamp(70px, 14vw, 120px) 16px; }
.closing .blur-heart { position: relative; display: block; width: 96px; margin: 0 auto 30px; z-index: 0; --blur: 9px; }
.closing__names { margin: 0 0 10px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .4em; padding-left: .4em; font-size: 12px; font-weight: 700; }
.closing__date { margin: 0; font-family: var(--caps); letter-spacing: .4em; padding-left: .4em; font-size: 11px; opacity: .85; }

/* ---------- RSVP form ---------- */
.rsvp { max-width: 560px; margin: 0 auto; text-align: left; display: grid; gap: 26px; }
.rsvp fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rsvp legend, .field > span { display: block; font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; margin-bottom: 10px; padding: 0; }
.field i, legend i { font-style: normal; color: var(--muted); letter-spacing: .08em; text-transform: none; }
.field { display: block; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255,255,255,.7); border: 1px solid rgba(176,52,42,.35); border-radius: 0;
  padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brick) 50%), linear-gradient(135deg, var(--brick) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brick); background: #fff; box-shadow: 0 0 0 3px rgba(166,59,45,.12); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label, .pills label { position: relative; cursor: pointer; }
.choice label { display: flex; }
.choice label span { flex: 1; }
.choice input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.choice label > span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px; border: 1px solid var(--brick); color: var(--brick); background: rgba(255,255,255,.5); font-family: var(--script); font-size: clamp(14px, 3.9vw, 24px); line-height: 1.1; transition: background .2s, color .2s; }
/* Plain caption under the script on each choice, with room to breathe below the script's descenders. */
.choice label > span { flex-direction: column; gap: 14px; padding: 20px 12px 22px; }
.choice label > span > span { flex: none; }
/* Same lettering box on both choices so the captions line up side by side. */
.choice .jt { height: 2.55em; }
.choice__cap { font-family: var(--caps); font-size: 10.5px; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; padding-left: .22em; }
.choice input:checked + span { background: var(--brick); border-color: var(--brick); color: var(--ivory); }
/* The script lettering is a mask filled with currentColor: keep its background as currentColor so it turns ivory on red. */
.choice input:checked + span .jt { background: currentColor; color: var(--ivory); }
.choice input:focus-visible + span, .pills input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label > span { display: inline-block; padding: 10px 16px; border: 1px solid rgba(176,52,42,.45); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; border-radius: 0; background: rgba(255,255,255,.5); transition: background .2s, color .2s, border-color .2s; }
.pills input:checked + span { background: var(--brick); color: var(--ivory); border-color: var(--brick); }

/* One card per invited person (household RSVPs). Name on top, accept/decline, then their own details. */
.people { display: grid; gap: 16px; }
.rsvp .person { margin: 0; padding: 22px 18px 20px; border: 1px solid rgba(176,52,42,.28); background: rgba(255,255,255,.4); min-width: 0; }
@media (max-width: 480px) { .rsvp .person { padding: 18px 12px 16px; } }
.person > legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; text-align: center; font-family: var(--caps); text-transform: uppercase;
  letter-spacing: .22em; padding-left: .22em; font-size: 13px; line-height: 1.5; color: var(--brick); }
.person > legend + * { clear: both; }
.person__ask { margin: 0 0 12px; text-align: center; font-size: 13px; }
.person__pills { justify-content: center; }
.person__more { display: grid; gap: 20px; margin-top: 20px; }
.person:not(.is-yes) .person__more { display: none; }
.person .field > span, .person .field legend { font-size: 10.5px; margin-bottom: 8px; }
.choice--person label > span { min-height: 0; padding-left: 8px; padding-right: 8px; }
/* Lettering never wider than its button: the mask scales down inside its box on narrow phones. */
.choice .jt { max-width: 100%; }
.choice--person label, .choice--person label > span { min-width: 0; }
@media (max-width: 480px) {
  .choice--person { grid-template-columns: minmax(0, 1fr); }
  .choice--person label > span { font-size: min(20px, 5.4vw); }
  .choice--person .choice__cap { letter-spacing: .14em; padding-left: .14em; font-size: 10px; }
}
.rsvp__lede { text-align: center; text-align-last: center; }
.person.is-flash { animation: flash 1.6s var(--ease); }

.if-attending { display: grid; gap: 26px; }
/* The recovery: one row of pills per person coming, their first name above it (hidden for households of one). */
/* It sits in its own sand panel, with the script heading from The Weekend, so the
   Saturday is easy to tell apart from the wedding-day questions above it. */
.recovery { background: var(--sand); padding: 26px 18px 26px; text-align: center; }
@media (max-width: 480px) { .recovery { padding: 22px 12px 22px; } }
.recovery h3 { margin: 0 0 12px; }
.recovery__ask { margin: 0 0 20px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em; padding-left: .16em; font-size: 11.5px; line-height: 1.7; }
.recovery .pills { justify-content: center; }
.recovery .pills label > span { background: rgba(255,255,255,.6); }
.recovery .pills input:checked + span { background: var(--brick); }
.recovery__rows { display: grid; gap: 16px; }
.recovery__row[hidden], .recovery__who[hidden] { display: none; }
.recovery__who { display: block; margin-bottom: 8px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: 11.5px; color: var(--brick); }
.recovery__row.is-flash { animation: flash 1.6s var(--ease); }
.rsvp:not(.is-attending) .if-attending { display: none; }
.rsvp:not(.has-answer) > :not(.people) { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-left: 3px solid var(--brick); background: rgba(166,59,45,.08); color: var(--brick-deep); white-space: pre-line; }
.thanks { max-width: 560px; margin: 0 auto; }
.thanks .lede { font-family: var(--caps); text-transform: uppercase; font-size: 12px; letter-spacing: .07em; line-height: 1.8; }
.thanks:focus { outline: none; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.closed { max-width: 560px; margin: 0 auto; color: var(--ink-soft); }
.mail-link { color: var(--brick); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Opened card: gentle tilt on hover ---------- */
.hero { perspective: 1400px; }
.card { transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease); will-change: transform; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.card.is-tilting { transition: transform .12s linear, box-shadow .3s; box-shadow: 0 2px 3px rgba(0,0,0,.05), 0 40px 70px -20px rgba(70, 45, 25, .35); }
.card.is-tilting::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card { transform: none !important; } }

/* Opening hand-off: the real invitation stays hidden until the card from the envelope lands on it. */
body.is-sealed .hero .card { visibility: hidden; }
body.is-revealing .hero__to { animation: fadeIn .8s both; }
body.is-revealing .scroll-cue { animation: fadeIn .8s .2s both; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Phones: everything centred ---------- */
@media (max-width: 640px) {
  .rsvp { text-align: center; }
  .rsvp legend, .field > span { text-align: center; width: 100%; }
  .recovery__who { padding-left: .22em; }
  .pills { justify-content: center; }
  .field input, .field textarea, .field select { text-align: center; text-align-last: center; }
}

/* Letter-spaced caps carry trailing space after the last letter; pad the start by the same amount so
   centred lines sit optically centred. */
.eyebrow { padding-left: .4em; }
.caps.tracked, .keepsake__sub { padding-left: .32em; }
.spaced { padding-left: .5em; }
@media (max-width: 480px) {
  .choice { grid-template-columns: 1fr; }
  .choice label > span { font-size: 22px; }
}
