/* What every page on the site shares: the fonts, the colors and plain
   links. The home page (home.css) and the reading pages and forum
   (page.css) build on it. Dark mode follows the device's setting: most colors
   change with it. night and cream stay put, for what looks the same in both
   (text on amber); images/map-roads.svg and map-route.svg can't read these
   colors, so a change to the map or route colors goes in them too. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --paper: var(--cream);
  --panel: #FFFFFF;
  --night: #16181B;
  --cream: #F4F1EA;
  --ink: var(--night);
  --muted: #5B6168;
  --rule: #D9D4C8;
  --amber: #F2A900;
  --gutter: clamp(20px, 5vw, 72px);
  --line: #0A6CDB;      /* the route, close to the app's bright blue */
  --line-text: #0A5CBB; /* the same blue, dark enough for words */
  --safety: #8A5F00;    /* amber, dark enough for words on cream */
  --map-ground: #E8E3D6;
  --map-road: #D6D0C1;
  --map-major: #C5BEAC;
  --map-water: #C9D8DE;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1113;
    --panel: #1E2125;
    --ink: var(--cream);
    --muted: #A9AEB4;
    --rule: #33373C;
    --line: #0A84FF;
    --line-text: #6CB6FF;
    --safety: var(--amber);
    --map-ground: #14171B;
    --map-road: #22262C;
    --map-major: #2E333A;
    --map-water: #10202E;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
.logo { line-height: 0; }
.logo img { width: 180px; }
a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
