/* =========================================================
   Maria & Charbel — 16 August 2026
   Classic · elegant · fairy tale. Ivory, gold, and one arch.
   Everything centred.

   Rules that must not be broken:
   - The portrait frame is ALWAYS aspect-ratio 3/4 with object-position 50% 0%.
     That pair crops exactly the bottom 25% (jeans, hands) at EVERY viewport.
     Change either and the crop drifts at some screen size.
   - svh everywhere. Never vh (mobile toolbars collapse).
   - Gold is ornament and hairlines only — never text, never a link. It is
     ~4:1 on ivory and would fail contrast as type.
   - Wine is the only clickable colour (11.3:1 on ivory).
   - Nothing waits on JS to become visible. No scroll-reveals.
   - Arabic is never dimmed, never below .95rem, never hidden.
   ========================================================= */

:root {
  /* Sage-green palette (the earlier, warmer set — brought back over the
     floral design). --gold holds SAGE, --wine holds EUCALYPTUS. */
  --paper:     #FBFCF9;  /* misty near-white, faint green bias */
  --paper-2:   #EDF0E9;  /* pale sage cream — fills, cards */
  --ink:       #333B30;  /* 11:1 on paper */
  --ink-soft:  #5C6853;  /* ~5.3:1 */
  --gold:      #8C9E7C;  /* SAGE — florals & hairlines only */
  --gold-hair: rgba(120, 140, 105, .40);
  --gold-mist: rgba(120, 140, 105, .12);
  --wine:      #3E4C33;  /* deep EUCALYPTUS — the only clickable colour */
  --blush:     #617252;  /* dusty sage — display accents (ampersand, signatures) */

  --stem:      #6C7C5A;  /* floral stems */
  --bloom:     #ffffff;  /* flower petals */

  /* ---- studied type scale : one harmonious set, ~1.25 ratio ----
     label < body < lead < h3 < count < h2 < display.
     Everything on the page pulls from these — no ad-hoc sizes. */
  --fs-label: clamp(.70rem, .66rem + .18vw, .80rem);   /* eyebrow, kickers, date, unit labels */
  --fs-body: clamp(1.02rem, .96rem + .46vw, 1.18rem); /* all reading text */
  --fs-lead: clamp(1.22rem, 1.07rem + .68vw, 1.52rem); /* verse, invitation words */
  --fs-h3: clamp(1.55rem, 1.28rem + 1.15vw, 2.0rem);  /* event titles */
  --fs-count: clamp(1.65rem, 1.3rem + 1.6vw, 2.2rem); /* countdown numbers */
  --fs-h2: clamp(1.9rem, 1.45rem + 2.05vw, 2.7rem); /* section titles */
  --fs-display: clamp(2.15rem, 1.55rem + 2.9vw, 3.4rem);/* the couple's names */
  --fs-sig: clamp(1.4rem, 1.15rem + 1.05vw, 1.8rem);  /* script-style signatures */

  --text: var(--fs-body);

  /* spacing scale — one vertical rhythm ladder (tightened) */
  --sp-1: clamp(.4rem, .37rem + .18vw, .5rem);
  --sp-2: clamp(.58rem, .5rem + .35vw, .8rem);
  --sp-3: clamp(.85rem, .7rem + .65vw, 1.25rem);
  --sp-4: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  --sp-5: clamp(1.85rem, 1.45rem + 1.9vw, 2.9rem);
  --sp-6: clamp(2.5rem, 1.9rem + 2.9vw, 4.25rem);

  --corm:    "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", serif;   /* the couple's names */
  --script:  "Cormorant Garamond", Georgia, serif;    /* italic signatures */
  --jost:    "Jost", "Helvetica Neue", sans-serif;
  --ar:      "Amiri", serif;

  --gut: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* reserve the scrollbar on both sides so a vertical scrollbar can never
     nudge the centred layout off-centre on desktop */
  scrollbar-gutter: stable both-edges;
}

body {
  background-color: var(--paper);
  /* a soft candle-warm bloom behind the whole page */
  background-image:
    radial-gradient(120% 60% at 50% 0%, var(--gold-mist), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--corm);
  font-weight: 400;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  text-align: center;              /* centre everything */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--wine); color: var(--paper); }

.wrap { width: min(1120px, 100% - var(--gut) * 2); margin-inline: auto; }
.wrap--narrow { width: min(640px, 100% - var(--gut) * 2); }

/* Arabic — Amiri, always, never tracked, never dimmed */
.ar, [lang="ar"] {
  font-family: var(--ar);
  letter-spacing: 0;
  font-size: 1.05em;
}

/* ---------- bilingual: Arabic set beneath each English element ----------
   Every Arabic line is Amiri, RTL, isolated from surrounding punctuation,
   and kept legible (>=4.5:1). Sizes are ~0.9x of their English partner. */
[dir="rtl"] { unicode-bidi: isolate; }

.eyebrow-ar {
  font-size: clamp(.74rem, .7rem + .2vw, .84rem);
  color: var(--ink-soft); margin-top: .3rem;
}
.names-ar {
  font-size: clamp(1.05rem, 3.6vw, 1.55rem);
  color: var(--blush); line-height: 1.4; margin-top: .1rem;
}
.hero__date-ar {
  font-size: clamp(.86rem, 2.6vw, 1.05rem);
  color: var(--ink); margin-top: .2rem;
}
.hero__where-ar {
  font-size: clamp(.82rem, 2.4vw, 1rem);
  color: var(--ink-soft); margin-top: .18rem;
}

.kicker-ar {
  font-family: var(--ar);
  font-size: clamp(.95rem, 2.4vw, 1.1rem);
  color: var(--ink-soft); margin-top: .35rem; line-height: 1.7;
}
.sec-ar {
  font-size: clamp(1.2rem, 3.2vw, 1.75rem);
  color: var(--ink); line-height: 1.5; margin-top: .25rem;
}

.invite__text-ar {
  font-size: clamp(1.1rem, 1rem + 1vw, 1.55rem);
  line-height: 1.95; color: var(--ink);
  max-width: 40ch; margin: 1rem auto 0;
}
.invite__sign-ar {
  font-size: 1.25rem; color: var(--blush); margin-top: .35rem;
}

.event__time-ar {
  font-size: .98rem; color: var(--wine); margin-top: .15rem;
}
.event__title-ar {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--ink); line-height: 1.5; margin-top: .2rem;
}
.event__addr-ar {
  font-size: 1.02rem; color: var(--ink-soft); margin-top: .08rem;
}
.event__note-ar {
  font-size: 1.08rem; line-height: 1.95; color: var(--ink-soft);
  max-width: 40ch; margin: .5rem auto 0;
}
.facts__val-ar {
  font-size: 1.05rem; color: var(--ink); margin-top: .2rem;
}

/* form: Arabic under each label, and inside each choice pill */
.label-ar {
  display: block;
  font-size: .98rem; color: var(--ink-soft);
  text-transform: none; letter-spacing: 0; margin-top: .3rem;
}
.c-ar {
  display: block; font-weight: 400;
  font-size: .92rem; margin-top: .1rem; line-height: 1.3;
}
.hint-ar {
  display: block;
  font-size: .92rem; color: var(--ink-soft); margin-top: .4rem; line-height: 1.7;
}
.msg-ar {
  display: block; font-style: normal;
  font-size: 1rem; margin-top: .15rem; color: var(--wine);
}

.gift__text-ar {
  font-size: 1.08rem; line-height: 1.9; color: var(--ink);
  max-width: 40ch; margin: .7rem auto 0;
}

.foot__names-ar {
  font-size: 1.3rem; color: var(--ink); margin-top: .3rem;
}
.foot__q-ar {
  font-size: 1rem; color: var(--ink-soft); margin-top: .4rem;
}

.kicker, .label {
  font-family: var(--jost);
  font-weight: 400;
  font-size: clamp(.64rem, .6rem + .2vw, .72rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- watercolour-blue florals (garland + divider sprigs) ---------- */
.fl-stem   { fill: none; stroke: var(--stem); stroke-width: 1.1; stroke-linecap: round; }
.fl-leaf   { fill: var(--gold); }
.fl-leaf2  { fill: #B4C6A2; }
.fl-petal  { fill: var(--bloom); stroke: var(--gold); stroke-width: .5; }
.fl-center { fill: var(--gold); }
.fl-bud    { fill: var(--gold); }

/* the garland crowning the hero, like the top of the reference card */
.garland {
  width: min(360px, 84vw);
  margin: 0 auto var(--sp-2);
  pointer-events: none;
}
.garland svg { width: 100%; height: auto; display: block; }

.flourish {
  width: min(190px, 52vw);
  margin: var(--sp-3) auto;
}
.flourish svg { width: 100%; height: auto; display: block; }
.flourish--sm { width: min(150px, 46vw); margin-block: 1rem; }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: var(--sp-5); }
.sec-title {
  font-family: var(--corm);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .12em;
  line-height: 1.15;
  color: var(--ink);
}
.sec-head .kicker { margin-top: .6rem; }

/* =========================================================
   MUSIC TOGGLE
   ========================================================= */
.music {
  position: fixed; z-index: 55;
  left: var(--gut); bottom: 1.1rem;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: rgba(252, 249, 244, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-hair);
  border-radius: 999px;
  color: var(--wine);
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.music:hover { opacity: .85; }
.music:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.music__ico { width: 22px; height: 22px; display: block; }
/* sound on: waves show, slash hidden.  muted: waves hidden, slash shows. */
.music .slash { opacity: 0; }
.music.is-muted .wave { opacity: 0; }
.music.is-muted .slash { opacity: 1; }
@media (max-width: 720px) {
  .music { left: auto; right: var(--gut); bottom: .9rem; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gut);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-stuck {
  background: rgba(252, 249, 244, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--gold-hair);
  padding-block: .65rem;
}
.nav__mark {
  font-family: var(--corm); font-weight: 400;
  font-size: 1.3rem; letter-spacing: .16em;
  color: var(--ink); text-decoration: none;
}
.nav__mark span { font-family: var(--script); color: var(--blush); }

.nav__links { display: flex; gap: 1.8rem; align-items: center; list-style: none; }
.nav__links a {
  font-family: var(--jost); font-weight: 400;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding-block: .3rem;
  transition: opacity .3s var(--ease);
}
.nav__links a:hover { opacity: .6; }
.nav__cta {
  border: 1px solid var(--gold-hair); border-radius: 999px;
  padding: .5rem 1.2rem !important;
}

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  /* flows right after the opening verse — no full-screen reserve, so there's
     no empty band above the photo */
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-2) var(--gut) var(--sp-4);
}

.eyebrow {
  font-family: var(--jost); font-weight: 400;
  font-size: clamp(.6rem, .55rem + .2vw, .68rem);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}

/* THE ARCH — a portrait in a chapel window */
.portrait { margin: 0; }
.portrait__frame {
  position: relative;
  /* a large framed portrait (the photo is exactly 3:4 — no crop).
     Bigger per request; svh term keeps it in check on short screens. */
  width: min(92vw, 420px, calc(52svh * 0.75));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;                       /* clean rounded rectangle, not an arch */
  box-shadow:
    inset 0 0 0 1px var(--gold-hair),
    0 24px 50px -22px rgba(51, 59, 48, .5);
}
.portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;   /* photo is 3:4 like the frame — no crop */
  filter: saturate(1.02) contrast(1.02);
  display: block;
}
/* a delicate matted frame line offset around the photo */
.portrait::after {
  content: "";
  position: absolute; inset: -10px;
  border: 1px solid var(--gold-hair);
  border-radius: 22px;
  pointer-events: none;
}
.portrait { position: relative; display: inline-block; }

/* THE NAMES */
.names {
  margin-top: var(--sp-3);
  font-family: var(--corm);
  font-weight: 400;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: var(--fs-display);
  line-height: 1.15;
  letter-spacing: .08em;
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center;
}
.names__amp {
  font-family: var(--corm); font-style: italic; font-weight: 400;
  text-transform: none;
  font-size: .62em; letter-spacing: 0;
  color: var(--blush);
  line-height: 1; margin-block: -.02em;
}

.hero__date {
  font-family: var(--jost); font-weight: 400;
  font-size: clamp(.68rem, .62rem + .25vw, .8rem);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink);
}
.hero__where {
  font-family: var(--jost); font-weight: 300;
  font-size: clamp(.62rem, .58rem + .2vw, .72rem);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: var(--sp-2);
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  flex-wrap: wrap;
}
.hero__where .ar { font-size: .95rem; color: var(--ink); }

/* COUNTDOWN — four across, always */
.count {
  margin-top: var(--sp-3);
  width: min(100%, 420px);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.count__cell { padding-inline: .2rem; }
.count__cell + .count__cell { border-left: 1px solid var(--gold-hair); }
.count__cell b {
  display: block;
  font-family: var(--corm); font-weight: 300;
  font-size: var(--fs-count);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--ink);
}
.count__cell b span { min-width: 2.1ch; display: inline-block; }
.count__cell small {
  display: block; margin-top: .3rem;
  font-family: var(--jost); font-weight: 400;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
}
/* T-0: the countdown becomes the verse */
.count--day {
  display: block;
  font-family: var(--corm); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 4.5vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 24ch; margin-inline: auto;
}

/* =========================================================
   PSALM — once, in full, alone
   ========================================================= */
.psalm {
  padding-block: var(--sp-4) var(--sp-4);
  padding-inline: var(--gut);
}
.psalm__verse {
  font-family: var(--corm);
  font-style: italic; font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.15rem);
  line-height: 1.5;
  letter-spacing: .01em;
  /* wide enough that each half holds ONE line: the hard <br> is the only break */
  max-width: 36ch;
  margin-inline: auto;
  text-wrap: balance;
  color: var(--ink);
}
.psalm__ar {
  font-family: var(--ar);
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  line-height: 1.9;
  color: var(--ink);
  margin-top: 1.1rem;
  max-width: 30ch; margin-inline: auto;
}
.psalm__rule {
  width: 28px; height: 1px; border: 0;
  background: var(--gold);
  margin: var(--sp-3) auto;
}
.psalm__cite {
  font-family: var(--jost); font-weight: 400;
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* =========================================================
   THEIR WORDS — verbatim
   ========================================================= */
.invite { padding-bottom: var(--sp-6); }
.invite__text {
  font-family: var(--corm);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.05rem + 1.4vw, 2rem);
  line-height: 1.55;
  color: var(--ink);
  /* wide enough to keep the trailing emoji on its sentence, not orphaned */
  max-width: 34ch;
  margin: var(--sp-3) auto 0;
  text-wrap: balance;
}
.invite__sign {
  font-family: var(--corm); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: .02em;
  color: var(--blush);
  margin-top: var(--sp-3);
}

/* =========================================================
   THE DAY
   ========================================================= */
.day {
  padding-block: var(--sp-6);
  background: var(--paper-2);
  border-block: 1px solid var(--gold-hair);
}

.timeline {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
/* the two events are separated by a gilt hairline, not a wire */
.event + .event { position: relative; }
.event + .event::before {
  content: "";
  position: absolute; left: calc(var(--sp-5) / -2);
  top: 4%; bottom: 4%; width: 1px;
  background: var(--gold-hair);
}

.event__time {
  font-family: var(--corm); font-weight: 400;
  color: var(--wine);
}
.event__title {
  font-family: var(--corm); font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--ink);
  margin: var(--sp-1) 0;
}
.event__place { color: var(--ink); }
.event__ar {
  font-family: var(--ar);
  font-size: 1.05rem; line-height: 1.9;
  color: var(--ink);
}
.event__addr { color: var(--ink-soft); }
.event__note {
  margin-top: .9rem;
  color: var(--ink-soft);
  /* wide enough that each half of the note holds ONE line — the <br> is the only break */
  max-width: 52ch; margin-inline: auto;
}

/* the venue, in the same arch as the portrait */
.venue {
  margin: var(--sp-3) auto 0;
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--gold-hair);
}
.venue img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  filter: saturate(0.92) contrast(1.03) brightness(1.02);
  display: block;
}
/* the church: keep its honey stone and blue sky vivid. The source jpg is
   already composed to 4:3, so it fills the identical frame edge-to-edge. */
.venue--church img {
  object-position: 50% 50%;
  filter: saturate(0.98) contrast(1.04) brightness(1.02);
}

.maplink {
  display: inline-block; margin-top: 1.1rem;
  font-family: var(--jost); font-weight: 400;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wine);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.maplink:hover { text-decoration-thickness: 2px; }

.facts {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--gold-hair);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.facts__val { margin-top: .4rem; color: var(--ink); }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { padding-block: var(--sp-6); }

.field { margin-bottom: 1.5rem; }
.field label, .field .label {
  display: block;
  font-family: var(--jost); font-weight: 400;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}
.opt { text-transform: none; letter-spacing: .04em; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--gold-hair);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--corm);
  font-size: 16px;              /* blocks iOS zoom-on-focus. Do not lower. */
  min-height: 48px;
  padding: .7rem .9rem;
  text-align: center;
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field select { cursor: pointer; text-align-last: center; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .65; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--wine); outline-offset: 2px;
  border-color: var(--wine);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--wine); }

/* both choices always on one line, side by side */
.choices { display: flex; gap: .6rem; flex-wrap: nowrap; justify-content: center; align-items: stretch; }
.choice { cursor: pointer; flex: 1 1 0; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; width: 100%; min-height: 54px;
  font-family: var(--corm); font-size: clamp(.9rem, 3.3vw, 1.05rem); line-height: 1.25;
  padding: .55rem .5rem; text-align: center;
  /* normal case + no tracking so the words wrap cleanly at spaces
     (uppercase-tracked labels don't fit two-up at one big size) */
  text-transform: none; letter-spacing: 0;
  border: 1px solid var(--gold-hair);
  border-radius: 14px;
  background: var(--paper);
  transition: all .3s var(--ease);
}
.choice:hover span { border-color: var(--wine); }
.choice input:checked + span { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

#guestsField {
  transition: opacity .4s var(--ease), max-height .4s var(--ease), margin .4s var(--ease);
  overflow: hidden; max-height: 200px;
}
#guestsField.is-hidden { opacity: 0; max-height: 0; margin-bottom: 0; }

.btn {
  margin-top: .5rem;
  background: var(--wine); color: var(--paper);
  border: 0; border-radius: 999px;
  font-family: var(--jost); font-weight: 400;
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  min-height: 48px;
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: default; }

.form__msg {
  margin-top: 1rem; min-height: 1.5rem;
  font-family: var(--corm); font-style: italic; font-size: 1.1rem;
  color: var(--wine);
}
.form__hint {
  margin-top: 1.5rem;
  font-family: var(--jost); font-weight: 300;
  font-size: .66rem; letter-spacing: .06em;
  color: var(--ink-soft);
}

/* =========================================================
   GIFTS — the quietest block on the site
   ========================================================= */
.gifts { padding-bottom: var(--sp-6); }
.gift {
  background: var(--paper-2);
  border: 1px solid var(--gold-hair);
  padding: clamp(1.7rem, 4vw, 2.6rem);
  max-width: 36rem;
  margin-inline: auto;
}
.gift__text { margin-top: var(--sp-2); color: var(--ink); 
  font-size: var(--fs-lead);
}
.gift__name { margin-top: 1.1rem; color: var(--ink); }
.gift__row {
  margin-top: .4rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.gift__num {
  font-family: var(--jost); font-weight: 400;
  font-size: 1.05rem; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.copy {
  background: var(--wine); color: var(--paper);
  border: 0; border-radius: 999px;
  font-family: var(--jost); font-weight: 400;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .55rem 1.1rem;
  cursor: pointer;
}
.copy:hover { opacity: .88; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  background: var(--paper-2);
  border-top: 1px solid var(--gold-hair);
  padding: var(--sp-6) var(--gut) var(--sp-6);
}
.foot .flourish { margin-top: 0; }
.foot__names {
  font-family: var(--corm); font-style: italic; font-weight: 400;
  font-size: var(--fs-sig);
  letter-spacing: .02em;
  color: var(--blush);
}
.foot__date {
  font-family: var(--jost); font-weight: 300;
  font-size: .7rem; letter-spacing: .36em;
  color: var(--ink-soft);
  margin-top: .7rem;
}
.foot__ar { font-family: var(--ar); font-size: 1.1rem; color: var(--ink); margin-top: .8rem; }
.foot__q {
  font-family: var(--jost); font-weight: 300;
  font-size: .68rem; letter-spacing: .06em;
  color: var(--ink-soft);
  margin-top: 1.8rem;
}
.foot__music {
  font-family: var(--jost); font-weight: 300;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .8;
  margin-top: .6rem;
}

/* =========================================================
   MOTION
   There are deliberately no scroll-reveals: nothing on this page waits on
   JS or an observer to become visible. An invitation whose details can fail
   to appear is not an invitation.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 4.75rem; }
  .event + .event::before {
    left: 50%; right: auto; top: -2.4rem; bottom: auto;
    width: 210px; height: 1px; transform: translateX(-50%);
  }
  .facts { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; z-index: 60; }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(252, 249, 244, .98);
    backdrop-filter: blur(14px);
    clip-path: circle(0% at calc(100% - 2.5rem) 2rem);
    transition: clip-path .6s var(--ease);
    pointer-events: none;
  }
  .nav__links.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2rem); pointer-events: auto; }
  .nav__links a { font-size: 1rem; letter-spacing: .24em; }
}

/* LANDSCAPE PHONE — the one exception to the single centred column.
   max-width guard: a short DESKTOP window is not a phone. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  .hero {
    min-height: 92svh;
    display: grid; grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center; justify-content: center;
    padding: 0 5vw;
  }
  .eyebrow, .garland { display: none; }   /* garland is a full-width block; hide in the 2-col landscape hero */
  /* landscape phones are only ~390px tall — the stacked bilingual lines
     don't fit two-up, so the hero shows English only here. Arabic stays
     everywhere else on the page. */
  .eyebrow-ar, .names-ar, .hero__date-ar, .hero__where-ar { display: none; }
  .portrait { grid-row: 1 / -1; }
  .portrait__frame { width: auto; height: 54svh; aspect-ratio: 3 / 4; }
  .portrait::after { inset: -6px; }
  .names { margin-top: 0; font-size: clamp(1.2rem, 4svh, 1.7rem); letter-spacing: .08em; }
  .flourish { width: min(132px, 24vw); margin-block: .2rem; }
  .count { margin-top: .35rem; width: min(100%, 300px); }
  .count__cell b { font-size: clamp(1.05rem, 4svh, 1.5rem); }
  .hero__where { margin-top: .2rem; }
  .count__cell b { font-size: clamp(1.15rem, 4.4svh, 1.6rem); }
  .count__cell small { font-size: .54rem; }
  .psalm { padding-block: 12svh; }
}

/* =========================================================
   TYPE SCALE, APPLIED
   Every text element pulls its size from the scale tokens in :root —
   one deliberate ladder, no ad-hoc values. (.names and .count numbers
   are set at their own rules above so the landscape query still tunes them.)
   ========================================================= */
.sec-title                                   { font-size: var(--fs-h2); }
.sec-ar                                      { font-size: var(--fs-h3); }
.psalm__verse, .psalm__ar,
.invite__text, .names-ar                     { font-size: var(--fs-lead); }
.invite__sign, .foot__names                  { font-size: var(--fs-sig); }
.eyebrow, .hero__date, .hero__where,
.kicker, .label, .psalm__cite, .foot__date   { font-size: var(--fs-label); }
/* reading text — one body size */
.event__title, .event__place, .event__addr, .event__note,
.gift__text, .maplink, .event__time,
.event__ar, .event__addr-ar, .event__note-ar,
.gift__text-ar, .event__time-ar              { font-size: var(--fs-body); }
/* Amiri renders a touch smaller than the Latin faces at the same px, so nudge
   the in-event Arabic names up to read the same size as the English lines. */
.event__ar, .event__addr-ar                  { font-size: calc(var(--fs-body) * 1.12); line-height: 1.7; }
/* The reception note is written as two halves split by a hard <br>. On narrow
   phones the first half is ~5% too wide, so shave it a touch and each half
   keeps to a single line — two lines total, as intended. */
@media (max-width: 430px) {
  .event__note { font-size: calc(var(--fs-body) * .92); }
}



/* =========================================================
   GIFTS — three transfer accounts (USD/OMT, EUR, QAR)
   ========================================================= */
.gift__accounts {
  margin-top: var(--sp-3);
  display: grid; gap: .7rem;
}
.acct {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: .35rem .9rem;
  padding: var(--sp-2) var(--sp-3);
  background: var(--paper);
  border: 1px solid var(--gold-hair);
  border-radius: 9px;
  text-align: center;
  justify-items: center;
}
.acct__cur {
  grid-column: 1 / -1;
  font-family: var(--jost); font-weight: 400;
  font-size: clamp(.72rem, .68rem + .2vw, .82rem); letter-spacing: .16em; text-transform: uppercase;
  color: var(--wine);
}
.acct__note { color: var(--ink-soft); letter-spacing: .12em; }
.acct__val {
  font-family: var(--jost); font-weight: 300;
  font-size: clamp(.98rem, .92rem + .35vw, 1.14rem);
  line-height: 1.5;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;   /* long IBANs wrap instead of overflowing */
}
.acct .copy { align-self: center; white-space: nowrap; }

/* footer contact — tappable phone numbers, on palette */
.foot__q a {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-hair);
  padding-bottom: 1px;
  white-space: nowrap;
}
.foot__q a:hover { border-color: var(--wine); }

/* footer contacts — Charbel / Maria lines under "Questions?" */
.foot__contact {
  font-family: var(--jost); font-weight: 300;
  font-size: var(--fs-label);
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-top: .3rem;
}
.foot__contact span { color: var(--ink); letter-spacing: .05em; margin-right: .3rem; }
.foot__contact a {
  color: var(--wine); text-decoration: none;
  border-bottom: 1px solid var(--gold-hair); padding-bottom: 1px; white-space: nowrap;
}
.foot__contact a:hover { border-color: var(--wine); }

/* OMT card — small note that the account is a phone number */
.acct__hint {
  font-family: var(--jost); font-weight: 300;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: -.05rem;
}

/* =========================================================
   Personalized RSVP — one Coming / Can't row per named guest
   ========================================================= */
.rsvp__greet {
  font-family: var(--corm); font-style: italic;
  font-size: var(--fs-lead); color: var(--ink);
  margin-top: .5rem; line-height: 1.5;
}
.rsvp__intro { color: var(--ink-soft); margin-bottom: 1rem; }
.people { display: grid; gap: .55rem; margin-bottom: 1.2rem; }
.person {
  display: flex; align-items: center; justify-content: space-between;
  gap: .7rem .9rem; flex-wrap: wrap;
  padding: .65rem .85rem;
  border: 1px solid var(--gold-hair); border-radius: 10px; background: var(--paper);
  text-align: left;
}
.person__name { font-family: var(--corm); font-size: var(--fs-body); color: var(--ink); }
.person__opts { display: flex; gap: .4rem; margin-left: auto; }
.pchoice {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .4em; min-height: 36px;
  padding: .3rem 1rem; border: 1.5px solid var(--gold-hair); border-radius: 999px;
  background: transparent;
  font-family: var(--jost); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.pchoice:hover { border-color: var(--wine); }
/* SELECTED — filled, lifted, with a check so it is unmistakable */
.pchoice.is-on {
  background: var(--wine); color: var(--paper); border-color: var(--wine);
  font-weight: 600; transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(62, 76, 51, .32);
}
.pchoice--no.is-on { background: #9A4B3F; border-color: #9A4B3F; box-shadow: 0 3px 12px rgba(154, 75, 63, .32); }
.pchoice.is-on::before { content: "✓"; font-weight: 800; font-size: .9em; }
/* DESELECTED — once the other option is chosen, fade this one right back */
.person__opts:has(.is-on) .pchoice:not(.is-on) { opacity: .35; }
.pchoice:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
