/* =============================================================
   1-TOKENS — SITE-SPECIFIC
   This file is what makes this site look like this site.
   Every other CSS file reads from these variables, so changing
   values here restyles the whole page. A new site starts by
   copying this file and changing the values, not the names.
   ============================================================= */

/* Fonts — self-hosted in assets/fonts (Latin characters only),
   so the site doesn't depend on Google. Both are free
   (SIL Open Font License), from fonts.google.com. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../assets/fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../assets/fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../assets/fonts/courier-prime-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Amatic SC: the logo's hand lettering. Only used for the typed-out
   name in the pinned nav bar, so the file loads only once that shows. */
@font-face {
  font-family: "Amatic SC";
  src: url("../assets/fonts/amatic-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Colour — taken from the Great Bird logo: black ink, white paper,
     red from the bird's cheek stripe. */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #555555;   /* secondary text; 7.5:1 on white */
  --color-accent: #c8102e;  /* links, highlights; 5.9:1 on white */
  --color-on-accent: #ffffff; /* text on accent backgrounds; 5.9:1 */
  --color-line: #dddddd;    /* borders and dividers */

  /* Type — headings use Barlow Condensed, a plain condensed sans.
     The logo's own font, Amatic SC, is kept to the logo and the
     typed-out name in the nav bar. Body text and labels use Courier
     Prime, a typewriter font like the logo's "Studios". Fallbacks
     load if a font file fails. */
  --font-logo: "Amatic SC", var(--font-display);
  --font-body: "Courier Prime", "Courier New", monospace;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  /* Type sizes — clamp(min, preferred, max) scales smoothly with
     the window, so no breakpoints are needed. */
  --size-small: 0.9375rem;
  --size-body: 1.0625rem;
  --size-h3: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
  --size-h2: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --size-h1: clamp(3rem, 2.25rem + 3.5vw, 5rem);

  /* Spacing — one scale used for every gap, margin and padding. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  /* Layout */
  --page-max: 72rem;        /* widest the content gets */
  --text-max: 65ch;         /* longest comfortable line of text */
  --gutter: 1rem;           /* space at the left/right page edges */
  --radius: 4px;
}
