/* The bride's family's card at /invite/thapa/: same machinery as /invite/ (invite.css), with
   this card's proportions, unframed inside panels and its own type sizes. */

.thapa .cover { grid-template-columns: 607fr 685fr 538fr; }
.thapa .cover .panel { aspect-ratio: var(--pw) / 1300; }

.thapa .strip {
  top: calc((var(--y) - var(--py)) * var(--u));
  bottom: calc(30 * var(--u));
  /* the traced repeat starts 300 px down the photo, 145 below the strip's top; it repeats every 207 */
  background: url('/assets/invite/thapa/strip.svg') left calc(145 * var(--u)) / 100% auto repeat-y;
}

.thapa .honorifics { --fs: 24; }
.thapa .to { --lh: 68; --name: 32; }
.rule.dots {
  height: max(2px, calc(3.4 * var(--u)));
  border-radius: 0;
  background: radial-gradient(circle, var(--foil) 42%, transparent 48%) left center / calc(7 * var(--u)) 100% repeat-x;
}

/* inside: one sheet, no frames or bands */
.inside.plain { aspect-ratio: 1780 / 1240; --U: calc(100cqw / 1780); }
.inside.plain > .panel {
  left: calc((var(--px) - 155) * var(--U));
  top: 0;
  aspect-ratio: var(--pw) / 1240;
}
.inside.plain > .panel::before, .inside.plain > .panel::after { content: none; }

.thapa .t { --fs: 26; font-weight: 600; word-spacing: 0.28em; }
.thapa .lead { --fs: 33; font-weight: 800; }
.thapa .title { --fs: 50; font-weight: 800; word-spacing: 0.2em; }
.thapa .big { --fs: 36; font-weight: 800; }
.thapa .small { --fs: 21; }
.thapa .tiny { --fs: 17; }
.thapa .name { font-size: 1.38em; }
.thapa .sub { --fs: 25; font-weight: 800; }
.thapa .u { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; }
.thapa .verse { --fs: 15.5; }
.thapa .i-mid .t:not(.title) { word-spacing: 0.22em; }
.verse.r { text-align: right; }
.verse.l { text-align: left; }
.thapa .row { --fs: 25; grid-template-columns: calc(52 * var(--u)) calc(30 * var(--u)) auto; }

.box {
  position: absolute;
  top: calc((var(--y) - var(--py)) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  border: max(1px, calc(2.6 * var(--u))) solid var(--foil);
  border-radius: calc(14 * var(--u));
}

/* phones: the invitation first, then the programme and map, then the family */
@media (max-width: 899px), (max-height: 559px) {
  .thapa .i-mid { order: -2; }
  .thapa .i-right { order: -1; }
  .inside.plain { aspect-ratio: auto; }
  .inside.plain > .panel { left: auto; top: auto; }
}

/* the map: traced lines with its place names set as text, measured in map pixels */
.route { container-type: inline-size; color: var(--foil); text-decoration: none; }
.route img { display: block; width: 100%; height: auto; }
.route span {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  white-space: nowrap;
  font-size: calc(var(--fs, 17.5) * 100cqw / 360);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
