/* ==========================================================================
   Megan & Thomas · April 10, 2027
   Palette and logo come from the Details, Darling branding board.
   Layout follows a classic wedding-site flow: a painted hero, the day in a
   checkerboard, the place, the weekend, a countdown, and a reply page.
   ========================================================================== */

/* Afrah, the typeface in the planner's logo (personal-use licence; this is a private site) */
@font-face {
  font-family: "Afrah";
  src: url("assets/fonts/afrah-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper:      #F7F2EA;
  --paper-2:    #FBF8F2;
  --linen:      #EEE6DA;
  --linen-deep: #E7DED1;
  --ink:        #2F4255;
  --ink-soft:   #5A6878;
  /* the blues are the palette's pale sky, taken deeper for type and panels */
  --slate:      #5485B0;
  --slate-deep: #376891;
  --night:      #3C6D97;
  --night-deep: #2C5679;
  --apricot:    #DEB286;
  --olive:      #9F9757;
  --olive-deep: #7C7843;
  /* the florals: old rose, light bronze, tuscan sun, pale sky, olive.
     -deep is safe for script and small marks on paper; -soft is a panel tint */
  --rose:        #D37A8A;
  --rose-deep:   #B5566A;
  --rose-soft:   #F4DCDC;
  --bronze:      #DE9D71;
  --bronze-deep: #B86B3C;
  --bronze-soft: #F8E4D5;
  --sun:         #E9BF58;
  --sun-deep:    #C4962B;
  --sun-soft:    #F6EAC6;
  --sky:         #B7D3E9;
  --sky-deep:    #8FB3D8;
  --sky-soft:    #DCE8F1;
  --moss:        #7C831B;
  --moss-deep:   #646A14;
  /* Megan's swatches: light yellow for buttons, light blue for coloured bands */
  --butter:      #F2D090;
  --powder:      #BECCDD;
  --hair:       rgba(84, 133, 176, .3);
  --hair-light: rgba(247, 242, 234, .35);

  --heading: "Afrah", "Cormorant Garamond", Garamond, Georgia, serif;  /* the logo's typeface */
  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --text:    "EB Garamond", Garamond, Georgia, serif;
  --script:  "Pinyon Script", "Snell Roundhand", cursive;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 5vw, 56px);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(17px, 1.05vw + 12px, 20px)/1.65 var(--text);
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--slate-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--bronze); }
::selection { background: var(--sun-soft); color: var(--ink); }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
i { font-style: normal; color: var(--bronze); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 1.5px solid var(--slate); outline-offset: 4px; border-radius: 2px; }

/* ── Logo masks: lets the real logo artwork take any colour ── */
.logo-mask {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.logo-mask--mono { --src: url("assets/monogram.png?v=2"); aspect-ratio: 550 / 559; }
.logo-mask--and  { --src: url("assets/monogram-and.png?v=2"); aspect-ratio: 880 / 411; }

/* ── Shared type ── */
.title {
  margin: 0;
  font: 400 clamp(2.4rem, 5.6vw, 4.4rem)/1 var(--heading);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--slate-deep);
}
.title--light { color: var(--paper); }

.script, .kicker {
  margin: .35em 0 0;
  font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--script);
  color: var(--slate);
}
.script--light, .kicker--light { color: var(--sun); }

.caps {
  margin: 0;
  font: 600 .76rem/1.9 var(--display);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.caps--light { color: rgba(247, 242, 234, .82); }

.rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 0;
  width: 180px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
/* a hand-drawn wildflower; main.js draws one into each (a plain dot until then) */
.rule span { flex: none; width: 54px; height: 29px; }
.rule span:empty { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }
.rule svg { width: 100%; height: 100%; overflow: visible; }

/* ── Buttons ── */
.btn {
  --b: var(--slate);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 2.1em;
  border: 1px solid var(--b);
  border-radius: 999px;
  background: transparent;
  color: var(--b);
  font: 600 .74rem/1 var(--display);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--b); color: var(--paper); transform: translateY(-1px); }
.btn--solid { background: var(--slate); color: var(--paper); }
.btn--solid:hover { background: var(--slate-deep); border-color: var(--slate-deep); }
.btn--light { --b: var(--paper); }
.btn--light:hover { color: var(--night); }
.btn--small { padding: .8em 1.6em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--solid[disabled]:hover { background: var(--slate); border-color: var(--slate); }

/* ==========================================================================
   Top bar and menu
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--bar);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 242, 234, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
          backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--hair);
}
.bar__mark { width: 24px; color: var(--slate); }
.bar__end { display: flex; align-items: center; gap: 18px; }
.bar__rsvp {
  padding: .8em 1.5em;
  border: 1px solid var(--slate); border-radius: 999px;
  font: 600 .7rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate-deep); text-decoration: none;
  transition: background .3s, color .3s;
}
.bar__rsvp:hover { background: var(--slate); color: var(--paper); }

.bar__menu {
  position: relative; z-index: 60;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
}
.bar__menu span:not(.sr-only) {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--slate-deep);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.bar__menu span:nth-child(2) { top: 18px; }
.bar__menu span:nth-child(3) { top: 25px; }
.bar__menu[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(45deg); }
.bar__menu[aria-expanded="true"] span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: calc(var(--bar) + env(safe-area-inset-top, 0px)) var(--gutter) 32px;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0; transition: opacity .45s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu__mark { width: 120px; color: var(--slate); }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li { margin: 4px 0; }
.menu a {
  font: 400 clamp(1.5rem, 4.2vw, 2rem)/1.3 var(--heading);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-deep); text-decoration: none;
}
.menu a:hover { color: var(--bronze-deep); }
.menu__date { margin: 0; font: 600 .72rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* ==========================================================================
   Hero: the garden, with the names in its sky
   ========================================================================== */
.hero {
  /* the painting covers the hero; its open sky between the sycamores sits a
     little right of centre, and the names sit in it */
  position: relative;
  min-height: 100vh;
  min-height: max(100svh, 640px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--bar) + 24px) var(--gutter) clamp(72px, 12vh, 120px);
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  /* on a tall screen this keeps the clearing mid-screen, clear of the left-hand leaves */
  object-fit: cover; object-position: 61% 40%;
}
.hero::before {
  /* the sky's own glow, a touch brighter where the names are */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 52% 32% at 50% 47%, rgba(247, 242, 234, .8), rgba(247, 242, 234, .34) 60%, transparent 84%);
}
.hero__words { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* on a phone the clearing is narrower, so the glow spreads wider and flatter */
@media (max-aspect-ratio: 5/4) {
  .hero::before {
    background: radial-gradient(ellipse 80% 24% at 50% 47%, rgba(247, 242, 234, .82), rgba(247, 242, 234, .36) 60%, transparent 86%);
  }
}

/* on a wide screen the painting fills the width, so it's drawn a quarter
   larger and slid left until the clearing is centred behind the names */
@media (min-aspect-ratio: 5/4) {
  .hero__art { left: 50%; width: 125%; max-width: none; transform: translateX(-56.5%); }
  .hero .hero__names { width: min(84vw, 640px); }
}
.hero__names { margin: 0; width: min(84vw, 760px); }
.hero__names img {
  width: 100%; height: auto;
  filter: brightness(.66) saturate(1.2) drop-shadow(0 0 10px rgba(247, 242, 234, .9));
}
.hero__place {
  margin: clamp(14px, 2.4vw, 22px) 0 0;
  font: 400 clamp(2.1rem, 4.2vw, 3.2rem)/1 var(--script);
  color: var(--slate-deep);
  text-shadow: 0 0 14px rgba(247, 242, 234, .95), 0 0 2px rgba(247, 242, 234, .8);
}
.hero__date {
  margin: clamp(16px, 2.6vw, 24px) 0 0;
  font: 700 clamp(.76rem, 1.1vw, .92rem)/1.6 var(--display);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--night-deep);
  text-shadow: 0 0 12px rgba(247, 242, 234, .95), 0 0 2px rgba(247, 242, 234, .9);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px;
  width: 1px; height: 46px; overflow: hidden;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute; inset: 0; background: var(--paper);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* entrance: the names write themselves across the sky */
.js .hero__names img { clip-path: inset(0 100% 0 0); }
.js .hero__place, .js .hero__date { opacity: 0; }
.is-loaded .hero__names img { animation: write 1.5s cubic-bezier(.6, .1, .2, 1) .1s forwards; }
.is-loaded .hero__place { animation: rise 1.1s var(--ease) .9s forwards; }
.is-loaded .hero__date { animation: rise 1.1s var(--ease) 1.1s forwards; }
@keyframes rise  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(84px, 11vw, 140px) var(--gutter); }

.head, .section__head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  margin: 0 auto clamp(48px, 6vw, 72px);
  max-width: 760px;
}
/* older sections put the script line first; show it under the title */
.section__head .title { order: 1; }
.section__head .kicker { order: 2; }
.section__head .rule { order: 3; }
.head .lede {
  margin: 28px 0 0;
  max-width: 34em;
  font: italic 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.5 var(--display);
  color: var(--ink-soft);
}

/* a short note from the two of them: a card that opens over the page a few
   seconds after arriving (main.js, initNote) */
.note-dialog {
  width: min(100% - 32px, 580px); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.note-dialog::backdrop {
  background: rgba(44, 86, 121, .26);
  -webkit-backdrop-filter: blur(4px) saturate(.95);
          backdrop-filter: blur(4px) saturate(.95);
}
.note-dialog[open] { animation: note-in .7s var(--ease) both; }
.note-dialog[open]::backdrop { animation: note-fade .6s ease both; }
.note-dialog.is-closing { animation: note-out .28s ease both; }
.note-dialog.is-closing::backdrop { animation: note-fade .28s ease reverse both; }
@keyframes note-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes note-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes note-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .note-dialog[open], .note-dialog[open]::backdrop, .note-dialog.is-closing, .note-dialog.is-closing::backdrop { animation: none; }
}
.note {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
  width: 100%;
  text-align: center;
  padding: clamp(34px, 5vw, 52px) clamp(22px, 5vw, 56px) clamp(34px, 4.5vw, 46px);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  outline: 1px solid var(--hair);
  outline-offset: -9px;
  box-shadow: 0 40px 90px -40px rgba(30, 44, 60, .55);
  color: var(--ink);
  font-size: clamp(1.12rem, 1.45vw, 1.25rem); line-height: 1.65;
  text-wrap: pretty;
}
.note:focus { outline: 1px solid var(--hair); }
/* the same card, kept in the Our Wedding introduction */
.note--inline { width: min(100%, 600px); margin-top: clamp(36px, 5vw, 52px); box-shadow: 0 30px 60px -44px rgba(44, 86, 121, .45); }
.note::before {
  content: ""; display: block;
  width: 132px; height: 10px; margin: 0 auto clamp(20px, 2.6vw, 26px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 10'%3E%3Cpath d='M0 5h56M76 5h56' stroke='%235485B0' stroke-opacity='.45'/%3E%3Cpath d='M66 1l4 4-4 4-4-4z' fill='none' stroke='%235485B0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.note p { margin: 0; }
.note .note__lead {
  margin-bottom: 14px;
  font: 700 clamp(1.55rem, 2.8vw, 2.1rem)/1.2 var(--display);
  color: var(--slate-deep);
  text-wrap: balance;
}
.note .note__sign { margin-top: 16px; font: 400 clamp(1.7rem, 2.6vw, 2.1rem)/1.1 var(--script); color: var(--slate); }
.note__btn { margin-top: 24px; background: var(--butter); border-color: var(--butter); color: var(--night-deep); }
.note__btn:hover { background: var(--slate); border-color: var(--slate); color: var(--paper); }
.note__close {
  position: absolute; top: 16px; right: 18px;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font: 300 1.9rem/1 var(--display); color: var(--slate);
  transition: background .25s, color .25s;
}
.note__close:hover { background: var(--linen); color: var(--ink); }
.note__close:focus-visible { outline: 1px solid var(--slate); outline-offset: 2px; }

/* scroll reveal: always readable, it just settles into place */
.js [data-reveal] {
  transform: translateY(18px);
  transition: transform 1.1s var(--ease);
}
.js [data-reveal].is-visible { transform: none; }

/* ── Our wedding: a checkerboard of words and medallions ── */
.wedding { padding-bottom: 0; }
/* the same space below the heading as above it, so it sits centred over the tiles */
.wedding .head { margin-bottom: clamp(84px, 11vw, 140px); }
.tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  /* both tiles in a row share one height, so the colour fills each square */
  grid-auto-rows: minmax(clamp(380px, 37vw, 600px), auto);
  margin: 0 calc(-1 * var(--gutter));
}
.tile {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  text-align: center;
}
.tile--words { background: var(--powder); color: var(--ink); }
.tile__title {
  margin: 0;
  font: 400 clamp(1.9rem, 3.6vw, 3rem)/1 var(--heading);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--night-deep);
}
.tile__script { margin: 12px 0 18px; font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 var(--script); color: var(--slate-deep); }
.tile--words .caps { color: var(--ink); }
.tile--art { background: var(--linen); }

.medallion { position: relative; width: min(78%, 360px); aspect-ratio: 1; }
.medallion img {
  position: absolute; inset: 9%;
  width: 82%; height: 82%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 18px 34px -18px rgba(44, 86, 121, .5);
}
.tile--art-1 .medallion img { object-position: 50% 40%; }
.tile--art-2 .medallion img { object-position: 56% 62%; }
.medallion__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .95)) drop-shadow(1px 1.2px .6px rgba(104, 84, 56, .3));
}
.medallion__ring circle { fill: var(--linen); }
.medallion__ring .ring { fill: none; stroke: var(--linen); stroke-width: 1.6; }

/* ── The location: the garden full width, a card pinned to its foot ── */
/* ── Attire: a small card of its own between the day and the location ── */
.attire { padding: clamp(60px, 8vw, 100px) var(--gutter); text-align: center; background: var(--paper); }
.attire__inner {
  display: flex; flex-direction: column; align-items: center;
  width: min(100%, 560px); margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.attire__title {
  margin: 14px 0 0;
  font: 400 clamp(1.7rem, 3.2vw, 2.5rem)/1.1 var(--heading);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate-deep);
}
.attire__note {
  max-width: 30em; margin: 16px 0 0;
  font: italic 400 1.15rem/1.5 var(--display); color: var(--ink-soft);
  text-wrap: balance;
}
.attire__link {
  margin-top: 20px; padding-bottom: 5px;
  font: 600 .7rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate-deep); text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.attire__link:hover { color: var(--ink); border-bottom-color: var(--slate); }

.location {
  padding: 0 var(--gutter) clamp(72px, 9vw, 112px);
  background: var(--paper-2);
  text-align: center;
}
.location__art {
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  height: clamp(320px, 40vw, 720px);
  margin: 0 calc(-1 * var(--gutter));
  object-fit: cover; object-position: 50% 52%;
}
.location__card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: min(100%, 660px);
  margin: calc(-1 * clamp(56px, 6vw, 96px)) auto 0;
  padding: clamp(36px, 5vw, 52px) clamp(22px, 5vw, 56px);
  background: var(--paper-2);
  box-shadow: 0 30px 60px -40px rgba(30, 44, 60, .55);
}
.location__card::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--hair); pointer-events: none;
}
.location__card .title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.location__card .script { margin-bottom: 12px; }
.location__card .btn { margin-top: 24px; }

/* ── Weekend events ── */
.events { padding-top: 0; background: var(--paper-2); }
.head--band {
  max-width: none;
  margin: 0 calc(-1 * var(--gutter)) clamp(56px, 7vw, 88px);
  padding: clamp(64px, 8vw, 104px) var(--gutter);
  background: var(--linen);
}
.event {
  display: flex; flex-direction: column; align-items: center;
  max-width: 560px; margin: 0 auto;
  text-align: center;
}
.event__icon {
  width: 44px; height: 44px; margin-bottom: 18px;
  fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.event__title {
  margin: 0;
  font: 400 clamp(1.9rem, 3.4vw, 2.7rem)/1.05 var(--heading);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate-deep);
}
.event .script { margin: 10px 0 16px; }
.event .btn, .event__buttons { margin-top: 26px; }
.event__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.event__buttons .btn { margin-top: 0; }
.events__rule { width: min(100%, 640px); height: 1px; margin: clamp(48px, 6vw, 72px) auto; background: var(--hair); }

/* ── Travel ── */
.travel__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.travel__item {
  display: grid; grid-template-columns: 54px 1fr; gap: 6px;
  padding: 30px 0;
  border-top: 1px solid var(--hair);
}
.travel__item:last-child { border-bottom: 1px solid var(--hair); }
.travel__num { font: italic 400 1.7rem/1.1 var(--display); color: var(--accent, var(--bronze-deep)); }
.travel__item:nth-child(1) { --accent: var(--rose-deep); }
.travel__item:nth-child(2) { --accent: var(--bronze-deep); }
.travel__item:nth-child(3) { --accent: var(--moss); }
.travel__item h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 0 8px; font: 500 1.6rem/1.2 var(--display); color: var(--slate-deep);
}
.travel__item p { margin: 0; color: var(--ink-soft); }
/* the hotel with our room block, set apart like a reservation card */
.room-block {
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 18px 0 26px;
  padding: 24px 26px 26px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--butter);
}
.room-block .caps { line-height: 1.2; color: var(--slate-deep); }
.room-block__hotel { margin-top: 8px; font: 500 1.5rem/1.2 var(--display); color: var(--slate-deep); }
.room-block__about { color: var(--ink-soft); font-size: .95em; }
.room-block__facts { margin: 16px 0 20px; display: grid; gap: 6px; }
.room-block__facts div { display: grid; grid-template-columns: 4.4em 1fr; gap: 10px; align-items: baseline; }
.room-block__facts dt {
  font: 600 .66rem/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--slate);
}
.room-block__facts dd { margin: 0; }
.stays__intro { margin: 0; }
.stays { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.stays li { padding-left: 16px; border-left: 2px solid var(--rose); }
.stays li:nth-child(2) { border-left-color: var(--sky-deep); }
.stays a { font: 500 1.2rem/1.3 var(--display); color: var(--slate-deep); }
.stays span { display: block; color: var(--ink-soft); font-size: .95em; }
.travel__item .stays__note { margin-top: 14px; font-style: italic; }
.tag {
  padding: .45em .95em; border-radius: 999px;
  background: var(--sun-soft);
  font: 600 .6rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--olive-deep);
}
.map { margin: 0; position: relative; }
.map svg {
  width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 60px -36px rgba(44, 86, 121, .45), 0 0 0 1px rgba(84, 133, 176, .12);
}
.map figcaption { margin-top: 16px; text-align: center; font: italic 400 1.05rem/1.3 var(--display); color: var(--ink-soft); }
.map__label { font: 600 11px/1 var(--display); letter-spacing: .22em; fill: var(--slate-deep); }
.map__label--soft { fill: #8A9DB0; }
.map__script { font: 400 30px/1 var(--script); fill: var(--slate-deep); }
.map__ocean { font: italic 400 22px/1 var(--display); letter-spacing: .3em; fill: #7397B8; }
.map__compass text { font: 600 10px/1 var(--display); fill: #7397B8; letter-spacing: .1em; }
.map__bay { font: italic 400 15px/1 var(--display); letter-spacing: .14em; fill: #7397B8; }
.map__range { font: italic 400 13px/1 var(--display); letter-spacing: .12em; fill: var(--olive-deep); opacity: .85; }
.map__mountains path { fill: none; stroke: var(--olive); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.map__mountains .m-fill { fill: #F5EFE5; stroke: none; }
.map__mountains .m-shade { fill: var(--olive); stroke: none; opacity: .2; }
.js .map:not(.is-visible) .map__route { opacity: 0; }
.map.is-visible .map__route { animation: route 2.4s var(--ease) .4s both; }
@keyframes route { from { opacity: 0; stroke-dashoffset: 120; } to { opacity: 1; stroke-dashoffset: 0; } }
.map__pin--main circle:first-child { animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.5); opacity: 0; } }

/* ── Registry ── */
.registry {
  /* the palette's pale sky, a touch lighter where the heading sits */
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, .34), transparent 70%),
    var(--powder);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}
.registry__inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 620px; margin: 0 auto; }
.registry__mark { order: 0; width: 40px; margin: 0 auto 26px; color: var(--slate-deep); }
.registry .title { order: 1; }
.registry .kicker { order: 2; margin-bottom: 26px; color: var(--night-deep); }
.registry p:not(.kicker) { order: 3; margin: 0 auto; max-width: 48ch; }

/* three gift tags hung on a length of twine, like the string lights in the garden */
.gifts {
  --twine: #A9772F;
  position: relative;
  max-width: 1060px;
  margin: clamp(26px, 3vw, 40px) auto 0;
  padding-top: 92px;
}
.gifts__twine {
  position: absolute; top: 0; left: calc(50% - 50vw);
  width: 100vw; max-width: none; height: 92px;
  overflow: visible;
  fill: none; stroke: var(--twine); stroke-width: 1.6; stroke-linecap: round;
}
.gifts__twine .twist { stroke: rgba(255, 250, 240, .6); stroke-dasharray: 1.4 4.6; }
.gifts__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  gap: clamp(18px, 3vw, 44px);
  margin: 0; padding: 0;
  list-style: none;
}
.gifts__list li { min-width: 0; display: flex; justify-content: center; }
.gifts__list li:nth-child(2) { padding-top: 30px; }  /* lower, where the twine sags */
.js .gifts__list li:nth-child(2) { transition-delay: .12s; }
.js .gifts__list li:nth-child(3) { transition-delay: .24s; }

.gift {
  --hole: 34px;    /* centre of the punched hole, from the top of the tag */
  --string: 60px;  /* twine to hole; drawTwine() measures it */
  position: relative;
  display: block; width: min(100%, 300px);
  color: var(--ink);
  text-decoration: none;
  filter: drop-shadow(0 22px 20px rgba(44, 86, 121, .3)) drop-shadow(0 2px 2px rgba(44, 86, 121, .18));
}
.gift:hover { color: var(--ink); }
.gift:focus-visible { outline-color: var(--slate-deep); outline-offset: 8px; }
/* the string, over the top edge and down into the hole */
.gift::before {
  content: ""; position: absolute; z-index: 1;
  left: 50%; top: calc(var(--hole) - var(--string));
  width: 1.6px; height: var(--string); margin-left: -.8px;
  background: var(--twine);
  border-radius: 1px;
}

.gift__tag {
  --tilt: -2deg;
  --cut: 44px;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--hole) + 30px) clamp(18px, 2.2vw, 28px) 32px;
  background: var(--tag, var(--paper));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut));
  -webkit-mask: radial-gradient(circle at 50% var(--hole), transparent 6.5px, #000 7px);
          mask: radial-gradient(circle at 50% var(--hole), transparent 6.5px, #000 7px);
  transform: rotate(var(--tilt));
  transform-origin: 50% var(--hole);
  text-align: center;
}
.gifts__list li:nth-child(1) { --accent: var(--bronze-deep); }
.gifts__list li:nth-child(2) { --accent: var(--moss-deep); }
.gifts__list li:nth-child(3) { --accent: var(--rose-deep); }
.gifts__list li:nth-child(1) .gift__tag { --tag: var(--bronze-soft); }
.gifts__list li:nth-child(2) .gift__tag { --tilt: 1.3deg; --tag: var(--sun-soft); }
.gifts__list li:nth-child(3) .gift__tag { --tilt: 2.4deg; --tag: var(--rose-soft); }
/* the paper ring that reinforces the hole */
.gift__tag::before {
  content: ""; position: absolute; left: 50%; top: var(--hole);
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 7px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(124, 120, 67, .22), inset 0 0 0 1px rgba(124, 120, 67, .22);
}
/* a hairline border set just inside the cut edge */
.gift__tag::after {
  --c: calc(var(--cut) - 3.3px);
  content: ""; position: absolute; inset: 8px;
  background: var(--hair);
  pointer-events: none;
  clip-path: polygon(evenodd,
    var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c), var(--c) 0,
    calc(var(--c) + .4px) 1px, 1px calc(var(--c) + .4px), 1px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(var(--c) + .4px), calc(100% - var(--c) - .4px) 1px, calc(var(--c) + .4px) 1px);
}
.gift:hover .gift__tag { animation: swing 1.9s var(--ease); }
@keyframes swing {
  0%   { transform: rotate(var(--tilt)); }
  22%  { transform: rotate(calc(var(--tilt) + 4deg)); }
  48%  { transform: rotate(calc(var(--tilt) - 2.6deg)); }
  72%  { transform: rotate(calc(var(--tilt) + 1.2deg)); }
  100% { transform: rotate(var(--tilt)); }
}

.gift__icon {
  width: 42px; height: 42px; margin-bottom: 16px;
  fill: none; stroke: var(--accent, var(--slate)); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.gift__name {
  font: 400 clamp(1.35rem, 2vw, 1.7rem)/1.05 var(--heading);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-deep);
  text-wrap: balance;
}
.gift__where { margin: .25em 0 0; font-size: clamp(1.4rem, 1.9vw, 1.7rem); }
.gift__rule { width: 132px; gap: 10px; margin: 14px auto 12px; }
.gift__what {
  margin-bottom: 22px;
  font: italic 400 clamp(1.05rem, 1.3vw, 1.2rem)/1.4 var(--display);
  color: var(--ink-soft);
  text-wrap: balance;
}
.gift__go {
  position: relative;
  display: inline-flex; align-items: center; gap: .7em;
  padding-bottom: 7px;
  font: 600 .7rem/1 var(--display);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent, var(--slate));
}
.gift__go::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(.35); transition: transform .5s var(--ease);
}
.gift__go span { transition: transform .5s var(--ease); }
.gift:hover .gift__go::after, .gift:focus-visible .gift__go::after { transform: none; }
.gift:hover .gift__go span { transform: translateX(3px); }

/* ── Countdown, over the faded garden ── */
.countdown-band {
  position: relative;
  display: grid; place-items: center;
  min-height: clamp(300px, 34vw, 460px);
  padding: 64px var(--gutter);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.countdown-band__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 92%;
}
.countdown-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 242, 234, .64);
}
.countdown { display: flex; justify-content: center; margin-top: 18px; }
.countdown__unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: clamp(92px, 16vw, 200px);
  padding: 0 clamp(6px, 1.6vw, 18px);
}
.countdown__unit span {
  font: italic 300 clamp(4rem, 12vw, 9.5rem)/.9 var(--display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--slate-deep);
}
.countdown__unit small {
  margin-top: 8px;
  font: 600 .7rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink);
}

/* ── FAQ ── */
.faq__list { max-width: 780px; margin: 0 auto; }
.faq details { --accent: var(--rose-deep); }
.faq details:nth-child(5n+2) { --accent: var(--bronze-deep); }
.faq details:nth-child(5n+3) { --accent: var(--moss); }
.faq details:nth-child(5n+4) { --accent: var(--slate); }
.faq details:nth-child(5n+5) { --accent: var(--sun-deep); }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 26px 56px 26px 0;
  font: 400 clamp(1.4rem, 2.2vw, 1.7rem)/1.25 var(--display);
  color: var(--slate-deep);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 15px; height: 1.5px; background: var(--accent);
  transition: transform .45s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--ink); }
.faq__answer { padding: 0 56px 28px 0; color: var(--ink-soft); }
.faq__answer p { margin: 0; }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ── RSVP band ── */
.rsvp-band {
  padding: clamp(84px, 11vw, 140px) var(--gutter);
  background: var(--powder);
  text-align: center;
}
.rsvp-band > div { display: flex; flex-direction: column; align-items: center; }
.rsvp-band .title { color: var(--night-deep); }
.rsvp-band .script { margin-bottom: 14px; color: var(--slate-deep); }
.rsvp-band .caps { color: var(--ink); }
.rsvp-band .btn { margin-top: 30px; background: var(--butter); border-color: var(--butter); color: var(--night-deep); }
.rsvp-band .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--night-deep); }

/* ==========================================================================
   Reply page
   ========================================================================== */
.reply[hidden] { display: none; }
.is-replying [data-site] { display: none; }
/* the painting holds still on the left while the reply scrolls beside it */
.reply {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100vh;
  background: var(--paper);
}
.reply__art {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--linen);
}
.reply__art img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}
.reply__stage {
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--bar) + env(safe-area-inset-top, 0px) + clamp(48px, 7vw, 104px)) clamp(24px, 5vw, 88px) clamp(64px, 8vw, 112px);
}
.reply__head { text-align: center; }
.reply__head .caps { margin-bottom: 22px; }
.reply__head .title { font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
.reply__by {
  margin: 14px 0 0;
  font: italic 400 1.15rem/1.3 var(--display); color: var(--ink-soft);
}
/* a reply card: one fine rule inside another, like engraved stationery */
.reply__card {
  width: min(100%, 580px);
  margin-top: clamp(40px, 5vw, 60px);
  padding: clamp(44px, 5.5vw, 68px) clamp(24px, 4.5vw, 60px);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  outline: 1px solid var(--hair);
  outline-offset: -9px;
}

.rsvp__notice {
  max-width: 400px; margin: 0 auto 32px;
  text-align: center; text-wrap: balance;
  font: italic 400 1.2rem/1.45 var(--display); color: var(--ink-soft);
}
/* a small diamond on a hairline sits over the notice */
.rsvp__notice::before {
  content: ""; display: block;
  width: 132px; height: 10px; margin: 0 auto 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 10'%3E%3Cpath d='M0 5h56M76 5h56' stroke='%235485B0' stroke-opacity='.45'/%3E%3Cpath d='M66 1l4 4-4 4-4-4z' fill='none' stroke='%235485B0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rsvp__form { position: relative; display: flex; flex-direction: column; gap: 30px; }

.find[hidden], .rsvp__form[hidden], .guest--plus[hidden] { display: none; }
.find { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.find .field { width: min(100%, 420px); text-align: left; }
.find__intro { margin: 0; font: italic 400 1.2rem/1.4 var(--display); color: var(--ink-soft); }

.invite { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.invite__names { margin: 0; font: 400 clamp(1.9rem, 3.4vw, 2.5rem)/1.15 var(--script); color: var(--slate-deep); }
.invite__note { margin: 6px 0 0; font: italic 400 1.05rem/1.4 var(--display); color: var(--olive-deep); }
.invite__switch {
  margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 .66rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate); text-decoration: underline; text-underline-offset: .3em;
}
.invite__hint { max-width: 30em; margin: 14px 0 0; font: italic 400 1.1rem/1.4 var(--display); color: var(--ink-soft); }
.guest--plus { padding-top: 4px; }
.guest__plus-fields, .guest__details { display: flex; flex-direction: column; gap: 22px; }
.guest__plus-fields[hidden], .guest__details[hidden] { display: none; }
.guest__missed { margin: -8px 0 0; font: italic 400 1.1rem/1.4 var(--display); color: var(--olive-deep); }

.guests { display: flex; flex-direction: column; gap: 30px; }
.guest {
  margin: 0; padding: 0 0 30px;
  border: 0; border-bottom: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 22px;
}
.guest__legend {
  padding: 0; margin-bottom: 4px;
  font: 400 clamp(1.7rem, 3vw, 2.2rem)/1 var(--script); color: var(--slate);
}
.guest__event { display: flex; flex-direction: column; gap: 10px; }
.guest__event-title {
  margin: 0;
  font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.1 var(--display);
  letter-spacing: .05em; text-transform: uppercase; color: var(--slate-deep);
}
.rsvp__shared { display: flex; flex-direction: column; gap: 26px; }

.field label {
  display: block; margin-bottom: 6px;
  font: 600 .68rem/1.2 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--slate);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0; border-bottom: 1px solid rgba(84, 133, 176, .45);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.12rem/1.4 var(--text);
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235485B0' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center no-repeat;
}
.field select:has(option[value=""]:checked) { color: #8C939A; font-style: italic; }
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #A3A9AE; font-style: italic; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--slate); box-shadow: 0 1px 0 var(--slate); }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #B5674D; }

.rsvp__submit { align-self: center; margin-top: 6px; padding: 1.15em 3em; }
.rsvp__status:empty { display: none; }
.rsvp__status { text-align: center; margin: -10px 0 0; font: italic 400 1.05rem/1.4 var(--display); color: #A15A42; }
.rsvp__keep { align-self: center; margin-top: -4px; }
.rsvp__keep[hidden] { display: none; }
.rsvp__form { transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.rsvp__form.is-leaving { opacity: 0; transform: translateY(-14px); filter: blur(3px); pointer-events: none; }
.find.is-entering, .replied.is-entering, .rsvp__form.is-entering { animation: rise .7s var(--ease) both; }

/* an invitation that has replied: the reply we have, like a place card */
.replied { display: flex; flex-direction: column; align-items: center; text-align: center; outline: none; }
.replied[hidden] { display: none; }
.replied__rule { margin: 30px 0 24px; }
.replied__lead { margin: 0; font: italic 400 1.35rem/1.4 var(--display); color: var(--ink); text-wrap: balance; }
.replied__when { margin: 10px 0 0; color: var(--slate); }
.replied__when:empty { display: none; }
.replied__people { width: 100%; margin: 30px 0 0; padding: 0; list-style: none; }
.replied__person {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--hair);
}
.replied__person:last-child { border-bottom: 1px solid var(--hair); }
.replied__name { font: 400 clamp(1.6rem, 2.8vw, 2rem)/1.15 var(--script); color: var(--slate); }
.replied__answer {
  font: 500 .95rem/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate-deep);
}
.replied__answer.is-no { color: var(--olive-deep); }
.replied__answer.is-open { font-style: italic; letter-spacing: .04em; text-transform: none; font-size: 1.1rem; color: #A15A42; }
.replied__detail { font: italic 400 1.08rem/1.4 var(--display); color: var(--ink-soft); }
.replied__extra { display: grid; gap: 16px; margin: 28px 0 0; }
.replied__extra:empty { display: none; }
.replied__extra dt { font: 600 .66rem/1.2 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--slate); }
.replied__extra dd { margin: 5px 0 0; font: 400 1.08rem/1.4 var(--text); color: var(--ink); overflow-wrap: anywhere; }
.replied__change { margin-top: 36px; padding: 1.15em 3em; }
.replied__fine { margin: 16px 0 0; font: italic 400 1.05rem/1.4 var(--display); color: var(--ink-soft); }

.rsvp__thanks { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 6px; outline: none; }
.rsvp__thanks[hidden] { display: none; }
.rsvp__thanks-rule {
  display: block; width: 132px; height: 10px; margin-bottom: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 10'%3E%3Cpath d='M0 5h56M76 5h56' stroke='%235485B0' stroke-opacity='.45'/%3E%3Cpath d='M66 1l4 4-4 4-4-4z' fill='none' stroke='%235485B0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rsvp__thanks-script {
  margin: 0; padding: 0 .3em;
  font: 400 clamp(3.2rem, 6vw, 4.4rem)/1.15 var(--script); color: var(--slate-deep);
}
.rsvp__thanks-text { max-width: 26em; margin: 18px 0 0; color: var(--ink-soft); font-size: 1.1rem; text-wrap: balance; }
.rsvp__thanks-sign { margin-top: 24px; color: var(--slate); }

/* the reveal: the rule draws out, the words write themselves, the rest rises */
.rsvp__thanks.is-arriving .rsvp__thanks-rule { animation: thanks-rule 1s var(--ease) .15s both; }
.rsvp__thanks.is-arriving .rsvp__thanks-script { animation: thanks-write 1.9s cubic-bezier(.6, .1, .2, 1) .45s both; }
.rsvp__thanks.is-arriving .rsvp__thanks-text { animation: rise 1.1s var(--ease) 1.6s both; }
.rsvp__thanks.is-arriving .rsvp__thanks-sign { animation: rise 1.1s var(--ease) 1.95s both; }
@keyframes thanks-rule { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }
@keyframes thanks-write {
  from { clip-path: inset(-30% 100% -30% -10%); }
  to   { clip-path: inset(-30% -10% -30% -10%); }
}

/* falling petals sit over everything and never catch a click */
.petal-fall { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; pointer-events: none; }

.reply__back {
  display: block; width: fit-content; margin: 36px auto 0;
  font: 600 .7rem/1 var(--display); letter-spacing: .26em; text-transform: uppercase;
  color: var(--slate-deep); text-decoration: none;
  border-bottom: 1px solid var(--hair); padding-bottom: 6px;
}

/* ── Footer ── */
.footer {
  position: relative;
  padding: 0 var(--gutter) 46px;
  text-align: center;
  background: var(--powder);
  color: var(--ink);
}
.footer__scene {
  display: block;
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  height: clamp(260px, 42vw, 760px);
  margin: 0 calc(-1 * var(--gutter)) clamp(36px, 5vw, 60px);
  object-fit: cover;
  object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 92%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 92%, transparent);
}
.footer__mark { width: clamp(140px, 18vw, 190px); margin: 0 auto 30px; color: var(--night-deep); }
.footer__date { margin: 0 0 10px; font: 600 .76rem/1 var(--display); letter-spacing: .32em; text-transform: uppercase; }
.footer__date i { padding: 0 .4em; color: var(--slate-deep); }
.footer__line { font: italic 400 1.3rem/1.3 var(--display); margin: 0 0 56px; }
.footer__top {
  font: 600 .68rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase;
  color: var(--night-deep); text-decoration: none;
}
.footer__top:hover { color: var(--ink); }

/* the `font` shorthand resets figure style, so this has to come last */
.caps, .hero__date, .menu__date, .footer__date, .btn, .bar__rsvp, .tag, .field label,
.countdown, .map__label, .title, .tile__title, .event__title {
  font-variant-numeric: lining-nums;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .travel__grid { grid-template-columns: 1fr; }
  /* the painting becomes a band across the top, fading into the paper */
  .reply { grid-template-columns: 1fr; }
  .reply__art {
    position: relative;
    height: clamp(300px, 52svh, 520px);
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 96%);
            mask-image: linear-gradient(to bottom, #000 50%, transparent 96%);
  }
  .reply__art img { object-position: 50% 30%; }
  .reply__stage { margin-top: clamp(-48px, -6vw, -24px); padding-top: 0; position: relative; }
}

/* on phones the tags are strung one under another on a single cord */
@media (max-width: 760px) {
  .gifts { max-width: 330px; padding-top: 0; }
  .gifts__twine, .gift::before { display: none; }
  .gifts__list { position: relative; grid-template-columns: 1fr; gap: 34px; padding-top: 40px; }
  .gifts__list::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 60px;
    width: 1.6px; margin-left: -.8px;
    background: var(--twine);
  }
  .gifts__list li:nth-child(2) { padding-top: 0; }
  .gift { width: 100%; }
  .gift__tag { --tilt: -1.2deg; padding-top: calc(var(--hole) + 24px); padding-bottom: 28px; }
  .gifts__list li:nth-child(2) .gift__tag { --tilt: 1deg; }
  .gifts__list li:nth-child(3) .gift__tag { --tilt: -.8deg; }
}

@media (max-width: 720px) {
  :root { --bar: 58px; }
  .bar__rsvp { padding: .7em 1.2em; }
  .tiles { grid-template-columns: 1fr; }
  .tiles { grid-auto-rows: minmax(340px, auto); }
  /* words then art, for each half of the day */
  .tile--art-2 { order: 4; }
  .tile--reception { order: 3; }
  .countdown__unit { min-width: 0; flex: 1; }
  .reply__stage { padding-left: 12px; padding-right: 12px; }
  .reply__head { padding: 0 var(--gutter); }
  .reply__card { outline-offset: -7px; }
  .travel__item { grid-template-columns: 40px 1fr; }
  .faq summary { padding-right: 40px; }
  .faq__answer { padding-right: 0; }
  .footer__date { font-size: .68rem; letter-spacing: .2em; }
}

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