/* ═══════════════════════════════════════════════════════════
   Ivory Arch · vowstory Shubharambh

   ⚠️ REBUILT on 11 September 2026 from the co-founder's redesign.
   The tokens, the typography and every section's treatment are his;
   what this repository adds is the config pipeline, and in this file
   that is only the small block at the very bottom marked
   "config-driven states". Everything above it is the design.

   ⚠️ Two things were corrected on the way in and are marked ⚠️ where
   they occur: the margin borders (fetched by phones that never show
   them) and the dress-code grid (a track held open for a cell that is
   not there). Both are in decision 0047.

   Utsav's designs keep their original stylesheet and take the redesign
   as a three-way merge; this tier's redesigns replace the sheet
   outright, because the pipeline's share of it is four rules.
   ═══════════════════════════════════════════════════════════ */

/* ⚠️ SELF-HOSTED FONTS. The Google Fonts <link> came out of index.html with
   this redesign — an invitation is opened by a guest who never agreed to
   anything, and that stylesheet made their browser announce itself to a third
   party before the first paint. 182 KB of woff2 we serve ourselves instead.
   ⚠️ Every family named anywhere below must have a rule here. A family with
   no @font-face falls back to a system serif silently: the page looks
   slightly wrong rather than broken, which is how it survives review.
   ⚠️ Italiana is GONE. It was this design's display face until the redesign
   and is still named by one rule the pipeline owns — see .glyph at the foot
   of this file, which was changed to var(--disp) for exactly this reason. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/marcellus-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/eb-garamond-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/eb-garamond-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/eb-garamond-latin-400-italic.woff2) format("woff2");
}

:root {
  --ivory: #fcf7ef;
  --cream: #f6ece0;
  --blush: #f1dacf;
  --blush-deep: #e7c3b6;
  --rose: #b0685a;
  --rose-deep: #8a3b34;
  --gold: #c39a5b;
  --gold-deep: #a87c3e;
  --ink: #493730;
  --ink-soft: #8b7264;
  --sage: #8c9a7c;
  --col: 480px;
  --pad: 26px;
  --gap: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --disp: "Cormorant Garamond", Georgia, serif;
  --label: "Marcellus", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
sup {
  font-size: 0.58em;
  vertical-align: 0.5em;
}
body:not(.open) {
  overflow: hidden;
  height: 100%;
}

#page {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--ivory);
  overflow: clip;
  box-shadow: 0 0 90px rgba(138, 59, 52, 0.14);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  position: relative;
  z-index: 2;
}
body.open #page {
  opacity: 1;
}

/* ⚠️ Printed margin borders, shown only from 1180px up. These arrived as two
   <img> tags with display:none below that width. Every browser fetches a
   display:none image, so every phone — which never shows them — paid for
   1 MB. They are CSS background-images declared INSIDE the media query
   instead, which is fetched only when the query matches.
   The geometry is unchanged: height:100vh with background-size contain in a
   24vw box resolves to the same painted box as width:auto on an <img> did. */
.edge {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 24vw;
  max-width: 24vw;
  opacity: 0.94;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: contain;
}
.edge-l {
  left: 0;
  background-position: left center;
}
.edge-r {
  right: 0;
  background-position: right center;
}
@media (min-width: 1180px) {
  .edge {
    display: block;
  }
  .edge-l {
    background-image: url(assets/elements/border-l.webp);
  }
  .edge-r {
    background-image: url(assets/elements/border-r.webp);
  }
}

/* ── cover ───────────────────────────────── */
#cover {
  position: fixed;
  inset: 0;
  z-index: 90;
  max-width: var(--col);
  margin: 0 auto;
  background: radial-gradient(120% 90% at 50% 30%, var(--blush), var(--blush-deep));
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.door {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50.4%;
  background: radial-gradient(140% 120% at 50% 30%, var(--blush), var(--blush-deep));
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.door-l {
  left: 0;
}
.door-r {
  right: 0;
}
.door .panel {
  position: absolute;
  inset: 20px 0;
  border-top: 1px solid rgba(195, 154, 91, 0.55);
  border-bottom: 1px solid rgba(195, 154, 91, 0.55);
}
.door-l .panel {
  left: 20px;
  right: 0;
  border-left: 1px solid rgba(195, 154, 91, 0.55);
}
.door-r .panel {
  right: 20px;
  left: 0;
  border-right: 1px solid rgba(195, 154, 91, 0.55);
}
.seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(195, 154, 91, 0.6) 14%,
    rgba(195, 154, 91, 0.6) 86%,
    transparent
  );
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
}
body.opening .door-l {
  transform: translateX(-101%);
}
body.opening .door-r {
  transform: translateX(101%);
}
body.opening .seam,
body.opening .cover-inner {
  opacity: 0;
}
body.opened #cover {
  display: none;
}

.cover-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.45s ease;
  padding: 20px;
}
.cover-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(195, 154, 91, 0.7);
  box-shadow:
    inset 0 0 0 5px rgba(241, 218, 207, 0.55),
    inset 0 0 0 6px rgba(195, 154, 91, 0.42);
  z-index: 0;
}
.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.cover-frame::before {
  top: -5px;
}
.cover-frame::after {
  bottom: -5px;
}
.tap-open {
  position: relative;
  z-index: 1;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 40px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(
    100deg,
    #8a3b34 0%,
    #c39a5b 30%,
    #f3e2bc 48%,
    #e7c98c 56%,
    #a87c3e 74%,
    #8a3b34 100%
  );
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 7px rgba(138, 59, 52, 0.2));
  animation:
    shine 3.2s linear infinite,
    tapbob 2.1s var(--ease) infinite;
}
.tap-hint {
  position: relative;
  z-index: 1;
  color: var(--gold-deep);
  animation: tapbob 2.1s var(--ease) infinite;
  animation-delay: 0.12s;
}
.tap-hint svg {
  width: 24px;
  height: 24px;
  display: block;
}
@keyframes shine {
  to {
    background-position: 230% 0;
  }
}
@keyframes tapbob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ── music ───────────────────────────────── */
.music {
  position: fixed;
  top: 16px;
  z-index: 80;
  right: max(16px, calc(50vw - var(--col) / 2 + 16px));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(252, 247, 239, 0.86);
  border: 1px solid rgba(195, 154, 91, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--rose);
  transition: transform 0.25s var(--ease);
}
body.open .music {
  display: flex;
  animation: fadein 0.8s 0.5s backwards;
}
.music:hover {
  transform: scale(1.07);
}
.music svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
}
.music .ic-off {
  display: none;
}
.music[aria-pressed="false"] .ic-on {
  display: none;
}
.music[aria-pressed="false"] .ic-off {
  display: block;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── hero ────────────────────────────────── */
.hero {
  position: relative;
}
.hero-art {
  position: relative;
  min-height: 100svh;
  background: url(assets/hero-arch.webp) center top/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 128px;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(252, 247, 239, 0.3),
    rgba(252, 247, 239, 0) 26%,
    rgba(252, 247, 239, 0) 62%,
    rgba(252, 247, 239, 0.62)
  );
  pointer-events: none;
}
.hero-body {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 520px;
}
.ganesh {
  width: clamp(122px, 33%, 182px);
  margin: 0 auto 6px;
  filter: drop-shadow(0 6px 16px rgba(138, 59, 52, 0.14));
}
.invocation {
  margin: 0 0 20px;
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}
.hero-eyebrow {
  margin: 0 0 16px;
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--rose);
}
.hero-names {
  margin: 0;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(56px, 17vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.hero-names span {
  display: block;
  background: linear-gradient(
    96deg,
    var(--rose-deep) 22%,
    var(--gold) 50%,
    var(--rose-deep) 78%
  );
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 6s linear infinite;
}
.hero-names em {
  display: block;
  font-family: var(--disp);
  font-style: italic;
  font-weight: 500;
  font-size: 0.34em;
  color: var(--gold-deep);
  margin: 2px 0;
  letter-spacing: 0.02em;
}
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 24px;
  width: min(240px, 64%);
}
.hero-rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 154, 91, 0.85));
}
.hero-rule i:last-child {
  background: linear-gradient(90deg, rgba(195, 154, 91, 0.85), transparent);
}
.hero-rule b {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  flex: none;
}
.hero-date {
  margin: 0 0 14px;
  font-family: var(--label);
  font-size: clamp(15px, 3.6vw, 19px);
  letter-spacing: 0.16em;
  color: var(--rose-deep);
  text-transform: uppercase;
}
.hero-venue {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(16px, 3.4vw, 20px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.hero-venue span {
  display: inline-block;
  font-style: normal;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 2px;
}

body.open .hero-body > * {
  animation: heroIn 1.1s var(--ease) backwards;
}
body.open .hero-body > *:nth-child(1) {
  animation-delay: 0.45s;
}
body.open .hero-body > *:nth-child(2) {
  animation-delay: 0.57s;
}
body.open .hero-body > *:nth-child(3) {
  animation-delay: 0.69s;
}
body.open .hero-body > *:nth-child(4) {
  animation-delay: 0.81s;
}
body.open .hero-body > *:nth-child(5) {
  animation-delay: 0.93s;
}
body.open .hero-body > *:nth-child(6) {
  animation-delay: 1.05s;
}
body.open .hero-body > *:nth-child(7) {
  animation-delay: 1.17s;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}
.cue-word {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.cue-chev {
  color: var(--rose-deep);
  animation: bob 1.6s ease-in-out infinite;
}
.cue-chev svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(252, 247, 239, 0.95));
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}
.scroll-cue.gone {
  opacity: 0;
  transform: translateY(10px);
}

/* ── shared ──────────────────────────────── */
.sec {
  padding: var(--gap) var(--pad);
  position: relative;
  text-align: center;
  overflow: clip;
  isolation: isolate;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.h2 {
  margin: 0 0 20px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(33px, 7.4vw, 52px);
  line-height: 1.12;
  color: var(--rose-deep);
  letter-spacing: 0.01em;
}
.h2-sm {
  font-size: clamp(29px, 6vw, 42px);
}
.prose {
  margin: 0 auto 16px;
  max-width: 38ch;
  color: var(--ink);
}
.tag {
  margin: 26px 0 0;
  font-family: var(--label);
  font-size: clamp(13px, 2.6vw, 16px);
  letter-spacing: 0.22em;
  color: var(--rose);
}
.tag-sm {
  font-size: 12px;
  letter-spacing: 0.26em;
  margin-top: 14px;
}

/* cinematic reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.986);
  filter: blur(7px);
  transition:
    opacity 1.05s var(--ease),
    transform 1.05s var(--ease),
    filter 1.05s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.sec .reveal.in ~ .reveal.in {
  transition-delay: 0.08s;
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.sec > *:not(.deco):not(.drape):not(.corner-lotus) {
  position: relative;
  z-index: 1;
}

/* ── invitation / family ─────────────────── */
.sec-invite {
  background:
    radial-gradient(130% 80% at 50% 0%, var(--blush) 0%, rgba(241, 218, 207, 0) 42%),
    linear-gradient(180deg, var(--ivory), var(--cream));
  padding-top: 0;
}
.drape {
  position: absolute;
  top: clamp(8px, 2.4vw, 22px);
  width: min(44%, 232px);
  opacity: 0.96;
  z-index: 0;
}
.drape-l {
  left: -8%;
}
.drape-r {
  right: -8%;
  transform: scaleX(-1);
}
.invite-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(96px, 26vw, 150px);
}
.seal-wrap {
  position: relative;
  width: min(196px, 52%);
  margin: 0 auto 24px;
  aspect-ratio: 1;
}
.seal-wrap::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ivory) 56%, rgba(252, 247, 239, 0) 74%);
  z-index: 0;
}
.seal-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(195, 154, 91, 0.6);
  box-shadow:
    0 0 0 5px var(--ivory),
    0 0 0 6px rgba(195, 154, 91, 0.28);
  z-index: 1;
}
.seal {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(138, 59, 52, 0.16);
}
.sec-invite .eyebrow {
  color: var(--rose);
}
.corner-lotus {
  position: absolute;
  bottom: -10px;
  width: clamp(96px, 26vw, 168px);
  opacity: 0.9;
  z-index: 0;
}
.cl-l {
  left: -30px;
}
.cl-r {
  right: -30px;
  transform: scaleX(-1);
}

.weds {
  margin: 38px auto 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.side {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.side-name {
  margin: 0 0 8px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(24px, 5.4vw, 32px);
  line-height: 1.15;
  color: var(--rose-deep);
}
.side-role {
  margin: 0 0 6px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.side-parents {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 28ch;
}
.weds-amp {
  font-family: var(--label);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  text-indent: 0.34em;
  margin: 16px 0;
}
.weds-amp::before,
.weds-amp::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(195, 154, 91, 0.6);
}
@media (min-width: 640px) {
  .weds {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
  }
  .side {
    flex: 1;
    max-width: 300px;
  }
  .weds-amp {
    margin-top: 10px;
    flex: none;
  }
}

/* ── countdown ───────────────────────────── */
.sec-count {
  background: var(--cream);
}
.deco-gazebo {
  width: min(300px, 72%);
  left: 50%;
  transform: translateX(-50%);
  top: -6px;
  opacity: 0.14;
}
.clock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 30px auto 0;
}
.unit {
  padding: 20px 4px 15px;
  background: var(--ivory);
  border: 1px solid rgba(195, 154, 91, 0.3);
  box-shadow: 0 6px 18px rgba(138, 59, 52, 0.05);
}
.unit b {
  display: block;
  font-family: var(--label);
  font-weight: 400;
  font-size: clamp(26px, 6.4vw, 38px);
  color: var(--rose-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.unit i {
  display: block;
  margin-top: 9px;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── events ──────────────────────────────── */
.sec-events {
  background: var(--ivory);
}
.cards {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(195, 154, 91, 0.55);
  padding: 8px;
  box-shadow: 0 12px 34px rgba(138, 59, 52, 0.09);
}
.card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(195, 154, 91, 0.42);
  pointer-events: none;
  z-index: 3;
}
.card-art {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card-art img {
  transform: scale(1.05);
}
.card-in {
  padding: 22px 22px 26px;
}
.card-title {
  margin: 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 40px);
  color: var(--rose-deep);
  letter-spacing: 0.01em;
}
.card-rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 10px auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-when {
  margin: 0 0 3px;
  font-family: var(--label);
  font-size: clamp(13px, 2.9vw, 15px);
  letter-spacing: 0.11em;
  color: var(--rose);
  text-transform: uppercase;
}
.card-time {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--ink-soft);
}
.card-venue {
  margin: 0 0 16px;
  line-height: 1.5;
}
.card-venue span {
  font-size: 0.85em;
  color: var(--ink-soft);
}
/* Dress code and note, two labelled cells under an event's venue. New with
   the redesign; there was one italic line before it.
   ⚠️ The columns are generated per cell, NOT declared as `1fr 1fr` as they
   arrived. Most couples fill in one of the two, and a declared pair of tracks
   stays open whether or not anything is in it — the lone cell would sit at
   half width beside a hole. `grid-auto-flow: column` with
   `grid-auto-columns: 1fr` makes one track per cell that exists. */
.card-meta {
  margin: 0 0 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}
.card-meta > div {
  background: var(--ivory);
  border: 1px solid rgba(195, 154, 91, 0.3);
  padding: 8px 12px;
  min-width: 0;
}
.card-meta dt {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.card-meta dd {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(195, 154, 91, 0.65);
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  text-decoration: none;
  background: var(--ivory);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.btn:hover {
  background: var(--rose-deep);
  color: var(--ivory);
  border-color: var(--rose-deep);
}
.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

/* ── gallery ─────────────────────────────── */
.sec-gallery {
  background: var(--cream);
}
.frame-wrap {
  position: relative;
  width: min(430px, 94%);
  margin: 30px auto 0;
  aspect-ratio: 1;
}
.photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 12px 26px rgba(138, 59, 52, 0.14));
}
.slides {
  position: absolute;
  inset: 12% 10% 11% 10%;
  overflow: hidden;
  z-index: 1;
  background: var(--ivory);
  border-radius: 8px;
}
.slide-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
}
.slide {
  margin: 0;
  flex: 0 0 100%;
  position: relative;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(195, 154, 91, 0.45);
  padding: 4px 12px;
  background: rgba(252, 247, 239, 0.9);
  white-space: nowrap;
  z-index: 2;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: rgba(252, 247, 239, 0.92);
  border: 1px solid rgba(195, 154, 91, 0.45);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.nav svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}
.prev {
  left: calc(10% - 17px);
}
.next {
  right: calc(10% - 17px);
}
.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--gold);
  transition: background 0.3s ease;
}
.dot[aria-current="true"] {
  background: var(--gold);
}

/* ── venue ───────────────────────────────── */
.sec-venue {
  background: var(--ivory);
}
.venue-name {
  margin: 0 0 6px;
  font-family: var(--label);
  font-size: clamp(17px, 3.6vw, 21px);
  color: var(--rose-deep);
}
.venue-addr {
  margin: 0 0 24px;
  color: var(--ink-soft);
}
.route {
  margin: 30px auto 2px;
  width: min(330px, 86%);
}
.route-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.mapcard {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid rgba(195, 154, 91, 0.5);
  max-width: 520px;
  margin: 6px auto 0;
  text-align: left;
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--ease);
}
.mapcard:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.mapcard-pin,
.mapcard-go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}
.mapcard-pin svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}
.mapcard-go svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}
.mapcard-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.mapcard-text b {
  font-family: var(--label);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 3px;
}

/* ── rsvp ────────────────────────────────── */
.sec-rsvp {
  background: var(--cream);
}
.rsvp {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 520px;
  margin-inline: auto;
}
.chip {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 20px;
  background: var(--ivory);
  border: 1px solid rgba(195, 154, 91, 0.32);
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}
.chip svg {
  width: 23px;
  height: 23px;
  flex: none;
  stroke: var(--sage);
  fill: var(--sage);
}
.chip span {
  display: flex;
  flex-direction: column;
  font-size: 0.85em;
  color: var(--ink-soft);
}
.chip b {
  font-family: var(--label);
  font-weight: 400;
  font-size: 1.15em;
  color: var(--rose-deep);
}

/* ── footer ──────────────────────────────── */
.foot {
  background: var(--ivory);
  padding: calc(var(--gap) + 30px) var(--pad) 34px;
  text-align: center;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.foot-bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1120px, 164%);
  max-width: none;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 46%);
  mask-image: linear-gradient(180deg, transparent 0, #000 46%);
}
.foot > *:not(.foot-bg) {
  position: relative;
  z-index: 1;
}
.foot-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(216px, 58%);
  margin: 0 auto 24px;
}
.foot-orn i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 154, 91, 0.85));
}
.foot-orn i:last-child {
  background: linear-gradient(90deg, rgba(195, 154, 91, 0.85), transparent);
}
.foot-orn b {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  flex: none;
}
.foot-line {
  margin: 0 0 6px;
  font-style: italic;
  color: var(--ink-soft);
}
.foot-names {
  margin: 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(36px, 8vw, 52px);
  color: var(--rose-deep);
  letter-spacing: 0.01em;
}
.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85em;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.ig:hover {
  color: var(--rose);
}
.ig svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: currentColor;
}
.made {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.made:hover {
  opacity: 1;
}
.made span {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.made img {
  width: 100px;
}

/* ── scale up ────────────────────────────── */
@media (min-width: 600px) {
  :root {
    --col: 600px;
    --pad: 46px;
    --gap: 92px;
  }
  body {
    font-size: 18px;
  }
  .hero-art {
    padding: 88px 56px 134px;
  }
  .cards {
    gap: 24px;
  }
}
@media (min-width: 960px) {
  :root {
    --col: 760px;
    --pad: 66px;
    --gap: 108px;
  }
  body {
    font-size: 19px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .music {
    width: 46px;
    height: 46px;
    top: 22px;
  }
  .drape {
    width: min(38%, 240px);
  }
}
@media (min-width: 1400px) {
  :root {
    --col: 840px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* ── hosted by ── */
.hosted {
  margin: 32px auto 0;
  text-align: center;
  max-width: 440px;
}
.hosted-rule {
  display: block;
  width: 46px;
  height: 1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hosted-label {
  margin: 0 0 6px;
  font-family: var(--label);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hosted-names {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

/* ══ config-driven states ══════════════════════════════════════════════════
   Everything below this line belongs to the repository's rendering pipeline,
   not to the design. It is what has to be re-applied whenever a redesign
   replaces this sheet. Four rules. */

/* Slots the config left empty are hidden with [hidden]; several of them are
   flex or grid, so the attribute needs to win over the class. */
[hidden] {
  display: none !important;
}

/* Blessings with no artwork of their own fall back to their glyph, set at the
   same weight as the Ganesha crop it replaces.
   ⚠️ This was "Italiana" until 11 September 2026. The redesign stopped
   loading that family, so the glyph — the one piece of a blessing a couple
   sees when the design ships no artwork for it — would have rendered in a
   system serif on every invitation that used one. */
.glyph {
  margin: 0 0 6px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(46px, 12vw, 68px);
  line-height: 1;
  color: var(--gold-deep);
}

/* A single event keeps the card at reading width instead of stretching it
   across the two-column grid. Shubharambh sells two events; a couple who
   enters one should not get a half-empty row. */
.cards.one {
  max-width: 460px;
  margin-inline: auto;
}
@media (min-width: 960px) {
  .cards.one {
    grid-template-columns: 1fr;
  }
}

/* The reply chip's second line is an <i> because the blueprint has two
   text slots and only one of them is ever a name. */
.chip i {
  font-style: normal;
}
