/* Colour, type, and measure. Components live in app.css and the area sheets home.css, inventory.css, offers.css and agent.css (plus the page sheets).
   Inter and IBM Plex Mono are SIL OFL. Licences: fonts/OFL-Inter.txt and fonts/OFL-IBMPlexMono.txt.
   Noto Sans stays the fallback and is declared in app.css. */

@font-face {
  font-family: Inter;
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --sidebar-bg: #f3f0e8;
  --surface: #ffffff;
  --rail-bg: #f7f4ee;
  --text: #1c1915;
  --muted: #6b645c;
  --line: #e2dbd0;
  --brand: #1c1915;
  --brand-ink: #f7f4ee;
  --mark: #f34200;

  --paper: var(--bg);
  --card: var(--surface);
  --chip: var(--rail-bg);
  --ink: var(--text);
  --group: #ece8df;
  --table-head: #faf8f4;
  --hover: #e5ddd0;
  --today: #f8e6dc;
  --today-wash: var(--today);
  --map: #e4ebe4;
  --soft: #8a8278;
  --placeholder: #9a9389;
  --line-2: #efe9df;

  /* #3f8a48 is 3.73:1 on the paper. Text uses #1a7842 (4.84:1 on paper, 4.66:1 on the free chip). */
  --free: #3f8a48;
  --free-ink: #1a7842;
  --free-bg: #e4efe4;
  --sold: #c23428;
  --sold-bg: #f3e4e0;
  --sold-ink: #9a3a32;
  --fixe: #2c6cb0;
  --fixe-bg: #e6eef6;
  --fixe-ink: #245a94;
  --held: #8a3d62;
  --held-bg: #f0e4ea;
  --hold-bg: #f4ead8;
  --hold-ink: #8a5a00;
  --soon: #b8860c;
  --soon-ink: #8a6409;
  --soon-bg: #f3ebd4;
  --parish: #8a8175;
  --out: #4a4744;
  --live: #3f8a48;
  --halo: rgba(63, 138, 72, 0.22);

  --accent-free: var(--free);
  --accent-sold: var(--sold);
  --accent-fixed: var(--fixe);
  --accent-held: var(--held);
  --accent-option: var(--soon);
  --accent-option-text: var(--soon-ink);
  --accent-today: var(--sold);
  --accent-comu: var(--parish);
  --accent-out: var(--out);
  --tag-hold: #6d4ea8;

  --mix-ink: #1c1915;
  --mix-light: #ffffff;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.04);
  --shadow-pop: 0 8px 24px rgba(28, 25, 21, 0.12);
  --ring: 0 0 0 1px rgba(28, 25, 21, 0.08);
  --pin-shadow: 0 0 0 1px rgba(28, 25, 21, 0.25);
  --scrim: rgba(22, 20, 16, 0.85);

  --sans: Inter, "Noto Sans", "Liberation Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Liberation Mono", monospace;
  --font: var(--sans);
  --font-size: 13px;
  --line-height: 1.45;
  --top: 46px;
  --side: 140px;
  --sidebar: var(--side);
  --r-8: 8px;
  --r-9: 9px;
  --r-10: 10px;
  --r-12: 12px;
  --r-pill: 999px;
  --radius: var(--r-8);
  --radius-sm: 6px;
  --radius-logo: 0;
  --focus: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161410;
  --sidebar-bg: #161410;
  --surface: #242019;
  --rail-bg: #100e0c;
  --text: #f4f0e8;
  --muted: #b7aea3;
  --line: #3c352d;
  --brand: #f4efe6;
  --brand-ink: #1c1915;
  --mark: #f34200;

  --group: #2a2620;
  --table-head: #1e1b17;
  --hover: #2e2923;
  --today: #5a3a32;
  --map: #1a221c;
  --soft: #8f877d;
  --placeholder: #7a736a;
  --line-2: #2e2923;

  --free: #3cba6f;
  --free-ink: #3cba6f;
  --free-bg: #163224;
  --sold: #e07068;
  --sold-bg: #3a2422;
  --sold-ink: #e07068;
  --fixe: #7eb0e0;
  --fixe-bg: #1c2c3c;
  --fixe-ink: #7eb0e0;
  --held: #e08aa4;
  --held-bg: #3a2430;
  --hold-bg: #3a2e1c;
  --hold-ink: #e2b15a;
  --soon: #e2b15a;
  --soon-ink: #e2b15a;
  --soon-bg: #3a3018;
  --parish: #b7aea3;
  --out: #8a8175;
  --live: #3cba6f;
  --halo: rgba(60, 186, 111, 0.28);

  --tag-hold: #c4b0e8;
  --mix-ink: #f4f0e8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 1px rgba(244, 240, 232, 0.12);
  --pin-shadow: 0 0 0 1px rgba(244, 240, 232, 0.25);
  --scrim: rgba(22, 20, 16, 0.85);
}
