/* Lettering effects from the rótulo references (docs/moodboard.md §1).
   Import after tokens.css + base.css:  <link rel="stylesheet" href="/kit/lettering.css">
   Every effect reads colors from custom properties so it works in any palette:
     --fx-a   main fill            --fx-b   second fill / shadow
     --fx-c   outline / third      --fx-accent  swashes, stars, dashes                          */

.fx { --fx-a: var(--cannoli-cream); --fx-b: var(--moonlit-ocean); --fx-c: var(--blue-heaven); --fx-accent: var(--baltic-amber); }

/* ---- shadows ---- */
/* flat pop: one hard offset shadow in a second color (#15 "MEXICANOS", #37) */
.fx-pop { color: var(--fx-a); text-shadow: .055em .065em 0 var(--fx-b); }
/* double pop: two stepped offsets (#16 "Te Quiero") */
.fx-double { color: var(--fx-a); text-shadow: .04em .045em 0 var(--fx-b), .08em .09em 0 var(--fx-c); }
/* extrusion: a solid 3D side + a final color edge (#13 "HOY NO FÍO", #40) */
.fx-extrude {
  color: var(--fx-a); -webkit-text-stroke: .03em var(--fx-b); paint-order: stroke fill;
  text-shadow: .015em .015em 0 var(--fx-b), .03em .03em 0 var(--fx-b), .045em .045em 0 var(--fx-b),
    .06em .06em 0 var(--fx-b), .075em .075em 0 var(--fx-b), .1em .1em 0 var(--fx-c);
}
/* hollow: outline only, with a solid offset fill peeking out (#38 "PORQUE", #21) */
.fx-hollow { color: transparent; -webkit-text-stroke: .035em var(--fx-b); text-shadow: .07em .07em 0 var(--fx-c); }
/* outlined fill + offset outline (#21 "PROHIBIDO") */
.fx-outline { color: var(--fx-a); -webkit-text-stroke: .04em var(--fx-b); paint-order: stroke fill; text-shadow: .06em .06em 0 var(--fx-b), .085em .085em 0 var(--fx-c); }
/* two-tone split fill, top/bottom (#13 "Mañana", #21) — keeps its pop shadow */
.fx-split {
  background: linear-gradient(var(--fx-a) 0 52%, var(--fx-c) 52%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .025em var(--fx-b);
  filter: drop-shadow(.05em .06em 0 var(--fx-b));
}
/* sheen: a thin light band across the letters, like a painted highlight (#14 "GRITAR") */
.fx-sheen {
  background: linear-gradient(var(--fx-a) 0 30%, color-mix(in oklab, var(--fx-a) 30%, white) 30% 38%, var(--fx-a) 38%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(.05em .06em 0 var(--fx-b));
}

/* ---- accents ---- */
/* swash underline under a script word (#9 "Chidos", #37 "Rótulos", #39) */
.fx-swash { position: relative; display: inline-block; padding-bottom: .12em; }
.fx-swash::after {
  content: ""; position: absolute; left: 4%; right: -2%; bottom: -.06em; height: .26em; background: var(--fx-accent);
  -webkit-mask: 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") center / 100% 100% no-repeat;
          mask: 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") center / 100% 100% no-repeat;
  transform-origin: left center;
}
/* dashes either side: ~— text —~ (#15 "~SÚPER~", #14) */
.fx-dashes { display: inline-flex; align-items: center; gap: .55em; }
.fx-dashes::before, .fx-dashes::after { content: ""; width: 1.6em; height: .12em; border-radius: 1em; background: var(--fx-accent); }
/* tildes either side, in script (#15) */
.fx-tildes::before { content: "~ "; font-family: var(--font-sign); color: var(--fx-accent); }
.fx-tildes::after { content: " ~"; font-family: var(--font-sign); color: var(--fx-accent); }
/* ribbon banner behind a word, swallowtail ends (#21 "ESTAR", #14) */
.fx-ribbon {
  display: inline-block; padding: .12em 1em .16em; background: var(--fx-b); color: var(--fx-a);
  clip-path: polygon(0 0, 100% 0, calc(100% - .55em) 50%, 100% 100%, 0 100%, .55em 50%);
  filter: drop-shadow(.06em .08em 0 var(--fx-accent));
}
/* small badge/disc for "&" (#39 "de" in a heart/disc) */
.fx-badge {
  display: inline-grid; place-items: center; width: 1.5em; aspect-ratio: 1; border-radius: 50%;
  background: var(--fx-b); color: var(--fx-a); box-shadow: .06em .07em 0 var(--fx-accent); line-height: 1;
}
/* stars flanking a line (#13 "★ Sí ★") — uses .twinkle from base.css */
.fx-stars { display: inline-flex; align-items: center; gap: .4em; }
.fx-stars > .twinkle { color: var(--fx-accent); width: .55em; }

/* the whole lockup can lean like a hand-painted sign */
.fx-tilt { transform: rotate(-3deg); display: inline-block; }

/* ---------- save-the-date lockups (shared/lockup.js) ---------- */
.lk { display: grid; justify-items: center; text-align: center; gap: .18em; font-size: clamp(14px, 1.4vw + 8px, 24px); color: var(--moonlit-ocean); }
.lk p, .lk h1 { margin: 0; font-weight: 400; }
.lk-names { display: grid; justify-items: center; line-height: .92; }
.lk-line { display: inline-block; }

/* mar — #16 "En el mar te quiero mucho más" */
.lk--mar .lk-kicker { font-family: var(--font-condensed); font-weight: 800; font-size: 1.15em; letter-spacing: .32em; text-transform: uppercase; }
.lk--mar .lk-script { font-family: var(--font-sign); font-size: 4.8em; padding: 0 .15em; --fx-a: var(--cannoli-cream); --fx-b: var(--moonlit-ocean); --fx-c: var(--blue-heaven); -webkit-text-stroke: .018em var(--moonlit-ocean); paint-order: stroke fill; }
.lk--mar .lk-amp { font-family: var(--font-didone); font-style: italic; font-size: 1.5em; margin: -.25em 0 -.15em; --fx-a: var(--cannoli-cream); --fx-b: var(--baltic-amber); --fx-accent: var(--moonlit-ocean); }
.lk--mar .lk-date { font-family: var(--font-rotulo); font-size: 2.3em; letter-spacing: .03em; margin-top: .3em; --fx-c: var(--baltic-amber); }
.lk--mar .lk-place { font-family: var(--font-fat-italic); font-size: 1.3em; margin-top: .3em; --fx-a: var(--baltic-amber); --fx-b: var(--cannoli-cream); }

/* fonda — #13 "Hoy no fío / Mañana sí", #40, #39 */
.lk--fonda .lk-kicker { font-family: "Oswald", var(--font-condensed); font-weight: 600; font-size: 1.15em; letter-spacing: .24em; text-transform: uppercase; }
.lk--fonda .lk-caps { font-family: var(--font-rotulo); font-size: 4em; text-transform: uppercase; letter-spacing: .01em; --fx-a: var(--moonlit-ocean); --fx-c: var(--blue-heaven); --fx-b: var(--cannoli-cream); }
.lk--fonda .lk-amp { font-family: var(--font-sign); font-size: 1.8em; margin: -.1em 0; --fx-a: var(--cannoli-cream); --fx-b: var(--baltic-amber); --fx-accent: var(--moonlit-ocean); }
.lk--fonda .lk-tag { font-family: "Mr Dafoe", var(--font-sign); font-size: 3em; transform: rotate(-4deg); margin: -.15em 0 .1em; --fx-a: var(--baltic-amber); --fx-b: var(--cannoli-cream); --fx-accent: var(--moonlit-ocean); }
.lk--fonda .lk-date { font-family: var(--font-slab); font-size: 1.7em; text-transform: uppercase; --fx-a: var(--cannoli-cream); --fx-b: var(--moonlit-ocean); --fx-c: var(--baltic-amber); }
.lk--fonda .lk-place { font-family: "Oswald", var(--font-condensed); font-weight: 500; font-size: 1em; letter-spacing: .2em; text-transform: uppercase; margin-top: .4em; opacity: .85; }

/* cartel — #14 "Hoy toca gritar", #21, #41 */
.lk--cartel .lk-kicker { font-family: var(--font-sign); font-size: 2.4em; color: var(--baltic-amber); --fx-accent: var(--blue-heaven); }
.lk--cartel .lk-tuscan { font-family: var(--font-tuscan); font-size: 4.2em; text-transform: uppercase; letter-spacing: .02em; --fx-b: var(--moonlit-ocean); --fx-c: var(--iced-aqua); }
.lk--cartel .lk-ribbon { font-family: var(--font-condensed); font-weight: 900; font-size: 2.6em; text-transform: uppercase; letter-spacing: .08em; margin-top: .05em; transform: rotate(-2deg); --fx-a: var(--cannoli-cream); --fx-b: var(--blue-heaven); --fx-accent: var(--moonlit-ocean); }
.lk--cartel .lk-fatit { font-family: var(--font-fat-italic); font-size: 2.5em; margin-top: .25em; --fx-a: var(--baltic-amber); --fx-b: var(--moonlit-ocean); }
.lk--cartel .lk-year { font-family: var(--font-didone); font-size: 3.6em; line-height: .9; --fx-a: var(--cannoli-cream); --fx-b: var(--moonlit-ocean); --fx-c: var(--blue-heaven); }
.lk--cartel .lk-place { font-family: var(--font-condensed); font-weight: 800; font-size: 1em; letter-spacing: .22em; text-transform: uppercase; margin-top: .5em; }

/* dark backgrounds */
.lk--dark { color: var(--cannoli-cream); }
.lk--dark.lk--fonda .lk-caps { --fx-a: var(--cannoli-cream); --fx-c: var(--iced-aqua); --fx-b: var(--moonlit-ocean); }

@media (max-width: 480px) {
  .lk--mar .lk-script { font-size: 4.1em; }
  .lk--fonda .lk-caps { font-size: 3.2em; }
  .lk--cartel .lk-tuscan { font-size: 3.2em; }
}
.lk-line.fx-dashes, .lk-line.fx-stars { display: inline-flex; }
/* lockups fill their host's width so fitLockup() can measure the space they have */
[data-lockup], .lk { width: 100%; min-width: 0; }
