/* Curtis Tan — site styles.
   One stylesheet, tokens first. Light values live on :root; dark values are declared twice,
   for the OS setting (unless the visitor picked light) and for an explicit dark choice. */

/* The fonts are served from this site (assets/fonts), so a visit sends nothing to a font
   service. They are the Latin subsets of Archivo, Geist and Geist Mono (SIL Open Font
   License: see the .txt files next to them). Characters outside the range fall back to the
   system font, as they did when the fonts came from Google Fonts. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-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: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-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: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-mono-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;
}

:root {
  color-scheme: light;
  --bg: #eff1f2;
  --bg-2: #e6e9ec;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --surface-3: #eceef1;
  --ink: #101826;
  --ink-2: #2a3341;
  --muted: #555d68;
  --line: #d6dadf;
  --line-2: #e3e6ea;
  --accent: #f25a1d;
  --accent-ink: #b23b0b;
  --accent-soft: #fde3d7;
  --ok: #0e7346;
  --ok-mark: #1f9e6a;
  --ok-soft: #dcf2e7;
  --warn: #9a5b00;
  --warn-mark: #d98a00;
  --warn-soft: #fbefd6;
  --bad: #bf2d2d;
  --bad-mark: #d64545;
  --bad-soft: #f9e0e0;
  --info: #2557c9;
  --info-soft: #e1e9fb;
  --btn-bg: #101826;
  --btn-ink: #f4f6f8;
  --shadow-1: 0 1px 0 rgba(16, 24, 38, .04), 0 1px 2px rgba(16, 24, 38, .06);
  --shadow-2: 0 1px 0 rgba(16, 24, 38, .04), 0 12px 32px -18px rgba(16, 24, 38, .32);
  --glass: rgba(239, 241, 242, .78);
  --chart-1: #2f5fd0;
  --chart-2: #4b5563;
  --chart-3: #7d8693;
  --grid: #e3e6ea;
  --g-lab: #e8501a;
  --g-pack: #2f5fd0;
  --g-solo: #5b6573;
  /* the "Say hello" band: an ink slab in light; in dark its own raised navy, not an inverted white slab */
  --band-bg: #101826;
  --band-ink: #f4f6f8;
  --band-line: #101826;
  --band-btn: #f4f6f8;
  --band-btn-ink: #101826;
  --band-glow: rgba(242, 90, 29, 0);
  --track-off: #868e99;
  --switch-on: #f25a1d; /* the "on" track: a white knob reads against it in both themes */
  /* the "screen": the monitor on the desk, at full size. It stays dark in both themes, so it has
     its own palette; in the dark theme only its ground and edge change, to stand off the page. */
  --screen-bg: #0b1018;
  --screen-bar: #111826;
  --screen-edge: #0b1018;
  --screen-ink: #e6ecf4;
  --screen-ink-2: #b6c1d0;
  --screen-muted: #8794a8;
  --screen-line: #1f2a3b;
  --screen-ok: #3ccb8f;
  --screen-ok-soft: #0f2d21;
  --screen-warn: #f0b34a;
  --screen-warn-soft: #33260c;
  --screen-accent: #ff6a2b;
  --screen-accent-ink: #ff8a57;
  --screen-focus: rgba(255, 106, 43, .08);
  --screen-glow: rgba(255, 106, 43, .1);
  --shadow-screen: 0 1px 0 rgba(16, 24, 38, .05), 0 30px 60px -34px rgba(16, 24, 38, .55);
  /* each project's colour, taken from its object: PC lighting, felt, stage light, blueprint, owl, card back */
  --p-fpslabs: #7a4ce6;
  --p-briarwatch: #1f7d4d;
  --p-micandmore: #c07d0c;
  --p-renostack: #2a66cf;
  --p-pingowl: #4f5d75;
  --p-skills: #dd4c16;
  --stub-mix: 8%;
  --stub-mix-2: 20%;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --maxw: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left), min(5vw, 40px));
  --gutter-r: max(16px, env(safe-area-inset-right), min(5vw, 40px));
  --radius: 12px;
  --radius-sm: 8px;
  --head-h: 64px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c111a;
    --bg-2: #0f1520;
    --surface: #121926;
    --surface-2: #182233;
    --surface-3: #1d2839;
    --ink: #e9eef5;
    --ink-2: #c6cfdb;
    --muted: #95a1b3;
    --line: #243044;
    --line-2: #1c2636;
    --accent: #ff6a2b;
    --accent-ink: #ff8a57;
    --accent-soft: #3a1d10;
    --ok: #3ccb8f;
    --ok-mark: #3ccb8f;
    --ok-soft: #0f2d21;
    --warn: #f0b34a;
    --warn-mark: #e5a12e;
    --warn-soft: #33260c;
    --bad: #ff7b7b;
    --bad-mark: #e66767;
    --bad-soft: #3a1515;
    --info: #8fb0ff;
    --info-soft: #17233f;
    --btn-bg: #e9eef5;
    --btn-ink: #0c111a;
    --shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
    --shadow-2: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
    --glass: rgba(12, 17, 26, .78);
    --chart-1: #5b8cff;
    --chart-2: #a3adbb;
    --chart-3: #617089;
    --grid: #223047;
    --g-lab: #ff6a2b;
    --g-pack: #5b8cff;
    --g-solo: #8a96a8;
    --band-bg: #141c2b;
    --band-ink: #e9eef5;
    --band-line: #26334a;
    --band-btn: #ff6a2b;
    --band-btn-ink: #101826;
    --band-glow: rgba(255, 106, 43, .16);
    --track-off: #64748b;
    --screen-bg: #070b11;
    --screen-bar: #0c121c;
    --screen-edge: #243044;
    --shadow-screen: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
    --p-fpslabs: #a78bfa;
    --p-briarwatch: #4fbf85;
    --p-micandmore: #e9b04f;
    --p-renostack: #6a9cf5;
    --p-pingowl: #9fb0cc;
    --p-skills: #ff7a3d;
    --stub-mix: 13%;
    --stub-mix-2: 30%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c111a;
  --bg-2: #0f1520;
  --surface: #121926;
  --surface-2: #182233;
  --surface-3: #1d2839;
  --ink: #e9eef5;
  --ink-2: #c6cfdb;
  --muted: #95a1b3;
  --line: #243044;
  --line-2: #1c2636;
  --accent: #ff6a2b;
  --accent-ink: #ff8a57;
  --accent-soft: #3a1d10;
  --ok: #3ccb8f;
  --ok-mark: #3ccb8f;
  --ok-soft: #0f2d21;
  --warn: #f0b34a;
  --warn-mark: #e5a12e;
  --warn-soft: #33260c;
  --bad: #ff7b7b;
  --bad-mark: #e66767;
  --bad-soft: #3a1515;
  --info: #8fb0ff;
  --info-soft: #17233f;
  --btn-bg: #e9eef5;
  --btn-ink: #0c111a;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
  --shadow-2: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
  --glass: rgba(12, 17, 26, .78);
  --chart-1: #5b8cff;
  --chart-2: #a3adbb;
  --chart-3: #617089;
  --grid: #223047;
  --g-lab: #ff6a2b;
  --g-pack: #5b8cff;
  --g-solo: #8a96a8;
  --band-bg: #141c2b;
  --band-ink: #e9eef5;
  --band-line: #26334a;
  --band-btn: #ff6a2b;
  --band-btn-ink: #101826;
  --band-glow: rgba(255, 106, 43, .16);
  --track-off: #64748b;
  --screen-bg: #070b11;
  --screen-bar: #0c121c;
  --screen-edge: #243044;
  --shadow-screen: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --p-fpslabs: #a78bfa;
  --p-briarwatch: #4fbf85;
  --p-micandmore: #e9b04f;
  --p-renostack: #6a9cf5;
  --p-pingowl: #9fb0cc;
  --p-skills: #ff7a3d;
  --stub-mix: 13%;
  --stub-mix-2: 30%;
}

