/* ═══════════════════════════════════════════════════════════════════════════
   ROHIT & SIVANI — Wedding
   Design language: Heirloom Editorial
   Warm paper · framed photographs · typography as ornament
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500&family=Italiana&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Paper & ink */
  --paper:        #FAF6F0;
  --paper-warm:   #F5EFE6;
  --vellum:       #EFE7DB;
  --sand:         #D9CCBC;
  --sand-deep:    #C4B29A;
  --mauve:        #A68B6B;
  --sepia:        #7A6548;
  --ink:          #5C4A32;
  --ink-deep:     #3D3024;
  --charcoal:     #2C2420;

  /* Accent earths */
  --terracotta:   #B5754F;
  --sage:         #8A9079;

  /* Type */
  --font-display: 'Italiana', 'Didot', 'Bodoni MT', serif;
  --font-serif:   'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-sans:    'Montserrat', -apple-system, sans-serif;

  /* Rhythm */
  --measure:      38rem;
  --measure-wide: 56rem;
  --gutter:       clamp(1.25rem, 5vw, 3rem);
  --stack-sm:     1.25rem;
  --stack:        clamp(1.75rem, 4vw, 2.75rem);
  --stack-lg:     clamp(2.5rem, 7vw, 5rem);
  --stack-xl:     clamp(3.5rem, 10vw, 7rem);

  /* Detail */
  --hairline:     1px solid color-mix(in srgb, var(--sand) 60%, transparent);
  --radius:       2px;
  --shadow-paper: 0 1px 2px rgba(60, 48, 36, 0.06),
                  0 8px 24px -8px rgba(60, 48, 36, 0.12),
                  0 24px 48px -24px rgba(60, 48, 36, 0.10);
  --ease:         cubic-bezier(0.25, 0.1, 0.15, 1.0);
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
}

/* (Paper grain overlay removed — it muted the photographs.) */

::selection { background: var(--sand); color: var(--charcoal); }

/* ── Typography ──────────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.display--xl { font-size: clamp(3rem, 10vw, 7.5rem); }
.display--lg { font-size: clamp(2.25rem, 6vw, 4rem); }
.display--md { font-size: clamp(1.75rem, 4vw, 2.5rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--mauve);
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.75;
  color: var(--sepia);
}

.numerals {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-variant-numeric: lining-nums;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.4em; }
.prose em, .prose i { color: var(--sepia); }
.prose a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.wrap       { width: min(100% - 2*var(--gutter), 76rem); margin-inline: auto; }
.wrap--text { width: min(100% - 2*var(--gutter), var(--measure)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2*var(--gutter), var(--measure-wide)); margin-inline: auto; }

.center { text-align: center; }
.stack > * + *    { margin-top: var(--stack); }
.stack-sm > * + * { margin-top: var(--stack-sm); }
.stack-lg > * + * { margin-top: var(--stack-lg); }

body { display: flex; flex-direction: column; }
main { padding-top: clamp(4.5rem, 9vh, 6rem); flex: 1 0 auto; }
section { padding-block: var(--stack); }
section + section { padding-top: 0; }

/* ── Ornament ────────────────────────────────────────────────────────────── */
.rule {
  width: 3.5rem; height: 1px;
  margin: 1.25rem auto;
  background: var(--sand-deep);
  border: none;
}
.rule--long { width: clamp(6rem, 30vw, 14rem); }

/* Clementine · Oreo divider — first-date motif */
.motif {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 1.25rem auto; color: var(--sand-deep);
}
.motif::before, .motif::after { content: ''; height: 1px; width: 2.5rem; background: currentColor; }
.motif svg { width: 1.125rem; height: 1.125rem; display: block; }
.motif__clem circle { fill: var(--terracotta); stroke: none; }
.motif__clem path { stroke: var(--sage); fill: none; }
.motif__clem ellipse { fill: var(--sage); stroke: none; }
.motif__oreo .cookie { fill: var(--ink-deep); }
.motif__oreo .cream  { fill: #fdfaf4; }
.motif__oreo .emboss { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 0.7; }

.monogram { width: 4.5rem; height: 4.5rem; display: block; margin-inline: auto; }

/* Invisible-strings map */
.strings { width: min(100%, 42rem); margin-inline: auto; display: block; }
.strings__line {
  stroke: var(--sepia); stroke-width: 1.4; fill: none;
  stroke-dasharray: 4 5;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}
.reveal--in .strings__line { animation: strings-flow 24s linear infinite, strings-draw 2.2s var(--ease) forwards; }
.strings__dot  { fill: var(--paper); stroke: var(--sepia); stroke-width: 1.4; opacity: 0; animation: rise 0.5s var(--ease) forwards; }
.strings__dot--end { fill: var(--terracotta); stroke: var(--terracotta); }
.strings__dot:nth-of-type(1) { animation-delay: 0.3s; }
.strings__dot:nth-of-type(2) { animation-delay: 0.9s; }
.strings__dot:nth-of-type(3) { animation-delay: 1.5s; }
.strings__dot:nth-of-type(4) { animation-delay: 2.1s; }
.strings__label { font-family: var(--font-sans); font-size: 8px; letter-spacing: 0.2em; fill: var(--mauve); text-transform: uppercase; }

@keyframes strings-draw { to { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } }
@keyframes strings-flow { to { stroke-dashoffset: -180; } }

/* Countdown flip */
.countdown {
  display: inline-grid; cursor: pointer; user-select: none;
  font-family: var(--font-serif); font-style: italic; color: var(--sepia);
  margin-top: 1rem;
}
.countdown > span { grid-area: 1 / 1; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.countdown__b { opacity: 0; transform: translateY(6px); }
.countdown:hover .countdown__a, .countdown--flip .countdown__a { opacity: 0; transform: translateY(-6px); }
.countdown:hover .countdown__b, .countdown--flip .countdown__b { opacity: 1; transform: translateY(0); }
.countdown b {
  font-family: var(--font-sans); font-style: normal; font-weight: 400;
  font-size: 0.9375em; letter-spacing: 0.12em;
  color: var(--ink-deep);
  font-variant-numeric: tabular-nums;
}

.kicker {
  display: inline-flex; align-items: center; gap: 1.25rem;
}
.kicker::before, .kicker::after {
  content: ''; height: 1px; width: 2.5rem; background: var(--sand-deep);
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: var(--hairline);
}
.nav__mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  color: var(--sepia);
  text-decoration: none;
}
.nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-deep);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { border-color: var(--sand-deep); color: var(--charcoal); }

.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle {
    display: block;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-sans); font-size: 0.6875rem;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--ink-deep); padding: 0.5rem 0;
  }
  .nav { z-index: 200; }
  .nav__links {
    position: fixed; left: 0; right: 0; top: 4rem;
    height: calc(100dvh - 4rem); min-height: calc(100vh - 4rem);
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 2rem; padding-top: 2.5rem;
    background: var(--paper);
    border-top: var(--hairline);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    z-index: 199;
  }
  .nav__links a { font-size: 0.8125rem; }
  .nav--open { background: var(--paper); }
  .nav--open .nav__links { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem; letter-spacing: 0.35em; text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-deep);
  background: transparent;
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover  { background: var(--ink-deep); color: var(--paper); border-color: var(--ink-deep); }
.btn--solid { background: var(--ink-deep); color: var(--paper); border-color: var(--ink-deep); }
.btn--solid:hover { background: var(--charcoal); }
.btn--ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: 0.5rem; }
.btn--ghost:hover { background: transparent; border-color: transparent; color: var(--terracotta); }

/* ── Photographs (the framed-print treatment) ────────────────────────────── */
.print {
  position: relative;
  background: #fff;
  padding: 0.5rem;
  box-shadow: var(--shadow-paper);
  border-radius: var(--radius);
}
.print img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 1px;
}
.print--bare { padding: 0; background: transparent; }

.plate {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--wide   { aspect-ratio: 3 / 2; }
.plate--square { aspect-ratio: 1 / 1; }

/* ── Home: masthead ──────────────────────────────────────────────────────── */
.masthead {
  min-height: calc(100svh - 6rem);
  display: grid; place-content: center;
  padding-block: var(--stack);
  text-align: center;
}
.has-intro .masthead.reveal { opacity: 0; transform: translateY(18px); }
.masthead__names { margin-bottom: 0.35em; }
.masthead__guest { margin-bottom: 0.2em; color: var(--sepia); }
.masthead__bridge {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mauve);
  display: block; margin: 1rem auto;
}
.is-personalized .masthead__generic { display: none; }
.masthead__amp {
  display: block;
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: 0.35em; color: var(--mauve);
  margin-block: 0.3em;
}
.masthead__sub { margin-top: var(--stack-sm); }

/* ── Home: opening composition (jasmine + welcome) ───────────────────────── */
.opening {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.opening__text .lede { max-width: 24rem; }
.opening__where {
  margin-top: var(--stack);
  display: grid; gap: 0.35rem;
}
.opening__where .numerals { font-size: 1.5rem; color: var(--ink-deep); }

@media (max-width: 880px) {
  .opening { grid-template-columns: 1fr; }
  .opening__text { text-align: center; justify-items: center; display: grid; }
}

/* ── Home: gallery grid ──────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(5rem, 11vw, 9rem);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.gallery__a { grid-column: 1 / 6;  grid-row: 1 / 7; }
.gallery__b { grid-column: 6 / 13; grid-row: 1 / 4; }
.gallery__c { grid-column: 6 / 11; grid-row: 4 / 7; }
.gallery__d { grid-column: 11 / 13; grid-row: 4 / 7; }

.gallery .plate { height: 100%; aspect-ratio: auto; }
.gallery__b img { object-position: center 75%; }
.gallery__c img { object-position: 52% center; }

@media (max-width: 720px) {
  .gallery { display: none; }
}

/* ── Home: venue illustration ────────────────────────────────────────────── */
.venuemark {
  text-align: center;
}
.venuemark img {
  width: min(100%, 60rem);
  margin-inline: auto;
  opacity: 0.8;
}
.venuemark__caption {
  margin-top: 1.5rem;
}

/* ── Footer (replaces blush block) ───────────────────────────────────────── */
.colophon {
  margin-top: var(--stack-xl);
  padding: var(--stack-lg) var(--gutter) var(--stack);
  text-align: center;
  border-top: var(--hairline);
  background: linear-gradient(to bottom, transparent, var(--paper-warm));
}
.colophon__seal {
  width: clamp(9rem, 30vw, 14rem);
  margin: 0 auto 1.5rem;
  opacity: 0.45;
}
.colophon__date {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  letter-spacing: 0.35em;
  color: var(--ink-deep);
}
.colophon__small {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mauve);
}

/* ── Access gate & per-party event visibility ────────────────────────────── */
[data-event]:not(.ev--on) { display: none; }

.is-gated main, .is-gated .nav, .is-gated .colophon { display: none; }
.gate {
  min-height: 100svh;
  display: grid; place-content: center;
  padding: var(--gutter);
  text-align: center;
}
.gate__panel { max-width: 24rem; display: grid; gap: 1rem; justify-items: center; }
.gate__field { width: 100%; }
.gate__field input { text-align: center; }
.gate__msg { min-height: 1.2em; color: var(--sepia); }

/* ── Our Story: scrapbook collage ────────────────────────────────────────── */
.collage {
  position: relative;
  height: clamp(19rem, 46vw, 25rem);
  margin-block: var(--stack);
}
.collage .print { position: absolute; rotate: var(--tilt, 0deg); }
.tone img { filter: saturate(0.68) brightness(0.92) contrast(0.97); }
.collage__1 { width: 49%; top: 8%;    left: 27%; --tilt:  1.5deg; z-index: 1; }
.collage__2 { width: 30%; top: 0;     left: 8%;  --tilt: -3deg;   z-index: 2; }
.collage__3 { width: 32%; bottom: 3%; right: 6%; --tilt:  2.5deg; z-index: 2; }

@media (max-width: 720px) {
  .collage { height: auto; display: grid; gap: 1.25rem; }
  .collage .print { position: static; width: 84%; }
  .collage__1 { margin-inline: auto; }
  .collage__2 { margin-right: auto; }
  .collage__3 { margin-left: auto; }
}

/* ── Details: schedule card ──────────────────────────────────────────────── */
.card {
  background: #fffdf9;
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.schedule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.schedule__divider { width: 1px; background: var(--sand); }
.schedule h3 { margin-bottom: 1.5rem; }

.agenda { display: grid; gap: 1.75rem; }
.agenda__day .eyebrow { color: var(--ink-deep); display: block; margin-bottom: 0.5rem; }
.agenda__item { display: flex; gap: 1rem; align-items: baseline; padding-block: 0.2rem; }
.agenda__time { font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.15em; color: var(--mauve); min-width: 4.5rem; text-transform: uppercase; }
.agenda__what { font-weight: 500; color: var(--ink-deep); }
.agenda__where { font-style: italic; font-size: 0.9375em; color: var(--sepia); }

.dress { display: grid; gap: 1.25rem; }
.dress__item .agenda__what { display: block; }
.dress__swatches { display: inline-flex; gap: 0.35rem; margin-top: 0.4rem; }
.dress__swatches i {
  width: 0.9rem; height: 0.9rem; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  display: inline-block;
}

@media (max-width: 800px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule__divider { width: auto; height: 1px; }
}

/* ── Lookbook ────────────────────────────────────────────────────────────── */
.look { text-align: center; }
.look__head { margin-bottom: var(--stack-sm); }
.look__head .dress__swatches { justify-content: center; margin-top: 0.75rem; }
.lookgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: var(--stack-sm);
}
.lookgrid__ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--vellum);
  border: 1px dashed var(--sand);
}
@media (max-width: 720px) { .lookgrid { grid-template-columns: 1fr 1fr; } }

/* ── Playlist ────────────────────────────────────────────────────────────── */
.tracklist { display: grid; gap: 0; max-width: var(--measure); margin-inline: auto; }
.track {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: var(--hairline);
}
.track__no { font-size: 1.5rem; color: var(--sand-deep); text-align: right; }
.track__title { color: var(--ink-deep); font-size: 1.1875rem; }
.track__artist { font-style: italic; color: var(--sepia); }
.track__by { display: block; margin-top: 0.25rem; }

/* ── Details: travel & stay (alternating splits) ─────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.split--rev { grid-template-columns: 0.9fr 1.1fr; }
.split--rev > :first-child { order: 2; }
.split__text .eyebrow { display: block; margin-bottom: 0.75rem; }

@media (max-width: 800px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}

/* ── FAQs ────────────────────────────────────────────────────────────────── */
.qa { display: grid; gap: var(--stack); }
.qa__item { text-align: center; max-width: var(--measure); margin-inline: auto; }
.qa__q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--sepia);
  margin-bottom: 0.75rem;
}
.qa__a { color: var(--ink-deep); }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.field {
  display: grid; gap: 0.5rem;
}
.field label { font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mauve); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sand-deep);
  padding: 0.75rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink-deep);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink-deep); }
.field textarea { resize: vertical; min-height: 5rem; border: 1px solid var(--sand-deep); padding: 0.75rem; border-radius: var(--radius); }

/* ── RSVP: party form ────────────────────────────────────────────────────── */
.party { display: none; }
.party--active { display: block; animation: rise 0.6s var(--ease); }

.greeting { text-align: center; margin-bottom: var(--stack); }
.greeting .display { margin-bottom: 0.5rem; }

.guestcard {
  border-top: var(--hairline);
  padding-block: 1.75rem;
}
.guestcard__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.guestcard__events { display: grid; gap: 0.6rem; }

.attend {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}
.attend__label { display: grid; }
.attend__label small { font-style: italic; color: var(--sepia); font-size: 0.875em; }
.segmented {
  display: inline-flex; border: 1px solid var(--sand-deep); border-radius: 999px; overflow: hidden;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 0.45rem 1.1rem;
  font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sepia); cursor: pointer; user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented input:checked + label { background: var(--ink-deep); color: var(--paper); }

@media (max-width: 560px) {
  .attend { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .segmented { align-self: flex-start; }
  .segmented label { padding: 0.45rem 0.9rem; letter-spacing: 0.12em; }
  .card { padding: 1.25rem; }
  .guestcard__name { font-size: 1.25rem; }
}

/* RSVP grid (3+ guests): one row per event, one column per guest */
.rsvpgrid { width: 100%; border-collapse: collapse; }
.rsvpgrid th, .rsvpgrid td { padding: 0.85rem 0.5rem; text-align: center; border-bottom: var(--hairline); }
.rsvpgrid th { font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-deep); font-weight: 500; }
.rsvpgrid td.rsvpgrid__event, .rsvpgrid th.rsvpgrid__event { text-align: left; }
.rsvpgrid__event small { display: block; font-style: italic; color: var(--sepia); font-size: 0.875em; }
.rsvpgrid__all { font-family: var(--font-sans); font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mauve); background: none; border: none; cursor: pointer; padding: 0.25rem 0.5rem; }
.rsvpgrid__all:hover { color: var(--ink-deep); text-decoration: underline; }

.tick { display: inline-block; position: relative; }
.tick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tick span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--sand-deep); border-radius: 999px;
  font-size: 0.875rem; color: transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.tick input:checked + span { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--paper); }
.tick input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }


@media (max-width: 720px) {
  .rsvpgrid { display: block; overflow-x: auto; white-space: nowrap; }
  .rsvpgrid__event { min-width: 11rem; white-space: normal; }
}

.plusone {
  margin-top: 1rem; padding: 1.25rem;
  background: var(--paper-warm);
  border: 1px dashed var(--sand-deep);
  border-radius: var(--radius);
}
.plusone__note { font-style: italic; color: var(--sepia); font-size: 0.9375em; margin-bottom: 0.75rem; }

.hint { font-style: italic; font-size: 0.875rem; color: var(--mauve); }

.songfield { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.25rem);
  background: #fffdf9; border: var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  max-height: 18rem; overflow-y: auto;
  z-index: 50;
}
.suggest li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.9rem; cursor: pointer;
  border-bottom: var(--hairline);
}
.suggest li:last-child { border-bottom: none; }
.suggest__msg { font-style: italic; color: var(--sepia); justify-content: center; cursor: default; }
.suggest__msg:hover { background: transparent; }
.suggest li:hover { background: var(--vellum); }
.suggest img { width: 2.5rem; height: 2.5rem; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.suggest b { display: block; font-weight: 500; color: var(--ink-deep); font-family: var(--font-serif); }
.suggest i { display: block; font-style: italic; font-size: 0.875em; color: var(--sepia); }

/* ── Motion ──────────────────────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal--in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Intro card (clementine + oreo seal, splits middle-out) ──────────────── */
.intro {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; grid-template-columns: 1fr 1fr;
  pointer-events: auto;
}
.intro__panel {
  position: relative;
  background: var(--paper-warm);
  box-shadow: 0 0 40px -10px rgba(60,48,36,0.15) inset;
  transition: transform 1.8s cubic-bezier(0.83, 0, 0.17, 1);
}
.intro__panel--r { transition-delay: 0.08s; }
.intro__panel--l::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 1px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--sand-deep) 50%, transparent) 0%,
    transparent 28%, transparent 76%,
    color-mix(in srgb, var(--sand-deep) 50%, transparent) 100%);
}

.intro__seal {
  position: absolute; left: 50%; top: 50%;
  width: 10rem; height: 10rem;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease);
}
.intro--ready .intro__seal { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.intro--ready .intro__seal { animation: seal-breathe 3.2s ease-in-out 1s infinite; }

.intro__seal svg { position: absolute; transition: transform 0.7s var(--ease); }
.intro__seal .clem { width: 7.2rem; height: 7.2rem; transform: translate(-1.4rem, -1rem) rotate(-6deg); }
.intro__seal .oreo { width: 5.9rem; height: 5.9rem; transform: translate(1.8rem, 1.4rem) rotate(4deg); }
.intro__seal .clem circle { fill: var(--terracotta); }
.intro__seal .clem path { stroke: var(--sage); stroke-width: 1.6; fill: none; }
.intro__seal .clem ellipse { fill: var(--sage); }
.intro__seal .oreo .cookie { fill: var(--ink-deep); }
.intro__seal .oreo .cream  { fill: #fdfaf4; }
.intro__seal .oreo .emboss { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 0.7; }

.intro__hint {
  position: absolute; left: 50%; top: calc(50% + 4rem);
  transform: translateX(-50%);
  font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--mauve);
  opacity: 0; transition: opacity 0.6s var(--ease) 0.6s;
}
.intro--ready .intro__hint { opacity: 1; }

.intro__seal:hover .clem { transform: translate(-1.4rem, -1.1rem) rotate(-10deg); }
.intro__seal:hover .oreo { transform: translate(1.8rem, 1.4rem) rotate(8deg); }

.intro--open .intro__seal { animation: none; transform: translate(-50%, -50%) scale(1.15); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.5s var(--ease) 0.15s; }
.intro--open .intro__seal .clem { transform: translate(-3rem, -2rem) rotate(-20deg); }
.intro--open .intro__seal .oreo { transform: translate(3rem, 2rem) rotate(18deg); }
.intro--open .intro__hint { opacity: 0; transition-delay: 0s; }
.intro--open .intro__panel--l { transform: translateX(-101%); }
.intro--open .intro__panel--r { transform: translateX(101%); }
.intro--open { pointer-events: none; }
.intro--gone { display: none; }

@keyframes seal-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.mt-sm { margin-top: var(--stack-sm); }
.mt    { margin-top: var(--stack); }
.mt-lg { margin-top: var(--stack-lg); }
.hidden { display: none !important; }
