/* Wedding invitation styles */

@font-face { font-family: Pinyon; src: url("../assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Marcellus; src: url("../assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Alegreya; src: url("../assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Alegreya; font-weight: 700; src: url("../assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Rozha; src: url("../assets/fonts/rozha-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Suranna; src: url("../assets/fonts/suranna-telugu-400-normal.woff2") format("woff2"); font-display: swap; }

/* Royal palette: the card's wine ink, gold foil and ivory stock, deepened with kumkum red and the bride's peacock blue. */
:root {
  --wine: #7a0f22; --mulberry: #3d0410; --plum: #6d0b1f; --blossom: #f3c98b; --gold: #dcae45;
  --ivory: #fbf1dc; --peacock: #123c52; --night: #08202f;
  color-scheme: dark;
}
@layer base {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
  ul { list-style: none; }
  a { color: inherit; text-decoration: none; }
  button { background: none; color: inherit; }
  img, svg, canvas, iframe { display: block; }
  img { max-width: 100%; height: auto; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { font-variant-numeric: lining-nums; background: var(--mulberry); color: var(--ivory); font: 1.125rem/1.55 Alegreya, "Gill Sans", system-ui, sans-serif; overflow-x: hidden; }
  h1, h2, h3 { font-family: Rozha, Marcellus, Georgia, serif; font-weight: 400; line-height: 1.15; }
  address { font-style: normal; }
  button { cursor: pointer; font: inherit; }
  button:disabled { cursor: default; opacity: .4; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
}

.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 1.5rem; padding: calc(.55rem + env(safe-area-inset-top)) clamp(1rem, 3vw, 2.5rem) .55rem; transition: background .3s; }
.nav:not(.nav-solid) { background: linear-gradient(rgb(45 2 10 / .92) 35%, transparent); }
.nav-solid { background: rgb(45 2 10 / .93); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgb(207 169 86 / .25); }
.monogram { font: 1.9rem/1 Pinyon, cursive; color: var(--gold); margin-right: auto; white-space: nowrap; }
.monogram small { font: 1.1rem Marcellus, serif; vertical-align: .2em; }
.nav ul { display: flex; gap: 1.8rem; font-family: Marcellus, serif; }
.nav ul a { padding: .5rem 0; display: inline-block; }
.nav ul a:hover { color: var(--gold); }
.music, .menu { min-height: 44px; border: 1px solid rgb(207 169 86 / .6); border-radius: 99px; padding: .35rem 1rem; background: rgb(61 4 16 / .7); white-space: nowrap; }
.music { display: flex; align-items: center; gap: .55rem; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.bars i { width: 3px; height: 5px; background: var(--gold); }
.is-playing .bars i { animation: bar .9s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: -.35s !important; height: 11px; } .bars i:nth-child(3) { animation-delay: -.6s !important; height: 7px; }
@keyframes bar { from { height: 3px; } to { height: 13px; } }
.menu { display: none; }
@media (max-width: 760px) {
  .nav { gap: .6rem; }
  .menu { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; background: rgb(45 2 10 / .97); padding: .25rem 1.5rem 1rem; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: .8rem 0; font-size: 1.15rem; }
}

.hero { position: relative; display: flex; flex-direction: column; min-height: max(100svh, 740px); height: 100svh; padding: calc(8.2rem + env(safe-area-inset-top)) 1rem 1rem; overflow: hidden;
  background: radial-gradient(ellipse 75% 55% at 50% 58%, #a3172c 0%, var(--plum) 40%, var(--mulberry) 100%); }
.hero-title { position: relative; z-index: 2; text-align: center; }
.hero-kicker { font-family: Marcellus, serif; color: var(--blossom); font-size: 1.05rem; }
.names { font-family: Pinyon, cursive; font-size: clamp(3.1rem, min(6.6vw, 11vh), 6.4rem); line-height: 1.12; color: #f4dca4; text-shadow: 0 3px 22px rgb(0 0 0 / .45); }
.names span { white-space: nowrap; padding-inline: .08em; }
.names em { font: italic .27em/1 Alegreya, sans-serif; color: var(--ivory); vertical-align: middle; padding-inline: .6em; }
.hero-date { font-size: 1.1rem; }
@media (max-width: 760px) { .names { font-size: clamp(3rem, 14.5vw, 4.4rem); line-height: .98; margin-block: .2rem .45rem; } .names span, .names em { display: block; } .names em { font-size: 1.05rem; padding: .15rem 0; } .hero-date { font-size: 1rem; } }
.stage { position: relative; flex: 1; min-height: 260px; margin-inline: -1rem; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blossom); }
.picker { position: relative; z-index: 2; text-align: center; }
.picker p { font-size: .95rem; color: #e9cfd3; margin-bottom: .4rem; }
.picker ul { display: flex; justify-content: center; gap: .6rem; }
.picker button { display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 76px; font-size: .85rem; }
.picker img { height: 46px; width: 64px; object-fit: contain; transition: transform .25s; }
.picker button:hover img { transform: translateY(-3px) scale(1.08); }
.flat-cards { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; height: 100%; padding: 1rem; }
.flat-cards img { max-height: 36svh; width: auto; max-width: 44vw; object-fit: contain; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .5)); }

.event { position: relative; overflow: hidden; padding: clamp(9rem, 17vh, 10.5rem) 1.25rem 0; scroll-margin-top: 0; }
.event-wedding { background: radial-gradient(ellipse at 50% 0%, #fff8e6, #f9e8bf 55%, #efd08c); color: var(--wine); }
.event-reception { background: radial-gradient(ellipse at 50% 0%, #175b73, #0d3350 40%, #0a1230); color: var(--ivory); }
.event-inner { position: relative; display: grid; gap: 3.5rem; max-width: 68rem; margin: 0 auto 4.5rem; text-align: center; }
@media (min-width: 900px) { .event-inner { grid-template-columns: 1.15fr .85fr; align-items: center; } .event-reception .event-when { order: 2; } .event-inner { gap: 5rem; } .event-reception .event-inner { grid-template-columns: .85fr 1.15fr; } }
.event h2 { font-size: clamp(2.3rem, 6vw, 3.9rem); text-wrap: balance; }
.event-date { font-size: 1.45rem; line-height: 1.4; margin-top: .8rem; }
.event-time { margin-bottom: 2.2rem; }
/* The sun climbs to noon for the wedding; the moon rises for the reception. */
.orbit { position: absolute; inset: 4.7rem 0 auto; height: 0; display: flex; justify-content: center; pointer-events: none; }
.orbit > div { position: relative; width: min(130vw, 1100px); height: min(130vw, 1100px); flex: none; transform-origin: 50% 50%; }
.orbit i { position: absolute; top: 0; left: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; }
.event-wedding .orbit i { background: radial-gradient(circle, #fff3c4, #e5b34f 60%, #d69a35); box-shadow: 0 0 60px 22px rgb(236 183 76 / .4); }
.event-reception .orbit i { background: transparent; box-shadow: inset -11px 6px 0 0 #f3e3b4; filter: drop-shadow(0 0 14px rgb(243 227 180 / .7)); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.45rem, 1.8vw, 1rem); max-width: 31rem; margin: 0 auto; font-variant-numeric: lining-nums tabular-nums; }
.arch { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; aspect-ratio: 80 / 108; padding-bottom: 12%; }
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgb(255 255 255 / .55); stroke: #a77b2a; stroke-width: 1.5; }
.event-reception .arch svg { fill: rgb(255 255 255 / .06); stroke: var(--gold); }
.arch strong { position: relative; font: 400 clamp(2rem, 7vw, 3.1rem)/1.1 Alegreya, sans-serif; font-variant-numeric: lining-nums tabular-nums; }
.arch span { position: relative; font-size: clamp(.8rem, 2.8vw, 1rem); }
.countdown-done { font: 1.5rem/1.4 Marcellus, serif; max-width: 26rem; margin: 0 auto; }

.pin { width: 40px; height: 50px; margin: 0 auto .8rem; fill: var(--wine); fill-rule: evenodd; }
.venue-role { font-size: 1rem; color: #875861; }
.venue h3 { font-size: 2.1rem; margin-block: .2rem .5rem; }
.venue address span { display: block; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 99px; padding: .6rem 1.2rem; font-weight: 700; font-size: 1.15rem; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--wine); color: #fff4e6; }
.btn-solid:hover { background: #8a2a3a; }
.btn-quiet { border: 1px solid currentColor; }
.venue > .btn { margin-top: 1.4rem; }
.venue-more { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.4rem; margin-top: .5rem; }
.venue-more > * { text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.venue-copied { font-size: .95rem; min-height: 1.4em; }
.venue iframe { width: 100%; height: 230px; border: 0; border-radius: 10px; margin-top: .5rem; background: #eadfda; }


.sheet-back { position: fixed; inset: 0; align-items: flex-end; justify-content: center; background: rgb(20 3 11 / .72); }
.sheet { width: min(100%, 25rem); background: #fffaf6; color: var(--wine); text-align: center; border-radius: 24px 24px 0 0; padding: 1.75rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); display: grid; gap: .7rem; }
.sheet h3 { font-size: 1.5rem; } .sheet p { margin-bottom: .6rem; }
@media (min-width: 640px) { .sheet-back { align-items: center; } .sheet { border-radius: 24px; } }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(18 4 11 / .96); flex-direction: column; padding: 70px 0 80px; perspective: 1400px; }
.lightbox-view { flex: 1; overflow: auto; display: flex; overscroll-behavior: contain; }
.lightbox-view img { margin: auto; max-width: none; height: auto; flex: none; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .6)); }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--gold); border-radius: 99px; }
.lb-bar { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: .5rem; }
.lb-bar button { width: 46px; height: 46px; border: 1px solid rgb(207 169 86 / .7); border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.lb-bar span { min-width: 8.5rem; text-align: center; font-size: 1rem; }

.family { text-align: center; background: var(--ivory); color: var(--wine); padding: 5rem 1.5rem 4rem; }
.family > * { max-width: 40rem; margin-inline: auto; }
.telugu { font: clamp(1.7rem, 6vw, 2.5rem)/1.5 Suranna, serif; }
.family h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-block: .4rem 1.4rem; }
.request { margin-top: 1rem; }
.family-names { font: clamp(2.5rem, 9vw, 4rem)/1.3 Pinyon, cursive; margin-top: 1rem; }
.family-names em { font: italic 1.1rem Alegreya, sans-serif; vertical-align: middle; }
.bride-parents { margin-bottom: 2.5rem; }
.invited { font-style: italic; }
.host { font: 1.3rem/1.5 Marcellus, serif; margin-top: .5rem; text-wrap: balance; }
.town { margin-top: .5rem; }
.compliments { border-top: 1px solid #c9a255; margin-top: 2.5rem; padding-top: 1.2rem; }

.particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; opacity: .75; }

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

.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.flat-cards button img { height: auto; }
.stage.has-3d .flat-cards { display: none; }
.stage.loading .flat-cards { visibility: hidden; }
.stage-loading { pointer-events: none; }
html:has(dialog[open]) { overflow: hidden; }
dialog { color: inherit; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; }
dialog::backdrop { background: transparent; }
dialog.sheet-back[open], dialog.lightbox[open] { display: flex; }
dialog.sheet-back { position: fixed; inset: 0; }
dialog.sheet-back[open] .sheet { animation: rise .35s cubic-bezier(.16,1,.3,1); }
dialog.lightbox[open] { animation: fade .3s; }
dialog.lightbox[open] img { animation: reveal .55s cubic-bezier(.16,1,.3,1); }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes reveal { from { transform: scale(.88) rotateY(-22deg); opacity: 0; } }

/* ---------- Royal and traditional layer ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.particles { z-index: 90; opacity: 1; }
.btn-gold { background: linear-gradient(170deg, #ffe9a8, #dcae45 48%, #b4822a); color: #3d0410; box-shadow: 0 0 0 1px #fff0bd inset, 0 8px 22px -8px rgb(0 0 0 / .6); }
.names { color: #ffe3a1; }
.hero-kicker { font-family: Rozha, serif; font-size: 1.15rem; letter-spacing: .01em; }
/* gold frame around the opening view */
.hero::after { content: ""; position: absolute; inset: calc(4.2rem + env(safe-area-inset-top)) 8px 8px; border: 1px solid rgb(220 174 69 / .75); outline: 1px solid rgb(220 174 69 / .35); outline-offset: -6px; pointer-events: none; }
.toranam { position: absolute; top: calc(4.15rem + env(safe-area-inset-top)); left: 0; width: 100%; height: 72px; z-index: 3; pointer-events: none; overflow: visible; }
.leaf path { transform-box: fill-box; transform-origin: 50% 0; animation: leaf 4.5s ease-in-out infinite alternate; animation-delay: inherit; }
@keyframes leaf { from { rotate: -6deg; } to { rotate: 6deg; } }
.garland { position: absolute; top: calc(8rem + env(safe-area-inset-top)); width: 22px; height: 46%; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='40'%3E%3Cg fill='%23f6a313'%3E%3Ccircle cx='11' cy='10' r='9' stroke='%23e8650d' stroke-width='3' stroke-dasharray='3 2'/%3E%3C/g%3E%3Ccircle cx='11' cy='10' r='4' fill='%23ffc928'/%3E%3Ccircle cx='11' cy='30' r='8' fill='%23e8650d' stroke='%23f6a313' stroke-width='3' stroke-dasharray='3 2'/%3E%3Ccircle cx='11' cy='30' r='3' fill='%23ffc928'/%3E%3C/svg%3E") repeat-y;
  transform-origin: top; animation: swing 7s ease-in-out infinite alternate; }
.garland::after { content: ""; position: absolute; left: 3px; top: 100%; width: 16px; height: 26px; border-radius: 50% 50% 8px 8px; background: linear-gradient(#ffe9a8, #a8741f); }
.garland-l { left: clamp(14px, 4vw, 60px); } .garland-r { right: clamp(14px, 4vw, 60px); animation-delay: -3.5s; }
@keyframes swing { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
@media (max-width: 760px) {
  .hero { padding-top: calc(7.4rem + env(safe-area-inset-top)); }
  .toranam { height: 50px; }
  .garland { display: none; }
}
.mandala { position: absolute; left: 50%; top: 50%; width: min(150%, 108vh); aspect-ratio: 1; translate: -50% -50%; fill: none; stroke: #e9bd58; stroke-width: .8; opacity: .24; pointer-events: none; }
.mandala g { animation: turn 120s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.stage canvas { z-index: 1; }
.picker .bless { width: auto; min-height: 44px; margin: .6rem auto .2rem; font-size: 1.05rem; padding-inline: 1.6rem; }

.flourish { width: min(240px, 70%); height: 24px; margin: .7rem auto 0; fill: none; stroke: #b9861f; stroke-width: 1.5; stroke-linecap: round; }
.flourish .gem { fill: #b9861f; }
.event-reception .flourish { stroke: var(--gold); } .event-reception .flourish .gem { fill: var(--gold); }
.event h2 { line-height: 1.2; }
.arch svg { fill: #7a0f22; stroke: #d9a83c; stroke-width: 2.5; filter: drop-shadow(0 8px 10px rgb(70 10 10 / .28)); }
.event-wedding .arch { color: #ffe6ab; }
.event-reception .arch svg { fill: rgb(10 20 50 / .55); stroke: var(--gold); }
.event-reception .arch { color: #ffe9b6; }
.venue { position: relative; background: #fff8e8; color: var(--wine); border-radius: 220px 220px 12px 12px; padding: 3rem clamp(1.4rem, 4vw, 2.6rem) 1.8rem; width: 100%; max-width: 27rem; justify-self: center;
  border: 3px solid #c79a35; box-shadow: 0 0 0 6px #7a0f22, 0 0 0 8px #e3b954, 0 32px 60px -22px rgb(30 0 10 / .6); }
.venue::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgb(185 134 31 / .7); border-radius: 210px 210px 6px 6px; pointer-events: none; }
.venue > * { position: relative; }
.venue-role { color: #8d5a25; }

/* Temple-border (saree zari) divider */
.zari { height: 46px; margin-inline: -1.25rem; border-block: 3px solid #e3b954;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath fill='%23e3b954' d='M0 40V34h4v-5h4v-5h4v-5h4v-6h8v6h4v5h4v5h4v5h4v6Z'/%3E%3Cpath fill='%237a0f22' d='M20 22l6 8-6 8-6-8Z'/%3E%3Ccircle cx='20' cy='6' r='3' fill='%23e3b954'/%3E%3Ccircle cx='0' cy='15' r='2' fill='%23e3b954'/%3E%3Ccircle cx='40' cy='15' r='2' fill='%23e3b954'/%3E%3C/svg%3E") repeat-x center bottom / 40px 40px, #7a0f22; }

.lamps { position: relative; text-align: center; margin: 0 auto 3.5rem; }
.lamps-title { font: 1.45rem/1.3 Rozha, serif; color: #ffe3a1; }
.lamps-row { display: flex; justify-content: center; gap: clamp(.2rem, 2.5vw, 1.6rem); margin: .8rem 0 .4rem; }
.diya { width: clamp(56px, 15vw, 84px); padding: .3rem; }
.diya svg { width: 100%; height: auto; overflow: visible; }
.diya .bowl { fill: #b5522b; } .diya .rim { stroke: #f0c35a; stroke-width: 3; fill: none; stroke-linecap: round; }
.diya .flame { fill: #ffd25a; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.2); transition: opacity .25s, transform .35s; }
.diya[aria-pressed="true"] .flame { opacity: 1; transform: none; filter: drop-shadow(0 0 8px #ffab2e) drop-shadow(0 0 18px #ff8a1e); animation: flicker .8s ease-in-out infinite alternate; }
@keyframes flicker { from { scale: 1 .93; rotate: -2deg; } to { scale: .94 1.07; rotate: 2deg; } }

.family { position: relative; background: radial-gradient(ellipse at 50% 20%, #fffaec, #f8e9c6); padding: 5rem 1.8rem 4.5rem; }
.family::before { content: ""; position: absolute; inset: 14px; border: 3px double #b9861f; border-radius: 4px; pointer-events: none; }
.family > * { position: relative; }
.family .bless { width: auto; margin: 2.5rem auto 0; padding-inline: 2rem; }

/* ---------- Palace doors ---------- */
.gate { display: none; }
.js .gate { display: flex; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; perspective: 1800px; overflow: hidden auto; }
.door { position: fixed; top: 0; bottom: 0; width: 50.2%; display: grid; grid-template-rows: 1fr 1.35fr 1fr; gap: 2.2vh; padding: 3vh 4.5vw;
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / .12) 0 2px, transparent 2px 22px), linear-gradient(#7d0d22, #4a0513); border: 6px solid #c99a34; box-shadow: inset 0 0 0 3px #4a0513, inset 0 0 0 5px #e7c166, inset 0 0 70px rgb(0 0 0 / .45);
  transition: transform 1.9s cubic-bezier(.65,.05,.25,1) .25s; backface-visibility: hidden; }
.door-l { left: 0; transform-origin: left center; } .door-r { right: 0; transform-origin: right center; }
.door::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: 20vh; border-radius: 50%; border: 5px solid #e7c166; box-shadow: 0 4px 8px rgb(0 0 0 / .5); }
.door-l::after { right: 12px; } .door-r::after { left: 12px; }
.panel { position: relative; border: 2px solid #d9ac45; border-radius: 999px 999px 6px 6px; box-shadow: inset 0 0 0 6px rgb(0 0 0 / .18), inset 0 0 0 7px rgb(217 172 69 / .55);
  background: radial-gradient(circle, rgb(255 220 130 / .85) 1.6px, transparent 2.6px) 0 0 / 22px 22px; }
.panel i { position: absolute; left: 50%; top: 52%; width: min(46%, 90px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8 0 13%, #7a0f22 14% 24%, transparent 25%), repeating-conic-gradient(#e7bd55 0 11.25deg, #9a6a1c 11.25deg 22.5deg); box-shadow: 0 0 0 4px #4a0513, 0 0 0 6px #d9ac45; }
.plaque { position: relative; z-index: 2; flex: none; margin: auto; width: min(88vw, 25rem); max-height: none; text-align: center; padding: 1.4rem 1.2rem .9rem; border-radius: 200px 200px 18px 18px;
  background: radial-gradient(ellipse at 50% 25%, #fffaec, #f7e5bb); color: var(--wine); border: 3px solid #c99a34; box-shadow: 0 0 0 6px #5c0818, 0 0 0 8px #e7c166, 0 30px 70px rgb(0 0 0 / .65);
  transition: opacity .45s, scale .45s; }
.emblem { width: auto; height: clamp(110px, 21vh, 190px); margin: 0 auto .5rem; }
.invocation { font: 1.05rem/1.6 Suranna, serif; display: flex; justify-content: center; gap: .9rem; }
.gate-names { font: clamp(2.2rem, min(10vw, 6.4vh), 3.1rem)/1.05 Pinyon, cursive; margin: .3rem 0; }
.gate-names span { display: block; white-space: nowrap; }
.gate-names em { display: block; font: italic .95rem/1.3 Alegreya, sans-serif; }
.gate-date { font: 1.05rem Rozha, serif; margin-bottom: .8rem; }
.gate .btn { max-width: 16rem; margin: 0 auto; }
.gate-quiet { min-height: 40px; margin-top: .3rem; text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; }
.gate.opening { pointer-events: none; }
.gate.opening .plaque { opacity: 0; scale: 1.12; }
.gate.opening .door-l { transform: rotateY(-104deg); } .gate.opening .door-r { transform: rotateY(104deg); }
@media (prefers-reduced-motion: reduce) { .gate.opening .door { display: none; } }
.flat-cards { position: relative; z-index: 1; }
.hero:focus { outline: none; }
@media (max-width: 600px) { .family-names em { display: block; line-height: 1.4; } }
.panel { width: min(100%, 300px); justify-self: center; }
@media (max-width: 760px) {
  .picker > p { display: none; }
  .picker img { height: 38px; width: 50px; }
  .picker button { font-size: .8rem; }
  .hero-date { font-size: .95rem; }
}
