/* ===============================================================
   tokens.css — the theme. Cocoa & ember, Sligoil.
   Reuse this on every page. Edit it almost never.
   =============================================================== */

/* One family, three weights. Sligoil's "Micro" cut IS the regular —
   it's the one drawn for small sizes, which is all this page uses it
   for. The browser picks the file by weight. */
@font-face {
  font-family: "Sligoil";
  src: url("/fonts/Sligoil-Micro.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sligoil";
  src: url("/fonts/Sligoil-MicroMedium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sligoil";
  src: url("/fonts/Sligoil-MicroBold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* colour — five values, that's the whole palette */
  --paper:  #F7F1E6;
  --ink:    #241D18;
  --muted:  #8A7A68;
  --rule:   #E3D8C6;
  --accent: #A85A1E;

  /* type */
  --font-body:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "Sligoil", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-micro: "Sligoil", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* space */
  --measure: 34rem;    /* readable line length. hold this. */
  --gutter:  6rem;     /* the margin column */
  --spine:   1.75rem;  /* clearance either side of the vertical rule */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #1B1613;
    --ink:    #EDE4D6;
    --muted:  #948573;
    --rule:   #33291F;
    --accent: #E08A3C;
  }
}
