/* The design's values: colours, fonts, sizes. Design A, "Poster wall" (docs/design/).
   Every other stylesheet uses only these variables, so a new style is a change to this file.
   Light by default; dark when the device prefers it, unless the page says data-theme="light";
   data-theme="dark" forces dark. */

@font-face {
  font-family: 'League Gothic';
  src: url('/fonts/league-gothic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-display: 'League Gothic', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;

  --paper: #F3EDE2;      /* page */
  --panel: #E7DECF;      /* boxes on the page */
  --ink: #16120F;        /* text */
  --muted: #5C564E;      /* secondary text */
  --rule: #16120F;       /* lines */
  --band: #16120F;       /* header and footer */
  --on-band: #F3EDE2;
  --band-rule: #6B645C;
  --accent: #D9421A;
  --on-accent: #FFFFFF;
  --secondary: #1E4F8A;
  --on-secondary: #FFFFFF;
  --danger: #B3261E;
  --focus: #1E4F8A;
  --field: #FFFFFF;

  --radius: 0;
  --rule-thin: 1px;
  --rule-thick: 4px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --page-width: 1240px;
  --page-gutter: 32px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15110E;
    --panel: #241E19;
    --ink: #F2EAE0;
    --muted: #B3A99B;
    --rule: #F2EAE0;
    --band: #0A0806;
    --on-band: #F2EAE0;
    --band-rule: #5A5249;
    --accent: #FF6A3D;
    --on-accent: #15110E;
    --secondary: #85BCEA;
    --on-secondary: #15110E;
    --danger: #FF9A8F;
    --focus: #85BCEA;
    --field: #0A0806;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #15110E;
  --panel: #241E19;
  --ink: #F2EAE0;
  --muted: #B3A99B;
  --rule: #F2EAE0;
  --band: #0A0806;
  --on-band: #F2EAE0;
  --band-rule: #5A5249;
  --accent: #FF6A3D;
  --on-accent: #15110E;
  --secondary: #85BCEA;
  --on-secondary: #15110E;
  --danger: #FF9A8F;
  --focus: #85BCEA;
  --field: #0A0806;
  color-scheme: dark;
}

@media (max-width: 700px) {
  :root { --page-gutter: 16px; }
}
