/* ==========================================================================
   Sangjit invitation — red / gold theme
   ========================================================================== */

.theme-sangjit {
  --red: #931020;
  --red-deep: #5c0021;
  --red-band: #780922;
  --red-btn: #6a0422;
  --cream: #ffefe3;
  --gold: #e57120;
  --gold-soft: #be6e24;
  --wine: #870d21;
  --ink-red: #531015;
  --script-red: #9d1e21;

  --ink: var(--ink-red);
  --accent: var(--gold);
  --danger: #a1121b;
  --paper: var(--cream);
  --stage-bg: var(--red-deep);

  --line: rgba(83, 16, 21, 0.4);
  --line-alt: rgba(255, 239, 227, 0.38);

  --pill-line: rgba(255, 239, 227, 0.55);
  --pill-bg: rgba(255, 255, 255, 0.1);
  --pill-bg-on: var(--gold);
  --pill-line-on: var(--gold);
  --pill-ink-on: #3c0512;

  --map-stroke: var(--wine);
  --map-bg: #f4e4d8;

  --nav-bg: rgba(92, 0, 33, 0.95);
  --nav-ink: var(--cream);
  --fab-bg: var(--red-btn);
  --fab-ink: var(--cream);
  --toast-bg: var(--red-btn);
  --toast-ink: var(--cream);

  --tex: url('../img/sangjit/tex-dark.webp');
  --tex-opacity: 0.16;
}

.theme-sangjit .tex::before { background-image: var(--tex); background-size: 190px; }

/* ==========================================================================
   Gate
   ========================================================================== */
.theme-sangjit .gate { color: var(--cream); }
.theme-sangjit .gate__media img { object-position: 50% 40%; }
.theme-sangjit .gate__veil {
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(147, 16, 32, 0.6), rgba(92, 0, 33, 0.92) 72%),
    linear-gradient(to bottom, rgba(92, 0, 33, 0.75), rgba(60, 5, 18, 0.96));
}
.theme-sangjit .gate__to { color: var(--gold); }
.theme-sangjit .btn--gate {
  margin-top: 8px;
  background: var(--gold);
  color: #4a0714;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.86rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   1. Cover
   ========================================================================== */
.theme-sangjit .cover {
  --cover-focus: 50%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--red-deep);
}
.cover .cover__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cover__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% calc(var(--cover-focus, 50%) - var(--par, 0px));
}
.theme-sangjit .cover__cue { color: var(--gold); }
.theme-sangjit .navbar__brand {
  -webkit-mask: url('../img/sangjit/monogram-gold.webp') center / contain no-repeat;
  mask: url('../img/sangjit/monogram-gold.webp') center / contain no-repeat;
}

.cover__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5%;
  width: 100%;
  padding: 6vh 0;
}
.cover__monogram { width: 21%; max-width: 110px; }

.cover__card {
  position: relative;
  container-type: inline-size;
  width: min(72%, 360px);
  aspect-ratio: 1052 / 936;
  background: url('../img/sangjit/cover-card.webp') center / 100% 100% no-repeat;
  filter: drop-shadow(0 16px 36px rgba(50, 0, 16, 0.45));
}

.cover__bloom { z-index: 2; }
.cover__bloom--tr { left: 64.2%; top: -9.7%; width: 45.8%; }
.cover__bloom--bl { left: -10.4%; top: 58.7%; width: 32.9%; }

.cover__eyebrow {
  position: absolute;
  left: 0; right: 0;
  top: 12.5%;
  margin: 0;
  text-align: center;
  color: var(--gold-soft);
  font-size: 5.3cqw;
}
.cover__names { margin: 0; }
.cover__names img { position: absolute; }
.cover__billy    { left: 31.9%; top: 26.5%; width: 38.2%; }
.cover__amp      { left: 44.9%; top: 50.4%; width: 6.3%; }
.cover__clarrisa { left: 19.4%; top: 44.7%; width: 58%; }

.cover__date {
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  margin: 0;
  text-align: center;
  color: var(--script-red);
  font-size: 5.8cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   2. The couple
   ========================================================================== */
.theme-sangjit .couple {
  position: relative;
  padding: 0;
  container-type: inline-size;
  background: var(--red);
}
.couple__bg { width: 100%; }
.couple__text { position: absolute; inset: 0; color: var(--cream); }
.couple__text > * { position: absolute; left: 0; right: 0; margin: 0; text-align: center; }

.couple__name img { margin-inline: auto; }
.couple__name--groom img { width: 52.7%; }
.couple__name--bride img { width: 27.2%; }
.couple__name--groom { top: 34.7%; }
.couple__name--bride { top: 52.3%; }

.couple__rel { color: var(--gold); font-size: 3.15cqw; }
.couple__rel--groom { top: 42.4%; }
.couple__rel--bride { top: 60%; }

.couple__parents { font-size: 4.05cqw; font-weight: 500; white-space: nowrap; }
.couple__parents em { font-style: italic; padding: 0 0.15em; }
.couple__parents--groom { top: 45.6%; }
.couple__parents--bride { top: 63.3%; }

/* the large ampersand is a tinted mask so it sits a shade darker than the
   red field, the way it does on the artboard */
.couple__amp {
  top: 47.4%;
  width: 12%;
  aspect-ratio: 192 / 183;
  margin-inline: auto;
  background: #6f0b1d;
  -webkit-mask: url('../img/sangjit/script-amp-big.webp') center / contain no-repeat;
  mask: url('../img/sangjit/script-amp-big.webp') center / contain no-repeat;
  opacity: 0.85;
}

/* ==========================================================================
   3. Date band
   ========================================================================== */
.theme-sangjit .dateband {
  container-type: inline-size;
  background: var(--red-band);
  color: var(--cream);
  padding: 0;
}
.dateband__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.4cqw;
  padding: 5.6cqw 4cqw;
}
.dateband__rule { flex: 1 1 0; height: 1.5px; background: currentColor; opacity: 0.85; }
.dateband p { margin: 0; }
.dateband__day { font-size: 4.1cqw; }
.dateband__dm { text-align: center; line-height: 1; color: var(--gold); }
.dateband__dm b { display: block; font-size: 5.9cqw; font-weight: 600; }
.dateband__dm span { display: block; font-size: 3.1cqw; margin-top: 0.15em; }
.dateband__year { font-size: 4.4cqw; letter-spacing: 0.02em; }

/* ==========================================================================
   4. Venue
   ========================================================================== */
.theme-sangjit .events {
  background: var(--cream);
  padding-top: 52px;
  padding-bottom: 34px;
}
.events__deco { left: -50%; top: 26%; width: 148%; opacity: 0.9; }

.event { text-align: center; margin-bottom: 28px; }
.event .rule { margin: 0 0 14px; }
.event__venue {
  flex: 0 0 auto;
  font-size: 1.62rem;
  font-weight: 500;
  color: var(--wine);
  white-space: nowrap;
}
.event__time { margin: 6px 0 16px; font-size: 1.3rem; color: var(--gold); }
.event__address { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink-red); }

.theme-sangjit .btn--solid { background: var(--red-btn); color: var(--cream); min-width: 190px; }
.theme-sangjit .btn--ghost {
  background: transparent;
  color: var(--red-btn);
  border: 1.5px solid var(--red-btn);
  min-width: 190px;
}
.theme-sangjit .countdown-wrap { --pill-line: rgba(106, 4, 34, 0.4); --pill-bg: rgba(255, 255, 255, 0.4); }

.countdown-wrap { display: grid; gap: 18px; justify-items: center; margin-top: 8px; }

/* ==========================================================================
   5. RSVP
   ========================================================================== */
.theme-sangjit .rsvp {
  background: var(--red-band);
  color: var(--cream);
  --ink: var(--cream);
  --line: rgba(255, 239, 227, 0.5);
  padding-top: 52px;
  padding-bottom: 60px;
}
/* the hexagon lattice only shows along the outer thirds, as on the artboard */
.theme-sangjit .rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/sangjit/tex-light.webp');
  background-size: 190px;
  opacity: var(--tex-rsvp-opacity, 0.13);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 0 20%, transparent 36%, transparent 64%, #000 80%);
  mask-image: linear-gradient(to right, #000 0 20%, transparent 36%, transparent 64%, #000 80%);
}
.rsvp .rule { margin: 0 0 20px; }
.rsvp .rule__head { width: 24.3%; }
.rsvp__deadline { font-size: 1.02rem; line-height: 1.5; }
.rsvp__deadline strong { color: var(--gold); font-weight: 500; }
.rsvp .field__label { color: var(--gold); }
.theme-sangjit .btn--submit {
  justify-self: center;
  background: var(--red-btn);
  color: var(--cream);
  border: 1.5px solid rgba(255, 239, 227, 0.35);
  min-width: 190px;
}
.rsvp .form { margin-top: 6px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field[hidden] { display: none; }

/* ==========================================================================
   6. Gift
   ========================================================================== */
.theme-sangjit .gift { background: var(--cream); text-align: center; }
.gift__bloom--l { left: -18%; top: 2%; width: 34%; }
.gift__bloom--r { right: -14%; bottom: 2%; width: 38%; }
.gift .rule { margin: 0 0 18px; }
.gift .rule__head { width: 12%; min-width: 46px; }
.gift__note {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 40ch;
  margin-inline: auto;
  color: var(--ink-red);
}

.account { margin: 24px 0 20px; }
.account p { margin: 0 0 6px; }
.account__bank { color: var(--gold); font-size: 1.12rem; letter-spacing: 0.04em; }
.account__holder { font-size: 1.12rem; color: var(--ink-red); }
.account__number {
  color: var(--gold);
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px !important;
  font-variant-numeric: tabular-nums;
}
.flourish { width: 64%; margin: 8px auto 0; }

/* ==========================================================================
   7. Photo
   ========================================================================== */
.theme-sangjit .gallery { padding: 0; background: var(--cream); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; }

/* ==========================================================================
   8. Closing
   ========================================================================== */
.theme-sangjit .closing {
  padding: 0;
  text-align: center;
  background: var(--red-deep);
  color: var(--cream);
}
.theme-sangjit .closing .closing__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  z-index: 0;
}
.closing__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 46px var(--pad) 44px;
}
.closing__monogram { width: 27%; max-width: 130px; }
.closing__note { font-size: 1.08rem; font-style: italic; line-height: 1.7; }
.closing__ty { margin: 0; }
.closing__ty img { width: 62%; margin-inline: auto; }

.closing__photo { position: relative; z-index: 1; margin: 0; }
.closing__photo img { width: 100%; }

.closing__foot {
  position: relative;
  z-index: 1;
  padding: 28px var(--pad) 90px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background: var(--red-deep);
  opacity: 0.9;
}
.closing__foot p { margin: 4px 0; }
.closing__foot a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ==========================================================================
   Small-phone tuning
   ========================================================================== */
@media (max-width: 360px) {
  body { font-size: 15px; }
  .choice span { padding: 8px 14px; font-size: 0.98rem; }
  .countdown li { min-width: 60px; }
  .event__venue { font-size: 1.35rem; }
}
