/* The look of the whole site, in one place: font, corners and palette.
   Change the values here, or live in dev mode's Theme page (node tools/serve.mjs --dev).
   Everything else (slides, script, paper page, presenter view) reads these. */

@font-face { font-family: "SN Pro"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/sn-pro-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SN Pro"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/sn-pro-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "SN Pro"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/sn-pro-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SN Pro"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/sn-pro-latin-ext-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Arial, resized to SN Pro's measurements, so text stays put when SN Pro arrives. */
@font-face { font-family: "SN Pro Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 99.7%; ascent-override: 98.8%; descent-override: 31.6%; line-gap-override: 0%; }

:root {
  /* Font. SN Pro ships with the site, so it looks the same in every browser, in the PDF and on the venue's computer. */
  --f-text: "SN Pro", "SN Pro Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Its weights, from 200 to 900. Reading text sits a little above regular on a white page. */
  --w-text: 420;
  --w-strong: 640;
  --w-head: 700;
  --w-display: 760;

  /* Corners, on the web pages. Slides are drawn at 1920 wide and scale this up to match. */
  --r: 14px;

  /* Palette, light. The IEEE VIS 2026 template's colours. */
  --title: #df6824;     /* titles, big numbers, where you are */
  --accent: #bb4a72;    /* the current bullet, links, focus ring, text selection, buttons that are on */
  --on-accent: #ffffff; /* text on the accent */
  --head: #693a19;      /* block headings */
  --bg: #ffffff;        /* the page */
  --surface-2: #faf3ec; /* buttons, fields, quiet fills */
  --fg: #3b352f;        /* text */

  /* inside figures, as in the paper: you, your partner, both */
  --you: #3d8bff;
  --partner: #f08a3c;
  --both: #ec4f9c;
}

.dark {
  /* Light text on a dark page looks heavier, so it is set a little lighter. */
  --w-text: 380;
  --w-strong: 600;
  --w-head: 660;
  --w-display: 720;

  /* Palette, dark */
  --title: #f8a45a;
  --accent: #ed74b5;
  --on-accent: #1c1815;
  --head: #f8a45a;
  --bg: #1c1815;
  --surface-2: #2a241f;
  --fg: #f6efe9;
}
