/* ============================================================
   Neha & Bobby — wedding invitation
   Ivory stationery, maroon ink, gold foil.
   ============================================================ */

:root {
  --sand: #f2e8d8;
  --paper: #fffaf2;
  --paper-2: #faf2e4;
  --ink: #2b1b18;
  --ink-soft: #6b5751;
  --ink-faint: #9a857d;
  --maroon: #7a1f2b;
  --maroon-deep: #5a1520;
  --maroon-night: #3d0d15;
  --gold: #a8823a;
  --gold-light: #d9bb73;
  --gold-pale: #efdcae;
  --line: rgba(168, 130, 58, 0.45);
  --line-soft: rgba(168, 130, 58, 0.22);

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --shadow-card: 0 1px 2px rgba(61, 13, 21, 0.06), 0 24px 48px -24px rgba(61, 13, 21, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 64px;

  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23a8823a' stroke-width='1.1'%3E%3Cpath d='M2 58V20C2 10 10 2 20 2h38'/%3E%3Cpath d='M7 58V23c0-9 7-16 16-16h35'/%3E%3Cpath d='M17 17l4-4 4 4-4 4z' fill='%23a8823a'/%3E%3Ccircle cx='31' cy='12' r='1.4' fill='%23a8823a'/%3E%3Ccircle cx='12' cy='31' r='1.4' fill='%23a8823a'/%3E%3C/svg%3E");

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 32px); }

/* ── Shared typographic pieces ─────────────────────────── */
.label {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-wrap: balance;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto;
  color: var(--gold);
}
.rule::before,
.rule::after {
  content: "";
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.rule::after { transform: scaleX(-1); }
.rule i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  background: transparent;
  color: var(--maroon);
  font-family: var(--f-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--maroon); color: var(--paper); }
.btn--solid:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn--ghost:hover { background: rgba(122, 31, 43, 0.06); }
.btn--gold {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, #e6cc8a, #c9a14f 55%, #e2c47e);
  color: var(--maroon-night);
}
.btn--gold:hover { filter: brightness(1.05); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.actions--center { margin-top: 48px; }

/* ── Seal (monogram medallion) ─────────────────────────── */
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #edd595, #c49a48 55%, #9c7531);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18), inset 0 0 0 6px rgba(90, 21, 32, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.seal::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(61, 13, 21, 0.4);
  border-radius: 50%;
}
.seal span {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--maroon-night);
}
.seal em { font-style: italic; margin: 0 3px; font-size: 0.85em; }
.seal--small { width: 76px; height: 76px; }
.seal--small span { font-size: 1.35rem; }
.seal--small::before { inset: 7px; }

/* ── Envelope cover ────────────────────────────────────── */
.cover { display: none; }

.js .cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(217, 187, 115, 0.16), transparent 60%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 55%, var(--maroon-night) 100%);
  color: var(--gold-pale);
  text-align: center;
  transition: opacity 0.9s var(--ease), transform 1s var(--ease), visibility 0s linear 1s;
}
.js .cover::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(217, 187, 115, 0.35);
  box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(217, 187, 115, 0.18);
  pointer-events: none;
}
.cover.is-open {
  opacity: 0;
  transform: translateY(-4%);
  visibility: hidden;
}
.cover__inner { position: relative; max-width: 440px; }
.cover__shubh {
  font-family: var(--f-deva);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.cover .seal { margin-bottom: 32px; animation: seal-in 1.2s var(--ease) both; }
.cover__eyebrow {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(239, 220, 174, 0.75);
}
.cover__names {
  margin: 14px 0 10px;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff6e3;
}
.cover__names em {
  display: block;
  margin: 2px 0;
  font-size: 0.6em;
  color: var(--gold-light);
}
.cover__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}
.cover__date-link {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.28rem, 3.8vw, 1.45rem);
  line-height: 1.35;
  color: rgba(239, 220, 174, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 187, 115, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cover__date-link:hover {
  color: #fff6e3;
  border-bottom-color: #fff6e3;
}
.cover__date-link--sub {
  font-size: clamp(1.15rem, 3.2vw, 1.28rem);
  color: rgba(239, 220, 174, 0.88);
  border-bottom-color: rgba(217, 187, 115, 0.3);
}
.cover__date-link--sub:hover {
  color: #fff6e3;
  border-bottom-color: #fff6e3;
}

@keyframes seal-in {
  from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-stuck,
.nav.is-open {
  background: rgba(255, 250, 242, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.nav__brand {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav__brand em { font-weight: 500; color: var(--gold); margin: 0 3px; }

.nav:not(.is-stuck):not(.is-open) .nav__brand { color: #fff6e3; }
.nav:not(.is-stuck):not(.is-open) .nav__brand em { color: var(--gold-light); }
.nav:not(.is-stuck):not(.is-open) .nav__toggle span { background: var(--gold-pale); }
@media (min-width: 901px) {
  .nav:not(.is-stuck) .nav__links a { color: rgba(239, 220, 174, 0.85); }
  .nav:not(.is-stuck) .nav__links a:hover { color: #fff6e3; }
}

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--maroon); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--maroon);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: 0 12px 24px -12px rgba(61, 13, 21, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
}

/* ── Card (the stationery) ─────────────────────────────── */
.card {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.corner {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  background: var(--corner) center / contain no-repeat;
  pointer-events: none;
}
.corner--tl { top: 12px; left: 12px; }
.corner--tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner--bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner--br { bottom: 12px; right: 12px; transform: scale(-1); }
.card--invite .corner--tl,
.card--invite .corner--tr { display: none; }

/* ── Hero: the invitation itself ───────────────────────── */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 84px) 16px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(217, 187, 115, 0.22), transparent 70%),
    linear-gradient(170deg, var(--maroon) 0%, var(--maroon-deep) 50%, var(--maroon-night) 100%);
}

.hero__decor { position: absolute; inset: 0; pointer-events: none; }

.hero__mandala {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 170vw);
  aspect-ratio: 1;
  background: url("../img/mandala.svg") center / contain no-repeat;
  opacity: 0.32;
  transform: translate(-50%, -50%);
  animation: mandala-spin 240s linear infinite;
}

.hero__toran {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--nav-h) - 10px);
  height: 96px;
  background: url("../img/toran.svg") center top / 240px 96px repeat-x;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
}

/* Hanging marigold strands with a brass bell, either side of the card. */
.strand {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  left: var(--x);
  width: 18px;
  height: var(--h);
  display: none;
  transform-origin: 50% 0;
  animation: strand-sway 7s ease-in-out var(--d) infinite;
  background:
    radial-gradient(circle, #d98a12 0 1.5px, #f9c445 2px 6px, #f2a92a 7px 9px, transparent 9.5px) center 0 / 18px 36px repeat-y,
    radial-gradient(circle, #b9500c 0 1.5px, #f39a2a 2px 6px, #e07a16 7px 9px, transparent 9.5px) center 18px / 18px 36px repeat-y;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}
.strand--r { left: auto; right: var(--x); }
.strand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 16px;
  height: 18px;
  margin: 2px 0 0 -8px;
  border-radius: 50% 50% 3px 3px / 70% 70% 3px 3px;
  background: linear-gradient(90deg, #8a6526, #e6cc8a 45%, #a8823a);
}
@media (min-width: 1000px) { .strand { display: block; } }

@keyframes mandala-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes strand-sway {
  0%, 100% { transform: rotate(1.4deg); }
  50% { transform: rotate(-1.4deg); }
}

.card--invite {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(217, 187, 115, 0.5), 0 0 0 8px rgba(217, 187, 115, 0.12), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.card--invite::before,
.card--invite::after {
  content: "";
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line);
  pointer-events: none;
}
.card--invite::before { inset: 14px; }
.card--invite::after { inset: 19px; border-color: var(--line-soft); }

.card__arch {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 3 / 2;
  background: url("../img/floral-arch.jpg") center top / 130% auto no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 78%);
  mask-image: linear-gradient(#000 40%, transparent 78%);
}

.invite {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 15vw, 96px) clamp(28px, 7vw, 64px) clamp(48px, 9vw, 64px);
  text-align: center;
}

.invite__ganesha {
  width: clamp(76px, 18vw, 104px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.invite__shlok {
  font-family: var(--f-deva);
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  line-height: 1.9;
  color: var(--maroon);
  white-space: pre-line;
}

.invite__hosts {
  margin-top: 14px;
  font-size: clamp(1.15rem, 3.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
}
.invite__request {
  max-width: 34ch;
  margin: 6px auto 0;
  font-style: italic;
  color: var(--ink-soft);
}

.invite__names {
  margin: 24px 0 26px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 4.6rem);
  line-height: 1;
  color: var(--maroon);
}
.invite__names span { display: block; }
.invite__names em {
  display: block;
  margin: 6px 0 2px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.42em;
  color: var(--gold);
}

.datebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 4vw, 24px);
  max-width: 400px;
  margin: 0 auto;
}
.datebar__side {
  padding: 10px 0;
  border-block: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: clamp(0.62rem, 2.4vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.datebar__day { display: grid; line-height: 1; }
.datebar__day small {
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.datebar__day b {
  margin: 4px 0 6px;
  font-size: clamp(3rem, 12vw, 3.8rem);
  font-weight: 500;
  color: var(--maroon);
}

.invite__venue {
  display: block;
  margin-top: 26px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.invite__venue:hover span {
  color: var(--maroon);
}
.invite__venue:hover small {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.invite__venue span {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.invite__venue small {
  display: block;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.invite__also {
  list-style: none;
  max-width: 400px;
  margin: 22px auto 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.invite__also li + li { margin-top: 12px; }
.invite__also-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.invite__also .label {
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
}
.invite__also-when {
  margin-top: 2px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--maroon);
  transition: color 0.2s ease;
}
.invite__also-where {
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.invite__also-link:hover .invite__also-when {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.invite__also-link:hover .invite__also-where {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 360px;
  margin: 30px auto 30px;
  border-block: 1px solid var(--line-soft);
}
.countdown div { padding: 12px 4px; }
.countdown div + div { border-left: 1px solid var(--line-soft); }
.countdown b {
  display: block;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--maroon);
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown span {
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.invite__footnote {
  margin-top: 28px;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-faint);
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 120px) 0; }
.section--paper { background: var(--paper-2); }
.section--maroon {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 60%, var(--maroon-night) 100%);
  color: var(--gold-pale);
}

.sec-head { margin-bottom: clamp(40px, 6vw, 60px); text-align: center; }
.sec-head__title {
  margin-top: 10px;
  font-size: clamp(2.3rem, 6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--maroon);
}
.sec-head__lede { font-style: italic; color: var(--ink-soft); }
.sec-head--light .label { color: var(--gold-light); }
.sec-head--light .sec-head__title { color: #fff6e3; }
.sec-head--light .rule { color: var(--gold-light); }
.sec-head--light .sec-head__lede { color: rgba(239, 220, 174, 0.85); }

/* ── Couple ────────────────────────────────────────────── */
.couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(12px, 4vw, 48px);
  max-width: 880px;
  margin: 0 auto;
}
.person { text-align: center; }
.person__frame {
  position: relative;
  max-width: 300px;
  margin: 0 auto 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 8px 8px;
}
.person__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 4px 4px;
}
.person__name {
  margin: 6px 0 4px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1.1;
  color: var(--maroon);
}
.person__parents { font-style: italic; color: var(--ink-soft); }
.person__blurb {
  max-width: 34ch;
  margin: 14px auto 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.couple__amp {
  align-self: center;
  margin-top: -80px;
  font-style: italic;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--gold);
}

@media (max-width: 640px) {
  .couple { grid-template-columns: 1fr 1fr; gap: 16px; }
  .couple__amp { display: none; }
  .person__frame { padding: 5px; margin-bottom: 14px; }
  .person__blurb { display: none; }
  .person__parents { font-size: 0.98rem; line-height: 1.4; }
}

/* ── Celebrations ──────────────────────────────────────── */
.days { display: grid; gap: clamp(48px, 7vw, 72px); }

.day__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.day__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.day__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold);
}
.day__num b { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; color: var(--maroon); }
.day__title { font-size: clamp(1.45rem, 4vw, 1.8rem); font-weight: 500; line-height: 1.15; }
.day__title small {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.day__events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 28px);
}
@media (max-width: 720px) { .day__events { grid-template-columns: 1fr; } }

.event {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.event:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(61, 13, 21, 0.06), 0 32px 56px -28px rgba(61, 13, 21, 0.4); }

.event__art { margin: 0; position: relative; min-height: 100%; }
.event__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.event__body { display: flex; flex-direction: column; padding: 26px 24px 22px; }
.event__time {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.event__time b {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--maroon);
  margin-right: 4px;
}
.event__time--phrase {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--maroon);
}
.event--highlight .event__time--phrase { color: #fff6e3; }
.event__name {
  margin: 2px 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.05;
}
.event__venue {
  margin-bottom: 6px;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}
.event__note { font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft); }
.event__dress {
  align-self: flex-start;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.event__links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
}
.event__links a,
.event__links button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--maroon);
}
.event__links a:hover,
.event__links button:hover { border-color: var(--maroon); }

.event--wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.event--wide .event__body { justify-content: center; padding: clamp(28px, 4vw, 48px); }
.event--wide .event__links { margin-top: 0; }
.event--wide .event__art img { object-position: center 25%; }

/* The Shaadi gets the maroon card. */
.event--highlight { background: linear-gradient(160deg, var(--maroon), var(--maroon-deep)); color: #fff6e3; }
.event--highlight .event__time { color: var(--gold-light); }
.event--highlight .event__time b,
.event--highlight .event__name { color: #fff6e3; }
.event--highlight .event__note { color: rgba(255, 246, 227, 0.78); }
.event--highlight .event__dress { border-color: rgba(217, 187, 115, 0.5); color: var(--gold-pale); }
.event--highlight .event__links a,
.event--highlight .event__links button { color: var(--gold-pale); border-color: rgba(217, 187, 115, 0.5); }
.event__ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
}

@media (max-width: 720px) {
  .event--wide { grid-template-columns: 42% 1fr; }
}
@media (max-width: 420px) {
  .event, .event--wide { grid-template-columns: 1fr; }
  .event__art { aspect-ratio: 16 / 10; }
  .event__body { padding: 22px 20px 20px; }
}

/* ── Story ─────────────────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.story__art { margin: 0; padding: 10px; background: var(--paper); box-shadow: var(--shadow-card); border-radius: 6px; }
.story__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li {
  position: relative;
  padding: 0 0 28px 56px;
  counter-increment: step;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: var(--line-soft);
}
.timeline li:last-child::after { display: none; }
.timeline__date { font-family: var(--f-sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.timeline__title { margin: 2px 0 4px; font-size: 1.45rem; font-weight: 500; line-height: 1.2; color: var(--maroon); }
.timeline__text { color: var(--ink-soft); }

@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* Collapsible story: closed by default once JS is running. */
.story__toggle { display: none; }
.js .story__toggle { display: inline-flex; }
.js #story .sec-head { margin-bottom: 28px; }
.js .collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.js .collapse.is-open { grid-template-rows: 1fr; }
.collapse__inner { min-height: 0; overflow: hidden; }
.js .collapse.is-open .collapse__inner { padding-top: 48px; }
.js .collapse:not(.is-open) .collapse__inner { visibility: hidden; transition: visibility 0s linear 0.6s; }

/* ── Venue ─────────────────────────────────────────────── */
.venue {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}
.venue__map { min-height: 380px; background: var(--paper-2); }
.venue__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(0.75) sepia(0.12); }
.venue__info { padding: clamp(28px, 5vw, 48px); }
.venue__name { margin: 8px 0 4px; font-size: clamp(1.8rem, 4vw, 2.2rem); font-weight: 500; line-height: 1.15; color: var(--maroon); }
.venue__address { margin-bottom: 22px; font-style: italic; color: var(--ink-soft); }
.venue__notes { list-style: none; margin: 30px 0 0; padding: 0; }
.venue__notes li { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.venue__notes h4 { font-family: var(--f-sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.venue__notes p { font-size: 1.04rem; line-height: 1.55; color: var(--ink-soft); }

.venue-extra { display: grid; gap: 16px; margin-top: 24px; }
.venue-extra__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: clamp(24px, 4vw, 36px) clamp(24px, 5vw, 48px);
  border-left: 3px solid var(--gold);
}
.venue-extra__item .venue__address { margin-bottom: 0; }

@media (max-width: 820px) {
  .venue { grid-template-columns: 1fr; }
  .venue__map, .venue__map iframe { min-height: 280px; }
}

/* ── Gallery: a fixed editorial layout of mounted prints ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-template-areas:
    "a a b c"
    "a a d c"
    "e f f g";
  gap: clamp(10px, 1.6vw, 18px);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  padding: 6px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(61, 13, 21, 0.08), 0 14px 28px -18px rgba(61, 13, 21, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery__item:nth-child(1) { grid-area: a; }
.gallery__item:nth-child(2) { grid-area: b; }
.gallery__item:nth-child(3) { grid-area: c; }
.gallery__item:nth-child(4) { grid-area: d; }
.gallery__item:nth-child(5) { grid-area: e; }
.gallery__item:nth-child(6) { grid-area: f; }
.gallery__item:nth-child(7) { grid-area: g; }
.gallery__item:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(61, 13, 21, 0.08), 0 24px 40px -20px rgba(61, 13, 21, 0.55); }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 1px;
  transition: transform 0.9s var(--ease);
}
.gallery__item img[src*="gallery-bench"],
.gallery__item:nth-child(5) img,
.gallery__item:nth-child(7) img {
  object-position: center 72%;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 36px 16px 12px;
  background: linear-gradient(transparent, rgba(43, 27, 24, 0.72));
  color: #fff6e3;
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 44vw;
    grid-template-areas:
      "a a"
      "b c"
      "d c"
      "f f"
      "e g";
    gap: 10px;
  }
  .gallery__item { padding: 4px; }
  .gallery__cap { left: 4px; right: 4px; bottom: 4px; padding: 28px 10px 8px; font-size: 0.6rem; }
}

/* ── RSVP form ─────────────────────────────────────────── */
.form { padding: clamp(28px, 5vw, 48px); color: var(--ink); }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(168, 130, 58, 0.4);
  border-radius: 4px;
  background: #fff;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.12); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { display: block; min-height: 1em; margin-top: 4px; font-family: var(--f-sans); font-size: 0.75rem; color: #b3261e; }
.choice, .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.choice__opt, .chip { position: relative; }
.choice__opt input, .chip input { position: absolute; opacity: 0; }
.choice__opt span, .chip span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.choice__opt input:checked + span,
.chip input:checked + span { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }
.choice__opt input:focus-visible + span,
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__status { margin-top: 14px; min-height: 1.4em; text-align: center; font-style: italic; color: var(--ink-soft); }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  padding: 80px 0 72px;
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon-night));
  color: var(--gold-pale);
  text-align: center;
}
.footer__names { margin: 22px 0 8px; font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 500; color: #fff6e3; }
.footer__names em { color: var(--gold-light); margin: 0 4px; }
.footer__date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 0.78rem;
  color: var(--gold-light);
}
.footer__date a {
  padding: 4px 0;
  border-bottom: 1px solid rgba(217, 187, 115, 0.45);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.footer__date a:hover { color: #fff6e3; border-color: #fff6e3; }
.footer__thanks { margin: 18px 0 32px; font-style: italic; color: rgba(239, 220, 174, 0.8); }

.contacts { max-width: 640px; margin: 0 auto 36px; padding-top: 28px; border-top: 1px solid rgba(217, 187, 115, 0.25); }
.contacts .label { color: var(--gold-light); margin-bottom: 16px; }
.contacts__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contacts__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(217, 187, 115, 0.4);
  border-radius: 999px;
  color: #fff6e3;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.contacts__list a:hover { background: rgba(217, 187, 115, 0.12); border-color: var(--gold-light); }
.contacts__list svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 10, 13, 0.92);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(1000px, 100%); text-align: center; }
.lightbox__figure img { max-height: 80vh; margin: 0 auto; border-radius: 4px; }
.lightbox__figure figcaption { margin-top: 14px; font-style: italic; color: var(--gold-pale); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 187, 115, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold-pale);
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 110;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Reveal on scroll ──────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ── Print: just the invitation card ───────────────────── */
@media print {
  .cover, .nav, .countdown, .actions, .toast, .lightbox, .hero__decor { display: none !important; }
  body, .hero { background: #fff; }
  .hero { min-height: 0; padding: 0; }
  .card { box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
}
