/* /kit/lockup.css — the "ours" save-the-date lockup (rendered by /kit/lockup.js).
   It draws with the site's type system (/kit/type.css): caps for the kicker, sign script for the
   names, the text face's bold italic for the "&", brush script for the tagline, slab for the date,
   fat italic for the place. Link type.css on the page; without it the families below still load
   from tokens.css, except the "&", which falls back to Georgia.
   Every measure is in em, so the lockup scales as one piece (fitLockup() sets the font-size).

   Colors are roles, so a page or a lab variant can re-ink it:
     --lk-ink     outlines, shadows, small text        --lk-paper   letter fills
     --lk-mid     second shadow step                   --lk-accent  disc, tagline, stars, dashes   */

.lk.lk--ours {
  --lk-ink: var(--moonlit-ocean, #2a3b4e);
  --lk-paper: var(--cannoli-cream, #f1f0e2);
  --lk-mid: var(--blue-heaven, #5b7e98);
  --lk-accent: var(--baltic-amber, #8b665a);
  --lk-accent-deep: color-mix(in oklab, var(--lk-accent) 58%, var(--lk-ink));

  --lk-kicker: var(--lk-ink);
  --lk-dash: var(--lk-accent);
  --lk-name-fill: var(--lk-paper);
  --lk-name-line: var(--lk-ink);
  --lk-name-s1: var(--lk-ink);
  --lk-name-s2: var(--lk-mid);
  --lk-name-s3: transparent;
  --lk-name-stroke: .018em;
  --lk-name-depth: .08em;                 /* how far the last shadow step sits from the letters */
  --lk-amp-bg: var(--lk-accent);
  --lk-amp-fg: var(--lk-paper);
  --lk-amp-shadow: var(--lk-ink);
  --lk-amp-ring: transparent;
  --lk-tag-fill: var(--lk-accent);
  --lk-tag-pop: var(--lk-paper);
  --lk-swash-ink: var(--lk-ink);
  --lk-date-fill: var(--lk-paper);
  --lk-date-side: var(--lk-ink);
  --lk-date-edge: var(--lk-accent);
  --lk-date-depth: 1;                     /* multiplier on the extrusion */
  --lk-star-ink: var(--lk-accent);
  --lk-place-fill: var(--lk-accent-deep);
  --lk-place-pop: var(--lk-paper);

  /* The "&": measured from Yellowtail's ink (see site/lab/lockup/?debug=amp).
     "Ileana" has no descenders and in "James" only the J is tall, so the free space between the
     names runs from Ileana's shadow down to the top of "ames". These two put the disc in the
     middle of that space; --lk-amp-dx lines it up with the names' ink (their shadows step right). */
  --lk-amp-size: 1.5em;                   /* disc diameter, in the &'s own em */
  --lk-amp-above: .013em;                 /* Ileana's box → disc (script em) */
  --lk-amp-below: -.345em;                /* disc → James's box (script em) */
  --lk-amp-dx: 0em;
  --lk-script-dx: -.067em;                /* names: centre the ink + half the shadow on the axis */
  --lk-first-dx: 0em;
  --lk-second-dx: 0em;

  display: grid; justify-items: center; text-align: center; gap: 0;
  width: 100%; min-width: 0; margin: 0;
  font-size: clamp(14px, 1.4vw + 8px, 24px);
  line-height: 1; color: var(--lk-ink);
  font-synthesis-weight: none;
}
.lk--ours p, .lk--ours h1, .lk--ours h2, .lk--ours h3 { margin: 0; font-weight: 400; }
.lk--ours .lk-line { display: inline-block; white-space: nowrap; }
.lk--ours .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 1 · Save The date — condensed caps between two short dashes */
.lk--ours .lk-kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--type-caps, "Big Shoulders Display", "Oswald", Impact, sans-serif);
  font-weight: 800; font-size: 1.15em; line-height: 1.2; letter-spacing: .32em; text-transform: uppercase;
  color: var(--lk-kicker);
}
.lk--ours .lk-kicker-text { margin-right: -.32em; }      /* the tracking after the last letter */
.lk--ours .lk-kicker::before, .lk--ours .lk-kicker::after {
  content: ""; width: 1.6em; height: .12em; border-radius: 1em; background: var(--lk-dash);
}

/* 2–4 · the names */
.lk--ours .lk-names {
  display: grid; justify-items: center;
  font-size: 2em; line-height: .92; margin-top: .06em;
}
.lk--ours .lk-script {
  font-family: var(--type-sign, "Yellowtail", "Mr Dafoe", cursive);
  font-size: 4.8em; padding: 0 .15em;
  color: var(--lk-name-fill);
  -webkit-text-stroke: var(--lk-name-stroke) var(--lk-name-line); paint-order: stroke fill;
  text-shadow:
    calc(var(--lk-name-depth) * .5) calc(var(--lk-name-depth) * .5625) 0 var(--lk-name-s1),
    var(--lk-name-depth) calc(var(--lk-name-depth) * 1.125) 0 var(--lk-name-s2),
    calc(var(--lk-name-depth) * 1.3) calc(var(--lk-name-depth) * 1.46) 0 var(--lk-name-s3);
}
.lk--ours .lk-first { margin-bottom: var(--lk-amp-above); translate: calc(var(--lk-script-dx) + var(--lk-first-dx)) 0; }
.lk--ours .lk-second { margin-top: var(--lk-amp-below); translate: calc(var(--lk-script-dx) + var(--lk-second-dx)) 0; }

.lk--ours .lk-amp {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  font-family: var(--type-text, "Besley", Georgia, serif); font-style: italic; font-weight: 800;
  font-size: 1.5em; line-height: 1;
  width: var(--lk-amp-size); height: var(--lk-amp-size); border-radius: 50%;
  background: var(--lk-amp-bg); color: var(--lk-amp-fg);
  box-shadow: .06em .07em 0 var(--lk-amp-shadow), inset 0 0 0 .07em var(--lk-amp-ring);
  translate: var(--lk-amp-dx) 0;
}
/* The italic "&" is drawn a little off its box centre; pull its ink onto the disc's. */
.lk--ours .lk-amp-glyph { display: block; translate: var(--lk-glyph-dx, .02em) var(--lk-glyph-dy, -.04em); }

/* 5 · We're getting married — the Fonda tagline: tilted brush script, swash underneath */
.lk--ours .lk-tag {
  font-family: var(--type-brush, "Mr Dafoe", "Yellowtail", cursive);
  font-size: 2.9em; line-height: 1.1; rotate: -4deg;
  margin: .32em 0 .04em;
  color: var(--lk-tag-fill); text-shadow: .055em .065em 0 var(--lk-tag-pop);
}
.lk--ours .lk-swash { position: relative; display: inline-block; padding-bottom: .12em; }
.lk--ours .lk-swash::after {
  content: ""; position: absolute; left: 4%; right: -2%; bottom: -.06em; height: .26em;
  background: var(--lk-swash-ink); transform-origin: left center;
  -webkit-mask: var(--lk-swash-shape) center / 100% 100% no-repeat;
          mask: var(--lk-swash-shape) center / 100% 100% no-repeat;
  --lk-swash-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 15 C 45 4, 130 1, 198 6 C 150 8, 95 11, 40 15 C 22 16.5, 10 17, 2 15 Z'/%3E%3C/svg%3E");
}

/* 6 · 11 · 13 · 2027 — fat slab, extruded, a turning star either side */
.lk--ours .lk-date {
  display: inline-flex; align-items: center; gap: .42em;
  font-family: var(--type-slab, "Ultra", "Alfa Slab One", Georgia, serif);
  font-size: 2.3em; line-height: 1.25; letter-spacing: .03em; margin-top: .2em;
}
.lk--ours .lk-date time { display: block; }
.lk--ours .lk-date-num {
  display: block; margin-right: -.03em;
  color: var(--lk-date-fill); -webkit-text-stroke: .03em var(--lk-date-side); paint-order: stroke fill;
  --d: calc(.015em * var(--lk-date-depth));
  text-shadow:
    var(--d) var(--d) 0 var(--lk-date-side), calc(var(--d) * 2) calc(var(--d) * 2) 0 var(--lk-date-side),
    calc(var(--d) * 3) calc(var(--d) * 3) 0 var(--lk-date-side), calc(var(--d) * 4) calc(var(--d) * 4) 0 var(--lk-date-side),
    calc(var(--d) * 5) calc(var(--d) * 5) 0 var(--lk-date-side), calc(var(--d) * 6.7) calc(var(--d) * 6.7) 0 var(--lk-date-edge);
}
.lk--ours .lk-star { display: block; width: .34em; aspect-ratio: 1; flex: none; color: var(--lk-star-ink); }
.lk--ours .lk-star::before {
  content: ""; display: block; width: 100%; height: 100%; background: currentColor;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: lk-twinkle 3.6s ease-in-out infinite;
}
.lk--ours .lk-star:last-child::before { animation-delay: -1.8s; }
@keyframes lk-twinkle {
  0%, 100% { transform: scale(.8) rotate(0deg); opacity: .65; }
  50% { transform: scale(1.08) rotate(14deg); opacity: 1; }
}

/* 7 · the place — two lines of fat italic */
.lk--ours .lk-place {
  display: inline-grid; justify-items: center; gap: .04em;
  font-family: var(--type-fat, "Shrikhand", "Alfa Slab One", serif);
  font-size: 1.32em; line-height: 1.16; margin-top: .42em;
  color: var(--lk-place-fill); text-shadow: .05em .06em 0 var(--lk-place-pop);
}
.lk--ours .lk-place-a, .lk--ours .lk-place-b { display: block; }
.lk--ours .lk-comma { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* the line break stands in for it */

/* ---------- dark grounds (ink, blue or amber paper; film) ----------
   (same weight as the variant selectors below, so a variant can still change these) */
.lk--ours.lk--dark {
  --lk-kicker: var(--lk-paper);
  --lk-dash: var(--iced-aqua, #b8d5db);
  --lk-name-s2: var(--iced-aqua, #b8d5db);
  --lk-amp-bg: var(--lk-paper);
  --lk-amp-fg: var(--lk-ink);
  --lk-amp-shadow: var(--lk-accent);
  --lk-tag-fill: var(--lk-paper);
  --lk-tag-pop: var(--lk-accent);
  --lk-swash-ink: var(--iced-aqua, #b8d5db);
  --lk-date-edge: var(--iced-aqua, #b8d5db);
  --lk-star-ink: var(--iced-aqua, #b8d5db);
  --lk-place-fill: var(--lk-paper);
  --lk-place-pop: var(--lk-ink);
  color: var(--lk-paper);
}

/* ---------- lab variants (site/lab/lockup) — the default needs none of these ---------- */

/* B · Tucked */
.lk--ours[data-v="B"] { --lk-amp-above: -.062em; --lk-amp-below: -.42em; }
/* C · Airy */
.lk--ours[data-v="C"] { --lk-amp-size: 1.22em; --lk-amp-above: .068em; --lk-amp-below: -.29em; }
/* D · Script & */
.lk--ours[data-v="D"] { --lk-amp-bg: transparent; --lk-amp-shadow: transparent; --lk-amp-fg: var(--lk-accent); --lk-amp-size: .74em; --lk-amp-above: .03em; --lk-amp-below: -.33em; --lk-glyph-dx: -.02em; --lk-glyph-dy: -.02em; }
.lk--ours[data-v="D"] .lk-amp { font-family: var(--type-sign, "Yellowtail", cursive); font-style: normal; font-weight: 400; font-size: 3.1em; text-shadow: .04em .045em 0 var(--lk-ink); }
.lk--ours.lk--dark[data-v="D"] { --lk-amp-fg: var(--iced-aqua, #b8d5db); }
.lk--ours.lk--dark[data-v="D"] .lk-amp { text-shadow: .05em .055em 0 var(--lk-ink); }
/* E · Ring & */
.lk--ours[data-v="E"] { --lk-amp-bg: transparent; --lk-amp-shadow: transparent; --lk-amp-ring: var(--lk-accent); --lk-amp-fg: var(--lk-ink); }
.lk--ours.lk--dark[data-v="E"] { --lk-amp-ring: var(--iced-aqua, #b8d5db); --lk-amp-fg: var(--lk-paper); }
/* F · Staggered */
.lk--ours[data-v="F"] { --lk-first-dx: .15em; --lk-second-dx: -.15em; }
/* G · Shallow */
.lk--ours[data-v="G"] { --lk-name-depth: .05em; --lk-name-s2: transparent; --lk-date-depth: .55; --lk-script-dx: -.04em; --lk-amp-above: -.049em; }
/* H · Deep */
.lk--ours[data-v="H"] { --lk-name-depth: .1em; --lk-name-s3: var(--lk-accent); --lk-date-depth: 1.5; --lk-script-dx: -.09em; --lk-amp-above: .069em; }
/* I · Aqua names */
.lk--ours[data-v="I"] { --lk-name-fill: var(--iced-aqua, #b8d5db); --lk-name-s2: var(--lk-paper); --lk-amp-bg: var(--lk-mid); --lk-date-edge: var(--lk-mid); --lk-star-ink: var(--lk-mid); --lk-dash: var(--lk-mid); }
.lk--ours.lk--dark[data-v="I"] { --lk-name-s2: var(--lk-mid); --lk-amp-bg: var(--iced-aqua, #b8d5db); }
/* J · Amber accents */
.lk--ours[data-v="J"] { --lk-name-s2: var(--lk-accent); --lk-amp-bg: var(--lk-ink); --lk-amp-shadow: var(--lk-accent); --lk-swash-ink: var(--lk-accent); }
.lk--ours.lk--dark[data-v="J"] { --lk-amp-bg: var(--lk-accent); --lk-amp-fg: var(--lk-paper); --lk-amp-shadow: var(--lk-paper); --lk-date-edge: var(--lk-accent); --lk-star-ink: var(--lk-accent); }
/* K · Ink and cream */
.lk--ours[data-v="K"] { --lk-mid: var(--lk-ink); --lk-accent: var(--lk-ink); --lk-name-s2: transparent; --lk-name-depth: .06em; --lk-amp-shadow: transparent; --lk-date-edge: var(--lk-ink); --lk-script-dx: -.042em; --lk-amp-above: -.044em; }
.lk--ours.lk--dark[data-v="K"] { --lk-accent: var(--lk-paper); --lk-dash: var(--lk-paper); --lk-swash-ink: var(--lk-paper); --lk-star-ink: var(--lk-paper); --lk-date-edge: var(--lk-ink); --lk-tag-pop: var(--lk-ink); }
/* L · Fine line */
.lk--ours[data-v="L"] { --lk-name-stroke: .009em; --lk-name-depth: .055em; --lk-date-depth: .7; --lk-script-dx: -.055em; --lk-amp-above: -.015em; }
.lk--ours[data-v="L"] .lk-kicker { font-weight: 600; }
.lk--ours[data-v="L"] .lk-date-num { -webkit-text-stroke-width: .018em; }

/* M · swash shapes */
.lk--ours[data-swash="double"] .lk-swash::after {
  height: .34em; bottom: -.16em;
  --lk-swash-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C 50 3, 140 0.5, 198 3 C 140 6, 60 9, 4 13.5 Z M30 21 C 80 15, 130 13, 176 14 C 130 17.5, 80 20.5, 32 24 Z'/%3E%3C/svg%3E");
}
.lk--ours[data-swash="loop"] .lk-swash::after {
  height: .5em; bottom: -.36em; left: 2%; right: 0;
  --lk-swash-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 32' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4.2' stroke-linecap='round' d='M3 11 C 40 6, 76 5, 102 9 C 122 12, 120 27, 104 27 C 89 27, 88 11, 108 8 C 138 3.5, 170 3, 197 6'/%3E%3C/svg%3E");
}

/* N · star motion */
.lk--ours[data-stars="turn"] .lk-star::before { animation: lk-turn 16s linear infinite; }
.lk--ours[data-stars="turn"] .lk-star:last-child::before { animation-direction: reverse; animation-delay: 0s; }
@keyframes lk-turn { to { transform: rotate(360deg); } }
.lk--ours[data-stars="glint"] .lk-star::before { animation: lk-glint 7s cubic-bezier(.4, 0, .2, 1) infinite; }
.lk--ours[data-stars="glint"] .lk-star:last-child::before { animation-delay: -3.5s; }
@keyframes lk-glint {
  0%, 78%, 100% { transform: scale(.82) rotate(0deg); opacity: .7; }
  88% { transform: scale(1.3) rotate(90deg); opacity: 1; }
}
.lk--ours[data-stars="still"] .lk-star::before { animation: none; }

/* P · place line */
.lk--ours[data-place="mixed"] .lk-place-b,
.lk--ours[data-place="caps"] .lk-place {
  font-family: var(--type-caps, "Big Shoulders Display", "Oswald", Impact, sans-serif);
  font-weight: 800; letter-spacing: .22em; text-transform: uppercase; text-shadow: none; color: var(--lk-kicker);
}
.lk--ours[data-place="mixed"] .lk-place { gap: .22em; }
.lk--ours[data-place="mixed"] .lk-place-b { font-size: .74em; margin-right: -.22em; }
.lk--ours[data-place="caps"] .lk-place { display: inline-block; font-size: .92em; letter-spacing: .2em; margin-top: .7em; }
.lk--ours[data-place="caps"] .lk-place-a, .lk--ours[data-place="caps"] .lk-place-b { display: inline; }
.lk--ours[data-place="caps"] .lk-comma { position: static; width: auto; height: auto; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  .lk--ours .lk-star::before { animation: none !important; }
}
/* Pages that offer a reduced-motion preview (?motion=reduced) put .rm on <html>. */
.rm .lk--ours .lk-star::before { animation: none !important; }
