/* =========================================================
   Xina — a copper bowl of henna on a candlelit suzani draws its
   own mehndi patterns, whose flowers bloom into rose petals; a
   garden ayvon set for the bride's girls' night (qizlar bazmi).
   Built on shared/base.css; this sheet is the look.
   ========================================================= */

/* Bad Script draws ‘ (in oʻ gʻ) as a wide floating comma; take just the
   apostrophes from Noto Serif Display (the same file the page already loads) */
@font-face {
  font-family: "Xina Tick";
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notoserifdisplay/v29/buERppa9f8_vkXaZLAgP0G5Wi6QmA1QaeYah2sovLCDq_ZgLyt3idQfktOG-PVpd4ugNYjQfg-zDof0.woff2) format("woff2");
  unicode-range: U+2018-2019, U+02BB-02BC;
}

:root {
  --bg: #fbf2ee;
  --ink: #3b1520;
  --ink-soft: #7c5257;
  --accent: #a4472b;
  --accent-deep: #7b1e34;
  --accent-soft: #f4dcd6;
  --gold: #b88a3e;
  --rose: #d9798b;
  --line: rgba(123, 30, 52, 0.14);
  --line-strong: rgba(123, 30, 52, 0.3);
  --surface: #fffaf7;
  --on-accent: #fff6f1;
  --shadow: 110 30 45;
  --glow: rgba(255, 246, 240, 0.95);
  --intro-bg: #2a0c12;

  --display: "Noto Serif Display", Georgia, serif;
  --body: "Noto Serif Display", Georgia, serif;
  --label: "Noto Serif Display", Georgia, serif;
  --script: "Xina Tick", "Bad Script", "Noto Serif Display", cursive;

  --open-default: url("/styles/xina/media/open-poster.jpg");
  --amb-poster: url("/styles/xina/media/amb-poster.jpg");
  --close-poster: url("/styles/xina/media/close-poster.jpg");
  --dissolve: 2s;
  --pulse: rgba(255, 228, 200, 0.95);
  --pulse-glow: rgba(255, 170, 120, 0.55);

  /* one rose petal, two tones */
  --petal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 37C9 33 3 23 6 13c2-6 8-10 14-8 6-2 12 2 14 8 3 10-3 20-14 24Z' fill='%23d9677f'/%3E%3Cpath d='M20 34c-7-4-11-11-9-18 1-4 5-6 9-5' fill='none' stroke='%23f3a9b6' stroke-width='2' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E");
}

body {
  font-size: 18px;
  background:
    radial-gradient(ellipse 140% 50% at 50% 0%, rgba(230, 160, 160, 0.16), transparent 70%),
    var(--bg);
}

.label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
}

/* ---------- Opening ---------- */

.intro__kicker {
  color: #f6d9a6;
  letter-spacing: 0.32em;
  text-shadow: 0 1px 10px rgba(30, 5, 10, 0.9);
}

.intro__to {
  font-family: var(--script);
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.2;
  color: #fff3ea;
  text-shadow: 0 2px 18px rgba(30, 5, 10, 0.95), 0 0 4px rgba(30, 5, 10, 0.7);
}

.intro__hint {
  letter-spacing: 0.16em;
}

/* ---------- Hero: lettering over the dusk sky ---------- */

.hero__veil {
  background:
    radial-gradient(ellipse 95% 30% at 50% 20%, rgba(40, 14, 40, 0.42), rgba(40, 14, 40, 0) 74%),
    linear-gradient(to bottom, rgba(251, 242, 238, 0) 82%, rgba(251, 242, 238, 0.85) 95%, var(--bg) 100%);
}

.hero__kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #f3d49b;
  text-shadow: 0 1px 12px rgba(40, 10, 30, 0.85);
}

.name {
  margin: 6px 0 0;
  white-space: nowrap;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 19vw, 92px);
  line-height: 1.25;
  color: #fff4ec;
  text-shadow: 0 2px 22px rgba(60, 12, 40, 0.75), 0 0 3px rgba(60, 12, 40, 0.5);
}

/* the gold chain hangs under the name and sways a little */
.hero__chain {
  width: min(62%, 250px);
  margin: 4px auto 0;
  transform-origin: 50% 0;
  filter: drop-shadow(0 2px 6px rgba(40, 10, 30, 0.6));
}

.hero__date {
  position: absolute;
  left: 50%;
  bottom: max(98px, calc(env(safe-area-inset-bottom) + 86px));
  translate: -50% 0;
  margin: 0;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(255, 248, 244, 0.9);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  font-style: italic;
  font-size: 18px;
  color: var(--accent-deep);
  box-shadow: 0 12px 26px -14px rgb(var(--shadow) / 0.7);
}

.hero.is-in .hero__kicker {
  animation: rise 1.8s var(--ease) 0.4s both;
}

.hero.is-in .name {
  animation: focus 2.2s var(--ease) 0.9s both;
}

.hero.is-in .hero__chain {
  animation:
    fade 1.8s var(--ease-soft) 2.2s both,
    dangle 6s ease-in-out 4s infinite alternate;
}

.hero.is-in .hero__date {
  animation: rise 1.8s var(--ease) 3s both;
}

.hero {
  --cue-d: 3.8s;
}

@keyframes dangle {
  from {
    rotate: -1.2deg;
  }
  to {
    rotate: 1.2deg;
  }
}

/* ---------- Drifting rose petals ---------- */

.petals {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 3s var(--ease-soft);
}

body.is-open .petals {
  opacity: 1;
}

.petals i {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  background: var(--petal) center / contain no-repeat;
  opacity: 0.75;
  animation: drift var(--d) linear var(--delay) infinite;
}

.petals i:nth-child(1) { --x: 8%; --s: 22px; --d: 24s; --delay: -4s; --sway: 60px; }
.petals i:nth-child(2) { --x: 28%; --s: 17px; --d: 29s; --delay: -15s; --sway: -50px; }
.petals i:nth-child(3) { --x: 52%; --s: 24px; --d: 26s; --delay: -9s; --sway: 70px; }
.petals i:nth-child(4) { --x: 72%; --s: 18px; --d: 31s; --delay: -21s; --sway: -60px; }
.petals i:nth-child(5) { --x: 88%; --s: 21px; --d: 27s; --delay: -12s; --sway: 40px; }
.petals i:nth-child(6) { --x: 40%; --s: 16px; --d: 34s; --delay: -27s; --sway: -40px; }

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) rotateX(0deg);
  }
  25% {
    transform: translate3d(var(--sway), 28vh, 0) rotate(70deg) rotateX(60deg);
  }
  50% {
    transform: translate3d(0, 56vh, 0) rotate(140deg) rotateX(0deg);
  }
  75% {
    transform: translate3d(var(--sway), 84vh, 0) rotate(210deg) rotateX(-60deg);
  }
  100% {
    transform: translate3d(0, 112vh, 0) rotate(280deg) rotateX(0deg);
  }
}

/* ---------- Sections ---------- */

.title {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 11.5vw, 50px);
  color: var(--accent-deep);
}

/* the jewellery chain fades out at its ends */
.divider {
  width: min(78%, 300px);
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.hero__chain {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.corner {
  width: min(42vw, 200px);
  opacity: 0.9;
}

.invite__greet {
  font-family: var(--script);
  font-size: clamp(34px, 10vw, 42px);
  color: var(--accent-deep);
}

.invite .divider {
  margin: 0 auto 28px;
}

.parents__names {
  font-style: italic;
  font-size: 21px;
}

.invite__quote {
  font-family: var(--script);
  font-size: 23px;
  line-height: 1.45;
  color: var(--accent);
}

/* ---------- Date: the day inside a henna mandala ---------- */

.bigdate {
  gap: 12px;
  margin-bottom: 4px;
}

.mandala {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 220px;
  height: 220px;
}

.mandala__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  animation: turn 120s linear infinite;
}

@keyframes turn {
  to {
    rotate: 360deg;
  }
}

.mandala__month,
.mandala__year {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.bigdate__day {
  position: relative;
  font-size: 70px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-deep);
}

.bigdate__side {
  font-family: var(--script);
  font-size: 24px;
  color: var(--ink-soft);
}

.bigdate__meta {
  margin: 0 0 30px;
  font-style: italic;
  font-size: 20px;
}

.cal {
  border-radius: 18px;
}

.cal__d.is-day::before {
  background: radial-gradient(circle at 35% 30%, #c45a3a, var(--accent-deep));
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 16px -6px rgb(var(--shadow) / 0.6);
}

.cd__num {
  color: var(--accent-deep);
}

.cd__past {
  font-family: var(--script);
  color: var(--accent-deep);
}

/* ---------- Buttons ---------- */

.btn {
  font-weight: 700;
  letter-spacing: 0.14em;
}

.btn--solid {
  background: linear-gradient(180deg, #9a2c44, var(--accent-deep));
}

/* ---------- Program: henna-drawn icons ---------- */

.tl__time {
  font-style: italic;
  font-size: 21px;
}

.tl__ico {
  background: var(--surface);
  border: 1.5px dashed rgba(164, 71, 43, 0.6);
  color: var(--accent);
}

.tl::before {
  background: repeating-linear-gradient(var(--accent) 0 2px, transparent 2px 7px);
  opacity: 0.4;
}

.tl__title {
  font-weight: 700;
}

.tl__note {
  font-style: italic;
}

.detail__ico {
  background: var(--surface);
  border: 1.5px dashed rgba(164, 71, 43, 0.6);
  color: var(--accent);
}

.detail__title {
  font-weight: 700;
}

/* ---------- Venue ---------- */

.venue__name {
  font-style: italic;
  color: var(--accent-deep);
}

/* ---------- Gifts: burgundy, rose and gold cards ---------- */

.ccard {
  color: #fff6f1;
  border: 1px solid rgba(255, 225, 210, 0.55);
  background: linear-gradient(135deg, #9a2c44, #5a1426);
}

.ccard::before {
  content: "";
  position: absolute;
  right: -10px;
  top: -12px;
  width: 110px;
  height: 110px;
  background: var(--petal) center / contain no-repeat;
  opacity: 0.3;
  rotate: 24deg;
}

.ccard--humo {
  background: linear-gradient(135deg, #b4583a, #6e2a18);
}

.ccard--visa {
  background: linear-gradient(135deg, #a0783a, #5c4119);
}

/* ---------- Answer ---------- */

.sent__art {
  width: 130px;
}

.sent__title {
  font-family: var(--script);
  color: var(--accent-deep);
}

/* ---------- Closing ---------- */

.closing__veil {
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(251, 242, 238, 0.55) 7%, rgba(251, 242, 238, 0) 20%),
    radial-gradient(ellipse 90% 18% at 50% 18%, rgba(20, 8, 30, 0.45), transparent 76%),
    linear-gradient(to top, var(--bg) 0%, rgba(251, 242, 238, 0) 14%);
}

.closing__wait {
  font-family: var(--script);
  font-size: clamp(40px, 11.5vw, 56px);
  line-height: 1.2;
  color: #fff1e8;
  text-shadow: 0 2px 18px rgba(20, 6, 30, 0.85);
}

.closing__names {
  color: #f3d49b;
  text-shadow: 0 1px 10px rgba(20, 6, 30, 0.85);
}

.footer__art {
  width: 120px;
}

.footer__sign {
  font-family: var(--script);
  font-size: 22px;
}

/* ---------- Small and wide screens ---------- */

@media (max-height: 700px) and (max-aspect-ratio: 3/4) {
  .hero__text {
    top: max(6%, calc(env(safe-area-inset-top) + 50px));
  }

  .name {
    font-size: clamp(56px, 17vw, 76px);
  }
}

@media (min-aspect-ratio: 3/4) {
  .name {
    font-size: min(92px, 10vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .petals {
    display: none;
  }

  .mandala__art {
    animation: none !important;
  }
}
