/* ⚠️ SELF-HOSTED FONTS. The Google Fonts <link> came out of index.html on
   11 September 2026 — 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. 97 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. */
@font-face {
  font-family: "Gilda Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gilda-display-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Marcellus SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/marcellus-sc-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cardo-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cardo-latin-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Petit Formal Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/petit-formal-script-latin-400-normal.woff2) format("woff2");
}

/* ═══════════════════════════════════════════════════════════
   Raj Mahal · vowstory Utsav
   Mobile first. The first entirely pale template in the range —
   no dark section anywhere. Sections separate by wash, hairline
   and ornament rather than by contrast.
   ⚠️ REPAINTED on 11 September 2026: ivory-and-brass became
   sage-and-olive. Every :root token below moved except --rose, and
   26 hardcoded copies of the old values were translated with them.
   Both hero artworks were re-exported darker in the same drop and
   now carry a veil each; they used to be cream inside (241.9 and
   236.5) and the copy was held inside the arch with no veil at all.
   Signature: the palace horizon, a three-layer parallax diorama.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ⚠️ The whole palette moved on 11 September 2026. The old ivory-and-brass
     values are in the right-hand column so a stale literal can still be
     recognised for what it is:
       --paper #fbf2e7  --blush #f5e4d8  --blush-2 #efd6c6  --gold  #b8893f
       --gold-lt #c7a45e  --gold-pale #ebd3a6  --maroon #4e5940
       --ink #4a3427  --ink-2 #7a5f4a  --ink-3 #a38c74
     --rose is the only one that did not move. */
  --paper: #e9ebd7;
  --blush: #d3dab9;
  --blush-2: #c3cca3;
  --sage: #8a9a6b;
  --sage-deep: #59634a;
  --gold: #a98634;
  --gold-lt: #c7a45e;
  --gold-pale: #decf9e;
  --rose: #c0766a;
  --maroon: #4e5940;
  --ink: #31382a;
  /* ⚠️ #4d5539, not the #5c6349 the redesign shipped. This is the
     body-weight SECONDARY text — .prose, .side-parents, .foot-line,
     .ev-venue, .hosted-names — and the redesign darkened both wash tokens a
     long way (--blush 0.80 → 0.67 relative luminance, --blush-2 0.71 → 0.57)
     while leaving the ink scale where it was. Lines that passed before
     stopped passing: .foot-line measured 4.81:1 on the old footer and 3.75:1
     on the new one, against the 4.5:1 small text needs. Moved down inside the
     same olive hue until it clears 4.5 on the darkest wash it ever sits on.
     ⚠️ --ink-3 below is NOT corrected. It never passed — 2.89:1 on the old
     paper, 2.64:1 on the new — so moving it would be a palette decision
     rather than a merge correction. See this design's README. */
  --ink-2: #4d5539;
  --ink-3: #899070;
  --line: rgba(169, 134, 52, 0.32);

  --col: 480px;
  --pad: 24px;
  --gap: 78px;
  --es: cubic-bezier(0.22, 0.61, 0.36, 1);
  --eo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--blush-2);
  color: var(--ink);
  font-family: "Cardo", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
sup {
  font-size: 0.56em;
  vertical-align: 0.5em;
}
body:not(.open) {
  overflow: hidden;
  height: 100%;
}
button {
  font: inherit;
  color: inherit;
}

#page {
  position: relative;
  z-index: 2;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(49, 56, 42, 0.22);
  opacity: 0;
  transition: opacity 1s var(--es);
}
body.open #page {
  opacity: 1;
}

@media (min-width: 600px) {
  :root {
    --col: 640px;
    --pad: 42px;
    --gap: 96px;
  }
  body {
    font-size: 18px;
  }
}
@media (min-width: 960px) {
  :root {
    --col: 840px;
    --pad: 64px;
    --gap: 116px;
  }
  body {
    font-size: 19px;
  }
}
@media (min-width: 1400px) {
  :root {
    --col: 920px;
  }
}

/* ═══ COVER ═══ */
#cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--blush-2);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.7s ease,
    transform 1.1s var(--eo);
}
.cv-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50.5%;
  overflow: hidden;
  transition: transform 1.25s var(--eo);
  will-change: transform;
}
.cv-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100vw;
  background:
    radial-gradient(
      ellipse 60% 42% at 50% 42%,
      rgba(255, 252, 246, 0.95) 0%,
      rgba(211, 218, 185, 0) 72%
    ),
    linear-gradient(168deg, #eef0de 0%, #d3dab9 52%, #b6c097 100%);
}
.cv-l {
  left: 0;
}
.cv-r {
  right: 0;
}
.cv-l::before {
  left: 0;
}
.cv-r::before {
  right: 0;
}
.cv-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold) 22%,
    var(--gold) 78%,
    transparent
  );
  opacity: 0.55;
}
.cv-l .cv-edge {
  right: 0;
}
.cv-r .cv-edge {
  left: 0;
}

.cv-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.cv-dust i {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-lt);
  filter: blur(0.4px);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-92vh) scale(1.15);
    opacity: 0;
  }
}

.cv-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.55s ease,
    transform 1s var(--eo);
}

/* the jaali screen fills in behind a self-drawing arch */
.cv-jaali {
  width: min(240px, 62%);
  height: auto;
}
.cv-jaali path,
.cv-jaali circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}
.jaali-fill {
  opacity: 0;
  animation: jaaliIn 2.4s var(--eo) 0.55s forwards;
  transform-origin: 50% 100%;
  transform: scaleY(0.2);
}
@keyframes jaaliIn {
  to {
    opacity: 0.55;
    transform: scaleY(1);
  }
}
.cv-jaali .cv-draw {
  stroke-width: 1.4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2s var(--eo) 0.2s forwards;
}
.cv-jaali .cv-draw2 {
  stroke-width: 0.7;
  opacity: 0.6;
  animation-delay: 0.6s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.cv-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  animation: fadeUp 0.9s var(--eo) 1.7s forwards;
}
.cv-corner::before,
.cv-corner::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.cv-corner::before {
  width: 100%;
  height: 1px;
}
.cv-corner::after {
  width: 1px;
  height: 100%;
}
.c-tl {
  top: 10%;
  left: 12%;
}
.c-tl::before {
  top: 0;
  left: 0;
}
.c-tl::after {
  top: 0;
  left: 0;
}
.c-tr {
  top: 10%;
  right: 12%;
}
.c-tr::before {
  top: 0;
  right: 0;
}
.c-tr::after {
  top: 0;
  right: 0;
}
.c-bl {
  bottom: 10%;
  left: 12%;
}
.c-bl::before {
  bottom: 0;
  left: 0;
}
.c-bl::after {
  bottom: 0;
  left: 0;
}
.c-br {
  bottom: 10%;
  right: 12%;
}
.c-br::before {
  bottom: 0;
  right: 0;
}
.c-br::after {
  bottom: 0;
  right: 0;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cv-tap {
  position: absolute;
  bottom: min(13vh, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: tapIn 1.1s var(--eo) 2.2s forwards;
}
@keyframes tapIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cv-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(169, 134, 52, 0.5);
  position: relative;
  animation: breathe 3s ease-in-out infinite;
}
.cv-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(169, 134, 52, 0.42);
  animation: halo 3s ease-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}
@keyframes halo {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
.cv-word {
  font-family: "Marcellus SC", serif;
  font-size: 12px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  text-indent: 0.48em;
  color: var(--maroon);
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  max-width: var(--col);
  margin: 0 auto;
}
#flash.run {
  opacity: 1;
}
#flash .ray {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%) scaleY(0);
  background: linear-gradient(180deg, transparent, #fff8ec, transparent);
  box-shadow: 0 0 30px 8px rgba(255, 248, 236, 0.8);
}
#flash.run .ray {
  animation: rayUp 0.6s var(--eo) forwards;
}
@keyframes rayUp {
  0% {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scaleY(1);
    opacity: 0;
  }
}
#flash .bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180vmax;
  height: 180vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(
    circle,
    rgba(255, 248, 236, 0.85) 0%,
    rgba(222, 207, 158, 0.35) 30%,
    rgba(211, 218, 185, 0) 60%
  );
}
#flash.run .bloom {
  animation: bloom 1.4s var(--eo) forwards;
}
@keyframes bloom {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

body.opening #cover {
  transform: scale(1.06);
  opacity: 0;
}
body.opening .cv-l {
  transform: translateX(-102%) rotate(-1.4deg);
}
body.opening .cv-r {
  transform: translateX(102%) rotate(1.4deg);
}
body.opening .cv-stage {
  opacity: 0;
  transform: translateY(-22px) scale(0.94);
}
body.opened #cover {
  display: none;
}

/* ═══ ambient ═══ */
.amb {
  position: fixed;
  inset: 0;
  /* Above #page (2) and the margin borders (1) since the redesign, so the
     drifting motes and petals cross the printed borders rather than
     disappearing behind them. */
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.open .amb {
  opacity: 1;
}
.amb i {
  position: absolute;
  display: block;
  will-change: transform;
}
.amb .mote {
  border-radius: 50%;
  background: radial-gradient(circle, #fff6e4 0%, #c7a45e 42%, rgba(169, 134, 52, 0) 72%);
  animation: rise2 linear infinite;
}
@keyframes rise2 {
  0% {
    transform: translate3d(0, 12vh, 0) scale(0.6);
    opacity: 0;
  }
  14% {
    opacity: var(--o);
  }
  86% {
    opacity: calc(var(--o) * 0.55);
  }
  100% {
    transform: translate3d(var(--dx), -108vh, 0) scale(1.1);
    opacity: 0;
  }
}
.amb .petal {
  border-radius: 62% 38% 60% 40%/50% 58% 42% 50%;
  background: linear-gradient(140deg, #f6d9ce, #c0766a);
  animation: fall linear infinite;
}
@keyframes fall {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: var(--o);
  }
  88% {
    opacity: calc(var(--o) * 0.5);
  }
  100% {
    transform: translate3d(var(--dx), 112vh, 0) rotate(var(--rot));
    opacity: 0;
  }
}

/* ═══ music ═══ */
.music {
  position: fixed;
  top: 18px;
  z-index: 90;
  right: max(16px, calc(50vw - var(--col) / 2 + 16px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(233, 235, 215, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--maroon);
  transition: transform 0.3s var(--es);
}
body.open .music {
  display: flex;
  animation: fadein 1s 0.9s backwards;
}
.music:hover {
  transform: scale(1.08);
}
.music svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  position: relative;
  z-index: 2;
}
.music .ic-off {
  display: none;
}
.music[aria-pressed="false"] .ic-on {
  display: none;
}
.music[aria-pressed="false"] .ic-off {
  display: block;
}
.mu-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
}
.music[aria-pressed="true"] .mu-ring {
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.hero-art {
  position: absolute;
  inset: -14% 0 -14%;
  /* 42% rather than 48%, and the zoom starts at 112% rather than 116%: the
     11 Sep 2026 re-export moved the arch's crown up in the frame. */
  background: url(assets/hero.webp) center 42% / cover no-repeat;
  will-change: transform;
  animation: kb 18s var(--eo) forwards;
}
@keyframes kb {
  from {
    background-size: 112% auto;
  }
  to {
    background-size: 104% auto;
  }
}
/* ⚠️ NEW with the re-export. The old artwork was cream inside the arch and
   needed nothing behind the copy; this one is painted darker, so a pale
   radial sits between it and the names. It falls to zero at 82% so the
   painted border of the arch still reads at the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 84% 58% at 50% 52%,
    rgba(233, 235, 215, 0.82) 0%,
    rgba(233, 235, 215, 0.58) 52%,
    rgba(233, 235, 215, 0.22) 76%,
    rgba(233, 235, 215, 0) 90%
  );
}
.hero-in {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 30px 16vh;
}
/* held inside the arch: at 390 the interior is 74% of the column, 56% above 600 */
.hero-in > * {
  max-width: min(72%, 32rem);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 600px) {
  .hero-in {
    padding: 13vh 56px 15vh;
  }
  .hero-in > * {
    max-width: min(54%, 32rem);
  }
}

.deity {
  width: clamp(74px, 18vw, 108px);
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 18px rgba(49, 56, 42, 0.2));
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 6px 16px rgba(49, 56, 42, 0.18));
  }
  50% {
    filter: drop-shadow(0 8px 28px rgba(169, 134, 52, 0.4));
  }
}
.invocation {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 0.09em;
  color: var(--gold);
}
.eyebrow {
  margin: 0 0 12px;
  font-family: "Marcellus SC", serif;
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-names {
  margin: 0;
  font-family: "Gilda Display", serif;
  font-weight: 400;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--maroon);
}
.hero-names .ln {
  display: block;
}
.hero-names .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: chIn 0.9s var(--eo) forwards;
}
@keyframes chIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-names em {
  display: block;
  font-family: "Petit Formal Script", cursive;
  font-style: normal;
  font-size: 0.62em;
  color: var(--gold);
  margin: 2px 0;
  line-height: 1.2;
  opacity: 0;
  animation: chIn 1s var(--eo) 1.1s forwards;
}
.hair {
  display: block;
  width: min(200px, 54%);
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-date {
  margin: 0 0 10px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(12px, 3vw, 15px);
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
}
/* Both lines stepped one token darker with the re-export: they sit on the
   veiled photograph, not on flat paper, and --ink-2/--ink-3 were measured
   short of 4.5:1 there. */
.hero-venue {
  margin: 0;
  font-size: clamp(15px, 3.2vw, 17px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.hero-venue span {
  font-style: normal;
  font-size: 0.84em;
  letter-spacing: 0.07em;
  /* ⚠️ --ink, not --ink-2. The sub-line is 13px on the veiled photograph and
     --ink-2 measured 2.2:1 there. The hierarchy is carried by the size, the
     letter-spacing and the upright face instead of by the colour. */
  color: var(--ink);
}

.hang {
  position: absolute;
  top: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 0;
  opacity: 0;
}
body.open .hang {
  animation:
    hangIn 1.1s var(--eo) forwards,
    sway 7s ease-in-out 1.1s infinite;
}
body.open .hang-b {
  animation:
    hangIn 1.1s var(--eo) 0.18s forwards,
    sway 8.6s ease-in-out 1.28s infinite;
}
@keyframes hangIn {
  from {
    opacity: 0;
    transform: translateY(-56px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}
.hang img {
  width: 100%;
}
.hang-a {
  left: 6%;
  width: clamp(22px, 6vw, 40px);
}
.hang-b {
  right: 7%;
  width: clamp(20px, 5.4vw, 36px);
}
@media (min-width: 960px) {
  .hang-a {
    left: 13%;
  }
  .hang-b {
    right: 14%;
  }
}

.cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.cue span:first-child {
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}
.cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: top;
  }
  56% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
.cue.gone {
  opacity: 0;
  transform: translateY(14px);
}

/* ═══ sections ═══ */
.sec {
  position: relative;
  padding: var(--gap) var(--pad);
  overflow: hidden;
  text-align: center;
  background: var(--paper);
}
.sec-blush {
  background: var(--blush);
}
.sec-blush::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.h2 {
  margin: 0 0 20px;
  font-family: "Gilda Display", serif;
  font-weight: 400;
  font-size: clamp(27px, 6.2vw, 40px);
  line-height: 1.24;
  color: var(--maroon);
  letter-spacing: 0.015em;
}
.prose {
  margin: 0 auto 16px;
  max-width: 36ch;
  color: var(--ink-2);
}
.tag {
  margin: 26px 0 0;
  font-family: "Marcellus SC", serif;
  font-size: clamp(12px, 2.4vw, 14px);
  letter-spacing: 0.24em;
  color: var(--gold);
}
.tag-sm {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  margin-top: 14px;
}
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.986);
  filter: blur(7px);
  transition:
    opacity 1.1s var(--eo),
    transform 1.1s var(--eo),
    filter 1.1s var(--eo);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
/* rendered height always stays inside the section padding, so it cannot reach text */
.deco-lantern {
  width: clamp(16px, 3.4vw, 22px);
  right: 16px;
  top: 0;
  opacity: 0.6;
  animation: sway 8s ease-in-out infinite;
  transform-origin: 50% 0;
}

/* ═══ THE PALACE HORIZON — the signature ═══
   Three depth layers over a sky wash, each moved at its own rate by the
   scroll handler. Nothing here is interactive and no text sits on it. */
.horizon {
  position: relative;
  height: clamp(150px, 34vw, 260px);
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
.hz-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #f7e6d8 58%, #f0d8c6 100%);
}
.horizon img {
  position: absolute;
  bottom: 22%;
  will-change: transform;
}
.hz-palace {
  left: 50%;
  width: clamp(180px, 44vw, 330px);
  transform: translateX(-50%);
  opacity: 0.55;
}
.hz-tree {
  width: clamp(70px, 17vw, 130px);
  opacity: 0.4;
  bottom: 24%;
}
.hz-tree-l {
  left: 2%;
}
.hz-tree-r {
  right: 2%;
  transform: scaleX(-1);
}
.hz-eleph {
  width: clamp(64px, 16vw, 124px);
  bottom: 16%;
  opacity: 0.85;
}
.hz-eleph-l {
  left: 5%;
  transform: scaleX(-1);
}
.hz-eleph-r {
  right: 5%;
}
.hz-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(240, 216, 198, 0), rgba(232, 201, 180, 0.9));
  border-top: 1px solid var(--line);
}
.hz-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(169, 134, 52, 0.22) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(169, 134, 52, 0.22) 0 1px, transparent 1px 9px);
}

/* ═══ FAMILIES — page two, on hero_2 ═══
   ⚠️ This was THREE STACKED SLICES until 11 September 2026 — a crown
   (fam-top.jpg), a 24px strip of the artwork's flat interior tiled down the
   middle (fam-mid.png, row spread 1.45) and a base (fam-bot.jpg) — because
   the painting's flat area was too small to hold the copy at any single crop.
   The re-exported artwork removed that constraint: it is one full-bleed
   background again, and the section is sized by its own content.
   ⚠️ The veil is what makes the copy legible, and it is NOT the one the
   redesign shipped. That one peaked at 0.82 and fell to 0.16 by 78%, which
   measured 3.9:1 on the parents' line — below the 4.5:1 small text needs.
   Peak opacity is the limit, not extent: widening it barely moves the number.
   These stops were set by measurement and clear 4.5 at every width, while
   still reaching zero by 92% so the painted border reads. */
.sec-fam {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url(assets/hero2.webp) center / cover no-repeat;
  padding: clamp(74px, 17vw, 140px) var(--pad);
}
.fam-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 104% 94% at 50% 50%,
    rgba(233, 235, 215, 0.94) 0%,
    rgba(233, 235, 215, 0.89) 44%,
    rgba(233, 235, 215, 0.68) 72%,
    rgba(233, 235, 215, 0.2) 88%,
    rgba(233, 235, 215, 0) 100%
  );
}
.fam-in {
  position: relative;
  z-index: 1;
  max-width: min(90%, 30rem);
  margin: 0 auto;
  text-align: center;
}

.seal {
  width: min(112px, 29%);
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 0 6px var(--paper),
    0 0 0 7px rgba(169, 134, 52, 0.22);
}
.weds {
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Gilda Display", serif;
  font-size: clamp(18px, 4.2vw, 24px);
  line-height: 1.3;
  color: var(--maroon);
}
.weds em {
  font-family: "Petit Formal Script", cursive;
  font-style: normal;
  font-size: 1.05em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.weds em::before,
.weds em::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--line);
}
.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.side-name {
  margin: 0 0 8px;
  line-height: 1.2;
}
.side-role {
  margin: 0 0 6px;
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.side-parents {
  margin: 0;
  font-family: "Cardo", serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 26ch;
}

/* ═══ countdown ═══ */
.sec-count {
  padding-top: calc(var(--gap) * 0.45);
}
.chand {
  display: block;
  width: clamp(96px, 24vw, 168px);
  margin: 0 auto 22px;
  opacity: 0.9;
}
.clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 400px;
  margin: 26px auto 0;
}
.unit {
  padding: 20px 4px 15px;
  background: rgba(233, 235, 215, 0.7);
  border: 1px solid var(--line);
}
.unit b {
  display: block;
  font-family: "Gilda Display", serif;
  font-size: clamp(26px, 7vw, 38px);
  color: var(--maroon);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.unit i {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: "Marcellus SC", serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══ EVENTS — jharokha cards ═══ */
.sec-events {
  padding-bottom: calc(var(--gap) + 10px);
}
.rail {
  margin-top: 34px;
}
.ev {
  position: relative;
  margin-bottom: 46px;
  text-align: center;
}
.ev:last-child {
  margin-bottom: 0;
}
/* the arch is drawn by the card itself, so the photo sits inside a jharokha */
.ev-art {
  margin: 0 auto 18px;
  overflow: hidden;
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 4px 4px/38% 38% 4px 4px;
  padding: 7px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(49, 56, 42, 0.1);
}
.ev-art img {
  width: 100%;
  border-radius: 999px 999px 2px 2px/38% 38% 2px 2px;
  transition: transform 1.4s var(--eo);
}
.ev:hover .ev-art img {
  transform: scale(1.04);
}
.ev-name {
  margin: 0 0 8px;
  font-family: "Gilda Display", serif;
  font-size: clamp(25px, 5.8vw, 33px);
  color: var(--maroon);
  line-height: 1;
}
.ev-when {
  margin: 0 0 2px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(11.5px, 2.7vw, 14px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}
.ev-time {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--ink-2);
}
.ev-venue {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ev-venue span {
  font-size: 0.86em;
  color: var(--ink-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon);
  text-decoration: none;
  background: transparent;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
.btn:hover {
  background: var(--maroon);
  color: var(--paper);
  border-color: var(--maroon);
}

@media (min-width: 760px) {
  .ev {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    text-align: left;
    margin-bottom: 56px;
  }
  .ev-art {
    margin: 0;
    max-width: none;
  }
  .ev-flip .ev-art {
    order: 2;
  }
  .ev-flip .ev-body {
    order: 1;
    text-align: right;
  }
}

/* ═══ gallery ═══ */
.sec-gal {
  padding-left: 0;
  padding-right: 0;
}
.sec-gal .inner {
  padding: 0 var(--pad);
}
.car {
  margin-top: 28px;
  overflow: hidden;
}
.car-track {
  display: flex;
  gap: 14px;
  padding: 0 var(--pad);
  will-change: transform;
}
.ph {
  margin: 0;
  flex: 0 0 clamp(210px, 62vw, 260px);
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px;
}
.ph img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
/* A painted frame around the couple's own photographs, from the 11 Sep 2026
   redesign. It replaces the ruled box entirely — the border and padding are
   dropped, the frame art carries them instead, and the photograph is cropped
   to fill rather than letterboxed.
   ⚠️ Only the square slides. .ph-wide is the dashed "your photo here" slot
   the shipped demo carries; a couple's own config never has one, and framing
   an empty slot would look like a broken image. */
.ph:not(.ph-wide) {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  overflow: visible;
}
.ph:not(.ph-wide) img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.ph:not(.ph-wide)::after {
  content: "";
  position: absolute;
  inset: -6% -6.5%;
  background: url(assets/couple-frame.webp) center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 8px 20px rgba(49, 56, 42, 0.16));
}
/* the caption has to stay above the frame art */
.ph:not(.ph-wide) .ph-tag {
  z-index: 4;
}
.ph-tag {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Marcellus SC", serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--maroon);
  padding: 4px 11px;
  white-space: nowrap;
}
.ph-wide {
  flex: 0 0 clamp(230px, 68vw, 300px);
  background: rgba(233, 235, 215, 0.55);
  border-style: dashed;
}
.ph-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1;
  text-align: center;
  padding: 16px;
}
.ph-empty svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  opacity: 0.75;
}
.ph-empty b {
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}
.dot[aria-current="true"] {
  background: var(--gold);
}

/* ═══ venue ═══ */
.mandap {
  width: min(330px, 86%);
  margin: 6px auto 18px;
  opacity: 0.92;
}
.v-name {
  margin: 0 0 6px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(14px, 3.2vw, 18px);
  color: var(--maroon);
  letter-spacing: 0.04em;
}
.v-addr {
  margin: 0 0 24px;
  color: var(--ink-2);
}
.mapcard {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 20px;
  background: var(--blush);
  border: 1px solid var(--line);
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  transition:
    border-color 0.3s,
    transform 0.3s var(--es);
}
.mapcard:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.mc-pin {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.mc-pin svg {
  width: 21px;
  height: 21px;
  stroke: var(--gold);
}
.mc-txt {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.mc-txt b {
  display: block;
  font-family: "Gilda Display", serif;
  font-size: 19px;
  color: var(--maroon);
  margin-bottom: 2px;
}
.mc-go {
  flex: none;
}
.mc-go svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

/* ═══ RSVP ═══ */
.rv-lead {
  margin: 0 auto 26px;
  max-width: 34ch;
  color: var(--ink-2);
}
.rv-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto 26px;
}
.rv-ch {
  border: 1px solid var(--line);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--paper);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.2s var(--es);
}
.rv-ch:active {
  transform: scale(0.98);
}
.rv-ch.sy {
  border-color: var(--gold);
  background: rgba(199, 164, 94, 0.16);
}
.rv-ch.sn {
  border-color: var(--rose);
  background: rgba(192, 118, 106, 0.1);
}
.rv-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blush);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.rv-ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.rv-ch.sy .rv-ico {
  background: rgba(199, 164, 94, 0.28);
  border-color: var(--gold);
}
.rv-ch.sy .rv-ico svg {
  stroke: var(--gold);
}
.rv-ch.sn .rv-ico {
  background: rgba(192, 118, 106, 0.18);
  border-color: var(--rose);
}
.rv-ch.sn .rv-ico svg {
  stroke: var(--rose);
}
.rv-lbl {
  font-family: "Gilda Display", serif;
  font-size: 20px;
  color: var(--maroon);
  transition: color 0.3s;
}
.rv-ch.sn .rv-lbl {
  color: var(--rose);
}

.rv-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.rv-form.act {
  opacity: 1;
  pointer-events: all;
}
.f-lbl {
  font-family: "Marcellus SC", serif;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 8px;
  text-align: left;
}
.f-opt {
  opacity: 0.6;
  letter-spacing: 0.1em;
}
.f-in,
.f-ta {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: "Cardo", serif;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.f-in::placeholder,
.f-ta::placeholder {
  color: var(--ink-3);
}
.f-in:focus,
.f-ta:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 134, 52, 0.14);
}
.f-ta {
  resize: none;
  min-height: 88px;
}
.ff.hide {
  display: none;
}
.btn-sub {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--maroon), #5e2130);
  color: var(--gold-pale);
  border: none;
  border-radius: 50px;
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(78, 89, 64, 0.24);
  transition:
    transform 0.2s var(--es),
    opacity 0.2s;
  margin-top: 4px;
}
.btn-sub:active {
  transform: scale(0.97);
}
.btn-sub:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.rv-contact {
  max-width: 400px;
  margin: 28px auto 0;
  text-align: center;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.rc-lbl {
  font-family: "Marcellus SC", serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.rc-name {
  font-family: "Gilda Display", serif;
  font-size: 20px;
  color: var(--maroon);
  margin: 0 0 6px;
}
.rc-ph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Marcellus SC", serif;
  font-size: 13.5px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.rc-ph svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.rv-ok {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 20px;
  max-width: 400px;
  margin: 0 auto;
}
.rv-ok.show {
  display: flex;
}

/* The refused-reply line under the form (pack 0011 T8) — the form's body
   size, in a deep wine so it reads as a warning without a new colour token. */
.rv-err {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #4e5940;
}
.ok-r {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ok-r svg {
  width: 28px;
  height: 28px;
  stroke: var(--paper);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.ok-t {
  font-family: "Gilda Display", serif;
  font-size: 29px;
  color: var(--maroon);
  margin: 0;
}
.ok-x {
  font-family: "Cardo", serif;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0;
}

/* ═══ footer ═══ */
.foot {
  background: var(--blush-2);
  padding: var(--gap) var(--pad) 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* foot-lotus.webp since the redesign; it was drape.webp, a much wider
   ornament, hence the smaller box. */
.foot-orn {
  width: clamp(72px, 18vw, 104px);
  height: auto;
  margin: 0 auto 18px;
  display: block;
  opacity: 0.95;
}
.foot-line {
  margin: 0 0 6px;
  font-style: italic;
  color: var(--ink-2);
}
.foot-names {
  margin: 0;
  font-family: "Gilda Display", serif;
  font-size: clamp(27px, 6.4vw, 38px);
  color: var(--maroon);
}
.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  transition: color 0.3s;
}
.ig:hover {
  color: var(--maroon);
}
.ig svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: currentColor;
}
.foot-rule {
  display: block;
  width: min(180px, 50%);
  height: 1px;
  margin: 42px auto 26px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.made {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.made:hover {
  opacity: 1;
}
.made span {
  font-family: "Marcellus SC", serif;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* The circular vowstory badge (vowstory-logo.webp), which replaced a wide
   wordmark — same optical weight at two thirds the width. */
.made img {
  width: 88px;
  height: auto;
}

@media (min-width: 600px) {
  .weds {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
  }
  .weds .side {
    flex: 1;
    max-width: 260px;
  }
  .weds em {
    margin-top: 8px;
    flex: none;
  }
  .car-track {
    gap: 18px;
  }
}
@media (min-width: 960px) {
  .music {
    width: 48px;
    height: 48px;
    top: 24px;
  }
  .ph {
    flex-basis: 290px;
  }
  .ph-wide {
    flex-basis: 340px;
  }
}

@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;
    /* ⚠️ .reveal gained a blur() with the redesign. Killing the transition
       alone would leave every un-revealed block blurred for good. */
    filter: none;
  }
  .amb {
    display: none;
  }
  .hero-names .ch,
  .hero-names em {
    opacity: 1;
    transform: none;
  }
  .cv-draw {
    stroke-dashoffset: 0;
  }
  .jaali-fill {
    opacity: 0.55;
    transform: none;
  }
  .cv-corner,
  .cv-tap {
    opacity: 1;
  }
  .hang {
    opacity: 1;
  }
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ═══ config-driven additions ═══
   Everything below exists because the page is painted from
   script#wedding-config: elements the couple left empty are hidden rather
   than deleted, and a few slots have no counterpart in the shipped demo. */

/* Outranks the flex/grid/inline-flex display rules on .rc-ph, .mapcard,
   .ig, .btn and the name spans, so `hidden` always wins. */
[hidden] {
  display: none !important;
}

/* The deity when the couple's blessing has no artwork of its own, set in the
   display face over the hero. */
.glyph {
  margin: 0 auto 14px;
  font-family: "Gilda Display", serif;
  line-height: 1;
  font-size: clamp(42px, 10vw, 62px);
  color: var(--gold);
  text-shadow: 0 6px 20px rgba(49, 56, 42, 0.16);
}

/* "Hosted by …" — for when an uncle or a brother is the official host.
   ⚠️ Three elements since the 11 Sep 2026 redesign, where it was one <p>
   whose text began with the words "Hosted by". The label is markup now, so
   script.js writes only the names — see #hosted-names. It also moved BELOW
   the two families rather than above them. */
.hosted {
  margin: 28px auto 0;
  text-align: center;
  max-width: 440px;
}
.hosted-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 13px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hosted-label {
  margin: 0 0 6px;
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.hosted-names {
  margin: 0;
  font-family: "Cardo", Georgia, serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* Dress code and note, two labelled cells under an event's venue.
   ⚠️ Was one italic run-on line ("Dress code: Marigold & ivory · Breakfast
   from 10:30") until the 11 Sep 2026 redesign.
   ⚠️ The columns are generated per cell, NOT declared as `1fr 1fr`. 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. */
.ev-meta {
  margin: 12px auto 16px;
  max-width: 290px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 9px;
}
.ev-meta > div {
  background: rgba(89, 99, 74, 0.07);
  border: 1px solid var(--line);
  padding: 7px 11px;
  min-width: 0;
}
.ev-meta dt {
  font-family: "Marcellus SC", serif;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ev-meta dd {
  margin: 3px 0 0;
  font-family: "Cardo", Georgia, serif;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* A second query contact, when the couple gives one. */
.rc-ph + .rc-name {
  margin-top: 18px;
}

/* ═══ printed margin borders ═══
   Shown only from 1180px up, where there is room outside the 920px page.
   ⚠️ These are CSS background-images declared INSIDE the media query, not
   <img> tags with display:none. A display:none <img> is still fetched by
   every browser, and the two borders were 1.3 MB between them as PNG — paid
   for by every phone that never shows one. Declared here, the request
   happens only when the query matches. (They are WebP now and a fifth of
   that; the rule is unchanged, and so is the reason for it.)
   The geometry is unchanged by the switch: height:100vh with background-size
   contain in a 22vw box resolves to the same painted box as width:auto on an
   <img> did. */
.edge {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 22vw;
  max-width: 22vw;
  opacity: 0.92;
  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/border-l.webp);
  }
  .edge-r {
    background-image: url(assets/border-r.webp);
  }
}

/* ═══ the venue route ═══
   Decorative only — see the comment on .route in index.html. The SVG's own
   overflow stays visible so the pulsing ring around the destination pin is
   not clipped by the viewBox. */
.route {
  margin: 26px auto 2px;
  width: min(330px, 86%);
}
.route-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
