/* ATFS Strategy: design tokens.
   Palette: Sweetie 16 by GrafxKid, a free pixel-art palette. Its navy, coral and orange sit
   close to the ATFS logo. Day and night use the same 16 colours, the way a game ships one
   palette under two lighting moods. Tints marked (t) are blends of two palette colours. */

@font-face {
  font-family: "Pixelify Sans";
  src: url("../fonts/pixelify-sans-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/silkscreen-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/silkscreen-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  /* body face: drawn for legibility, so long copy stays easy next to pixel type */
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;

  /* the palette, for art and accents */
  --c-night: #1a1c2c; --c-plum: #5d275d;  --c-red: #b13e53;  --c-orange: #ef7d57;
  --c-yellow: #ffcd75; --c-lime: #a7f070; --c-green: #38b764; --c-teal: #257179;
  --c-navy: #29366f;  --c-blue: #3b5dc9;  --c-sky: #41a6f6;  --c-cyan: #73eff7;
  --c-white: #f4f4f4; --c-mist: #94b0c2;  --c-slate: #566c86; --c-ink: #333c57;

  /* day */
  --paper: #f4f4f4;
  --paper-2: #e8eef2;        /* (t) alternate band */
  --card: #ffffff;
  --ink: #1a1c2c;
  --ink-2: #333c57;
  --ink-3: #566c86;
  --line: #c9d6df;           /* (t) decorative rules */
  --edge: #566c86;           /* control boundaries, 3:1 or better */
  --px-line: #1a1c2c;        /* pixel outlines */
  --px-shadow: #94b0c2;      /* hard drop shadows */
  --accent: #b13e53;         /* UI fills: bullets, underlines, XP bar (orange is too light on day paper; it stays in the art) */
  --accent-ink: #b13e53;     /* accent as text */
  --mark: #a7f070;           /* highlighter behind a headline word */
  --err: #b13e53;
  --btn: #ffcd75; --btn-ink: #1a1c2c; --btn-hi: #fff3d6; --btn-lo: #ef7d57; --btn-line: #1a1c2c;
  --btn-2: #ffffff; --btn-2-lo: #c9d6df;
  --live: #38b764;
  --logo-tile: #ffffff;

  /* type */
  --font-display: "Pixelify Sans", "Segoe UI", system-ui, sans-serif;
  --font-label: "Silkscreen", "Consolas", monospace;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  /* the pixel: every border, shadow and step is a multiple of it */
  --p: 4px;

  /* space */
  --gutter: clamp(20px, 5vw, 72px);
  --sec: clamp(88px, 11vw, 168px);
  --maxw: 1240px;

  --z-header: 40;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #1a1c2c;
  --paper-2: #20243a;        /* (t) */
  --card: #262b44;           /* (t) */
  --ink: #f4f4f4;
  --ink-2: #c9d6df;          /* (t) */
  --ink-3: #94b0c2;
  --line: #333c57;
  --edge: #7088a1;           /* (t) */
  --px-line: #566c86;
  --px-shadow: #0d0e17;      /* (t) */
  --accent: #ef7d57;
  --accent-ink: #ef7d57;
  --mark: #5d275d;
  --err: #ef7d57;
  --btn-2: #262b44; --btn-2-lo: #11131f;
  --live: #a7f070;
}
