/* Barson (बरसों): modern and minimal. Paper white, ink black, one vermilion; Archivo for numerals (narrow,
   heavy), Instrument Serif for words that should feel spoken. Lots of air.
   Opening: a flip calendar riffles from the wedding year to now -> the names set. Then: the note -> the
   years as numerals -> time together (tap to change the unit) -> the date + countdown -> details ->
   one-line reply (WhatsApp) -> footer. */

:root {
  --paper: #f5f3ef;
  --paper-2: #ebe8e1;
  --ink: #141414;
  --ink-2: #3d3b38;
  --grey: #85817a;
  --rule: #d6d2c9;
  --red: #d9442b;
  --card: #171717;

  --f-num: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: #141414;
  --fx-music-ring: #d9442b;
  --fx-music-ink: #f5f3ef;
  --fx-bg: #f5f3ef;
}

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-num); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* =================================================================== the flip numerals */
.flip { display: inline-flex; gap: .05em; font: 800 var(--fs, 120px)/1 var(--f-num); font-stretch: 78%; font-variation-settings: "wdth" 78; }
.dg { position: relative; display: block; width: .64em; height: 1.16em; perspective: 4em; }
.dg__top, .dg__bot, .dg__flap { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--card); color: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dg__top, .dg__flap--top { top: 0; border-radius: .07em .07em 0 0; background: linear-gradient(180deg, #232323, var(--card)); }
.dg__bot, .dg__flap--bot { top: 50%; border-radius: 0 0 .07em .07em; }
.dg b { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-weight: inherit; }
.dg__top b, .dg__flap--top b { top: 0; }
.dg__bot b, .dg__flap--bot b { top: -100%; }
.dg__flap--top { transform-origin: 50% 100%; z-index: 2; }
.dg__flap--bot { transform-origin: 50% 0; transform: rotateX(90deg); z-index: 2; }
.dg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(2px, .018em); margin-top: max(-1px, -.009em); background: var(--paper); z-index: 3; }
.dg::before { content: ""; position: absolute; top: 46%; bottom: 46%; left: -.03em; right: -.03em; z-index: 4; background: linear-gradient(90deg, #555 0 .04em, transparent .04em calc(100% - .04em), #555 calc(100% - .04em)); }

/* =================================================================== OPENING */
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.gate__in { width: 100%; max-width: 760px; padding: calc(80px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.gate__to { margin-bottom: 8px; font: italic 400 22px/1.2 var(--f-serif); color: var(--red); }
.gate__label { display: grid; font: 500 13px/1.3 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.gate__label > span { grid-area: 1 / 1; transition: opacity .6s ease, translate .6s var(--ease); }
.gate__now { opacity: 0; translate: 0 8px; color: var(--red); }
.gate.landed .gate__then { opacity: 0; translate: 0 -8px; }
.gate.landed .gate__now { opacity: 1; translate: 0 0; }

.cal { position: relative; margin-top: 30px; padding: 22px 14px 14px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--rule), 0 30px 50px -30px rgba(20, 20, 20, .45); --fs: clamp(76px, 22vw, 150px); }
.cal::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -6px; height: 6px; border-radius: 0 0 8px 8px; background: var(--paper-2); box-shadow: 0 1px 0 var(--rule); z-index: -1; }
.cal__rings { position: absolute; top: -10px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; }
.cal__rings i { width: 8px; height: 22px; border-radius: 4px; background: linear-gradient(90deg, #6f6b64, #e4e0d8 45%, #8a867e); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.cal__face { transform-origin: 50% 0; transition: transform .45s var(--ease); }
.cal__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cal__grab { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: grab; touch-action: none; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.gate.is-flicking .cal__grab { cursor: grabbing; }
.gate.is-flicking .cal__face { transition: none; }
.gate:not([data-phase="idle"]) .cal__grab { pointer-events: none; }
.gate[data-phase="idle"] .cal__face { animation: lift 4.5s ease-in-out 1.6s infinite; }
@keyframes lift { 0%, 76%, 100% { transform: none; } 84% { transform: perspective(900px) rotateX(-14deg); } 92% { transform: perspective(900px) rotateX(-3deg); } }

.gate__count { margin-top: 26px; font: 500 15px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.gate__n { display: inline-block; min-width: 1.4em; font: 800 34px/1 var(--f-num); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; vertical-align: -6px; }
.gate.landed .gate__n { color: var(--red); }
.gate__line { min-height: 2.7em; margin-top: 12px; max-width: 22em; font: italic 400 21px/1.3 var(--f-serif); color: var(--ink-2); transition: opacity .15s; }
.gate[data-phase="open"] .gate__line { display: none; }

.gate__swap { display: grid; margin-top: 4px; width: 100%; }
.gate[data-phase="open"] .gate__swap { margin-top: 26px; }
.gate__hint, .hero { grid-area: 1 / 1; }
.gate__hint { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .4s; }
.gate__deva { font: 400 20px/1.3 var(--f-deva); color: var(--grey); }
.gate__how { font: italic 400 22px/1.3 var(--f-serif); color: var(--ink); }
.gate__go {
  min-height: 48px; margin-top: 14px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 600 14px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase;
}
.gate__go:hover { background: var(--red); }
.gate:not([data-phase="idle"]) .gate__hint { opacity: 0; pointer-events: none; }
.gate[data-phase="open"] .gate__hint { visibility: hidden; }
.hero { display: flex; flex-direction: column; align-items: center; }
.gate:not([data-phase="open"]) .hero { visibility: hidden; }
.hero > * { opacity: 0; translate: 0 18px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.gate[data-phase="open"] .hero > * { opacity: 1; translate: 0 0; }
.gate[data-phase="open"] .hero > :nth-child(2) { transition-delay: .15s; }
.gate[data-phase="open"] .hero > :nth-child(3) { transition-delay: .3s; }
.gate[data-phase="open"] .hero > :nth-child(4) { transition-delay: .8s; }
.hero__hosts { font: 500 13px/1.3 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.hero__names { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.hero__names span { font: 400 clamp(40px, 11.5vw, 72px)/1 var(--f-serif); letter-spacing: -.01em; }
.hero__names i { font: italic 400 clamp(30px, 8vw, 48px)/1.1 var(--f-serif); color: var(--red); }
.hero__hi { margin-top: 10px; font: 400 20px/1.3 var(--f-deva); color: var(--grey); }
.hero__down { margin-top: 22px; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font: 500 12px/1 var(--f-num); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.hero__down::after { content: ""; width: 1px; height: 28px; background: var(--ink); transform-origin: top; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { scale: 1 0; } 50% { scale: 1 1; transform-origin: top; } 51% { transform-origin: bottom; } 100% { scale: 1 0; transform-origin: bottom; } }
.gate__skip {
  position: absolute; z-index: 6; top: calc(12px + env(safe-area-inset-top)); right: 12px; min-height: 44px; min-width: 64px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; background: rgba(245, 243, 239, .8); color: var(--ink); font: 500 12px/1 var(--f-num); letter-spacing: .16em; text-transform: uppercase;
}
.gate:not([data-phase="idle"]) .gate__skip { display: none; }
html:not(.js) :is(.gate__hint, .gate__skip, .cal__grab, .gate__count, .gate__line) { display: none; }
html:not(.js) .hero, html:not(.js) .hero > * { visibility: visible; opacity: 1; translate: 0 0; }

/* =================================================================== SECTIONS */
.sec { padding: 88px 20px; }
.sec > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.idx { padding-top: 12px; border-top: 1px solid var(--ink); font: 500 13px/1.3 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.note { margin-top: 34px; font: 400 clamp(30px, 7.6vw, 52px)/1.16 var(--f-serif); letter-spacing: -.005em; text-wrap: pretty; }
.note__by { margin-top: 22px; font: italic 400 24px/1.3 var(--f-serif); color: var(--ink-2); }

.years { list-style: none; margin: 30px auto 0; padding: 0; }
.yr { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.yr__n {
  font: 900 clamp(68px, 21vw, 150px)/.86 var(--f-num); font-stretch: 70%; font-variation-settings: "wdth" 70; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color 1.2s ease .3s;
}
.yr.in .yr__n { color: var(--ink); }
.yr:last-child .yr__n { -webkit-text-stroke-color: var(--red); }
.yr:last-child.in .yr__n { color: var(--red); }
.yr__cap { font: 400 clamp(24px, 6.2vw, 32px)/1.22 var(--f-serif); text-wrap: pretty; }

.tally { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-top: 24px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.tally__n { font: 900 clamp(72px, 21vw, 190px)/.9 var(--f-num); font-stretch: 72%; font-variation-settings: "wdth" 72; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tally__u { margin-top: 6px; font: italic 400 clamp(28px, 7vw, 44px)/1 var(--f-serif); color: var(--red); }
.tally:hover .tally__u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.tally.tick .tally__n { animation: tick .35s var(--ease); }
@keyframes tick { from { opacity: .2; translate: 0 10px; } }
.tally__hint { margin-top: 16px; font: 400 16px/1.5 var(--f-num); color: var(--grey); }

.big { margin-top: 26px; font: 900 clamp(84px, 25vw, 240px)/.86 var(--f-num); font-stretch: 72%; font-variation-settings: "wdth" 72; letter-spacing: -.03em; white-space: nowrap; }
.big__y { color: var(--red); }
.big__line { margin-top: 18px; font: italic 400 clamp(24px, 6vw, 34px)/1.2 var(--f-serif); }
.date__count { margin-top: 30px; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.count span { display: flex; flex-direction: column; padding: 14px 0 0; font: 500 11px/1.3 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.count b { font: 800 clamp(34px, 9vw, 56px)/1 var(--f-num); color: var(--ink); letter-spacing: -.02em; margin-bottom: 6px; }
.count__done { font: italic 400 28px/1.3 var(--f-serif); color: var(--red); }

.ev { margin-top: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.ev__name { margin: 0; font: 400 clamp(34px, 8.4vw, 52px)/1.05 var(--f-serif); }
.ev__name [lang="hi"] { display: block; margin-top: 6px; font: 400 20px/1.3 var(--f-deva); color: var(--grey); }
.ev__rows { margin: 22px 0 0; display: grid; gap: 14px; }
.ev__rows > div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.ev__rows dt { padding-top: 4px; font: 500 12px/1.4 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.ev__rows dd { margin: 0; font: 400 18px/1.5 var(--f-num); }
.ev__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.lnk { display: inline-flex; align-items: center; min-height: 44px; font: 600 13px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding: 0 2px; }
.lnk:hover { color: var(--red); border-color: var(--red); }
.lnk--solid { border: 0; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.lnk--solid:hover { background: var(--red); color: var(--paper); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.ask { margin: 30px auto 0; font: 400 clamp(46px, 12.4vw, 96px)/.98 var(--f-serif); letter-spacing: -.01em; }
.ask em { color: var(--red); }
.ask__sub { margin-top: 16px; font: 400 18px/1.5 var(--f-num); color: var(--ink-2); }
.lnk--wa { margin-top: 26px; min-height: 54px; padding: 0 30px; font-size: 14px; }
.tag { margin-top: 22px; font: 600 15px/1 var(--f-num); letter-spacing: .08em; color: var(--red); }

.foot { padding: 70px 20px calc(84px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); }
.foot > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.foot__y { font: 900 clamp(56px, 17vw, 140px)/.9 var(--f-num); font-stretch: 72%; font-variation-settings: "wdth" 72; letter-spacing: -.02em; color: var(--red); }
.foot__names { margin-top: 10px; font: 400 36px/1.1 var(--f-serif); }
.foot__hosts { margin-top: 6px; font: italic 400 20px/1.3 var(--f-serif); color: #bdb8ae; }
.foot__music, .foot__credit { margin-top: 10px; font-size: 14px; color: #a39e94; }
.foot__music { margin-top: 30px; }
.foot__up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font: 600 12px/1 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }

@media (min-width: 760px) {
  .sec { padding: 120px 32px; }
  .yr { grid-template-columns: 300px 1fr; align-items: end; gap: 30px; }
  .yr__cap { padding-bottom: 8px; }
}

/* =================================================================== LINK PREVIEW (1200 x 630) */
.ogcard { flex-direction: column; justify-content: center; padding: 0 90px; gap: 40px; background: var(--paper); }
.og__cals { display: flex; align-items: center; gap: 34px; }
.cal--og { margin: 0; --fs: 150px; }
.og__arrow { font: 300 80px/1 var(--f-num); color: var(--grey); }
.cal--now .dg__top, .cal--now .dg__flap, .cal--now .dg__bot { background: var(--red); }
.og__names { font: 400 92px/1 var(--f-serif); }
.og__meta { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font: 500 22px/1.3 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.og__meta span:first-child { color: var(--red); }
