/* Magpie tokens. The palette is sampled from Pip (assets/character/pip-web/approved-character.png):
   charcoal-plum feathers, cream belly, cobalt wing, teal tail. */
@font-face {
  font-family: 'Oxanium';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/oxanium-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Oxanium';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/oxanium-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Oxanium';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/oxanium-700.woff2') format('woff2');
}
/* Silkscreen draws on an 8-unit grid, so it is only used at 8px or 16px, where its pixels land whole. */
@font-face {
  font-family: 'Silkscreen';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/silkscreen-400.woff2') format('woff2');
}

:root {
  --font: 'Oxanium', ui-sans-serif, system-ui, sans-serif;
  --pixel: 'Silkscreen', ui-monospace, monospace;

  /* light: cream paper, plum ink */
  --bg: #f7f1ec;
  --surface: #fffbf8;
  --raised: #ffffff;
  --ink: #2e2839;
  --ink-dim: #675e70;
  --ink-faint: #9a90a0;
  --line: #ddd2cf;
  --line-strong: #b9adb0;
  --accent: #0030d0;
  --accent-ink: #ffffff;
  --accent-soft: #e3e8fb;
  --teal: #00707f;
  --danger: #b3261e;
  --scrim: rgb(46 40 57 / 0.55);
  --shadow: #2e2839;
  --pip-edge: none;

  --hairline: 1px solid var(--line);
  --gap: 18px;
  --gutter: 28px;
  --radius: 0px;
  --touch: 44px;
  --header: 88px;
  color-scheme: light;
}

/* dark: near-black plum, darker and cooler than Pip's feathers so he stands out; cream ink */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14111b;
    --surface: #1c1825;
    --raised: #241f2f;
    --ink: #f4ebe6;
    --ink-dim: #b2a8bb;
    --ink-faint: #7d7488;
    --line: #362f43;
    --line-strong: #544a63;
    --accent: #7590ff;
    --accent-ink: #14111b;
    --accent-soft: #252c52;
    --teal: #45c3d2;
    --danger: #ff8a7e;
    --scrim: rgb(8 6 12 / 0.7);
    --shadow: #000000;
    --pip-edge: 1;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #14111b;
  --surface: #1c1825;
  --raised: #241f2f;
  --ink: #f4ebe6;
  --ink-dim: #b2a8bb;
  --ink-faint: #7d7488;
  --line: #362f43;
  --line-strong: #544a63;
  --accent: #7590ff;
  --accent-ink: #14111b;
  --accent-soft: #252c52;
  --teal: #45c3d2;
  --danger: #ff8a7e;
  --scrim: rgb(8 6 12 / 0.7);
  --shadow: #000000;
  --pip-edge: 1;
  color-scheme: dark;
}

@media (max-width: 720px) {
  :root {
    --gap: 8px;
    --gutter: 12px;
  }
}
