/* Direction: Larkspur Books — a calm, trustworthy ledger. Cool paper, deep
   ink blue, precise grotesk numerals, quiet amber for spend. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eaeef7;
  --border: #dbe1ee;
  --border-strong: #acafb6;
  --ink: #0e1a2b;
  --muted: #55657f;
  --accent: #1b3fa0;
  --accent-hover: #173688;
  --accent-ink: #ffffff;
  --accent-text: #1c3f99;
  --accent-strong: #15306f;
  --accent-soft: #e3eafb;
  --accent-border: #92a4d2;
  --success: #0f7a5a;
  --success-ink: #ffffff;
  --success-soft: #d9e7e8;
  --success-strong: #0e7053;
  --warning: #9a6407;
  --warning-ink: #ffffff;
  --warning-soft: #e9e4de;
  --warning-strong: #8e5c06;
  --danger: #b3261e;
  --danger-ink: #ffffff;
  --danger-soft: #ecdde0;
  --danger-strong: #b3261e;
  --chart-1: #1b3fa0;
  --chart-2: #c47219;
  --chart-3: #0f7a5a;
  --chart-4: #7b3fa8;
  --chart-5: #1d7f9c;
  --chart-6: #a8231c;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.025em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --shadow-card: 0 1px 2px rgba(14, 26, 43, 0.05), 0 10px 28px rgba(14, 26, 43, 0.06);
  --x-grid: rgba(90, 110, 150, 0.18);
  --x-on-dark: #ffffff;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #030710;
  --surface: #1c2028;
  --surface-2: #10131c;
  --border: #262a31;
  --border-strong: #4f5158;
  --ink: #f4f6fb;
  --muted: #94969d;
  --accent: #1b3fa0;
  --accent-hover: #3d5cae;
  --accent-ink: #ffffff;
  --accent-text: #748ac5;
  --accent-strong: #6880c0;
  --accent-soft: #081330;
  --accent-border: #0e2051;
  --success: #0f7a5a;
  --success-ink: #ffffff;
  --success-soft: #062020;
  --success-strong: #44987e;
  --warning: #9a6407;
  --warning-ink: #ffffff;
  --warning-soft: #241b0e;
  --warning-strong: #b0863e;
  --danger: #b3261e;
  --danger-ink: #ffffff;
  --danger-soft: #2a0e13;
  --danger-strong: #c9645e;
  --chart-1: #406acf;
  --chart-2: #bb64c2;
  --chart-3: #d0504d;
  --chart-4: #a97e00;
  --chart-5: #30983a;
  --chart-6: #249aa5;
}

/* Chart bars grow from a short rest state (they are never invisible). */
@keyframes bar-grow {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1);
  }
}

.bar {
  transform-origin: bottom center;
  animation: bar-grow 0.55s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

html.reduced-motion .bar {
  animation: none;
}

.chart-grid {
  background-image: repeating-linear-gradient(
    to top,
    var(--x-grid) 0,
    var(--x-grid) 1px,
    transparent 1px,
    transparent 25%
  );
}

.num {
  font-variant-numeric: tabular-nums;
}

.ledger-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-table td,
.ledger-table th {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.75rem;
  vertical-align: top;
}

.ledger-table tbody tr:hover {
  background: var(--surface-2);
}
