/* Blackout Essentials design tokens. Import after fonts/fonts.css. */
:root{
  /* Brand colors */
  --be-night:#15212C;        /* primary dark: header, footer, headings */
  --be-lantern:#F0A830;      /* amber accent: primary buttons, highlights, the lit dot */
  --be-lantern-deep:#B86E00; /* logo ESSENTIALS on light; large amber text 24px+ on white */
  --be-lantern-ink:#935800;  /* amber for small TEXT on light backgrounds: links, eyebrows (5.8:1 on white) */
  --be-lantern-hover:#E0961C;
  --be-ready:#2F7D5B;        /* in stock, success, "ready" states */
  --be-alert:#B4483A;        /* errors, low stock, safety warnings */
  --be-slate:#5B6B78;        /* secondary text, meta */
  --be-mist:#EEF1F0;         /* page background, alt sections */
  --be-line:#D5DBDB;         /* borders, dividers */
  --be-white:#FFFFFF;
  --be-on-dark:#E9EEF0;      /* body text on Night */
  --be-on-dark-muted:#9FB0BB;

  /* Semantic */
  --color-bg:var(--be-mist);
  --color-surface:var(--be-white);
  --color-text:var(--be-night);
  --color-text-muted:var(--be-slate);
  --color-border:var(--be-line);
  --color-accent:var(--be-lantern);
  --color-on-accent:var(--be-night);   /* never white on Lantern */
  --color-link:var(--be-lantern-ink);
  --color-success:var(--be-ready);
  --color-danger:var(--be-alert);

  /* Type */
  --font-display:"Archivo","Arial Black",system-ui,sans-serif;
  --font-body:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --text-xs:0.8125rem;  /* 13 */
  --text-sm:0.9375rem;  /* 15 */
  --text-base:1.125rem; /* 18 body */
  --text-lg:1.25rem;    /* 20 */
  --text-h4:1.375rem;   /* 22 */
  --text-h3:1.75rem;    /* 28 */
  --text-h2:2.25rem;    /* 36 */
  --text-h1:clamp(2.25rem,1.6rem + 2.8vw,3.75rem); /* 36-60 */
  --leading-tight:1.1;
  --leading-body:1.6;

  /* Space (4px base) */
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;--space-9:96px;
  --container:1200px;
  --measure:70ch;

  /* Shape */
  --radius-sm:4px;--radius:8px;--radius-lg:12px;--radius-pill:999px;
  --shadow-1:0 1px 2px rgba(21,33,44,.06),0 1px 3px rgba(21,33,44,.08);
  --shadow-2:0 4px 12px rgba(21,33,44,.10);
  --focus-ring:0 0 0 3px rgba(240,168,48,.55);
}

/* Optional dark mode ("night mode") */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --color-bg:#0E171F;--color-surface:var(--be-night);--color-text:var(--be-on-dark);
    --color-text-muted:var(--be-on-dark-muted);--color-border:#2A3946;--color-link:var(--be-lantern);
  }
}
:root[data-theme="dark"]{
  --color-bg:#0E171F;--color-surface:var(--be-night);--color-text:var(--be-on-dark);
  --color-text-muted:var(--be-on-dark-muted);--color-border:#2A3946;--color-link:var(--be-lantern);
}
