/*
 * sletten.site — The Private Ledger
 * Cool paper, deep navy ink and a pastel stone-blue accent.
 * Light by default; dark only via the toggle.
 */
:root {
  color-scheme: light;
  --bg: oklch(97.6% 0.007 245);
  --bg-raised: oklch(99.6% 0.003 245);
  --bg-sunken: oklch(94.4% 0.014 245);
  --ink: oklch(27% 0.045 258);
  --ink-soft: oklch(43% 0.042 254);
  --ink-faint: oklch(55% 0.036 250);
  /* Borders are ink at low alpha so they blend into any surface behind them */
  --rule: oklch(27% 0.045 258 / 0.13);
  --rule-strong: oklch(27% 0.045 258 / 0.27);
  --accent: oklch(52% 0.085 246);
  --accent-soft: oklch(93% 0.026 240);
  --on-accent: oklch(99% 0.004 245);
  --up: oklch(45.8% 0.093 160);
  --up-soft: oklch(94.4% 0.021 157);
  --down: oklch(53.0% 0.157 29);
  --down-soft: oklch(94.4% 0.020 33);
  --flat: oklch(48% 0.03 250);
  --flat-soft: oklch(93.5% 0.012 245);
  --focus: oklch(50% 0.13 255);
  --nav-bg: oklch(97.6% 0.007 245 / 0.94);
  --portrait-a: oklch(91% 0.028 238);
  --portrait-b: oklch(80% 0.048 244);
  --shape-main: #c9d4e2;
  --shape-accent: #9db0c9;
  --shape-deep: #4a6283;
  --shape-opacity: .82;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: 2.25rem;
  --text-2xl: 3.5rem;
  --text-hero: clamp(4.5rem, 7.9vw, 8.25rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 7.5rem;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --page-max: 83rem;

  /* Card corners. Anything nested inside a card uses the card radius minus the card padding. */
  --radius-card: 14px;
  --radius-floor: 3px;

  /* Depth: soft shadows on light. Dark mode swaps these for lighter surfaces. */
  --shadow-card: 0 18px 44px -34px oklch(25% 0.05 258 / 0.40);
  --shadow-card-hover: 0 22px 50px -30px oklch(25% 0.05 258 / 0.50);
  --shadow-portrait: 0 28px 70px -55px oklch(20% 0.05 258 / 0.55);
  --surface-edge: transparent;
  --label-col: 11.25rem;

  /* The research slate deliberately keeps a dark finance-terminal identity in both themes. */
  --cov-bg: oklch(25.5% 0.045 258);
  --cov-surface: oklch(29.5% 0.048 257);
  --cov-raised: oklch(33% 0.05 256);
  --cov-ink: oklch(96.5% 0.008 240);
  --cov-soft: oklch(84% 0.025 240);
  --cov-muted: oklch(74% 0.03 242);
  --cov-rule: oklch(96.5% 0.008 240 / 0.15);
  --cov-up: oklch(84.7% 0.119 155);
  --cov-down: oklch(81.8% 0.102 27);
  --cov-flat: oklch(84% 0.02 240);
}

/* Light is the default for every visitor. Dark applies only when chosen with the toggle. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(20.5% 0.032 258);
  --bg-raised: oklch(26.5% 0.038 256);
  --bg-sunken: oklch(30% 0.04 255);
  --ink: oklch(95.5% 0.008 240);
  --ink-soft: oklch(83% 0.022 242);
  --ink-faint: oklch(71% 0.03 244);
  --rule: oklch(95.5% 0.008 240 / 0.12);
  --rule-strong: oklch(95.5% 0.008 240 / 0.24);
  --shadow-card: 0 0 transparent;
  --shadow-card-hover: 0 0 transparent;
  --shadow-portrait: 0 0 transparent;
  --surface-edge: oklch(100% 0 0 / 0.06);
  --accent: oklch(78% 0.075 238);
  --accent-soft: oklch(33% 0.045 250);
  --on-accent: oklch(20.5% 0.032 258);
  --up: oklch(84.7% 0.119 155);
  --up-soft: oklch(32% 0.05 160);
  --down: oklch(80.3% 0.112 26);
  --down-soft: oklch(32% 0.05 28);
  --flat: oklch(84% 0.02 240);
  --flat-soft: oklch(32% 0.03 250);
  --focus: oklch(82% 0.09 238);
  --nav-bg: oklch(20.5% 0.032 258 / 0.95);
  --portrait-a: oklch(46% 0.05 245);
  --portrait-b: oklch(33% 0.045 252);
  --shape-main: #3b4e69;
  --shape-accent: #6f88ab;
  --shape-deep: #7f98bb;
  --shape-opacity: .65;
  --cov-bg: oklch(17% 0.03 258);
  --cov-surface: oklch(23% 0.04 257);
  --cov-raised: oklch(27% 0.045 256);
  --cov-rule: oklch(96.5% 0.008 240 / 0.12);
}
