/* ============================================================
   Aakriti & Uday — Layered Invitation
   Cloned from templates/shruti-utkarsh (itself a clone of
   ashish-priyanshi). Scene artwork comes from those PSDs, positioned
   at their original coordinates as % of each 1080 px-wide canvas;
   every readable string is live HTML from template-texts.js.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* One readable family throughout: EB Garamond (OFL, assets/fonts/OFL-eb-garamond.txt).
   Names and titles were a copperplate script until 2026-09-27, when the client found
   "Aakriti & Uday" hard to read; they now use the same Garamond at display sizes
   (--hn-display), set apart by size, weight and colour instead of a script. */
@font-face {
  font-family: "HN Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "HN Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-italic-var.woff2") format("woff2");
}

@font-face {
  font-family: "HN Tiro Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* OFL (assets/fonts/OFL-tiro-devanagari-sanskrit.txt), subset to the
     Devanagari characters in template-texts.js. Re-subset (under a NEW filename)
     whenever that Hindi/Sanskrit copy changes, or new letters fall back. */
  src: url("assets/fonts/tiro-devanagari-sanskrit-hn2.woff2") format("woff2");
}

/* Engagement slide details, as on suryanshu-rajvi's Sitaaron Ki Raat slide.
   OFL (Google Fonts); copied from templates/suryanshu-rajvi/assets/fonts. Regular
   only: the venue label's italic is synthesised, as there. */
@font-face {
  font-family: "AU Quattrocento";
  src: url("assets/fonts/quattrocento-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Names on the cover invitation block only (client 2026-10-01: "a little fancy").
   Copied from shekhar-nupur, which subset it to its own copy; it covers every letter of
   "Hardik" and "Nandini"; verified 2026-11-30 it also covers "Aakriti", "Uday" and "&".
   Licence: fsType 4 (preview & print) with no embedded licence, as in shekhar-nupur;
   web-embedding clearance is the client's call. */
@font-face {
  font-family: "HN Hello Bride";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/hello-bride-400.woff2") format("woff2");
}

/* Haldi & Mehendi title only, to match shruti-utkarsh's baked title.
   Licence unknown, inherited from shruti-utkarsh. */
@font-face {
  font-family: "HN Maginia";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Maginia.otf") format("opentype");
}

:root {
  --hn-display: var(--hn-serif);
  --hn-serif: "HN Garamond", Garamond, Georgia, "Times New Roman", serif;
  --hn-deva: "HN Tiro Devanagari", "Kohinoor Devanagari", "Noto Serif Devanagari", serif;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: #d2e6ed;
  color: #1f3f48;
}

@supports (height: 100svh) {
  body {
    min-height: 100svh;
  }
}

.invite {
  --viewport-height: 100vh;
  --stage-width: min(100vw, calc(var(--viewport-height) * 1080 / 1920), 540px);
  --motion-fast: 180ms;
  --motion-medium: 480ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  min-height: var(--viewport-height);
}

@supports (height: 100svh) {
  .invite {
    --viewport-height: 100svh;
  }
}

.slide {
  display: flex;
  justify-content: center;
}

.stage {
  position: relative;
  width: var(--stage-width);
  overflow: hidden;
  background: #d2e6ed;
  isolation: isolate;
  contain: layout paint style;
}

.stage--cover {
  aspect-ratio: 1080 / 3840;
}

.stage--engagement {
  aspect-ratio: 1080 / 1920;
  background: #111614; /* the ballroom's night sky, behind the base while it loads */
}

.stage--map {
  aspect-ratio: 1080 / 1920;
  background: #dde8ee; /* the garden sky */
}

.ly {
  position: absolute;
  display: block;
  /* left / top / width / height set inline per layer from PSD bbox */
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.template-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color, #24431d);
  font-family: var(--text-font, var(--hn-serif));
  font-size: var(--text-size, calc(var(--stage-width) * 0.038));
  font-weight: var(--text-weight, 500);
  font-style: var(--text-style, normal);
  letter-spacing: var(--text-letter-spacing, 0);
  line-height: var(--text-line-height, 1.08);
  text-align: center;
  overflow: visible;
  white-space: pre-line;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.template-text--script {
  --text-font: var(--hn-display);
  --text-weight: 500;
  --text-line-height: 0.92;
}

.template-text--serif {
  --text-font: var(--hn-serif);
  --text-weight: 500;
}

.template-text-block {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Aakriti & Uday — live text
   One type system for every slide: EB Garamond throughout, with names
   and ceremony titles set larger, heavier and in colour. Sizes are fractions of the stage width (--u), so
   type scales with the 1080 px design canvas. Each text block sits in
   a column measured clear of the side florals.
   ============================================================ */

.invite {
  --u: calc(var(--stage-width) / 100);
  --hn-rose: #c4476e;
  --hn-leaf: #2d4a1f;
  --hn-olive: #5b6932;
}

/* Zero-specificity reset, so each component's own margins always win. */
:where(h1.template-text, .cover-ceremony-copy p) {
  margin: 0;
}

.template-text--devanagari {
  --text-font: var(--hn-deva);
  --text-weight: 400;
}

/* ---- Cover hero ---- */
.template-text--cover-shloka {
  --text-color: var(--hn-leaf);
  --text-size: calc(var(--u) * 3.5);
  --text-line-height: 1.5;
}

.template-text--cover-logo-names {
  flex-direction: column;
  gap: calc(var(--u) * 0.6);
  color: var(--hn-rose);
  font-family: var(--hn-serif);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.hero-names__name {
  color: var(--hn-rose);
  font-size: calc(var(--u) * 9);
  letter-spacing: 0.14em;
  margin-right: -0.14em; /* optical centring: cancel the trailing letter-space */
  text-transform: uppercase;
}

.hero-names__joiner {
  color: var(--hn-olive);
  font-size: calc(var(--u) * 7.5);
  font-style: italic;
  line-height: 1;
}

.template-text--cover-hashtag {
  --text-color: var(--hn-leaf);
  --text-size: calc(var(--u) * 5.4);
  --text-weight: 500;
}

.template-text--cover-venue {
  --text-color: var(--hn-leaf);
  --text-size: calc(var(--u) * 3.3);
  --text-weight: 500;
  --text-line-height: 1.6;
  --text-letter-spacing: 0.16em;
  align-items: flex-start; /* three lines hang down from the top of the box */
  text-transform: uppercase;
}

/* ---- Cover invitation ---- */
.cover-ceremony-copy {
  justify-content: center;
  color: var(--hn-leaf);
  font-family: var(--hn-serif);
  font-size: calc(var(--u) * 3.9);
  font-weight: 400;
  line-height: 1.3;
}

.cover-ceremony-copy > span {
  display: block;
  max-width: 100%;
  text-wrap: balance;
  white-space: pre-line;
}

.cover-ceremony-copy__blessing {
  font-size: calc(var(--u) * 4);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: calc(var(--u) * 3);
}

.cover-ceremony-copy__host {
  color: var(--hn-rose);
  font-size: calc(var(--u) * 4.2);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: calc(var(--u) * 1.4);
}

.cover-ceremony-copy__invite {
  margin-bottom: calc(var(--u) * 1.6);
}

/* Hello Bride script (client 2026-10-01: Garamond names looked "too basic"). Line-height 1
   with padding so the H/N swashes and the k tail sit inside the box (iOS clips composited
   text ink at box edges); the negative bottom margin keeps each name close to its parents'
   line without the ink touching it. The hairline stroke firms up thin strokes at 390px. */
.cover-ceremony-copy__name {
  margin: -0.04em 0 -0.08em;
  padding: 0.16em 0.35em 0.02em;
  color: var(--hn-rose);
  font-family: "HN Hello Bride", var(--hn-serif);
  font-size: calc(var(--u) * 12.5);
  font-weight: 400;
  line-height: 1;
  -webkit-text-stroke: 0.01em currentColor;
}

.cover-ceremony-copy__connector + .cover-ceremony-copy__name {
  margin-top: 0.08em;
}

.cover-ceremony-copy__family {
  font-size: calc(var(--u) * 3.1);
  font-style: italic;
  line-height: 1.35;
}

.cover-ceremony-copy__connector {
  margin: calc(var(--u) * 1.2) 0 0;
  color: var(--hn-olive);
  font-size: calc(var(--u) * 5.4);
  font-style: italic;
  line-height: 1;
}

/* Client's closing lines under the names (2026-11-30). */
.cover-ceremony-copy__closing {
  margin-top: calc(var(--u) * 5);
  line-height: 1.4;
}

.cover-ceremony-copy__presence {
  margin-top: calc(var(--u) * 3.6);
  color: var(--hn-rose);
  font-size: calc(var(--u) * 4);
  font-style: italic;
  line-height: 1.35;
}

/* ---- Engagement slide (suryanshu-rajvi "Sitaaron Ki Raat" art) ----
   Sizes are the PSD's design px over 10.8 (= --u at 1080 wide): title Maginia 62.5,
   date 57, time 43, venue 29 / 38. Colours from the same PSD. */
.engage-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #f8e7c4;
  font-family: "AU Quattrocento", var(--hn-serif);
  text-align: center;
}

.engage-copy p,
.engage-copy h2 {
  margin: 0;
}

.engage-copy__title {
  color: #fcfcfc;
  font-family: "HN Maginia", var(--hn-serif);
  font-size: calc(var(--u) * 5.8);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  -webkit-text-stroke: 0.023em currentColor; /* the PSD's faux bold */
}

.engage-copy__date {
  margin-top: calc(var(--u) * 4.4) !important;
  font-size: calc(var(--u) * 5.3);
  line-height: 1.1;
  white-space: nowrap;
}

.engage-copy__date sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: 0.42em;
}

.engage-copy__time {
  margin-top: calc(var(--u) * 2.4) !important;
  font-size: calc(var(--u) * 3.96);
  line-height: 1.1;
}

.engage-copy__divider {
  display: block;
  width: calc(var(--u) * 26.2);
  height: auto;
  margin-top: calc(var(--u) * 3.4);
}

.engage-copy__venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(var(--u) * 3.6) !important;
}

.engage-copy__venue-label {
  font-size: calc(var(--u) * 2.72);
  font-style: italic;
  line-height: 1.3;
}

.engage-copy__venue-name {
  margin-top: calc(var(--u) * 1) !important;
  color: #fff;
  font-size: calc(var(--u) * 3.5);
  font-style: italic;
  line-height: 1.3;
  white-space: pre-line;
  -webkit-text-stroke: 0.02em currentColor;
}

/* ---- Finale: venue map (shekhar-nupur's map page) ----
   Positions are shekhar-nupur's design rects over the 1080x1920 frame: title
   baseline 248, venue 350, card 110/510 860x720, button y 1276 h 104, credit 1412. */
.map-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #566133;
  font-family: var(--hn-serif);
  text-align: center;
}

.map-copy h2,
.map-copy p {
  margin: 0;
}

.map-copy__title {
  padding: 0.12em 0.3em 0; /* swash ink stays inside the box (iOS clips composited text) */
  color: #b54863;
  font-family: "HN Hello Bride", var(--hn-serif);
  font-size: calc(var(--u) * 8.8);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.map-copy__venue {
  margin-top: calc(var(--u) * 1.6) !important;
  font-size: calc(var(--u) * 5.2);
  font-weight: 600;
  line-height: 1.15;
}

.map-copy__address {
  margin-top: calc(var(--u) * 0.8) !important;
  color: #4b5229;
  font-size: calc(var(--u) * 3.5);
  font-weight: 500;
  line-height: 1.3;
  white-space: pre-line;
}

/* An ivory mount with a gold hairline, like a photo set into the invitation.
   .ly is pointer-events:none, so the card and its map opt back in. */
.map-card {
  box-sizing: border-box;
  padding: calc(var(--u) * 1.1);
  border-radius: calc(var(--u) * 3.3);
  background: #fbf7ef;
  box-shadow:
    inset 0 0 0 2px rgba(196, 160, 96, 0.55),
    0 calc(var(--u) * 1.7) calc(var(--u) * 4) rgba(67, 69, 14, 0.18),
    0 calc(var(--u) * 0.3) calc(var(--u) * 0.9) rgba(67, 69, 14, 0.12);
  pointer-events: auto;
}

.map-card__map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--u) * 2.4);
  background: #e9e4d6; /* what shows while Google's tiles arrive */
}

/* Centred with left/right 0 + auto margins, not translateX: the generic .ly reveal
   animates `transform`. */
.map-go {
  left: 0;
  right: 0;
  width: max-content;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 1.7);
  box-sizing: border-box;
  padding: 0 calc(var(--u) * 5.9) 0 calc(var(--u) * 5);
  border-radius: 999px;
  background: #b54863;
  box-shadow:
    inset 0 0 0 2px rgba(232, 210, 162, 0.7),
    0 calc(var(--u) * 0.9) calc(var(--u) * 2.4) rgba(120, 30, 55, 0.25);
  color: #fbf7ef;
  font-family: var(--hn-serif);
  font-size: calc(var(--u) * 3.5);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  user-select: auto;
  -webkit-tap-highlight-color: transparent;
}

.map-go:hover {
  background: #a63350;
}

.map-go:focus-visible {
  outline: 3px solid #e8d2a2;
  outline-offset: 4px;
}

.map-go__icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

/* The studio colophon (links to its Instagram, as on shekhar-nupur). The padding
   grows the tap target; its glyph top stays at shekhar-nupur's y 1412. */
.map-credit {
  left: 0;
  right: 0;
  width: max-content;
  margin: 0 auto;
  padding: calc(var(--u) * 2.6) calc(var(--u) * 3.1); /* shekhar-nupur's 28 design px */
  color: #5d5f2c;
  font-family: var(--hn-serif);
  font-size: calc(var(--u) * 2.9);
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  pointer-events: auto;
  user-select: auto;
}

.map-credit:hover,
.map-credit:focus-visible {
  color: #43450e;
}

.map-credit:focus-visible {
  outline: 2px solid #e8d2a2;
  outline-offset: 2px;
  border-radius: 4px;
}
