/* Starpolar brand tokens. Single source for colors, type and shape.
   Canonical source. Its rules are inlined at the top of styles.css; keep both in sync.
   @font-face rules for hanken and monigue live in styles.css. */


:root{
  /* Night world */
  --sp-cosmic-black:#030006;
  --sp-cosmic-panel:#0b0814;
  --sp-cosmic-raised:#120d20;
  --sp-starlight:#f8f6ff;
  --sp-orbit:#9b7dff;

  /* Day world */
  --sp-stone:#e2e2e5;
  --sp-stone-surface:#d6d6da;
  --sp-ink:#17151a;
  --sp-muted:#514b51;
  --sp-warm-white:#fafafa;
  --sp-orbit-deep:#6d3bff;

  /* Type */
  --sp-font-body:hanken,system-ui,-apple-system,"Segoe UI",sans-serif;
  --sp-font-signature:monigue,hanken,system-ui,sans-serif;
  --sp-weight-regular:400;
  --sp-weight-medium:500;
  --sp-weight-strong:600;

  /* Shape */
  --sp-radius-media:14px;
  --sp-radius-panel:18px;
  --sp-radius-pill:999px;
  --sp-radius-square:0;

  /* Spacing */
  --sp-space-xs:8px;
  --sp-space-sm:12px;
  --sp-space-md:18px;
  --sp-space-lg:24px;
  --sp-space-xl:48px;
}

/* Semantic roles: pages use these, never raw hex. */
.sp-night{
  --sp-bg:var(--sp-cosmic-black);
  --sp-surface:var(--sp-cosmic-panel);
  --sp-surface-raised:var(--sp-cosmic-raised);
  --sp-text:var(--sp-starlight);
  --sp-text-muted:#c8c3dc;
  --sp-accent:var(--sp-orbit);
  --sp-action-bg:var(--sp-starlight);
  --sp-action-text:var(--sp-cosmic-black);
  --sp-action-radius:var(--sp-radius-pill);
  --sp-rule:rgb(255 255 255 / .14);
}
.sp-day{
  --sp-bg:var(--sp-stone);
  --sp-surface:var(--sp-stone-surface);
  --sp-surface-raised:var(--sp-stone-surface);
  --sp-text:var(--sp-ink);
  --sp-text-muted:var(--sp-muted);
  --sp-accent:var(--sp-orbit-deep);
  --sp-action-bg:var(--sp-ink);
  --sp-action-text:var(--sp-warm-white);
  --sp-action-radius:var(--sp-radius-square);
  --sp-rule:rgb(23 21 26 / .22);
}
.sp-night,.sp-day{background:var(--sp-bg);color:var(--sp-text);font-family:var(--sp-font-body)}
.sp-signature{font-family:var(--sp-font-signature);text-transform:uppercase;font-weight:400;letter-spacing:.04em}
