/* Fonts (self-hosted), colour and space tokens, and the two lights: after hours and daylight. */
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-var-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Bill's three colours */
  --blue: #2f7bff;
  --sun: #ffd23f;
  --dusk: #7a4ae0;

  /* after hours (default): the walls go dark so the art glows */
  --wall: #0a0b18;
  --wall-2: #11132a;
  --wall-3: #1a1d3a;
  --ink: #f3eee4;
  --ink-2: rgba(243, 238, 228, .72);
  --ink-3: rgba(243, 238, 228, .46);
  --line: rgba(243, 238, 228, .16);
  --water: #5b97ff;          /* blue, lifted for small text on dark */
  --accent: var(--sun);
  --on-accent: #17130a;
  --scrim: 10, 11, 24;       /* --wall as r,g,b for gradients */
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);

  --serif: "Gambetta", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(18px, 4.5vw, 64px);
  --wrap: 1280px;
  --leaf: 3px 20px 3px 20px;  /* the site's one corner: a leaf, not a pill */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: 76px;

  color-scheme: dark;
}

[data-theme="day"] {
  --wall: #efe8db;
  --wall-2: #e6dece;
  --wall-3: #dbd1bd;
  --ink: #17182c;
  --ink-2: rgba(23, 24, 44, .76);
  --ink-3: rgba(23, 24, 44, .52);
  --line: rgba(23, 24, 44, .18);
  --water: #1f5fd6;
  --accent: #1f5fd6;
  --on-accent: #fff;
  --scrim: 239, 232, 219;
  --shadow: 0 30px 70px -34px rgba(40, 30, 10, .55);
  color-scheme: light;
}

@media (max-width: 700px) {
  :root { --head: 64px; }
}
