/* =====================================================================
   Wedding invite — bandhani & indigo
   A Gujarati textile system: indigo ink, madder red, haldi gold, and
   tie-dye knots used as the single signature pattern.
   ===================================================================== */
:root {
  --paper: #FBFBF9;
  --surface: #FFFFFF;
  --mist: #EEF0F5;
  --line: #DCDFE8;
  --line-strong: #BFC4D3;
  --ink: #1C2547;
  --ink-2: #545C77;
  --madder: #B02A30;
  --madder-deep: #8E1F25;
  --haldi: #E8A51E;
  --ok: #2E6B4E;
  --err: #B02A30;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gu: "Rasa", "Noto Serif Gujarati", serif;

  /* perfect-fourth scale from 17px */
  --s-0: .8125rem;   /* 13 */
  --s-1: .9375rem;   /* 15 */
  --s-2: 1.0625rem;  /* 17 */
  --s-3: 1.4167rem;  /* ~22.7 */
  --s-4: 1.889rem;   /* ~30 */
  --s-5: 2.519rem;   /* ~40 */
  --s-6: 3.358rem;   /* ~54 */

  --gutter: 24px;
  --bar-h: 64px;
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 599px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--s-2);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-optical-sizing: auto;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--haldi); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 1.1em; height: 1.1em; flex: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(var(--s-5), 5vw, var(--s-6)); }
h3 { font-size: var(--s-4); }
p { margin: 0 0 1em; }
.lede { color: var(--ink-2); max-width: 34ch; margin-top: 1rem; }
.fine { font-size: var(--s-1); color: var(--ink-2); }
.gu { font-family: var(--gu); font-weight: 500; font-size: var(--s-4); line-height: 1.3; color: var(--haldi); margin: 0 0 .6rem; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em; border-radius: 2px;
  border: 1px solid transparent; font-weight: 600; font-size: var(--s-1); letter-spacing: .01em;
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 44px; padding: 0 1.05em; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #121a38; }
.btn-accent { background: var(--madder); color: #fff; }
.btn-accent:hover { background: var(--madder-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .7; cursor: progress; }
.linklike { background: none; border: 0; padding: 10px 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: var(--s-1); }
.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   WELCOME SCREEN
   The engagement photo fills the screen; the names sit in the open sky.
   ===================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 60; background: var(--mist); color: var(--ink);
  display: flex; justify-content: center; align-items: flex-start;
  padding: max(9svh, 48px) var(--gutter) 32px; overflow-y: auto;
  transition: transform 1.1s cubic-bezier(.65, 0, .25, 1);
}
.gate.lowered { transform: translateY(102%); }
.gate-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.gate::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(251, 251, 249, .78) 0%, rgba(251, 251, 249, .35) 38%, rgba(251, 251, 249, 0) 55%);
}
.gate-card { position: relative; z-index: 2; width: min(520px, 100%); text-align: center; }
@media (min-width: 720px) {
  .gate { padding-top: max(7svh, 40px); }
  .gate-card { width: min(900px, 100%); }
  .gate-title { white-space: nowrap; font-size: clamp(3.4rem, 6.4vw, 5.4rem); }
  .gate-for { margin-bottom: 1.1rem; }
}
.gate .gu { color: var(--ink-2); font-size: var(--s-3); }
.gate-title { font-size: clamp(3rem, 12vw, 5.6rem); line-height: .95; letter-spacing: -.015em; margin: .1rem 0 1rem; }
.gate-amp { font-style: italic; font-weight: 400; }
.gate-for { color: var(--ink-2); margin-bottom: 1.4rem; }
.gate-for strong { display: block; font-family: var(--display); font-weight: 500; font-size: var(--s-4); line-height: 1.15; color: var(--ink); margin-top: .35rem; }
.code-form { display: grid; gap: .6rem; max-width: 380px; margin: 0 auto; }
.code-form label { font-size: var(--s-1); }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 1rem; background: rgba(255, 255, 255, .9);
  font: inherit; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--ink);
}
.gate .form-error { color: var(--err); font-weight: 600; min-height: 1.4em; margin: 0; }
.demo-note { font-size: var(--s-0); color: var(--ink-2); margin: .4rem 0 0; }
.demo-note button { background: rgba(255, 255, 255, .7); border: 1px dashed var(--line-strong); color: var(--ink); padding: 6px 10px; margin: 2px; min-height: 36px; font-size: var(--s-0); }
.gate-loading { display: inline-flex; gap: .6rem; align-items: center; color: var(--ink-2); }

/* =====================================================================
   HEADER + MOBILE NAV
   ===================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto; height: var(--bar-h); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  color: var(--ink); transition: background-color .25s, color .25s, box-shadow .25s;
}
.topbar.scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.topbar.on-dark { color: #fff; background: transparent; box-shadow: none; }
.topbar.on-dark.scrolled { background: var(--ink); }
.brand { font-family: var(--display); font-size: 1.6rem; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.brand i { font-style: italic; font-weight: 400; font-size: .8em; margin: 0 .08em; }
.topnav { display: none; gap: 4px; align-items: center; }
.topnav a:not(.btn) { text-decoration: none; padding: 10px 12px; font-size: var(--s-1); text-underline-offset: 6px; }
.topnav a:not(.btn):hover, .topnav a.active:not(.btn) { text-decoration: underline; }
.topnav .btn { margin-left: 12px; }

.bottomnav {
  position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper); border-top: 1px solid var(--line);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .72rem; color: var(--ink-2); }
.bottomnav a .ic { width: 20px; height: 20px; }
.bottomnav a.active { color: var(--ink); font-weight: 600; }
.bottomnav .bn-rsvp { background: var(--madder); color: #fff; font-size: var(--s-1); font-weight: 600; }
.bottomnav .bn-rsvp.active { color: #fff; }
body.is-locked .bottomnav, body.is-locked .topbar { visibility: hidden; }
@media (min-width: 960px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: #fff; overflow: hidden; display: flex; }
.hero-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(60% 80% at 96% 22%, #000 30%, transparent 78%);
  mask-image: radial-gradient(60% 80% at 96% 22%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: calc(var(--bar-h) + 32px) var(--gutter) calc(var(--nav-h) + 28px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-greet { font-family: var(--display); font-style: italic; font-size: var(--s-3); color: rgba(255, 255, 255, .85); margin-bottom: .8rem; }
.hero-names { font-size: clamp(4.4rem, 19vw, 12.5rem); line-height: .86; font-weight: 500; letter-spacing: -.02em; margin: 0 0 2.2rem; }
.hero-names > span { display: block; }
.hn-2 { padding-left: .55em; }
.hn-2 em { font-weight: 400; margin-right: -.04em; }
.hero-foot { display: grid; gap: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 1.4rem; }
.hero-when p { margin: 0; }
.hero-when p:first-child { font-family: var(--display); font-size: var(--s-3); }
.hero-when p:last-child { color: rgba(255, 255, 255, .75); }
.hero-count { margin: 0; color: rgba(255, 255, 255, .75); }
.hero-count b { font-family: var(--display); font-weight: 500; font-size: var(--s-4); color: #fff; margin-right: .2em; font-variant-numeric: lining-nums; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo { position: absolute; z-index: 1; margin: 0; inset: 0 0 auto auto; width: 100%; height: 50svh; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero.has-photo .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28, 37, 71, .6), transparent 22%, transparent 55%, var(--ink)); }
@media (min-width: 960px) {
  .hero-inner { padding-bottom: 56px; }
  .hero-foot { grid-template-columns: 1.2fr 1fr auto; align-items: end; }
  .hero.has-photo .hero-photo { width: 40%; height: 100%; }
  .hero.has-photo .hero-photo::after { background: linear-gradient(to bottom, rgba(28, 37, 71, .6), transparent 20%); }
  .hero.has-photo .hero-inner { padding-right: calc(40% + 32px); margin: 0; max-width: none; padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
  .hero.has-photo .hero-names { font-size: clamp(4.4rem, 8.4vw, 9rem); }
  .hero.has-photo .hero-foot { grid-template-columns: 1fr auto; }
  .hero.has-photo .hero-cta { grid-column: 1 / -1; }
  .hero.has-photo .hero-field {
    -webkit-mask-image: radial-gradient(55% 60% at 0% 0%, #000 25%, transparent 75%);
    mask-image: radial-gradient(55% 60% at 0% 0%, #000 25%, transparent 75%);
  }
}
@media (max-width: 599px) {
  .hero-field {
    -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 62%);
    mask-image: linear-gradient(to bottom, #000 20%, transparent 62%);
  }
}

/* =====================================================================
   BLOCKS (shared section layout)
   ===================================================================== */
main { padding-bottom: var(--nav-h); }
@media (min-width: 960px) { main { padding-bottom: 0; } }
.block {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 96px var(--gutter);
  display: grid; gap: 32px;
}
.block + .block:not(.block-dark)::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 8px;
  background: radial-gradient(circle, var(--line-strong) 1.5px, transparent 2px) 0 50% / 12px 8px repeat-x;
}
.block-dark + .block::before { display: none; }
.block-dark { color: #fff; background: var(--ink); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.block-dark .lede { color: rgba(255, 255, 255, .75); }
@media (min-width: 960px) {
  .block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; padding: 128px var(--gutter); }
  .block-head { position: sticky; top: calc(var(--bar-h) + 40px); align-self: start; }
}
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }

/* =====================================================================
   PROGRAMME
   ===================================================================== */
.theme-mehndi    { --ev: #1F6B4F; --ev-tint: #EAF2EE; }
.theme-mandvo    { --ev: #B5542B; --ev-tint: #F8EFE9; }
.theme-haldi     { --ev: #E2A010; --ev-tint: #FBF4E0; }
.theme-ceremony  { --ev: #C98E95; --ev-tint: #F8EFF0; }
.theme-reception { --ev: #1A1A22; --ev-tint: #EDEEF1; }

.programme { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.prog { border-bottom: 1px solid var(--line-strong); }
.prog-row {
  width: 100%; background: none; border: 0; text-align: left; padding: 22px 0;
  display: grid; grid-template-columns: 64px 1fr 28px; gap: 4px 16px; align-items: start;
}
.prog-date { display: flex; flex-direction: column; gap: 6px; }
.prog-date b { font-family: var(--display); font-weight: 500; font-size: 2.6rem; line-height: .85; font-variant-numeric: lining-nums; }
.prog-date span { font-size: var(--s-0); line-height: 1.35; color: var(--ink-2); }
.prog-date em { display: none; font-style: normal; }
.prog-main { display: flex; flex-direction: column; }
.prog-name { font-family: var(--display); font-size: var(--s-4); line-height: 1.1; }
.prog-time { font-size: var(--s-1); color: var(--ink-2); margin-top: 4px; }
.prog-dress { grid-column: 2; display: flex; gap: 10px; align-items: center; font-size: var(--s-1); color: var(--ink-2); }
.mini-swatches { display: flex; flex: none; }
.mini-swatches i { width: 14px; height: 14px; background: var(--c); box-shadow: 0 0 0 1px rgba(28, 37, 71, .18) inset; margin-right: -4px; border: 1.5px solid var(--paper); }
.prog-toggle { grid-column: 3; grid-row: 1; position: relative; width: 28px; height: 28px; margin-top: 6px; }
.prog-toggle::before, .prog-toggle::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.prog-toggle::after { transform: rotate(90deg); }
.prog-row[aria-expanded="true"] .prog-toggle::after { transform: rotate(0); }
.prog-row:hover .prog-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (min-width: 720px) {
  .prog-row { grid-template-columns: 150px 1.1fr 1fr 28px; align-items: center; padding: 26px 0; }
  .prog-date { flex-direction: row; gap: 10px; }
  .prog-date span { padding-top: 2px; }
  .prog-date em { display: block; }
  .prog-dress { grid-column: 3; }
  .prog-toggle { grid-column: 4; margin-top: 0; }
}

.prog-detail {
  background: var(--ev-tint); border-top: 3px solid var(--ev); padding: 28px 20px 32px; margin-bottom: 20px;
  display: grid; gap: 36px; animation: open .35s var(--ease);
}
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 820px) { .prog-detail { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); padding: 36px 32px 40px; gap: 40px; } }
.pd-tag { font-family: var(--display); font-style: italic; font-size: var(--s-3); line-height: 1.3; }
.pd-info > p { max-width: 60ch; }
.timeline { list-style: none; margin: 1.4rem 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(28, 37, 71, .14); }
.timeline time { font-family: var(--display); font-size: 1.15rem; font-variant-numeric: lining-nums tabular-nums; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--ink-2); font-size: var(--s-1); }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4rem 0; }
.pd-facts dt { font-size: var(--s-0); color: var(--ink-2); }
.pd-facts dd { margin: 2px 0 0; font-size: var(--s-1); }

.pd-dress h3 { font-size: var(--s-3); }
.pd-dress-title { font-weight: 600; margin: .3rem 0 1.2rem; }
.look { display: grid; grid-template-columns: minmax(130px, 52%) 1fr; gap: 16px; align-items: start; }
.look-stage {
  aspect-ratio: 176 / 306; background-color: var(--surface);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ev) 26%, transparent) 1.2px, transparent 1.7px);
  background-size: 11px 11px; border: 1px solid rgba(28, 37, 71, .12); padding: 10px 4px 0;
}
.look-stage svg { width: 100%; height: 100%; }
.look-controls { display: grid; gap: 14px; }
.pick { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); width: fit-content; max-width: 100%; }
.pick button { background: transparent; border: 0; min-height: 40px; padding: 0 12px; font-size: var(--s-0); font-weight: 500; }
.pick button + button { border-left: 1px solid var(--ink); }
.pick button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 8px; max-width: 176px; }
.swatch { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 37, 71, .2); }
.swatch[aria-checked="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 380px) { .look { grid-template-columns: 1fr; } .look-stage { max-width: 170px; } }

/* =====================================================================
   RSVP
   ===================================================================== */
.rsvp-status { display: inline-flex; gap: .5em; align-items: center; margin-top: 1.4rem; padding: 8px 12px; background: rgba(255, 255, 255, .1); font-size: var(--s-1); }
.rsvp-card { background: var(--surface); color: var(--ink); padding: 28px 20px; border-radius: 2px; }
@media (min-width: 600px) { .rsvp-card { padding: 40px; } }
.progress { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.progress li { border-top: 3px solid var(--line); padding-top: 10px; font-size: var(--s-0); color: var(--ink-2); line-height: 1.3; }
.progress li span { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink-2); }
.progress li.done { border-top-color: var(--ink); }
.progress li.cur { border-top-color: var(--madder); color: var(--ink); font-weight: 600; }
.progress li.cur span { color: var(--madder); }
.progress li.skip { opacity: .4; }
.step-head { margin-bottom: 24px; }
.step-head h3 { font-size: var(--s-4); }
.step-head p { color: var(--ink-2); margin: .4rem 0 0; }
.all-yes { margin-bottom: 24px; }

.guest { border: 0; border-top: 1px solid var(--ink); margin: 0 0 28px; padding: 16px 0 0; min-width: 0; position: relative; }
.guest legend { font-family: var(--display); font-size: var(--s-3); padding: 0 12px 0 0; float: left; width: 100%; margin-bottom: 8px; }
.guest legend + * { clear: both; }
.quick { display: flex; gap: 8px; margin: -6px 0 4px; }
.quick .linklike { color: var(--ink-2); font-size: var(--s-0); padding: 8px 0; min-height: 36px; }
.attend-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.attend-row:first-of-type { border-top: 0; }
.attend-ev strong { font-weight: 600; }
.attend-ev span { display: block; font-size: var(--s-0); color: var(--ink-2); }
@media (min-width: 560px) { .attend-row { grid-template-columns: 1fr 220px; align-items: center; } }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-stack { grid-template-columns: 1fr; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 6px 10px;
  border: 1px solid var(--line-strong); border-radius: 2px; font-size: var(--s-1); background: var(--surface); transition: all .15s;
}
.seg-stack .seg-opt span { justify-content: flex-start; padding-left: 14px; }
.seg-opt input:hover + span { border-color: var(--ink); }
.seg-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.seg-opt input[value="no"]:checked + span { background: var(--surface); color: var(--madder); border-color: var(--madder); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--haldi); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: var(--s-1); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-2); margin-left: .4em; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232, 165, 30, .35); }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row-3 { grid-template-columns: 1fr 1fr 96px; }
  .seg-2 { grid-template-columns: repeat(4, 1fr); }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--s-1); background: var(--surface); }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--haldi); outline-offset: 2px; }

.inline-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 16px; background: var(--mist); margin-bottom: 18px; text-align: left; }
.inline-cta div { display: flex; flex-direction: column; }
.inline-cta span { font-size: var(--s-1); color: var(--ink-2); }

.rsvp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.rsvp-card .form-error { color: var(--err); font-weight: 500; margin: 0; min-height: 1.4em; }

.review { margin-top: 12px; padding: 20px; background: var(--mist); }
.review h4 { font-family: var(--text); font-weight: 600; font-size: var(--s-1); margin-bottom: 12px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.review-list li { display: grid; gap: 6px; }
.review-list strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.review-evs { display: flex; flex-wrap: wrap; gap: 6px; }
.rev { display: inline-flex; gap: 4px; align-items: center; font-size: var(--s-0); padding: 3px 9px; border: 1px solid currentColor; }
.rev.yes { color: var(--ok); }
.rev.no { color: var(--ink-2); opacity: .7; text-decoration: line-through; }
.review-diet { font-size: var(--s-1); color: var(--ink-2); }

.thanks { display: grid; gap: 14px; justify-items: start; }
.thanks-field { width: calc(100% + 40px); height: 64px; margin: -28px -20px 8px; }
@media (min-width: 600px) { .thanks-field { width: calc(100% + 80px); margin: -40px -40px 8px; } }
.thanks h3 { font-size: var(--s-4); max-width: 22ch; }
.thanks .fine { margin: 0; }
.thanks .review-list { width: 100%; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.thanks .inline-cta { width: 100%; }

/* =====================================================================
   STAY / TRAVEL / GIFTS / GUIDE / FAQ
   ===================================================================== */
.room-block { display: grid; gap: 20px; align-items: center; padding: 28px; margin-bottom: 40px; background: var(--ink); color: #fff; }
.room-block h3 { font-size: var(--s-4); margin-bottom: .5rem; }
.room-block p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 46ch; }
@media (min-width: 720px) { .room-block { grid-template-columns: 1fr auto; padding: 32px 36px; } }

.hotels { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.hotels li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-strong);
}
.h-name { font-family: var(--display); font-size: var(--s-3); line-height: 1.15; }
.h-dist, .h-time { font-size: var(--s-1); color: var(--ink-2); grid-column: 1; }
.hotels a { grid-row: 1 / 4; grid-column: 2; align-self: center; display: inline-flex; gap: 4px; align-items: center; font-size: var(--s-1); font-weight: 600; min-height: 44px; }
@media (min-width: 720px) {
  .hotels li { grid-template-columns: 1.6fr 100px 1fr 70px; align-items: center; }
  .h-dist, .h-time, .hotels a { grid-row: auto; grid-column: auto; }
}
.block-body > .fine { margin-top: 16px; }

.map { aspect-ratio: 16 / 10; background: var(--mist); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.6) contrast(1.05); }
.travel { display: grid; gap: 0 40px; margin: 32px 0; }
.travel > div { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.travel dt { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 6px; }
.travel dd { margin: 0; color: var(--ink-2); font-size: var(--s-1); }
@media (min-width: 720px) { .travel { grid-template-columns: 1fr 1fr; } }
.notice { margin: 0; padding: 14px 18px; border-left: 3px solid var(--haldi); background: var(--mist); font-size: var(--s-1); }

.gift-message { font-family: var(--display); font-size: clamp(var(--s-3), 2.6vw, var(--s-4)); line-height: 1.35; max-width: 32ch; margin-bottom: 1.6rem; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bank { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; background: var(--mist); }

.glossary { display: grid; gap: 0 40px; margin: 0; }
.glossary > div { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.glossary dt { font-family: var(--display); font-size: var(--s-3); margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--ink-2); font-size: var(--s-1); max-width: 46ch; }
@media (min-width: 720px) { .glossary { grid-template-columns: 1fr 1fr; } }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; min-height: 56px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* engagement mosaic */
.gallery { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 96px; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 32px; }
.gallery-meta { display: flex; align-items: center; gap: 14px; margin: 0; font-family: var(--display); font-style: italic; font-size: var(--s-3); color: var(--ink-2); }
.gallery-meta span + span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-strong); vertical-align: middle; margin-right: 14px; }
.mosaic { display: grid; gap: 8px; }
.ph { margin: 0; overflow: hidden; background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-wide { aspect-ratio: 3 / 2; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-pano { aspect-ratio: 3 / 2; }
@media (min-width: 720px) {
  .gallery { padding-bottom: 128px; }
  .mosaic { grid-template-columns: repeat(12, 1fr); }
  .ph-wide { grid-column: span 8; }
  .ph-tall { grid-column: span 4; aspect-ratio: auto; }
  .ph-pano { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .ph-pano img { object-position: 50% 62%; }
}

/* =====================================================================
   FOOTER + TOAST
   ===================================================================== */
.footer { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 96px var(--gutter) calc(var(--nav-h) + 48px); text-align: center; }
.footer-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%); mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.footer-inner { position: relative; max-width: 560px; margin: 0 auto; padding-top: 72px; }
.footer-names { font-family: var(--display); font-size: clamp(var(--s-5), 8vw, var(--s-6)); line-height: 1; margin-bottom: 1rem; }
.footer p { color: rgba(255, 255, 255, .78); }
.footer a { color: #fff; }
.footer .linklike { color: rgba(255, 255, 255, .78); }
@media (min-width: 960px) { .footer { padding-bottom: 64px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); z-index: 70; transform: translate(-50%, 16px);
  width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: var(--s-1);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 32px; } }

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