/* Garbo (ગરબો): a dark room, a pierced clay pot, a lamp inside. Warm black, terracotta, kumkum red, lamp gold.
   Opening: hold to light the lamp; the holes glow; at full flame the light pours out as dots over the whole page,
   and they stay, swaying, behind every section (canvas.dots, drawn by script.js).
   Then: nine diyas (nights) -> voices -> family pass counter -> decorum -> ground -> sponsors -> close. */

@property --lvl { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --room: #120a06;
  --room-2: #1c110a;
  --clay: #b5552b;
  --clay-2: #d9773f;
  --kumkum: #a51d24;
  --lamp: #ffc85a;
  --lamp-2: #ff9a3a;
  --cream: #f7e6c8;
  --muted: #cdb497;
  --leaf: #4f7a3a;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Literata", Georgia, serif;
  --f-gu: "Noto Serif Gujarati", "Literata", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: #1c110a;
  --fx-music-ring: #ffc85a;
  --fx-music-ink: #ffe2a8;
  --fx-bg: #1c110a;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body { background: var(--room); color: var(--cream); font: 400 18px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[lang="gu"] { font-family: var(--f-gu); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main, .foot { position: relative; z-index: 1; }

/* the dots of light thrown by the garbo, behind everything */
.dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* =================================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border-radius: 999px;
  text-decoration: none; font: 600 16px/1.1 var(--f-body); transition: transform .2s var(--ease), box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn--lamp { background: radial-gradient(120% 140% at 50% 0%, #ffe39a, #ffb84a 55%, #f08a2a); color: #3a1406; box-shadow: 0 0 0 1px rgba(255, 200, 90, .5), 0 10px 30px -8px rgba(255, 170, 60, .7); }
.btn--line { border: 1.5px solid rgba(247, 230, 200, .5); color: var(--cream); }

/* =================================================================== GATE */
.gate {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(66px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
  background: radial-gradient(60% 45% at 50% 52%, rgba(255, 160, 60, calc(.22 * var(--lvl))), transparent 70%);
}
html.shut .gate { height: 100svh; }
.gate__org { font: 500 13px/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: calc(.35 + .65 * var(--lvl)); }
.gate__gu { margin-top: 10px; font: 700 clamp(24px, min(7.4vw, 4.6svh), 38px)/1.3 var(--f-gu); color: var(--lamp-2); opacity: calc(.25 + .75 * var(--lvl)); }
.gate__name {
  margin: 2px 0 0; font: 400 clamp(46px, min(15vw, 8.4svh), 112px)/1 var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100;
  color: color-mix(in srgb, #ffe7b0 calc(var(--lvl) * 100%), #4a3326);
  text-shadow: 0 0 calc(30px * var(--lvl)) rgba(255, 170, 60, calc(.6 * var(--lvl)));
  text-wrap: balance;
}
.gate__edition { margin-top: 6px; font: italic 400 18px var(--f-display); color: var(--lamp); opacity: calc(.3 + .7 * var(--lvl)); }

.gate__pot { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.pot { display: block; height: 100%; max-height: min(46svh, 420px); width: auto; max-width: 74vw; overflow: visible; }
.pot__holes { opacity: calc(.12 + .88 * var(--lvl)); filter: brightness(calc(.4 + .8 * var(--lvl))); }
.pot__halo { opacity: calc(var(--lvl) * .9); }
.pot__mouth { opacity: var(--lvl); }
.pot__flame { transform-box: view-box; transform-origin: 120px 64px; transform: scale(calc(.05 + .95 * var(--lvl))); opacity: calc(var(--lvl) * 1.6); }
.gate[data-phase="lit"] .pot__flame, .gate[data-phase="open"] .pot__flame, .close__pot .pot__flame, .ogcard .pot__flame { animation: flicker .16s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(.97, 1.03) skewX(-1deg); } to { transform: scale(1.03, .96) skewX(1.2deg); } }
.pot__match { opacity: 0; transform-box: view-box; transform-origin: 178px 6px; transform: translate(40px, -30px) rotate(20deg); transition: opacity .3s, transform .5s var(--ease); }
.gate.holding .pot__match { opacity: 1; transform: none; }
.gate[data-phase="lit"] .pot__match, .gate[data-phase="open"] .pot__match { opacity: 0; transform: translate(60px, -60px) rotate(30deg); }
.pot__spark { animation: flicker .1s infinite alternate; transform-box: fill-box; transform-origin: center; }
.gate[data-phase="lit"] .pot { animation: sway 3.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }

.gate__hint { position: relative; z-index: 2; padding: 0 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; transition: opacity .5s; }
.gate__to { font-size: 15px; color: var(--muted); }
.gate__hgu { font: 700 22px/1.3 var(--f-gu); color: var(--lamp); }
.gate__line { font: italic 400 20px/1.3 var(--f-display); color: var(--cream); }
.gate__line--busy { display: none; }
.gate.holding .gate__line--idle { display: none; }
.gate.holding .gate__line--busy { display: block; }
.gate__ring { width: 46px; height: 46px; margin-top: 8px; }
.gate__ring svg { width: 100%; height: 100%; rotate: -90deg; }
.gate__ring circle { fill: none; stroke: var(--lamp); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 107; stroke-dashoffset: calc(107 * (1 - var(--lvl))); filter: drop-shadow(0 0 4px rgba(255, 200, 90, .8)); }
.gate__ring::before { content: ""; position: absolute; }

.gate__more { display: none; position: relative; z-index: 2; max-width: 540px; }
.gate__tag { font: italic 400 20px/1.4 var(--f-display); color: #ffe7b0; }
.gate__when { margin-top: 10px; font: 600 22px/1.3 var(--f-body); }
.gate__where { color: var(--muted); font-size: 16px; }
.gate__cta { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.gate__tap { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gate__tap:focus-visible { outline: 2px dashed var(--lamp); outline-offset: -10px; }
.gate__skip {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 4; min-height: 44px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid rgba(247, 230, 200, .3); background: rgba(18, 10, 6, .6); color: var(--muted); font: 500 14px var(--f-body); cursor: pointer;
}
.gate[data-phase="lit"] .gate__hint, .gate[data-phase="open"] .gate__hint { opacity: 0; }
.gate[data-phase="open"] .gate__hint { display: none; }
.gate[data-phase="open"] .gate__more { display: block; animation: rise 1s var(--ease) both; }
.gate[data-phase="open"] :is(.gate__tap, .gate__skip) { display: none; }
.gate[data-phase="open"] .gate__pot { flex: none; height: min(40svh, 360px); }
.gate.instant, .gate.instant * { transition: none !important; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }

/* =================================================================== sections */
.sec { position: relative; padding: 88px 16px; background: linear-gradient(rgba(18, 10, 6, .62), rgba(18, 10, 6, .62)); }
.sec__in { max-width: 660px; margin: 0 auto; }
.kicker { display: flex; align-items: baseline; gap: 12px; font: 500 13px/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kicker [lang="gu"] { font: 700 20px/1.2 var(--f-gu); letter-spacing: 0; text-transform: none; color: var(--lamp); }
.kicker--c { justify-content: center; }
.sec__title { margin: 10px 0 0; font: 400 clamp(34px, 9.4vw, 58px)/1.08 var(--f-display); font-variation-settings: "opsz" 144; color: #fff1d6; text-wrap: balance; }
.sec__title em { font-style: italic; color: var(--lamp); font-weight: 300; }
.sec__lead { margin-top: 12px; color: var(--muted); }

/* --- the nights as diyas --- */
.lamps { margin-top: 28px; display: grid; gap: 10px; }
.lamp { --c: #c9a26b; border-radius: 18px; background: rgba(28, 17, 10, .86); border: 1px solid rgba(255, 200, 90, .14); transition: border-color .3s, background .3s, box-shadow .4s; }
.lamp[open] { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: rgba(36, 22, 12, .94); box-shadow: 0 0 40px -12px color-mix(in srgb, var(--c) 70%, transparent); }
.lamp summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 16px 10px 10px; min-height: 64px;
}
.lamp summary::-webkit-details-marker { display: none; }
.lamp .diya { grid-row: span 2; width: 56px; height: 47px; overflow: visible; }
.diya__bowl { fill: #a8502a; }
.diya__rim { stroke: var(--c); stroke-width: 3; stroke-linecap: round; }
.diya__glow { fill: var(--c); opacity: 0; transition: opacity .5s; filter: blur(6px); }
.diya__flame { fill: #ffc85a; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.2); transition: opacity .3s, transform .4s var(--ease); }
.lamp[open] .diya__flame { opacity: 1; transform: scale(1); animation: flicker .18s ease-in-out .4s infinite alternate; }
.lamp[open] .diya__glow { opacity: .45; }
.lamp summary:hover .diya__flame { opacity: .4; transform: scale(.6); }
.lamp__no { display: none; }
.lamp__name { font: 600 18px/1.3 var(--f-body); color: #fff1d6; }
.lamp__date { font-size: 15px; color: var(--muted); }
.lamp__body { padding: 2px 18px 18px 78px; display: grid; gap: 4px; animation: rise .5s var(--ease); }
.lamp__when { font-weight: 600; }
.lamp__devi { font: italic 400 18px var(--f-display); color: var(--lamp); }
.lamp__devi span { font: 500 16px var(--f-gu); font-style: normal; color: var(--muted); }
.lamp__col { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; }
.lamp__col i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .2), 0 0 10px var(--c); }
.lamp__col b { color: #fff1d6; }
.lamp__where { color: var(--muted); font-size: 16px; }
.lamp__note { color: var(--lamp); font-weight: 600; }
.lamp__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(247, 230, 200, .3); text-decoration: none; font-size: 15px; }
.link--book { background: var(--lamp); color: #3a1406; border-color: var(--lamp); font-weight: 600; }

.count-wrap { margin-top: 34px; text-align: center; }
.count__label { font: italic 400 18px var(--f-display); color: var(--lamp); }
.count { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.count span { display: flex; flex-direction: column; align-items: center; padding: 10px 2px; border-radius: 14px; background: rgba(28, 17, 10, .8); font-size: 13px; color: var(--muted); }
.count b { font: 400 clamp(30px, 9vw, 44px)/1.15 var(--f-display); color: #fff1d6; }
.count__done { margin-top: 10px; font: italic 400 22px var(--f-display); color: var(--lamp); text-align: center; }

/* --- voices --- */
.artists { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.artist { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 8px; }
.artist + .artist { border-top: 1px solid rgba(255, 200, 90, .18); }
.artist + .artist::before { content: "✺"; display: block; margin: -32px auto 12px; width: 24px; background: var(--room); color: var(--lamp-2); font-size: 16px; line-height: 24px; }
.artist__name { font: 400 clamp(26px, 7.4vw, 38px)/1.15 var(--f-display); color: #fff1d6; }
.artist__role { font: italic 400 17px var(--f-display); color: var(--lamp); }

/* --- the family counter --- */
.counter { margin-top: 26px; padding: 20px 16px; border-radius: 22px; background: rgba(28, 17, 10, .92); border: 1px solid rgba(255, 200, 90, .25); }
.counter__passes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt__box {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 14px 12px; border-radius: 16px;
  border: 1.5px solid rgba(247, 230, 200, .2); background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s, box-shadow .3s;
}
.opt__name { font-weight: 600; font-size: 16px; line-height: 1.25; }
.opt__price { font: 400 26px/1.2 var(--f-display); color: var(--lamp); }
.opt__note { font-size: 14px; line-height: 1.35; color: var(--muted); }
.opt input:checked + .opt__box { border-color: var(--lamp); background: rgba(255, 200, 90, .1); box-shadow: 0 0 24px -8px rgba(255, 200, 90, .6); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--lamp); outline-offset: 2px; }
.counter__qty { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter__label { font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.stepper__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 200, 90, .16); color: var(--lamp); font: 400 26px/1 var(--f-display); cursor: pointer; }
.stepper__btn:active { background: rgba(255, 200, 90, .3); }
.stepper__n { min-width: 40px; text-align: center; font: 400 26px var(--f-display); }
.counter__total { margin-top: 16px; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed rgba(247, 230, 200, .25); }
.counter__total span { color: var(--muted); }
.counter__total b { font: 400 34px var(--f-display); color: #fff1d6; }
.counter__go { margin-top: 16px; width: 100%; }

/* --- decorum --- */
.rules { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.rules li { position: relative; padding: 4px 0 4px 34px; }
.rules li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #fff6d0, var(--lamp) 50%, transparent 72%); box-shadow: 0 0 12px var(--lamp-2); }

/* --- the ground --- */
.venue { text-align: center; padding: 28px 18px; border-radius: 24px; background: rgba(28, 17, 10, .9); border: 1px solid rgba(255, 200, 90, .2); }
.venue .kicker { justify-content: center; }
.venue__addr { margin-top: 4px; color: var(--muted); }
.venue__time { margin: 12px 0 20px; font: italic 400 19px var(--f-display); color: var(--lamp); }

/* --- sponsors --- */
.sec--sponsors { text-align: center; padding-top: 56px; padding-bottom: 56px; }
.sponsors { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.sponsors li { font: 400 20px var(--f-display); color: #fff1d6; }

.gallery { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

/* --- close --- */
.sec--close { text-align: center; padding-bottom: 120px; }
.close__pot { width: 160px; margin: 0 auto; }
.close__pot .pot { height: auto; width: 100%; max-height: none; }
.close__pot .pot__holes, .close__pot .pot__halo, .close__pot .pot__mouth { opacity: 1; filter: none; }
.close__pot .pot__flame { transform: none; opacity: 1; }
.close__pot .pot__match { display: none; }
.close__gu { margin-top: 18px; font: 700 clamp(24px, 7vw, 32px)/1.3 var(--f-gu); color: var(--lamp-2); }
.close__line { margin: 12px auto 0; max-width: 28em; color: var(--muted); }
.close__cta { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.close__tag { margin-top: 24px; font: italic 400 22px var(--f-display); color: var(--lamp); }

/* --- dock --- */
.dock {
  position: fixed; left: 12px; right: 76px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(28, 17, 10, .94); border: 1px solid rgba(255, 200, 90, .4); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
  translate: 0 160%; transition: translate .5s var(--ease);
}
.dock.show { translate: 0 0; }
.dock__txt { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; color: var(--muted); min-width: 0; }
.dock__txt b { font: 600 15px var(--f-body); color: #fff1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__btn { flex: none; display: grid; place-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--lamp); color: #3a1406; font-weight: 600; text-decoration: none; }
@media (min-width: 700px) { .dock { left: 50%; right: auto; width: 460px; translate: -50% 160%; } .dock.show { translate: -50% 0; } }

/* --- footer --- */
.foot { padding: 48px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 15px; background: rgba(10, 6, 3, .92); }
.foot__name { font: 400 26px var(--f-display); color: #fff1d6; }
.foot__name [lang="gu"] { color: var(--lamp-2); font-size: 22px; }
.foot__cal { margin-top: 12px; }
.foot__music, .foot__credit { margin-top: 10px; font-size: 13px; }
.up { display: inline-block; margin-top: 16px; padding: 10px; color: var(--lamp); }

.reveal { transition-delay: calc(var(--i, 0) * 60ms); }
@media (min-width: 900px) { .sec { padding: 120px 24px; } .counter__passes { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

/* =================================================================== OG CARD (1200x630) */
.ogcard { background: radial-gradient(50% 70% at 76% 55%, #3a1c0c, var(--room) 70%); color: var(--cream); font-family: var(--f-body); --lvl: 1; }
.og__dots { position: absolute; left: 900px; top: 330px; }
.og__dots i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 2px rgba(255, 170, 60, .7); transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); opacity: .85; }
.og__pot { position: absolute; left: 760px; top: 120px; width: 280px; }
.og__pot .pot { width: 100%; height: auto; max-height: none; max-width: none; }
.og__pot .pot__match { display: none; }
.og__text { position: relative; z-index: 2; padding: 92px 0 0 72px; width: 660px; }
.og__gu { font: 700 46px/1.3 var(--f-gu); color: var(--lamp-2); }
.og__name { font: 400 112px/1 var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100; color: #ffe7b0; text-shadow: 0 0 40px rgba(255, 170, 60, .5); }
.og__date { margin-top: 20px; font: 600 42px var(--f-body); color: #fff1d6; }
.og__venue { margin-top: 6px; font-size: 28px; color: var(--muted); }
.og__price { margin-top: 18px; font: italic 400 32px var(--f-display); color: var(--lamp); }

/* on phones the two buttons stack, centred, clear of the fixed music button */
@media (max-width: 480px) { .gate__cta { flex-direction: column; align-items: center; gap: 10px; } }
