/* metricvalley design tokens (Ledger). Every color used by the site lives here. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.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: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-var.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: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-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;
}

:root {
  /* Ink and brand */
  --ink: #142439;
  --ink-soft: #44566d;
  --ink-faint: #5a6b80;
  --ink-mute: #8b99ab;
  --blue: #1745da;
  --blue-hover: #0f36b3;
  --deep: #102e67;
  --white: #fff;

  /* Surfaces and rules */
  --paper: #f3f6fc;
  --paper-2: #e9eef7;
  --rule: #cdd6e4;
  --rule-strong: #b9c4d3;
  --header-bg: rgba(255, 255, 255, .97);

  /* Workbook cell styles, TEMPLATE-STANDARD 4.1 */
  --cell-input: #fff2b3;
  --cell-input-edge: #8c6d00;
  --cell-formula: #fff;
  --cell-formula-edge: #d9dee5;
  --cell-reference: #eef0f3;

  /* Yellow accent (from the input cell) */
  --yellow: #f5c944;
  --yellow-hover: #ffd95a;
  --yellow-mid: #fbe083;
  --yellow-soft: #fff9dc;
  --yellow-ink: #5a4600;
  --placeholder-ink: #6a6143;
  --placeholder-rule: #c9a227;

  /* Status */
  --ok: #17603a;
  --ok-bg: #e3f1e8;
  --ok-row: #f5faf7;
  --neg: #a32834;
  --neg-bg: #fdecee;
  --muted-bg: #eef1f5;

  /* On dark */
  --on-dark-text: #d6deea;
  --on-dark-soft: #c9d5ea;
  --on-dark-strong: #e6ecf6;
  --on-dark-rule: rgba(255, 255, 255, .18);
  --on-dark-rule-strong: rgba(255, 255, 255, .35);
  --on-dark-muted: #b8c4d6;

  /* Shadows */
  --shadow-card: 0 36px 60px -36px rgba(16, 46, 103, .45);
  --shadow-soft: 0 24px 40px -30px rgba(16, 46, 103, .45);
  --shadow-menu: 0 24px 40px -24px rgba(16, 46, 103, .35);
  --shadow-bar: 0 -12px 30px -12px rgba(8, 20, 45, .45);

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --focus: var(--blue);
  --target: 44px;
}
