/* Saurabh & Zeel, on the Phulkari template (Toran daily drop day 1, D-078), made whole for one
   wedding. The page is the cloth: hand-spun khaddar dyed in madder, worked in untwisted silk floss.
   Colour comes from the materials only:
   madder #6A1A12 (ground) · madder deep #4A0F09 · pat gold #E2A438 (stitched words, the one action)
   straw #EBCB86 (headings) · ivory #F2E6CC (reading) · rose, saffron, green only as silk in motifs.
   Ivory on madder 11:1, straw on madder 8:1, madder-deep on pat gold 6:1.

   Type: Eczar (Latin), Noto Serif Gujarati 500 to 900 (stitched Gujarati: names, function names,
   headings), Rasa (Gujarati reading, drawn small on its body so set 15% up). Gujarati is never tracked.
   Scale (phone → wide): t0 14 → 15 · t1 17 → 18 · t2 22 → 25 · t3 30 → 42 · t4 names 54 → 104
   Space: s1 8 · s2 16 · s3 32 · s4 64 · s5 112 */

@font-face { font-family: "Eczar"; font-weight: 400 800; font-display: swap; src: url("/fonts/Eczar-var.woff2") format("woff2"); }
@font-face { font-family: "GU Stitch"; font-weight: 100 900; font-display: swap; src: url("/fonts/NotoSerifGujarati-var.woff2") format("woff2"); unicode-range: U+0A80-0AFF, U+0964-0965, U+200C-200D, U+25CC; }
@font-face { font-family: "GU Read"; font-weight: 300 700; font-display: swap; size-adjust: 115%; src: url("/fonts/Rasa-var.woff2") format("woff2"); unicode-range: U+0A80-0AFF, U+0964-0965, U+200C-200D, U+25CC; }

:root {
  --madder: #6A1A12;
  --madder-deep: #4A0F09;
  --pat: #E2A438;
  --straw: #EBCB86;
  --ivory: #F2E6CC;
  --ivory-2: rgba(242, 230, 204, .8);
  --ivory-3: rgba(242, 230, 204, .62);
  --wash: rgba(24, 4, 2, .26);
  --edge: rgba(235, 203, 134, .34);

  --read: "Eczar", "GU Read", Georgia, serif;
  --show: "Eczar", "GU Stitch", Georgia, serif;
  --d: 1; --lh: 1.5;
  --t0: 14px; --t1: 17px; --t2: 22px; --t3: 30px;
  --t4: clamp(54px, 17vw, 124px);
  --s1: 8px; --s2: 16px; --s3: 32px; --s4: 64px; --s5: 112px;
  --gutter: 22px;
  --measure: 34rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.lang-gu { --d: 1.04; --lh: 1.62; }
@media (min-width: 900px) {
  :root { --t0: 15px; --t1: 18px; --t2: 25px; --t3: 42px; --t4: clamp(60px, 5.6vw, 96px); --gutter: 56px; }
}

* { box-sizing: border-box; }
html { background: var(--madder-deep); color: var(--ivory); -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; overflow-x: hidden;
  /* the same bare khaddar the cloth starts from, so the page is one length of cloth */
  background: var(--madder) url("/cloth/bare-p.jpg") repeat-y center top / 100% auto;
  font: 400 calc(var(--t1) * var(--d)) / var(--lh) var(--read);
  font-kerning: normal; text-rendering: optimizeLegibility;
}
@media (min-aspect-ratio: 1/1) { body { background-image: url("/cloth/bare-l.jpg"); } }
p, h1, h2, h3, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ---------------------------------------------------------------- the cloth */
.cloth { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: var(--madder-deep); cursor: default; }
.cloth-soft, .weave { position: absolute; inset: 0; width: 100%; height: 100%; }
.cloth-soft { background: url("/cloth/bare-p-soft.jpg") center / cover; filter: blur(10px); transform: scale(1.06); }
.no-js .cloth { background: url("/cloth/cloth-p.jpg") center / cover; }
.no-js .cloth-soft { display: none; }
@media (min-aspect-ratio: 1/1) {
  .cloth-soft { background-image: url("/cloth/bare-l-soft.jpg"); }
  .no-js .cloth { background-image: url("/cloth/cloth-l.jpg"); }
}
/* the plain field at the cloth's centre, placed over the photograph's own field by the script */
.field {
  position: absolute; left: var(--fx, 8%); top: var(--fy, 27%); width: var(--fw, 84%); height: var(--fh, 46%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: var(--s2) clamp(12px, 3vw, 40px); text-align: center;
}
@media (min-aspect-ratio: 1/1) { .field { --fx: 27%; --fy: 27%; --fw: 46%; --fh: 44%; } }
.field.fit .nm, .field.fit .g-name { white-space: nowrap; overflow-wrap: normal; }
.silk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.invoc { font: 500 var(--t0) / 1.4 var(--show); color: var(--straw); }
.names {
  display: flex; flex-direction: column; align-items: center;
  font: 800 var(--t4) / 1.04 var(--show); color: var(--pat);
  text-shadow: 0 1px 0 rgba(50, 14, 0, .55), 0 2px 6px rgba(40, 8, 2, .35);
}
.lang-gu .names { font-weight: 900; line-height: 1.16; }
.names .nm { display: block; max-width: 100%; overflow-wrap: anywhere; }
.names .with { font: 400 calc(var(--t2) * var(--d)) / 1 var(--read); color: var(--straw); text-shadow: none; padding: .3em 0 .2em; }
.when { font-size: calc(var(--t1) * var(--d)); color: var(--ivory); margin-top: 4px; }
.where { font-size: var(--t0); color: var(--ivory-2); margin-top: -6px; }
.guest { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--s1); }
.g-name { font: 800 calc(var(--t2) * 1.2) / 1.15 var(--show); color: var(--ivory); }
.g-line { font: 500 calc(var(--t1) * var(--d)) / 1.3 var(--show); color: var(--ivory); }
.stitched { color: transparent !important; text-shadow: none !important; }
/* with script: nothing is written on the cloth until it is embroidered; each line arrives in turn.
   (No script, or the script failing for 7 s: everything shows, set as type.) */
html:not(.no-js):not(.seq-all) .field .nm { color: transparent; text-shadow: none; }
html:not(.no-js):not(.seq-all) .field .seq { opacity: 0; }
html.seq-all .field .seq { opacity: 1 !important; transform: none !important; }

/* ---------------------------------------------------------------- below the cloth */
main { position: relative; padding: var(--s4) var(--gutter) 0; }
main > section, .hem { max-width: 1120px; margin-inline: auto; }
h2 { font: 500 calc(var(--t3) * var(--d)) / 1.15 var(--show); color: var(--straw); }
.lang-gu h2 { font-weight: 600; }
h3 { font: 500 calc(var(--t1) * var(--d)) / 1.3 var(--show); color: var(--straw); }
.sub { color: var(--ivory-2); font-size: calc(var(--t1) * .94 * var(--d)); margin: var(--s2) 0 var(--s4); max-width: var(--measure); }

/* the invitation, as the card's wording reads */
.invitation { max-width: var(--measure); text-align: center; display: grid; gap: var(--s2); padding-bottom: var(--s4); }
.bless { display: grid; gap: 2px; margin-bottom: var(--s2); }
.bless .lead { color: var(--ivory-3); font-size: var(--t0); }
.bl-name { color: var(--ivory-2); }
.hosts { font: 500 calc(var(--t2) * var(--d)) / 1.35 var(--show); color: var(--ivory); }
.invite { color: var(--ivory-2); }
.pair { display: grid; gap: var(--s2); margin-top: var(--s3); }
.who { display: grid; gap: 4px; }
.who .hon-in { font-size: .72em; }
.who .pn { font: 700 calc(var(--t3) * .95 * var(--d)) / 1.1 var(--show); color: var(--pat); }
.who .of { color: var(--ivory-2); font-size: var(--t0); max-width: 22rem; justify-self: center; }
.with-s { color: var(--straw); }
.count { margin-top: var(--s3); color: var(--straw); font: 500 calc(var(--t1) * var(--d)) / 1.3 var(--show); display: grid; justify-items: center; gap: 4px; }
.pulse { width: 132px; height: 30px; display: block; }

/* the two photographs, printed on cotton and sewn on: an ivory patch with the weave showing through
   the print, its edge turned under, held by a running stitch and a tack at each corner. The faint
   shadow is the patch's own thickness on the cloth. */
.patches { position: relative; display: flex; justify-content: center; align-items: flex-start; margin: var(--s4) auto var(--s2); }
.patch {
  position: relative; margin: 0; width: min(44vw, 280px); padding: 12px;
  background: #ECE0C8;
  clip-path: polygon(0.6% 0.4%, 33% 0.9%, 67% 0.2%, 99.5% 0.8%, 99.1% 34%, 99.8% 66%, 99.3% 99.4%, 66% 99.1%, 34% 99.8%, 0.4% 99.2%, 0.9% 66%, 0.2% 33%);
  filter: drop-shadow(0 1px 1px rgba(26, 5, 2, .45));
}
.patch::before { content: ""; position: absolute; inset: 0; background: url("/cloth/khaddar.jpg") center / 240px auto; filter: grayscale(1) contrast(1.6); mix-blend-mode: multiply; opacity: .16; pointer-events: none; }
.patch .ph { position: relative; display: block; }
.patch picture { display: block; }
.patch img { display: block; width: 100%; height: auto; }
/* the weave of the cotton the photograph is printed on */
.patch .ph::after { content: ""; position: absolute; inset: 0; background: url("/cloth/khaddar.jpg") center / 220px auto; mix-blend-mode: soft-light; opacity: .55; filter: grayscale(1) contrast(1.4); pointer-events: none; }
.patch .seam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p-a { transform: rotate(-3deg); z-index: 1; margin-right: -3vw; }
.p-b { transform: rotate(2.4deg); margin-top: 28px; }
@media (min-width: 900px) { .p-a { margin-right: -24px; } .p-b { margin-top: 40px; } }

/* the cloth's own border band, cut from the photograph: the page's only divider */
.band { width: 100vw; margin: 0 0 var(--s4) calc(50% - 50vw); }
.band canvas { display: block; width: 100%; }
main { overflow-x: clip; }

/* ---------------------------------------------------------------- the functions: a sampler, day by day */
.functions { padding-bottom: var(--s5); }
.cal-all { margin: calc(var(--s3) * -1) 0 var(--s4); }
.sampler { display: grid; gap: var(--s4); }
.day { display: grid; gap: var(--s3); }
.day-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dname { font: 500 calc(var(--t2) * 1.1 * var(--d)) / 1.1 var(--show); color: var(--straw); }
.ddate { color: var(--ivory-2); font: 400 calc(var(--t1) * var(--d)) / 1.3 var(--read); }
.day-fns { display: grid; gap: var(--s3); }
.fn { display: grid; grid-template-columns: 112px 1fr; gap: var(--s2) 20px; align-items: center; }
.motif { position: relative; display: block; width: 112px; aspect-ratio: 1; }
.motif canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; }
.fn-text { display: grid; gap: 2px; min-width: 0; }
.fn-name {
  position: relative; display: inline-block; justify-self: start; max-width: 100%;
  font: 800 calc(clamp(28px, 7.6vw, 40px) * var(--d)) / 1.14 var(--show); color: var(--pat);
  text-shadow: 0 1px 0 rgba(50, 14, 0, .5);
}
.lang-gu .fn-name { font-weight: 900; }
.fn-name canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.fn-time { color: var(--ivory); font-size: calc(var(--t1) * 1.05 * var(--d)); }
.fn-note { color: var(--ivory-2); font-size: var(--t0); line-height: 1.45; }
.fn-cal { font-size: var(--t0); color: var(--straw); justify-self: start; padding-block: 12px; margin-block: -6px 0; }
@media (min-width: 900px) {
  /* each day is one row of the sampler: the day at the left, its two functions side by side */
  .sampler { gap: var(--s4); }
  .day { grid-template-columns: 200px 1fr; align-items: start; gap: var(--s3); }
  .day-h { flex-direction: column; gap: 4px; padding-top: 44px; }
  .day-fns { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .fn { grid-template-columns: 136px 1fr; }
  .motif { width: 136px; }
}

/* ---------------------------------------------------------------- from our home to hers: the embroidered map */
.route { padding-bottom: var(--s5); }
.route-map { display: grid; gap: var(--s3); margin-top: var(--s3); }
.map-wrap { position: relative; order: 1; }
.route-thread { display: block; width: 100%; }
.km { margin: 0 0 var(--s2); min-height: 1.3em; font: 500 calc(var(--t1) * var(--d)) / 1.3 var(--show); color: var(--straw); font-variant-numeric: tabular-nums; }
.stop { display: grid; gap: 4px; max-width: 26rem; align-content: start; }
.stop-home { order: 0; } .stop-bride { order: 2; }
.st-name { font: 700 calc(var(--t2) * 1.05 * var(--d)) / 1.15 var(--show); color: var(--ivory); }
.st-area { color: var(--ivory-2); font-size: var(--t0); }
.st-fns { color: var(--ivory); margin-top: 4px; }
.st-map { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--straw); font-size: var(--t0); }
/* Zeel's side on phones: the map is turned west-up, so the town is above it and her home below */
@media (max-width: 899px) { .route-map.west-up .stop-home { order: 2; } .route-map.west-up .stop-bride { order: 0; } }
@media (min-width: 900px) {
  .route-map { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  .map-wrap { grid-column: 1 / -1; order: 0; }
  .km { text-align: right; }
  .stop-bride { order: 1; }
  .stop-home { order: 2; justify-self: end; text-align: right; }
  .stop-home .st-map { justify-self: end; }
}

/* ---------------------------------------------------------------- the film page */
.film-only { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: var(--s2); padding: var(--s3) var(--gutter); }
.reel { display: block; width: min(100%, 420px, calc((100svh - 120px) * 9 / 16)); aspect-ratio: 9 / 16; height: auto; background: var(--madder-deep); border-radius: 3px; }
.film-links { font-size: var(--t0); color: var(--ivory-2); text-align: center; }
.film-links a { display: inline-block; padding-block: 12px; color: var(--straw); }

/* ---------------------------------------------------------------- the video invite, woven */
/* a film-strip box darned into the cloth, a clapperboard with a play button sewn in its middle; a
   click swaps the weave for the film, which plays right there in the same box */
.watch { max-width: 36rem; padding-bottom: var(--s5); text-align: center; display: grid; justify-items: center; }
.watch h2 { margin-bottom: var(--s3); }
.screen { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; }
.screen-weave, .screen-film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen-film { background: var(--madder-deep); border-radius: 2px; object-fit: cover; }
.screen-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; color: var(--straw); display: block; }
.screen-tap { position: absolute; left: 0; right: 0; top: 64%; text-align: center; font: 500 calc(var(--t1) * var(--d)) / 1.3 var(--show); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; opacity: 0; }
.no-js .screen-tap { opacity: 1; }
.screen-play:focus-visible { outline: 2px solid var(--straw); outline-offset: 4px; }
.screen.playing .screen-weave, .screen.playing .screen-play { display: none; }

/* ---------------------------------------------------------------- reply and blessings */
.reply { max-width: 36rem; padding-bottom: var(--s5); }
.reply .sub { margin-bottom: var(--s3); }
form { display: grid; gap: var(--s3); }
[hidden] { display: none !important; }
.choice { display: flex; gap: var(--s1); flex-wrap: wrap; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s2); border: 1px solid var(--edge); border-radius: 3px; color: var(--ivory-2); cursor: pointer; }
.choice input:checked + span { background: var(--pat); border-color: var(--pat); color: var(--madder-deep); }
.choice input:focus-visible + span { outline: 2px solid var(--straw); outline-offset: 2px; }
.field-i { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-i > span, .field-i legend { font-size: var(--t0); color: var(--ivory-2); padding: 0; }
.field-i legend { margin-bottom: 4px; }
input, textarea { font: inherit; color: var(--ivory); background: var(--wash); border: 1px solid var(--edge); border-radius: 3px; min-height: 48px; padding: 10px 14px; width: 100%; }
textarea { resize: vertical; min-height: 84px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--straw); outline-offset: 1px; border-color: transparent; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 8px; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--pat); }
.check b { font-weight: 500; color: var(--straw); margin-right: 4px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 48px; height: 48px; border-radius: 3px; border: 1px solid var(--edge); background: transparent; color: var(--ivory); font-size: 22px; cursor: pointer; }
.stepper input { width: 72px; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.not-attending .when-yes, form:not(.not-attending) .when-no { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-err { color: var(--straw); font-size: var(--t0); }
.form-err:empty { display: none; }
.btn { display: inline-flex; align-items: center; font: 500 var(--t1) / 1 var(--read); min-height: 52px; padding: 0 var(--s3); border-radius: 3px; border: 0; background: var(--pat); color: var(--madder-deep); cursor: pointer; justify-self: start; text-decoration: none; }
.btn:hover { background: var(--straw); }
.btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.quiet { background: transparent; color: var(--straw); border: 1px solid var(--edge); }
.btn.quiet:hover { border-color: var(--straw); }
.rsvp-done { display: grid; gap: var(--s2); }
.done-msg { font: 500 calc(var(--t2) * var(--d)) / 1.35 var(--show); color: var(--straw); }
.link { background: none; border: 0; padding: 12px 0; color: var(--straw); font: inherit; font-size: var(--t0); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; justify-self: start; }

.hem { text-align: center; display: grid; gap: var(--s2); justify-items: center; padding: var(--s4) 0 calc(var(--s5) + 40px); }
.closing-lead { color: var(--ivory-2); }
.closing-with { color: var(--straw); font: 500 calc(var(--t2) * var(--d)) / 1.2 var(--show); margin-top: var(--s2); }
.closing { position: relative; font: 800 calc(clamp(34px, 9.5vw, 54px) * var(--d)) / 1.2 var(--show); color: var(--pat); margin-top: -8px; }
.lang-gu .closing { font-weight: 900; }
.closing span { position: relative; display: inline-block; }
.closing canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.closing-names { display: grid; justify-items: center; text-align: center; gap: 4px; margin-top: -4px; font: 700 calc(var(--t2) * 1.05 * var(--d)) / 1.3 var(--show); color: var(--pat); }
.lang-gu .closing-names { font-weight: 800; }
.made { font-size: var(--t0); color: var(--ivory-3); margin-top: var(--s3); }
.share-line { display: grid; justify-items: center; gap: 4px; margin-top: var(--s2); }
.share { font: 500 var(--t1) / 1 var(--show); color: var(--straw); background: none; border: 0; padding: 14px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.share:focus-visible { outline: 2px solid var(--straw); outline-offset: 2px; }
.share-done { font-size: var(--t0); color: var(--ivory-2); min-height: 1.3em; }
.lost { min-height: 70svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s3); }
.lost-line { font: 500 calc(var(--t2) * var(--d)) / 1.3 var(--show); color: var(--straw); max-width: 22rem; }
.made a { display: inline-block; padding-block: 12px; }
.made a.toran { color: var(--ivory-2); text-underline-offset: 4px; }

/* ---------------------------------------------------------------- controls */
.controls {
  position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(46, 9, 5, .92); border-radius: 26px; color: var(--ivory);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.is-typing .controls { opacity: 0; transform: translateY(12px); pointer-events: none; }
.controls button, .controls a, .controls b {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center;
  padding: 0 12px; border-radius: 22px; border: 0; background: none; color: inherit; font: 500 var(--t0) / 1 var(--show); text-decoration: none; cursor: pointer;
}
.controls b { color: var(--madder-deep); background: var(--straw); }
.controls .langs { display: flex; }
.controls .music[aria-pressed="true"] { color: var(--pat); }
.controls .music .mute-slash { display: none; }
.controls .music[aria-pressed="false"] .mute-slash { display: inline; }
.controls :focus-visible { outline: 2px solid var(--straw); outline-offset: -2px; }

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- plain pages (privacy, share, replies) */
body.plain { background-attachment: scroll; min-height: 100svh; }
.doc { max-width: 40rem; margin: 0 auto; padding: var(--s4) var(--gutter) var(--s5); display: grid; gap: var(--s2); }
.doc.wide { max-width: 1120px; }
.doc h1 { font: 600 var(--t3) / 1.15 var(--show); color: var(--straw); margin-bottom: var(--s2); }
.doc h2 { font-size: var(--t2); margin-top: var(--s3); }
.doc p { color: var(--ivory); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--t0); }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top; }
.doc th { color: var(--straw); font-weight: 500; }
.doc tbody tr:nth-child(odd) { background: var(--wash); }
.share .out a { word-break: break-all; color: var(--straw); }

/* the needle layer: over the page, under the controls, never in the way of a tap */
/* tap to open: browsers allow sound only after a tap, so where the music cannot start by itself the
   invitation waits on the bare cloth, and the guest's tap starts the music and the weaving together */
.opener { position: absolute; inset: 0; z-index: 3; border: 0; padding: 0; background: none; cursor: pointer; }
.opener .env { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.opener:focus-visible { outline: 2px solid var(--straw); outline-offset: -10px; }
html.gated, html.gated body { overflow: hidden; }
.needles { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 4; }

/* /links: every link of both invitations, with copy buttons */
.links h1 { margin-bottom: 0; }
.lk-sub { color: var(--ivory-2); max-width: 36rem; }
.lk-side { display: grid; gap: var(--s3); margin-top: var(--s4); }
.lk-side h2 { display: grid; gap: 2px; margin: 0; font: 700 var(--t3) / 1.15 var(--show); color: var(--pat); }
.lk-pair { font: 500 var(--t1) / 1.3 var(--show); color: var(--straw); }
.lk-group { display: grid; gap: var(--s2); }
.lk-lang { font: 600 var(--t1) / 1.2 var(--read); color: var(--ivory); }
.lk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lk-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
.lk-k { font: 600 var(--t0) / 1.3 var(--read); color: var(--straw); }
.lk-u { color: var(--ivory-2); font-size: var(--t0); overflow-wrap: anywhere; text-decoration: none; }
.lk-u:hover { color: var(--ivory); text-decoration: underline; }
.lk-copy { min-height: 44px; padding: 0 18px; font-size: var(--t0); }
.lk-copy.done { color: var(--pat); border-color: var(--pat); }
.lk-all { margin-top: 2px; }
.lk-all.done { background: var(--straw); color: var(--madder-deep); }
.lk-foot { margin-top: var(--s4); color: var(--ivory-2); }
@media (max-width: 560px) {
  .lk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lk-k { grid-column: 1; }
  .lk-u { grid-column: 1; grid-row: 2; }
  .lk-copy:not(.lk-all) { grid-column: 2; grid-row: 1 / span 2; }
}
