/* Jandhyam: a Telugu upanayanam in the flat colour and ink line of a Cheriyal scroll.
   Gate (Cheriyal red; drag the yagnopaveetham across the vatu's chest, turmeric and kumkum dots bloom, the
   knot is tied, the curtain lifts) -> the patrika (turmeric, mango-leaf thoranam) -> the invitation and
   the three moments of the day -> the muhurtam lamp and countdown -> the programme strung on one thread ->
   the family -> shower akshintalu and reply -> footer. */

:root {
  --turmeric: #f2b705;
  --turmeric-hi: #ffd75a;
  --turmeric-deep: #d99000;
  --leaf: #2d6a2f;
  --leaf-deep: #1b4a1e;
  --kumkum: #c4161c;
  --kumkum-deep: #7e0d10;
  --cheriyal: #b3221a;
  --cream: #fff7e1;
  --cream-2: #fbedc4;
  --ink: #2a1408;
  --ink-soft: #5e3d22;
  --gold: #c9922c;

  --f-display: "Rozha One", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "Yantramanav", system-ui, sans-serif;
  --f-te: "Noto Serif Telugu", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --col: min(100% - 32px, 560px);

  --fx-bg: var(--cream);
  --fx-music-bg: var(--kumkum-deep);
  --fx-music-ring: var(--turmeric);
  --fx-music-ink: #ffe9a6;

  /* little white flowers on Cheriyal red, as on the scroll grounds */
  --flowers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='%23fff3d6' opacity='.16'%3E%3Ccircle cx='15' cy='15' r='2.4'/%3E%3Ccircle cx='15' cy='9.6' r='2.2'/%3E%3Ccircle cx='15' cy='20.4' r='2.2'/%3E%3Ccircle cx='9.6' cy='15' r='2.2'/%3E%3Ccircle cx='20.4' cy='15' r='2.2'/%3E%3Ccircle cx='45' cy='45' r='1.6'/%3E%3Ccircle cx='45' cy='41' r='1.5'/%3E%3Ccircle cx='45' cy='49' r='1.5'/%3E%3Ccircle cx='41' cy='45' r='1.5'/%3E%3Ccircle cx='49' cy='45' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  /* a Cheriyal border: red, a turmeric wave, ink rules */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Crect width='24' height='12' fill='%23b3221a'/%3E%3Cpath d='M0 6Q6 0 12 6T24 6' fill='none' stroke='%23f2b705' stroke-width='2.2'/%3E%3Ccircle cx='6' cy='8' r='1.3' fill='%23fff7e1'/%3E%3Ccircle cx='18' cy='4' r='1.3' fill='%23fff7e1'/%3E%3Cpath d='M0 .6H24M0 11.4H24' stroke='%232a1408' stroke-width='1.2'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 var(--f-body);
}
a { color: inherit; }
[lang="te"] { font-family: var(--f-te); }

/* =================================================================== THORANAM */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.thoranam { display: block; width: 100%; height: 84px; overflow: visible; pointer-events: none; }
.thoranam__leaf { animation: leafSway 5.5s ease-in-out calc(var(--i) * -.8s) infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes leafSway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }

/* =================================================================== GATE */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: var(--flowers) 0 0 / 60px 60px, radial-gradient(90% 60% at 50% 55%, #cc3322, var(--cheriyal) 55%, #7c120d);
  color: var(--cream);
  overflow: hidden;
  transition: transform 1.2s cubic-bezier(.7, 0, .25, 1), opacity .6s ease .9s;
}
html:not(.shut) .gate:not(.leaving) { display: none; }
.gate.leaving { transform: translateY(-104%); opacity: 0; pointer-events: none; }
.gate::after {   /* the scroll's ink-ruled border at the foot */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--wave) 0 0 / 24px 12px repeat-x;
}
.gate .thoranam { flex: none; margin-top: env(safe-area-inset-top); }
.gate__head { flex: none; text-align: center; padding: 0 16px; margin-top: -6px; }
.gate__to { font: 500 13px/1.4 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--turmeric-hi); margin-bottom: 4px; }
.gate__local { font-size: clamp(30px, 9vw, 44px); line-height: 1.5; color: var(--turmeric); text-shadow: 0 2px 0 var(--kumkum-deep); }
.gate__title { font: 500 15px/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 247, 225, .9); }

.gate__stage {
  position: relative; flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center; padding: 22px 26px 12px;
}
.gate__frame {      /* a panel of the scroll: the vatu cropped at the neck and the waist */
  position: relative; height: 100%; max-height: 520px; max-width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 4px;
  background: var(--flowers) 0 0 / 46px 46px, radial-gradient(80% 70% at 50% 45%, #ffe58f, var(--turmeric) 60%, var(--turmeric-deep));
  box-shadow: 0 0 0 7px var(--turmeric), 0 0 0 10px var(--ink), 0 26px 40px -10px rgba(60, 5, 0, .6);
}
.gate__frame .vatu { display: block; width: 100%; height: 100%; }
.gate__tie {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.gate__tie:active { cursor: grabbing; }
.gate__tie:focus-visible { outline: 3px dashed var(--turmeric); outline-offset: -12px; border-radius: 24px; }

.gate__hint {
  flex: none; min-height: 56px; display: grid; place-items: center; text-align: center;
  padding: 8px 24px 14px; font: italic 400 18px/1.4 var(--f-body); color: var(--cream);
}
.gate__hint > span { grid-area: 1 / 1; transition: opacity .4s; }
.gate__hint-busy, .gate__hint-done { opacity: 0; }
.gate[data-phase="tying"] .gate__hint-idle, .gate[data-phase="tied"] .gate__hint-idle { opacity: 0; }
.gate[data-phase="tying"] .gate__hint-busy { opacity: 1; }
.gate[data-phase="tied"] .gate__hint-done { opacity: 1; font: 700 30px/1.4 var(--f-te); font-style: normal; color: var(--turmeric); }

.gate__skip {
  position: absolute; right: 14px; top: max(92px, calc(env(safe-area-inset-top) + 92px)); z-index: 3;
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 12px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream); background: rgba(60, 6, 2, .35); border: 1px solid rgba(255, 240, 200, .35);
}
.gate__skip:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 3px; }

/* the live thread: JS draws it on with the dash; the coil waits at the shoulder */
.gate .thread__smears ellipse { animation: smear .5s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes smear { from { scale: 0; opacity: 0; } }
.gate .dot { transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.8, .5, 1); }
.gate .dot.on { transform: none; }
.gate .thread__knot { opacity: 0; transform: scale(.2); transition: opacity .3s, transform .6s cubic-bezier(.3, 1.8, .5, 1); }
.gate[data-phase="tied"] .thread__knot { opacity: 1; transform: none; }
.thread__coil { transition: opacity .4s; }
.gate .thread__twist { opacity: 0; transition: opacity .8s; }
.gate[data-phase="tied"] .thread__twist { opacity: 1; }
.gate:not([data-phase="idle"]) .thread__coil { opacity: 0; }
.thread__ring { transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { scale: .5; opacity: .9; } to { scale: 1.5; opacity: 0; } }
.gate:not([data-phase="idle"]) .thread__ring { display: none; }
.gate[data-phase="tied"] .thread__tip { opacity: 0; transition: opacity .3s; }
.gate[data-phase="tied"] .gate__frame { animation: glow 1.6s ease-out; }
@keyframes glow { 40% { box-shadow: 0 0 0 7px var(--turmeric), 0 0 0 10px var(--ink), 0 0 60px 20px rgba(255, 210, 90, .8); } }

/* =================================================================== HERO: the patrika */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  padding-bottom: 28px;
  background:
    radial-gradient(70% 50% at 50% 45%, rgba(255, 240, 180, .65), transparent 70%),
    linear-gradient(180deg, var(--turmeric) 0%, #f5c32c 60%, var(--turmeric-deep) 100%);
}
.hero .thoranam { position: relative; z-index: 1; }
.hero__card {
  position: relative; width: var(--col); margin: 8px auto 0; padding: 34px clamp(18px, 6vw, 40px) 34px;
  text-align: center; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 0 0 0 7px var(--cheriyal), 0 0 0 10px var(--ink), 0 26px 50px -18px rgba(90, 40, 0, .6);
}
.hero__card::before, .hero__card::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 12px; background: var(--wave) 0 0 / 24px 12px repeat-x;
}
.hero__card::before { top: 10px; }
.hero__card::after { bottom: 10px; }
.hero__bless { font-size: 15px; color: var(--kumkum); margin-top: 6px; }
.hero__bless i { font-style: normal; color: var(--gold); }
.hero__local { margin-top: 10px; font-size: clamp(40px, 12vw, 58px); font-weight: 700; line-height: 1.45; color: var(--kumkum); }
.hero__cer { font: 400 clamp(26px, 7vw, 34px)/1.2 var(--f-display); color: var(--leaf-deep); }
.hero__line { margin-top: 4px; font: 500 13px/1.4 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.hero__thread {
  display: block; width: 74%; height: 18px; margin: 16px auto 10px;
  background:
    radial-gradient(circle, var(--kumkum) 0 3px, transparent 3.6px) 50% 50% / 18px 18px no-repeat,
    radial-gradient(circle, var(--turmeric) 0 6px, transparent 6.6px) 50% 50% / 18px 18px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 100% 1.5px no-repeat;
}
.hero__of { font: italic 400 18px/1.3 var(--f-body); color: var(--ink-soft); }
.hero__name { margin: 4px 0 14px; font: 400 clamp(32px, 9vw, 46px)/1.12 var(--f-display); color: var(--kumkum); overflow-wrap: anywhere; }
.hero__when { font: 600 17px/1.5 var(--f-body); }
.hero__when span {
  display: block; width: fit-content; margin: 10px auto 0; padding: 6px 16px; border-radius: 999px;
  background: var(--leaf); color: var(--cream); font: 500 14px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
}
.hero__venue { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.hero__down {
  margin-top: auto; padding-top: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 44px; font: 500 12px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.hero__down::after { content: ""; width: 12px; height: 12px; border-right: 2px solid; border-bottom: 2px solid; rotate: 45deg; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 5px; } }

/* =================================================================== SECTIONS */
.sec { position: relative; padding: 72px 0; }
.sec > * { width: var(--col); margin-left: auto; margin-right: auto; }
.kicker { font: 500 13px/1.4 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--kumkum); text-align: center; }
.sec__title { margin: 6px auto 26px; font: 400 clamp(32px, 9vw, 44px)/1.15 var(--f-display); text-align: center; color: var(--leaf-deep); }

/* ---------- the invitation ---------- */
.sec--invite { background: var(--cream); }
.letter { text-align: center; }
.letter__msg { font: italic 400 21px/1.55 var(--f-body); }
.letter__from { margin-top: 22px; font-size: 17px; color: var(--ink-soft); }
.letter__from strong, .letter__elders strong { display: block; font: 600 19px/1.45 var(--f-body); color: var(--ink); }
.letter__elders { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.steps { list-style: none; padding: 0; margin-top: 44px; display: grid; gap: 14px; counter-reset: s; }
.steps li {
  position: relative; padding: 16px 18px 16px 64px; border: 2px solid var(--ink); border-radius: 6px; background: #fffaf0;
  font-size: 17px; line-height: 1.5; counter-increment: s;
}
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--turmeric); border: 2px solid var(--ink); font: 400 18px/1 var(--f-display);
}
.steps b { display: block; font: 400 21px/1.3 var(--f-display); color: var(--kumkum); }

/* ---------- muhurtam ---------- */
.sec--muhurtam {
  background: var(--flowers) 0 0 / 60px 60px, radial-gradient(80% 60% at 50% 30%, #cc3322, var(--cheriyal) 60%, #7c120d);
  color: var(--cream); text-align: center;
}
.sec--muhurtam::before, .sec--muhurtam::after {
  content: ""; position: absolute; left: 0; right: 0; width: auto; height: 12px; background: var(--wave) 0 0 / 24px 12px repeat-x;
}
.sec--muhurtam::before { top: 0; }
.sec--muhurtam::after { bottom: 0; }
.sec--muhurtam .kicker { color: var(--turmeric-hi); }
.deepam { display: block; width: 64px; height: 78px; margin: 0 auto 12px; overflow: visible; }
.deepam__flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px #ffc23a); }
@keyframes flicker { 30% { scale: .94 1.06; } 60% { scale: 1.04 .95; rotate: 2deg; } 100% { scale: .97 1.04; rotate: -2deg; } }
.muh__day { margin-top: 10px; font: 500 15px/1.4 var(--f-label); letter-spacing: .2em; text-transform: uppercase; }
.muh__date { font: 400 22px/1.2 var(--f-display); }
.muh__date span { display: block; font-size: clamp(88px, 28vw, 120px); line-height: 1; color: var(--turmeric); text-shadow: 0 4px 0 var(--kumkum-deep); }
.muh__time {
  display: inline-block; margin-top: 14px; padding: 8px 22px; border: 2px solid var(--turmeric); border-radius: 999px;
  font: 400 26px/1.2 var(--f-display); color: var(--turmeric-hi);
}
.muh__note { margin-top: 12px; font-style: italic; color: rgba(255, 247, 225, .88); }
.muh__count { margin-top: 44px; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.count span {
  padding: 14px 4px 10px; border-radius: 6px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--kumkum-deep); font: 500 12px/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase;
}
.count b { font: 400 clamp(28px, 8vw, 38px)/1.1 var(--f-display); color: var(--kumkum); letter-spacing: 0; margin-bottom: 4px; }
.count__done { margin-top: 14px; font: 400 24px/1.3 var(--f-display); color: var(--turmeric); }

/* ---------- the programme, on one thread ---------- */
.sec--events { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.string { list-style: none; padding: 0 0 0 30px; margin-top: 0; position: relative; }
.string::before {     /* the thread itself: white cotton, a turmeric smear every so often */
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 5px; border-radius: 3px;
  background:
    radial-gradient(ellipse 4px 7px, var(--turmeric) 0 70%, transparent 100%) 50% 0 / 5px 64px repeat-y,
    repeating-linear-gradient(180deg, #fffdf6 0 3px, #e3d6b6 3px 5px);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.ev { position: relative; padding: 0 0 28px; }
.ev__knot {
  position: absolute; left: -27px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--kumkum) 0 3px, var(--turmeric) 3.5px); border: 2px solid var(--ink);
}
.ev--main .ev__knot { width: 24px; height: 24px; left: -30px; box-shadow: 0 0 0 4px rgba(242, 183, 5, .4); }
.ev__date {
  position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 -2px 12px; padding: 6px 14px 4px;
  background: var(--leaf); color: var(--cream); border: 2px solid var(--ink); border-radius: 6px 6px 0 0;
  font: 500 13px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
}
.ev__date b { font: 400 24px/1 var(--f-display); letter-spacing: 0; color: var(--turmeric-hi); }
.ev__date i { font-style: normal; opacity: .8; }
.ev--main .ev__date { background: var(--kumkum); }
.ev__body { padding: 14px 16px 16px; background: #fffaf0; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 rgba(42, 20, 8, .15); }
.ev--main .ev__body { box-shadow: 0 0 0 4px var(--turmeric), 0 6px 0 4px rgba(42, 20, 8, .15); }
.ev__name { margin: 0; font: 400 24px/1.2 var(--f-display); color: var(--kumkum); }
.ev__when { margin-top: 4px; font-weight: 600; font-size: 16px; }
.ev__where, .ev__dress { margin-top: 4px; font-size: 16px; color: var(--ink-soft); }
.ev__note { margin-top: 6px; font-style: italic; font-size: 17px; color: var(--leaf-deep); }
.ev__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--cream); color: var(--ink); text-decoration: none;
  font: 500 14px/1 var(--f-label); letter-spacing: .04em;
}
.pill--solid { background: var(--leaf); color: var(--cream); }
.pill:focus-visible, .reply:focus-visible, .up:focus-visible, .hero__down:focus-visible, .plate:focus-visible { outline: 3px solid var(--kumkum); outline-offset: 3px; }
.venue { margin-top: 20px; text-align: center; padding: 26px 18px; border: 2px dashed var(--leaf); border-radius: 8px; }
.venue__name { margin-top: 6px; font: 400 26px/1.2 var(--f-display); color: var(--leaf-deep); }
.venue__addr { margin: 4px 0 16px; color: var(--ink-soft); }

/* ---------- family ---------- */
.sec--family { background: var(--leaf); color: var(--cream); }
.sec--family::before { content: ""; position: absolute; left: 0; right: 0; top: 0; width: auto; height: 12px; background: var(--wave) 0 0 / 24px 12px repeat-x; }
.sec--family .kicker { color: var(--turmeric-hi); }
.sec--family .sec__title { color: var(--cream); }
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fam__card {
  grid-column: 1 / -1; padding: 20px 16px; text-align: center; border-radius: 6px;
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--leaf-deep);
}
.fam__card--small { grid-column: auto; }
.fam__card--small:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fam__role { font: 500 12px/1.4 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--kumkum); }
.fam__names { margin-top: 4px; font: 600 20px/1.4 var(--f-body); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 6px; }

/* ---------- closing: akshintalu ---------- */
.sec--bless {
  text-align: center; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, #ffe48a, var(--turmeric) 70%, var(--turmeric-deep));
}
.sec--bless .sec__title { color: var(--kumkum-deep); }
.bless__ask { margin-top: -10px; font-style: italic; }
.plate {
  position: relative; display: block; width: min(76%, 280px); margin: 22px auto 10px; padding: 8px; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease);
}
.plate:active { transform: scale(.96) rotate(-2deg); }
.plate svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(110, 60, 0, .35)); }
.plate__count { display: block; min-height: 24px; font: 500 13px/1.6 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--kumkum-deep); }
.bless__done { font: 400 22px/1.35 var(--f-display); color: var(--kumkum-deep); margin-bottom: 16px; }
.sec > .reply { width: fit-content; }
.reply {
  display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 0 26px; border-radius: 999px;
  background: var(--kumkum); color: var(--cream); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  font: 500 16px/1 var(--f-label); letter-spacing: .06em; text-decoration: none;
}
.reply:active { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.reply__who { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }
.tag { margin-top: 16px; font: 400 22px/1.3 var(--f-display); color: var(--leaf-deep); }
.rice {   /* a grain of akshintalu, thrown by script.js */
  position: fixed; z-index: 80; width: 7px; height: 3.4px; margin: -2px 0 0 -3px; border-radius: 50%;
  background: #f5cc3a; box-shadow: inset -1px -1px 0 rgba(160, 90, 0, .4); pointer-events: none;
}
.rice--k { background: var(--kumkum); width: 4px; height: 4px; }

/* =================================================================== FOOTER */
.foot { text-align: center; padding: 0 16px max(90px, calc(env(safe-area-inset-bottom) + 90px)); background: var(--leaf-deep); color: var(--cream); }
.foot .thoranam { margin: 0 -16px 18px; width: calc(100% + 32px); }
.foot__local { font-size: 28px; font-weight: 700; color: var(--turmeric); line-height: 1.5; }
.foot__name { font: 400 34px/1.2 var(--f-display); }
.foot__date { margin-top: 4px; font: 500 14px/1.4 var(--f-label); letter-spacing: .3em; }
.foot__cal { margin-top: 14px; font-size: 16px; }
.foot__cal a { display: inline-block; padding: 10px 2px; }
.foot__music, .foot__credit { margin-top: 10px; font-size: 14px; color: rgba(255, 247, 225, .75); }
.up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font: 500 12px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; }

/* =================================================================== DESKTOP */
@media (min-width: 900px) {
  body { font-size: 19px; }
  .gate__stage .vatu { max-height: 560px; }
  .hero__card { margin-top: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); width: min(100% - 64px, 960px); }
  .steps li { padding: 64px 18px 18px; }
  .steps li::before { top: 16px; left: 18px; }
}

/* =================================================================== LINK PREVIEW (1200 x 630) */
.ogcard {
  background: var(--flowers) 0 0 / 60px 60px, radial-gradient(80% 90% at 30% 60%, #cc3322, var(--cheriyal) 60%, #7c120d);
  color: var(--cream);
}
.ogcard .thoranam { position: absolute; left: 0; top: 0; width: 100%; height: 100px; }
.og__art {
  position: absolute; left: 52px; top: 118px; bottom: 48px; width: 360px; overflow: hidden;
  border: 4px solid var(--ink); border-radius: 6px;
  background: var(--flowers) 0 0 / 46px 46px, radial-gradient(80% 70% at 50% 45%, #ffe58f, var(--turmeric) 60%, var(--turmeric-deep));
  box-shadow: 0 0 0 8px var(--turmeric), 0 0 0 12px var(--ink);
}
.og__art .vatu { display: block; width: 100%; height: 100%; }
.og__text {
  position: absolute; right: 52px; top: 118px; bottom: 48px; width: 680px; padding: 28px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 10px var(--turmeric), 0 0 0 14px var(--ink);
}
.og__bless { font-size: 20px; color: var(--kumkum); }
.og__local { font-size: 64px; font-weight: 700; line-height: 1.35; color: var(--kumkum); }
.og__cer { font: 400 34px/1.2 var(--f-display); color: var(--leaf-deep); }
.og__name { margin-top: 2px; font: 400 76px/1.1 var(--f-display); color: var(--kumkum); }
.og__date { margin-top: 10px; font: 600 26px/1.3 var(--f-body); }
.og__venue { margin-top: 4px; font-size: 21px; color: var(--ink-soft); }

/* a tap away from the thread: the hint and the coil shake once */
.gate.nudge .gate__hint-idle { animation: nudge .5s ease; }
.gate.nudge .thread__ring { animation: ring .6s ease-out 3; }
@keyframes nudge { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

/* keep the hint clear of the fixed music button (48px, bottom-right) */
.gate__hint { padding-inline: 64px; }
