/* Gulal (गुलाल): Holi for society and club parties. A white cloth, ink-violet type (Bricolage Grotesque over
   Baloo 2), and six loud colours that mix where they overlap. Opening: white words on white cloth; thrown gulal
   (canvas) shows them up; at the end a powdered stain composition (.stains, displaced by #powder) settles
   under the words so they always read. Then: bura na mano -> days -> pass counter -> countdown -> tee -> reply. */

:root {
  --cloth: #fffdf8;
  --cloth-2: #f6f1e8;
  --ink: #1d1430;
  --ink-2: #4a3f5e;
  --muted: #7a7088;
  --pink: #e5197a;
  --yellow: #ffc21a;
  --green: #10a35a;
  --blue: #1f6fff;
  --purple: #7a3ff0;
  --orange: #ff5f1f;

  --f-display: "Bricolage Grotesque", "Baloo 2", system-ui, sans-serif;
  --f-body: "Baloo 2", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --weave: repeating-linear-gradient(0deg, rgba(60, 40, 20, .028) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(60, 40, 20, .022) 0 1px, transparent 1px 3px);

  --fx-music-bg: #e5197a;
  --fx-music-ring: #ffc21a;
  --fx-music-ink: #fff;
  --fx-bg: #fffdf8;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body { background: var(--weave), var(--cloth); color: var(--ink); font: 400 18px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
[lang="hi"] { font-family: var(--f-body); }

.kicker { font: 700 13px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.kicker--light { color: #fff; opacity: .9; }
.sec__title { margin: 10px 0 0; font: 800 clamp(36px, 10vw, 72px)/.98 var(--f-display); letter-spacing: -.025em; text-wrap: balance; font-variation-settings: "opsz" 96; }
.sec__title em { font-style: normal; color: var(--pink); }
.sec__dek { margin: 12px auto 0; max-width: 28em; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none;
  font: 700 16px/1.1 var(--f-display); transition: transform .2s var(--ease), box-shadow .2s;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--solid { background: var(--pink); color: #fff; }
.btn--wide { width: 100%; max-width: 380px; }

/* =================================================================== OPENING: the cloth */

.gate {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; background: var(--weave), var(--cloth);
}
html.shut .gate { touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.stain, .dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stain { z-index: 0; }
.dust { z-index: 3; }

.stains { position: absolute; inset: -4% -2%; z-index: -1; pointer-events: none; filter: url(#powder); opacity: 0; transition: opacity 1.1s ease; }
.stains i { position: absolute; border-radius: 50%; }
.stains i:nth-child(1) { left: -8%; top: -10%; width: 70%; height: 46%; background: var(--pink); }
.stains i:nth-child(2) { left: 40%; top: -8%;  width: 66%; height: 44%; background: var(--purple); }
.stains i:nth-child(3) { left: -10%; top: 34%; width: 64%; height: 30%; background: var(--blue); }
.stains i:nth-child(4) { left: 44%; top: 36%; width: 62%; height: 30%; background: var(--green); }
.stains i:nth-child(5) { left: 6%;  top: 60%; width: 88%; height: 42%; background: var(--orange); }
.stains i:nth-child(6) { left: -22%; top: 76%; width: 40%; height: 26%; background: var(--yellow); }
.stains i:nth-child(7) { left: 84%; top: -12%; width: 30%; height: 24%; background: var(--yellow); }
.gate.stained .stains { opacity: .96; }
@media (min-width: 900px) { .stains { inset: -10% 5% -4%; } }

.gate__top { position: relative; z-index: 4; padding: calc(22px + env(safe-area-inset-top)) 20px 0; text-align: center; }
.gate__presents { font: 700 14px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.gate__presents span { color: var(--pink); }
.gate__to { margin-top: 6px; font: 600 18px/1.2 var(--f-body); color: var(--purple); }

/* the white words: embossed on the cloth until colour lands under them */
.words {
  position: relative; z-index: 2; flex: 0 1 auto; margin-block: auto !important; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 20px; text-align: center; color: #fff; max-width: 900px; width: 100%; margin: 0 auto; isolation: isolate;
  text-shadow: 1px 1px 0 rgba(120, 100, 80, .12), -1px -1px 0 rgba(255, 255, 255, .9);
  transition: text-shadow 1s;
}
.gate.stained .words { text-shadow: 0 2px 16px rgba(29, 20, 48, .35), 0 1px 2px rgba(29, 20, 48, .25); }
.words__greet { font: 800 clamp(18px, 5vw, 26px)/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.words__deva { font: 800 clamp(84px, 30vw, 190px)/1.02 var(--f-body); margin-top: .14em; }
.words__title { margin: 6px 0 0; font: 800 clamp(34px, 10.4vw, 78px)/.98 var(--f-display); letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "opsz" 96; }
.words__when { margin-top: 16px; font: 700 clamp(18px, 4.8vw, 24px)/1.25 var(--f-display); }
.words__where { margin-top: 4px; font: 600 17px/1.35 var(--f-body); max-width: 26em; }
.words__price { margin-top: 12px; padding: 6px 16px; border: 2px solid currentColor; border-radius: 999px; font: 800 15px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }

.gate__foot { position: relative; z-index: 4; padding: 0 12px calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.gate__prompt { font: 600 16px/1.3 var(--f-body); color: var(--ink-2); margin-bottom: 8px; transition: opacity .4s; }
.gate__prompt span { display: block; font: 800 26px/1.15 var(--f-body); color: var(--pink); }
.thali {
  position: relative; display: inline-flex; gap: 2px; padding: 8px 18px 14px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #f7dc8a, #d6a640 55%, #a87a1e 75%, #7a5612);
  box-shadow: inset 0 -6px 10px rgba(80, 50, 10, .35), 0 10px 20px -8px rgba(80, 50, 10, .5);
  transition: opacity .5s, translate .6s var(--ease);
}
.heap {
  width: clamp(52px, 15vw, 70px); height: 50px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease);
}
.heap:active { transform: scale(.9); }
.heap.is-picked { transform: translateY(-4px); }
.heap__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gate__down {
  display: none; margin: 4px auto 0; min-height: 44px; align-items: center; gap: 8px;
  font: 800 14px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px -6px rgba(29, 20, 48, .4);
}
.gate__down::after { content: "↓"; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 4px; } }
.gate[data-phase="open"] :is(.gate__prompt, .thali) { display: none; }
.gate[data-phase="open"] .gate__down { display: inline-flex; }
.gate[data-phase="finale"] :is(.gate__prompt, .thali) { opacity: 0; }

.gate__skip {
  position: absolute; right: 12px; top: calc(14px + env(safe-area-inset-top)); z-index: 5; min-height: 36px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 700 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.gate__skip::before { content: ""; position: absolute; inset: -6px; }
.gate:not([data-phase="idle"]) .gate__skip { display: none; }
@media (max-width: 420px) { .gate__top { padding-right: 84px; padding-left: 84px; } }
@media (max-width: 560px) { .gate__foot { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }
html:not(.js) .stains { opacity: .96; }
html:not(.js) :is(.gate__skip, .gate__prompt, .thali) { display: none; }

/* =================================================================== SECTIONS */

.sec { position: relative; padding: clamp(80px, 15vw, 132px) 16px; text-align: center; overflow: hidden; }
.sec__head { max-width: 640px; margin: 0 auto clamp(32px, 7vw, 52px); position: relative; }
.splash { position: absolute; border-radius: 50%; filter: url(#powder); pointer-events: none; mix-blend-mode: multiply; opacity: .9; }
.splash--a { width: 220px; height: 160px; right: -60px; top: 30px; background: var(--yellow); }
.splash--b { width: 180px; height: 140px; left: -70px; bottom: 30px; background: var(--green); }
.splash--c { width: 260px; height: 180px; left: 50%; top: 40px; margin-left: -130px; background: var(--yellow); opacity: .55; }

/* --- bura na mano --- */
.note { position: relative; max-width: 640px; margin: 0 auto; }
.note__deva { font: 800 clamp(28px, 8vw, 46px)/1.15 var(--f-body); color: var(--purple); }
.note__msg { margin-top: 20px; font-size: 20px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.note__sign { margin-top: 22px; font: 800 15px/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }

/* --- the days --- */
.sec--days { background: var(--cloth-2); }
.days { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.day {
  display: grid; grid-template-columns: 76px 1fr; text-align: left; border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 6px 6px 0 var(--ink);
}
.day__stripe { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--c); color: #fff; border-right: 2.5px solid var(--ink); padding: 14px 4px; }
.day__stripe span { font: 800 40px/1 var(--f-display); }
.day__stripe small { font: 800 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.day__body { padding: 18px 16px 20px; min-width: 0; }
.day__hi { font: 700 20px/1.2 var(--f-body); color: var(--c); }
.day__name { margin: 0 0 12px; font: 800 clamp(26px, 7vw, 34px)/1.05 var(--f-display); letter-spacing: -.02em; }
.day__rows { margin: 0; display: grid; gap: 8px; }
.day__rows dt { font: 800 11px/1.3 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.day__rows dd { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.day__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.day__links .btn { min-height: 44px; padding: 8px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }

/* --- passes --- */
.passes { list-style: none; margin: 0 auto; padding: 0; max-width: 620px; display: grid; gap: 14px; }
.pass {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; text-align: left; overflow: hidden;
  border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; transition: box-shadow .25s, transform .25s var(--ease);
}
.pass.has { box-shadow: 5px 5px 0 var(--c); transform: translate(-2px, -2px); }
.pass__stub {
  align-self: stretch; display: grid; place-items: center; background: var(--c); border-right: 2.5px dashed var(--ink);
}
.pass__stub span { writing-mode: vertical-rl; rotate: 180deg; font: 800 12px/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.pass__info { padding: 14px 12px; min-width: 0; }
.pass__name { font: 800 19px/1.2 var(--f-display); }
.pass__note { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.pass__price { margin-top: 4px; font: 800 22px/1 var(--f-display); color: var(--c); filter: brightness(.85); }
.qty { display: flex; align-items: center; gap: 2px; padding-right: 8px; }
.qty__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer;
  font: 700 22px/1 var(--f-display); display: grid; place-items: center; padding: 0;
}
.qty__btn:active { background: var(--c); color: #fff; }
.qty__n { min-width: 26px; text-align: center; font: 800 20px/1 var(--f-display); }
.basket { max-width: 620px; margin: 28px auto 0; display: grid; justify-items: center; gap: 14px; }
.basket__total { font: 800 28px/1 var(--f-display); }
.basket__total span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.basket__note { font-size: 15px; color: var(--muted); }

/* --- countdown --- */
.sec--count { background: var(--pink); color: #fff; }
.sec--count::before, .sec--count::after { content: ""; position: absolute; border-radius: 50%; filter: url(#powder); mix-blend-mode: multiply; pointer-events: none; }
.sec--count::before { width: 280px; height: 200px; left: -90px; top: -60px; background: var(--yellow); }
.sec--count::after { width: 300px; height: 200px; right: -100px; bottom: -70px; background: var(--purple); }
.sec--count .sec__title { color: #fff; position: relative; }
.count { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(8px, 3vw, 20px); margin-top: 30px; }
.count span { display: grid; gap: 4px; justify-items: center; width: clamp(70px, 20vw, 120px); padding: 14px 4px; border-radius: 16px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.count b { font: 800 clamp(34px, 10vw, 58px)/1 var(--f-display); color: var(--pink); letter-spacing: -.02em; }
.count__done { margin-top: 20px; font: 800 28px/1.2 var(--f-display); }
.count__when { position: relative; margin-top: 24px; font-weight: 600; }

/* --- the tee --- */
.bring { max-width: 640px; margin: 0 auto; }
.tee { display: block; width: min(300px, 80vw); margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tee:active { transform: scale(.98); }
.tee__svg { display: block; width: 100%; height: auto; overflow: visible; }
.tee__hint { margin-top: 6px; font: 600 16px/1.3 var(--f-body); color: var(--muted); }
.bring__text { margin-top: 26px; font: 700 clamp(22px, 6vw, 30px)/1.3 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.bring__text span { display: block; margin-bottom: 6px; font: 800 12px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.bring__dress { margin-top: 16px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bring__dress em { font-style: normal; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 2.5px solid var(--ink); }

/* --- reply --- */
.sec--reply { background: var(--cloth-2); }
.reply { position: relative; max-width: 600px; margin: 0 auto; }
.reply__ask { margin-top: 14px; color: var(--ink-2); }
.reply__btns { display: grid; justify-items: center; gap: 16px; margin-top: 28px; }
.reply__tag { margin-top: 28px; font: 800 26px/1 var(--f-display); color: var(--purple); }

/* --- footer --- */
.foot { padding: 52px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; background: var(--ink); color: #d9d2e6; font-size: 15px; }
.foot__title { font: 800 28px/1.1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.foot__date { margin-top: 6px; }
.foot__cal { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.foot__cal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); }
.foot__music, .foot__credit { margin-top: 8px; font-size: 14px; }
.up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: #fff; font: 700 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }

/* =================================================================== OG CARD */

.ogcard { align-items: center; justify-content: center; background: var(--weave), var(--cloth); }
.og__stains { position: absolute; inset: 0; filter: url(#ogpowder); }
.og__stains i { position: absolute; border-radius: 50%; }
.og__stains i:nth-child(1) { left: 6%; top: 8%; width: 52%; height: 50%; background: var(--pink); }
.og__stains i:nth-child(2) { left: 42%; top: 12%; width: 54%; height: 46%; background: var(--purple); }
.og__stains i:nth-child(3) { left: 8%; top: 46%; width: 48%; height: 40%; background: var(--blue); }
.og__stains i:nth-child(4) { left: 46%; top: 50%; width: 48%; height: 40%; background: var(--green); }
.og__stains i:nth-child(5) { left: 26%; top: 34%; width: 48%; height: 30%; background: var(--orange); }
.og__stains i:nth-child(6) { left: -6%; top: -8%; width: 22%; height: 34%; background: var(--yellow); }
.og__stains i:nth-child(7) { left: 84%; top: 70%; width: 22%; height: 40%; background: var(--yellow); }
.og__words { position: relative; text-align: center; color: #fff; text-shadow: 0 3px 18px rgba(29, 20, 48, .4); padding: 0 60px; }
.og__greet { font: 800 30px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.og__greet span { font-family: var(--f-body); letter-spacing: 0; }
.og__title { margin-top: 14px; font: 800 92px/.98 var(--f-display); letter-spacing: -.03em; }
.og__date { margin-top: 22px; font: 800 36px/1.1 var(--f-display); }
.og__venue { margin-top: 8px; font: 700 28px/1.2 var(--f-body); }

/* the date and venue sit on the splash, never on bare paper: narrower, with a soft shadow for contrast */
.words__when, .words__where { max-width: 290px; margin-inline: auto; text-shadow: 0 1px 2px rgba(40, 10, 0, .45), 0 0 14px rgba(40, 10, 0, .3); }
.nw { white-space: nowrap; }
