/* Post theme: hot-rolling steel. Light first; brand green #03b58f as the leading accent, steel blue and amber as support. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400..700;1,8..60,400..700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  color-scheme: light;

  --bg: #f6f5f2;
  --bg-2: #e9ebe6;
  --panel: #ffffff;
  --line: rgb(27 26 24 / .12);
  --shadow: 0 18px 48px rgb(20 50 40 / .10);
  --shadow-sm: 0 2px 10px rgb(20 50 40 / .06);

  --fg: #1b1a18;
  --fg-soft: #45413b;
  --muted: #66615a;

  /* brand accent. On light surfaces it is about 2.4:1, so it is used for fills,
     rules, big numbers and marks; --on-accent is dark so text on it stays readable (6.6:1) */
  --accent: #03b58f;
  --on-accent: #062a22;
  --accent-2: #1d4e7a;
  --accent-3: #b45309;

  --good: #15803d;
  --warn: #9a5b00;
  --bad: #b91c1c;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --title-weight: 700;
  --title-tracking: -.025em;
  --accent-style: italic;

  --measure: 680px;
  --wide: 1160px;
  --radius: 14px;
  --radius-lg: 24px;
  --term-bg: #fbfdfb;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111214;
  --bg-2: #191a1d;
  --panel: #1d1f23;
  --line: rgb(236 235 231 / .12);
  --shadow: 0 24px 64px rgb(0 0 0 / .4);
  --shadow-sm: 0 2px 12px rgb(0 0 0 / .3);
  --fg: #ecebe7;
  --fg-soft: #bdb8ae;
  --muted: #8f897e;
  --accent: #03b58f;
  --on-accent: #062a22;
  --accent-2: #7cc4ff;
  --accent-3: #ffb454;
  --good: #5fd39a;
  --warn: #ffcf5c;
  --bad: #ff6b6b;
  --term-bg: #0c0d0f;
}
