/* Haan: a modern, minimal "we're engaged / save the date", set like a clean editorial page.
   Gate (a fresh polaroid: shake the phone or rub the photo and it develops from murk to colour; the headline
   lands) -> the news -> a full-bleed photograph -> a month calendar (tap the date to circle and save it) ->
   the plan (events) -> the people -> a two-button reply. Paper, ink, cobalt and blush;
   Instrument Serif / Instrument Sans / Caveat / Tiro Devanagari Hindi. */

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --ink: #151515;
  --ink-2: #4a4741;
  --muted: #77726a;
  --rule: #d6cfc0;
  --cobalt: #2f48d8;
  --cobalt-deep: #1f32a8;
  --blush: #f2c9c2;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-marker: "Caveat", "Bradley Hand", cursive;
  --f-deva: "Tiro Devanagari Hindi", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: #151515;
  --fx-music-ring: #2f48d8;
  --fx-music-ink: #f3efe6;
  --fx-bg: #f3efe6;
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
[lang="hi"] { font-family: var(--f-deva); }

.label {
  display: flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--cobalt);
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* =================================================================== GATE */

.gate {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.mast {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%; max-width: 1100px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  font: 600 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
}
.mast [lang="hi"] { font: 400 20px/1 var(--f-deva); letter-spacing: 0; }

.gate__head { display: grid; align-self: end; width: 100%; max-width: 900px; margin-top: 18px; text-align: center; }
.gate__head > * { grid-area: 1 / 1; }
.gate__before { align-self: end; transition: opacity .5s ease, translate .7s var(--ease); }
.gate__to { margin-bottom: 8px; font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--cobalt); }
.gate__lead { font: 400 clamp(30px, 8.6vw, 48px)/1.08 var(--f-display); }
.gate__lead em { display: block; color: var(--muted); }
.gate:not([data-phase="idle"]) .gate__before { opacity: 0; translate: 0 -10px; }

.headline { font: 400 clamp(50px, 14.5vw, 120px)/.92 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.headline__names, .headline__said { display: block; }
.headline i { font-style: italic; color: var(--cobalt); }
.headline__said { font-style: italic; }
.headline > * { opacity: 0; translate: 0 .4em; transition: opacity .8s var(--ease), translate 1s var(--ease); }
.gate[data-phase="open"] .headline > * { opacity: 1; translate: 0 0; }
.gate[data-phase="open"] .headline__said { transition-delay: .25s; }
.gate__sub { grid-row: 2; margin-top: 12px; font: 500 15px/1.4 var(--f-body); color: var(--ink-2); opacity: 0; transition: opacity .8s ease .5s; }
.gate__sub b { font-weight: 600; color: var(--ink); }
.gate[data-phase="open"] .gate__sub { opacity: 1; }
.gate.instant :is(.headline > *, .gate__sub) { transition: none; }

/* ---------- the polaroid ---------- */
.snap { --dev: 0; position: relative; margin-top: 24px; }
.gate[data-phase="open"] .snap { margin-top: 18px; }
.polaroid {
  position: relative; width: min(66vw, 38svh, 330px); margin: 0; padding: 5.5% 5.5% 0; background: #fdfcf8;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 22px 40px -18px rgba(40, 30, 10, .45);
  rotate: -3deg; transition: rotate .8s var(--ease), width .9s var(--ease);
}
.gate[data-phase="open"] .polaroid { rotate: 2deg; width: min(54vw, 30svh, 280px); }
.snap.shaking .polaroid { animation: jiggle .28s ease-in-out infinite; }
@keyframes jiggle { 25% { transform: translate(-3px, 1px) rotate(-1.5deg); } 75% { transform: translate(3px, -1px) rotate(1.5deg); } }
.polaroid__pic { position: relative; aspect-ratio: 1; overflow: hidden; background: #2b2620; }
.polaroid__pic > .art, .polaroid__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(calc(.25 + .75 * var(--dev))) contrast(calc(.55 + .45 * var(--dev))) saturate(var(--dev)) sepia(calc(1 - var(--dev))) blur(calc((1 - var(--dev)) * 5px));
}
.polaroid__murk {
  position: absolute; inset: 0; opacity: calc(1 - var(--dev) * 1.15);
  background: radial-gradient(80% 70% at 40% 40%, #4b4a3a, #2f2b22 60%, #1d1a14);
}
.polaroid__gloss { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .22), transparent 35%, transparent 70%, rgba(255, 255, 255, .08)); pointer-events: none; }
.polaroid__cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10px; padding: 10px 2px 14px; min-height: 22%;
  font: 600 clamp(24px, 6.8vw, 32px)/1.1 var(--f-marker); color: var(--cobalt-deep);
}
.polaroid__cap small { font-size: .6em; color: var(--ink-2); }
.polaroid__cap > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s steps(14) .3s; }
.gate[data-phase="open"] .polaroid__cap > * { clip-path: inset(0 0 0 0); }
.gate.instant .polaroid__cap > * { transition: none; }
.gate__tap {
  position: absolute; inset: -16px; z-index: 3; border: 0; padding: 0; background: none; cursor: grab;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
.gate:not([data-phase="idle"]) .gate__tap { pointer-events: none; }

.gate__foot { display: grid; place-items: center; min-height: 56px; margin-top: 22px; }
.gate__foot > * { grid-area: 1 / 1; }
.gate__hint { display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 2 * 76px); font: 500 15px/1.3 var(--f-body); color: var(--ink-2); transition: opacity .4s; }
.gate__shake { width: 18px; height: 30px; border: 2px solid var(--ink); border-radius: 5px; position: relative; animation: phone 1.6s ease-in-out infinite; }
.gate__shake::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 2px; translate: -50% 0; background: var(--ink); border-radius: 1px; }
@keyframes phone { 0%, 40%, 100% { rotate: 0deg; } 10%, 30% { rotate: -14deg; } 20% { rotate: 14deg; } }
.gate:not([data-phase="idle"]) .gate__hint { opacity: 0; }
.gate__down { font: 400 22px/1 var(--f-display); font-style: italic; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .6s ease 1.2s; }
.gate[data-phase="open"] .gate__down { opacity: 1; pointer-events: auto; }
.gate__skip {
  position: absolute; right: 16px; top: calc(54px + env(safe-area-inset-top)); z-index: 5;
  min-height: 36px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper);
  font: 600 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
}
.gate__skip::before { content: ""; position: absolute; inset: -6px; }
.gate:not([data-phase="idle"]) .gate__skip { display: none; }
html:not(.js) :is(.gate__skip, .gate__tap, .gate__before, .gate__hint) { display: none; }
html:not(.js) .snap { --dev: 1; }
html:not(.js) :is(.headline > *, .gate__sub) { opacity: 1; translate: 0 0; }
html:not(.js) .polaroid__cap > * { clip-path: none; }

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

.sec { max-width: 760px; margin: 0 auto; padding: clamp(80px, 13vw, 140px) 16px 0; }
.big { margin-top: 22px; font: 400 clamp(38px, 10.4vw, 72px)/1.02 var(--f-display); letter-spacing: -.015em; }
.big em { color: var(--cobalt); }
.big--center { text-align: center; }
.lede { margin-top: 26px; padding-left: 16px; border-left: 3px solid var(--blush); font: 400 clamp(20px, 5.4vw, 24px)/1.5 var(--f-body); color: var(--ink-2); }
.byline { margin-top: 22px; font: 600 12px/1.4 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- full-bleed photograph ---------- */
.band { position: relative; margin: clamp(80px, 13vw, 140px) 0 0; }
.band__img { display: block; width: 100%; height: min(70svh, 640px); object-fit: cover; }
.band__type { display: grid; place-items: center; height: min(60svh, 520px); background: var(--cobalt); color: var(--paper); }
.band__type span { font: 400 clamp(140px, 40vw, 320px)/1 var(--f-deva); }
.band__cap { max-width: 760px; margin: 0 auto; padding: 12px 16px 0; font: italic 400 18px/1.4 var(--f-display); color: var(--muted); }

/* ---------- the calendar ---------- */
.cal { margin-top: 26px; padding: 22px 16px 18px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.cal__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.cal__month { font: 400 clamp(40px, 11vw, 64px)/1 var(--f-display); }
.cal__year { font: 600 13px/1 var(--f-body); letter-spacing: .2em; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 12px; text-align: center; }
.cal__dow { padding: 6px 0; font: 600 11px/1 var(--f-body); letter-spacing: .1em; color: var(--muted); }
.cal__day { display: grid; place-items: center; aspect-ratio: 1; font: 400 clamp(17px, 4.8vw, 22px)/1 var(--f-body); color: var(--ink-2); }
.cal__day--it {
  position: relative; min-width: 44px; padding: 0; border: 0; background: var(--paper-2); border-radius: 50%; cursor: pointer;
  font: 600 clamp(19px, 5.4vw, 24px)/1 var(--f-body); color: var(--ink); -webkit-tap-highlight-color: transparent;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge { 0%, 70%, 100% { scale: 1; } 80% { scale: 1.12; } 90% { scale: .98; } }
.cal__day--it svg { position: absolute; inset: -18%; width: 136%; height: 136%; overflow: visible; pointer-events: none; }
.cal__day--it path { fill: none; stroke: var(--cobalt); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.cal__day--it[aria-pressed="true"] { background: var(--blush); animation: none; }
.cal__day--it[aria-pressed="true"] path { animation: circle .8s cubic-bezier(.65, .05, .3, 1) both; }
@keyframes circle { to { stroke-dashoffset: 0; } }
.cal__hint { margin-top: 14px; text-align: center; font: italic 400 19px/1.3 var(--f-display); color: var(--muted); }
.cal.saved .cal__hint { display: none; }
.cal__save { margin-top: 16px; text-align: center; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }
.cal__saved { font: 600 32px/1.1 var(--f-marker); color: var(--cobalt-deep); }
.cal__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.soon { margin-top: 40px; }
.soon__label { font: italic 400 22px/1.3 var(--f-display); color: var(--muted); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; border-top: 1px solid var(--ink); }
.count span { display: flex; flex-direction: column; padding: 14px 0 0; font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.count span + span { padding-left: 10px; border-left: 1px solid var(--rule); }
.count b { margin-bottom: 8px; font: 400 clamp(44px, 12vw, 76px)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.count__done { margin-top: 12px; font: italic 400 28px/1.2 var(--f-display); color: var(--cobalt); }

/* ---------- the plan ---------- */
.plan { margin: 24px 0 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 24px 0; border-top: 1px solid var(--ink); }
.item:last-child { border-bottom: 1px solid var(--ink); }
.item__no { font: italic 400 30px/1 var(--f-display); color: var(--cobalt); }
.item__name { font: 400 clamp(36px, 10vw, 56px)/1 var(--f-display); letter-spacing: -.01em; }
.item__name span { font-size: .5em; color: var(--muted); }
.item__facts { display: grid; gap: 10px; margin: 16px 0 0; }
.item__facts > div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.item__facts dt { padding-top: 4px; font: 600 11px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.item__facts dd { margin: 0; }
.item__note { margin-top: 12px; font: italic 400 21px/1.35 var(--f-display); color: var(--ink-2); }
.item__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.link {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font: 600 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 10px) / 100% 1px no-repeat;
}
.link::after { content: " \2197"; margin-left: 4px; }
.link:hover { color: var(--cobalt); }
.link--solid { padding: 0 18px; background: var(--ink); color: var(--paper); }
.link--solid:hover { background: var(--cobalt); color: var(--paper); }

/* ---------- people ---------- */
.people { display: grid; gap: 30px; margin-top: 26px; }
.person__name { font: 400 clamp(36px, 10vw, 54px)/1 var(--f-display); }
.person__par { margin-top: 10px; font: 400 19px/1.45 var(--f-body); }
.person__par span { font: italic 400 21px/1 var(--f-display); color: var(--muted); }
.person__fam { margin: 12px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--rule); }
.person__fam li { margin-top: 4px; }
.person__fam small { margin-left: 6px; font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 20px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- reply ---------- */
.sec--reply { padding-bottom: clamp(100px, 14vw, 150px); }
.answer { display: grid; gap: 10px; max-width: 460px; margin: 30px auto 0; }
.answer a {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 20px; text-decoration: none;
  font: 500 19px/1.2 var(--f-body); transition: background .25s, color .25s, transform .25s var(--ease);
}
.answer__yes { background: var(--cobalt); color: #fff; }
.answer__yes [lang="hi"] { font: 400 30px/1 var(--f-deva); }
.answer__yes:hover { background: var(--cobalt-deep); transform: translateY(-2px); }
.answer__no { box-shadow: inset 0 0 0 1px var(--ink); }
.answer__no:hover { background: var(--ink); color: var(--paper); }
.tag { margin-top: 28px; text-align: center; font: 600 32px/1 var(--f-marker); color: var(--cobalt-deep); }

/* =================================================================== FOOTER */

.foot { padding: 52px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; background: var(--ink); color: var(--paper); }
.foot__names { font: 400 clamp(46px, 13vw, 88px)/1 var(--f-display); letter-spacing: -.02em; }
.foot__names i { color: var(--blush); }
.foot__date { margin-top: 10px; font: 600 12px/1.5 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 239, 230, .7); }
.foot__cal { margin-top: 18px; }
.foot__music, .foot__credit, .foot__photo { margin-top: 10px; font-size: 14px; color: rgba(243, 239, 230, .7); }
.foot__up { display: inline-block; margin-top: 18px; font: italic 400 20px/1 var(--f-display); }

@media (min-width: 760px) {
  .people { grid-template-columns: 1fr 1fr; }
  .item { grid-template-columns: 90px 1fr; }
  .item__facts { grid-template-columns: repeat(3, 1fr); }
  .item__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .answer { grid-template-columns: 1fr 1fr; max-width: 640px; }
}

/* =================================================================== LINK PREVIEW */

.ogcard { align-items: center; justify-content: space-between; padding: 0 90px; background: var(--paper); color: var(--ink); }
.ogcard::before { content: ""; position: absolute; left: 90px; right: 90px; top: 50px; height: 1px; background: var(--ink); }
.og__text { max-width: 700px; }
.og__mast { font: 600 22px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--cobalt); }
.og__names { margin-top: 18px; font: 400 128px/.92 var(--f-display); letter-spacing: -.02em; }
.og__names i { color: var(--cobalt); }
.og__said { font: italic 400 96px/1 var(--f-display); }
.og__date { margin-top: 26px; font: 500 30px/1.2 var(--f-body); }
.og__venue { margin-top: 6px; font: 400 24px/1.2 var(--f-body); color: var(--ink-2); }
.og__pol { flex: none; width: 330px; margin: 0; padding: 18px 18px 0; background: #fdfcf8; rotate: 4deg; box-shadow: 0 30px 50px -20px rgba(40, 30, 10, .45); }
.og__pic { position: relative; aspect-ratio: 1; overflow: hidden; }
.og__pic .art, .og__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og__pol figcaption { padding: 14px 0 22px; font: 600 40px/1 var(--f-marker); color: var(--cobalt-deep); }
