/* Shared design tokens for the website (index.html) and the CV (cv/index.html).
   Change the palette here and both follow. */

/* Archivo, self-hosted (SIL Open Font License, see fonts/OFL.txt).
   One variable file covers weights 100-900 and widths 62-125%. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfbf9;
  --ink: #1e2623;
  --slate: #5f6b66;
  --rule: #e1e7e4;
  --forest: #1b4639;
  --tint: #e4ece8;
  --tint-hover: #d3e0da;
  --brass: #a87a2a;
  --on-forest: #ffffff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light dark;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1714;
    --ink: #e3eae6;
    --slate: #9aa8a1;
    --rule: #24312c;
    --forest: #8cc7af;
    --tint: #1c2a25;
    --tint-hover: #26382f;
    --brass: #d4a852;
    --on-forest: #0f1714;
  }
}

/* The CV always prints in the light palette */
@media print {
  :root { color-scheme: light; }
}
