/* lupita site draft: shared tokens, header, footer and parts used on every page. */
:root {
  --ground: #faf6fb;
  --surface: #ffffff;
  --ink: #22152f;
  --muted: #6e5d82;
  --rule: #e7ddef;
  --accent: #b8265c;
  --accent-ink: #ffffff;
  --gold: #ffb547;
  --gold-ink: #2a1a05;
  --band: #2b1b45;
  --band-2: #24163a;
  --band-3: #1f1332;
  --on-band: #f3ecf8;
  --on-band-muted: #b3a3c9;
  --band-line: #3b2b57;
  --rosa: #e4467f;
  --green: #7fdca4;
  /* status: available now / in testing / planned */
  --ok-bg: #dff5e8;
  --ok-ink: #0f5a32;
  --test-bg: #fff0d6;
  --test-ink: #7a4a00;
  --plan-bg: #eee7f4;
  --plan-ink: #5a4a70;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #150d20;
    --surface: #1d1329;
    --ink: #f3ecf8;
    --muted: #ad9dc2;
    --rule: #332447;
    --accent: #f06a98;
    --accent-ink: #1a0d14;
    --band: #24163a;
    --band-2: #1f1332;
    --band-3: #190f29;
    --band-line: #3b2b57;
    --ok-bg: #173a27;
    --ok-ink: #9ee8bb;
    --test-bg: #3d2c10;
    --test-ink: #ffcf85;
    --plan-bg: #2a1e3b;
    --plan-ink: #c3b4d8;
  }
}
:root[data-theme="dark"] {
  --ground: #150d20;
  --surface: #1d1329;
  --ink: #f3ecf8;
  --muted: #ad9dc2;
  --rule: #332447;
  --accent: #f06a98;
  --accent-ink: #1a0d14;
  --band: #24163a;
  --band-2: #1f1332;
  --band-3: #190f29;
  --band-line: #3b2b57;
  --ok-bg: #173a27;
  --ok-ink: #9ee8bb;
  --test-bg: #3d2c10;
  --test-ink: #ffcf85;
  --plan-bg: #2a1e3b;
  --plan-ink: #c3b4d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.lede { color: var(--muted); max-width: 60ch; font-size: 18px; }
.kbd { font-family: var(--mono); font-size: 0.78em; padding: 1px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: 0.85; white-space: nowrap; }

.draft { background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 16px; }

/* Header (shared) */
.band { background: var(--band); color: var(--on-band); }
.nav { display: flex; align-items: center; gap: 12px 28px; padding-block: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--on-band); text-decoration: none; }
.brand i { width: 32px; height: 32px; border-radius: 50%; background: var(--rosa); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 16px; }
.nav-links { display: flex; gap: 20px; font-size: 15px; flex: 1; }
.nav-links a { color: var(--on-band-muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-band); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-cta { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-rosa { background: var(--rosa); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-band); border: 1px solid var(--band-line); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--rule); }

/* Status pills: available now / in testing / planned */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.test { background: var(--test-bg); color: var(--test-ink); }
.status.plan { background: var(--plan-bg); color: var(--plan-ink); }
.status.plan::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }

/* Sub-page header block */
.page-head { padding-block: 24px 56px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5.5vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.page-head h1 em { font-style: normal; color: var(--gold); }
.page-head .sub { margin-top: 16px; font-size: 19px; color: var(--on-band-muted); max-width: 52ch; }

section { padding-block: 88px; }
section + section { border-top: 1px solid var(--rule); }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }

/* Footer (shared) */
footer { background: var(--band-3); color: var(--on-band-muted); padding-block: 36px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--on-band-muted); }
footer a:hover { color: var(--on-band); }
footer .made { order: 3; flex-basis: 100%; margin: 0; padding-top: 16px; border-top: 1px solid var(--band-line); color: var(--on-band); }
footer .made .heart { color: var(--rosa); }

@media (max-width: 900px) {
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  section { padding-block: 64px; }
  .nav-cta .btn-ghost { display: none; }
}

/* Install one-liner with a copy button */
.cmd { display: flex; align-items: stretch; gap: 0; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--band-3); border: 1px solid var(--band-line, transparent); }
div.cmd pre { flex: 1; min-width: 0; margin: 0; overflow-x: auto; padding: 12px 14px; background: transparent; color: var(--on-band); font-family: var(--mono); font-size: 14px; border-radius: 0; }
div.cmd pre code { background: none; color: inherit; padding: 0; font: inherit; }
div.cmd .copy { flex-shrink: 0; font: 600 13px/1 var(--sans, inherit); padding: 0 16px; border: 0; border-left: 1px solid var(--band-line, rgba(255,255,255,0.15)); background: transparent; color: var(--gold, var(--on-band)); cursor: pointer; min-width: 5.5em; }
.cmd .copy:hover, .cmd .copy:focus-visible { background: rgba(255, 255, 255, 0.08); }
