/* Pokéverse tokens. Sizes use two build-time units (site/build.py compiles them):
   Nu = N design pixels of the 1440x900 binder. Nc = N design pixels of a 174x244 card, so a card scales as one object. */
@font-face{font-family:Archivo;src:url(/fonts/archivo.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"Permanent Marker";src:url(/fonts/permanent-marker.woff2) format("woff2");font-display:swap}
/* Permanent Marker draws a 1 as a bare stroke, so "151" reads "ISI". Knewave's digits (and only its digits) stand in. */
@font-face{font-family:"Marker Digits";src:url(/fonts/marker-digits.woff2) format("woff2");unicode-range:U+30-39;size-adjust:92%;font-display:swap}
@font-face{font-family:"Rock Salt";src:url(/fonts/rock-salt.woff2) format("woff2");font-display:swap}

:root{
  --u:min(calc(100vw/1440),calc(100dvh/900));
  --c:var(--u);

  --cover:#081434;
  --cover-hi:#123068;
  --cover-lo:#081434;
  --page:#14306f;
  --page-lo:#0f2559;
  --plastic-line:rgba(255,255,255,.17);
  --ink:#111;
  --ink-soft:#5d5748;
  --paper:#f5efe0;
  --coin:#ffd21f;
  --tape:#e9d9a8;
  --note:#fbfaf3;
  --note-line:#b9cfe9;
  --note-ink:#14223f;

  --sticker:#ff6a13;
  --sticker-top:#ffe600;

  --tab-hits:#ffd21f;
  --tab-pairs:#ff6a13;
  --tab-chart:#7fd0ff;
  --tab-buy:#f4f1ea;

  --up:#54d17a;
  --down:#ff5a4a;

  --type-body:Archivo,system-ui,sans-serif;
  --type-marker:"Marker Digits","Permanent Marker","Marker Felt",cursive;
  --type-pencil:"Rock Salt","Bradley Hand",cursive;

  --turn:680ms;
  --ease-page:cubic-bezier(.42,.08,.2,1);
  --ease-out:cubic-bezier(.2,.8,.2,1);
}

/* One page at a time when the window is taller than it is wide, or too short for a spread. */
@media (max-aspect-ratio:23/20),(max-height:520px){
  :root{
    --u:min(calc(100vw/390),1.5px);
    --c:calc(var(--u)*.635);
  }
}
