/* Navrang (નવરંગ): Navratri as nine colours. Ivory paper, ink, DM Serif Display with Mukta Vaani (Latin and
   Gujarati), and one accent at a time: the night's colour, which the whole page takes (--accent on <html>, set by
   script.js, eased through @property). Opening: spin the colour wheel; it lands on tonight's colour.
   Then: the swipeable colour calendar (each page re-dyes the site) -> countdown -> lineup -> pass menu ->
   rules + ground -> sponsors -> close. */

@property --accent { syntax: "<color>"; inherits: true; initial-value: #f5c21b; }
@property --accent-ink { syntax: "<color>"; inherits: true; initial-value: #1d1308; }

:root {
  --paper: #faf7f0;
  --paper-2: #f1ece0;
  --ink: #1a1612;
  --ink-2: #5b5248;
  --rule: #ddd5c6;
  --tint: color-mix(in srgb, var(--accent) 16%, var(--paper));
  --tint-2: color-mix(in srgb, var(--accent) 30%, var(--paper));
  --deep: color-mix(in srgb, var(--accent) 64%, #1a1612);

  --f-display: "DM Serif Display", Georgia, serif;
  --f-body: "Mukta Vaani", "Noto Sans Gujarati", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: var(--ink);
  --fx-music-ring: var(--accent);
  --fx-music-ink: var(--paper);
  --fx-bg: var(--paper);
  transition: --accent .9s ease, --accent-ink .9s ease;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border-radius: 999px;
  text-decoration: none; font: 600 17px/1.1 var(--f-body); transition: transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, #000 30%), 0 12px 26px -14px color-mix(in srgb, var(--accent) 70%, #000); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }

/* =================================================================== GATE: the wheel */
.gate {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  padding: calc(66px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
  background: radial-gradient(70% 45% at 50% 55%, var(--tint-2), var(--paper) 72%);
}
html.shut .gate { height: 100svh; }
.gate__org { font: 600 13px/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.gate__gu { margin-top: 6px; font: 700 clamp(22px, min(7vw, 4.4svh), 34px)/1.3 var(--f-body); color: var(--deep); }
.gate__name { margin: 0; font: 400 clamp(46px, min(14.5vw, 8.4svh), 110px)/1 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.gate__span { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

.wheel-wrap { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; margin: 12px 0 6px; }
.wheel { display: block; height: 100%; max-height: min(84vw, 46svh, 460px); width: auto; aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 18px 30px rgba(40, 25, 10, .25)); }
.wheel__spin { transform-origin: 0 0; }
.wheel__wedge { stroke: var(--paper); stroke-width: 1.2; }
.wheel__label { font: 700 12px var(--f-body); }
.wheel__peg { fill: #fff; stroke: rgba(0, 0, 0, .35); stroke-width: .6; }
.wheel__rim { fill: none; stroke: var(--ink); stroke-width: 5; }
.wheel__hub { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.wheel__hubtext { font: 700 13px "Mukta Vaani", sans-serif; fill: var(--ink); }
.pointer { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 10%; }
.pointer.flick { animation: flick .14s ease-out; }
@keyframes flick { 40% { transform: rotate(-18deg); } }
.gate__tap { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: grab; touch-action: none; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.gate__tap:focus-visible { outline: 3px dashed var(--ink); outline-offset: -20px; }

.gate__hint { padding: 0 72px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gate__to { font-size: 15px; color: var(--ink-2); }
.gate__line { font: italic 400 20px/1.3 var(--f-display); }
.spin {
  min-height: 46px; padding: 8px 30px; border-radius: 999px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper);
  font: 700 15px var(--f-body); letter-spacing: .14em; text-transform: uppercase;
}
.landed { display: none; flex-direction: column; align-items: center; }
.landed__k { font: 600 13px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.landed__c { margin-top: 2px; padding: 4px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 400 clamp(30px, 9vw, 44px)/1.2 var(--f-display); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .12); }
.landed__n { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.gate__more { display: none; max-width: 540px; }
.gate__tag { margin-top: 12px; font: italic 400 21px/1.35 var(--f-display); }
.gate__where { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.gate__cta { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.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; cursor: pointer;
  border: 1px solid var(--rule); background: rgba(250, 247, 240, .8); color: var(--ink-2); font: 500 14px var(--f-body);
}
.gate[data-phase="landed"] .gate__hint, .gate[data-phase="open"] .gate__hint, .gate[data-phase="spinning"] .spin { display: none; }
.gate[data-phase="landed"] .landed, .gate[data-phase="open"] .landed { display: flex; animation: rise .7s var(--ease) both; }
.gate[data-phase="open"] .gate__more { display: block; animation: rise .9s var(--ease) both; }
.gate[data-phase="open"] :is(.gate__tap, .gate__skip) { display: none; }
.gate[data-phase="open"] .wheel-wrap { flex: none; height: min(64vw, 34svh, 320px); }
.gate.instant * { animation: none !important; transition: none !important; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }

/* =================================================================== sections */
.sec { position: relative; padding: 84px 0; }
.sec__in { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.kicker { display: flex; align-items: baseline; gap: 12px; font: 600 13px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.kicker [lang="gu"] { font: 700 20px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--deep); }
.kicker--c { justify-content: center; }
.sec__title { margin: 8px 0 0; font: 400 clamp(38px, 10.6vw, 64px)/1.02 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.sec__title em { color: var(--deep); }
.sec__lead { margin-top: 10px; color: var(--ink-2); }

/* --- the colour calendar --- */
.sec--nights { background: linear-gradient(var(--paper), var(--tint) 30%, var(--tint) 70%, var(--paper)); }
.cal {
  margin-top: 26px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px calc(50% - min(39vw, 160px)) 26px; scrollbar-width: none;
}
.cal::-webkit-scrollbar { display: none; }
.page {
  --c: #f5c21b; --ci: #1d1308;
  position: relative; flex: none; width: min(78vw, 320px); scroll-snap-align: center; display: flex; flex-direction: column;
  padding: 30px 20px 20px; border-radius: 6px 6px 22px 22px; background: var(--c); color: var(--ci);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 22px 40px -24px rgba(40, 25, 10, .55);
  transition: transform .5s var(--ease), opacity .5s;
  transform: scale(.92); opacity: .72;
}
.page.on { transform: none; opacity: 1; }
.page::before {                          /* the binding, with its two rings */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 6px 6px 0 0;
  background: radial-gradient(circle 4px at 30% 50%, var(--paper) 98%, transparent), radial-gradient(circle 4px at 70% 50%, var(--paper) 98%, transparent), var(--ink);
}
.page__top { display: flex; justify-content: space-between; align-items: baseline; font: 600 13px var(--f-body); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.page__no { font: 700 22px var(--f-body); letter-spacing: 0; }
.page__day { font: 400 clamp(96px, 30vw, 128px)/.9 var(--f-display); margin-top: 6px; }
.page__wd { font: 600 15px var(--f-body); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.page__name { margin: 14px 0 0; padding-top: 12px; border-top: 1.5px solid currentColor; font: 400 26px/1.15 var(--f-display); }
.page__devi { margin-top: 4px; font: italic 400 19px/1.3 var(--f-display); }
.page__devi span { font: 600 16px var(--f-body); font-style: normal; opacity: .85; }
.page__col { margin-top: 8px; align-self: flex-start; padding: 2px 12px; border-radius: 999px; border: 1.5px solid currentColor; font: 700 14px var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.page__time { margin-top: 10px; font-weight: 600; }
.page__where { font-size: 15px; opacity: .85; }
.page__note { margin-top: 4px; font-weight: 700; }
.page__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.plink { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; text-decoration: none; font: 600 14px var(--f-body); }
.plink--book { background: var(--ci); color: var(--c); border-color: var(--ci); }
.cal__nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; }
.cal__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 20px var(--f-body); cursor: pointer; flex: none; }
.cal__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.cal__dot { width: 22px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.cal__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); transition: transform .3s var(--ease), box-shadow .3s; }
.cal__dot[aria-selected="true"]::before { transform: scale(1.35); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }

.countdown { margin-top: 44px; text-align: center; }
.count__label { font: italic 400 20px var(--f-display); color: var(--deep); }
.count { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.count span { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); font-size: 14px; color: var(--ink-2); }
.count b { font: 400 clamp(34px, 10vw, 48px)/1.1 var(--f-display); color: var(--ink); }
.count__done { margin-top: 10px; font: italic 400 24px var(--f-display); color: var(--deep); text-align: center; }

/* --- lineup --- */
.acts { list-style: none; margin: 24px 0 0; padding: 0; }
.act { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.act__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); align-self: center; grid-row: span 2; }
.act__name { font: 400 clamp(26px, 7.2vw, 36px)/1.15 var(--f-display); }
.act__role { grid-column: 2; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* --- pass menu --- */
.sec--passes { background: var(--paper-2); }
.menu { margin-top: 24px; border-top: 2px solid var(--ink); }
.item {
  width: 100%; display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 12px; padding: 16px 6px; text-align: left; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); transition: background .3s;
}
.item__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); position: relative; }
.item[aria-checked="true"] { background: var(--tint); }
.item[aria-checked="true"] .item__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.item__text { display: flex; flex-direction: column; min-width: 0; }
.item__name { font-weight: 700; font-size: 18px; line-height: 1.25; }
.item__note { font-size: 15px; color: var(--ink-2); line-height: 1.3; }
.item__lead { align-self: end; margin-bottom: 8px; border-bottom: 2px dotted var(--rule); }
.item__price { font: 400 26px var(--f-display); }
.book { margin-top: 22px; width: 100%; flex-wrap: wrap; }
.book__label { font: 400 22px var(--f-display); }
.book__pick { font-weight: 600; }
.book__pick::before { content: "· "; }
.book.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.03); } }
.book__via { margin-top: 10px; text-align: center; font-size: 15px; color: var(--ink-2); }

/* --- rules + ground --- */
.info { display: grid; gap: 30px; }
.rules { list-style: none; margin: 14px 0 0; padding: 0; }
.rules li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); }
.rules li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.info__ground { padding: 24px 20px; border-radius: 24px; background: var(--tint); box-shadow: 0 0 0 1px var(--rule); }
.ground__name { margin-top: 8px; font: 400 clamp(30px, 8.4vw, 42px)/1.1 var(--f-display); }
.ground__addr { color: var(--ink-2); }
.ground__time { margin: 8px 0 16px; font-weight: 700; }
@media (min-width: 800px) { .info { grid-template-columns: 1fr 1fr; align-items: start; } }

.sec--sponsors { text-align: center; padding: 56px 0; }
.sponsors { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font: 400 22px var(--f-display); }

.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; }

.sec--close { text-align: center; padding-bottom: 120px; }
.close__band { display: flex; height: 14px; max-width: 360px; margin: 0 auto 28px; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.close__band i { flex: 1; background: var(--c); }
.close__gu { font: 700 clamp(22px, 6.4vw, 30px)/1.3 var(--f-body); color: var(--deep); }
.close__line { margin: 12px auto 0; max-width: 26em; color: var(--ink-2); }
.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(--deep); }

/* --- 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; gap: 10px; min-height: 56px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: rgba(250, 247, 240, .95); box-shadow: 0 0 0 1px var(--rule), 0 14px 30px -12px rgba(40, 25, 10, .45); backdrop-filter: blur(8px);
  translate: 0 160%; transition: translate .5s var(--ease);
}
.dock.show { translate: 0 0; }
.dock__swatch { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.dock__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.dock__txt b { font: 400 17px/1.2 var(--f-display); color: var(--ink); 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(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
@media (min-width: 700px) { .dock { left: 50%; right: auto; width: 460px; translate: -50% 160%; } .dock.show { translate: -50% 0; } }

.foot { padding: 52px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-2); font-size: 15px; border-top: 1px solid var(--rule); }
.foot .close__band { margin-bottom: 22px; height: 8px; max-width: 200px; }
.foot__name { font: 400 30px var(--f-display); color: var(--ink); }
.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(--deep); font-weight: 600; }

.reveal { transition-delay: calc(var(--i, 0) * 60ms); }
@media (min-width: 900px) { .sec { padding: 120px 0; } }
@media (prefers-reduced-motion: reduce) { .page { transform: none; opacity: 1; } }

/* =================================================================== OG CARD (1200x630) */
.ogcard { background: radial-gradient(60% 80% at 78% 50%, #f3e6c4, var(--paper) 70%); color: var(--ink); font-family: var(--f-body); align-items: center; }
.og__text { position: relative; z-index: 2; padding-left: 70px; width: 680px; }
.og__gu { font: 700 44px/1.3 var(--f-body); color: #a5401a; }
.og__name { font: 400 118px/.98 var(--f-display); letter-spacing: -.01em; }
.og__date { margin-top: 16px; font: 700 40px var(--f-body); }
.og__venue { margin-top: 2px; font-size: 28px; color: var(--ink-2); }
.og__chips { margin-top: 22px; display: flex; gap: 10px; }
.og__chips i { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .15); }
.og__price { margin-top: 18px; font: italic 400 30px var(--f-display); color: var(--ink-2); }
.og__wheel { position: absolute; right: 50px; top: 50%; width: 470px; height: 470px; max-height: none; margin-top: -235px; }
