/* Direction: Tally — ledger-crisp banking tool. Paper white, ink black,
   one vivid coral for pending money and the primary action. */
/* 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: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #b6b6b6;
  --ink: #0a0a0b;
  --muted: #68686f;
  --accent: #ff4a2e;
  --accent-hover: #d93f27;
  --accent-ink: #0a0a0b;
  --accent-text: #ce3419;
  --accent-strong: #a82a12;
  --accent-soft: #ffeae5;
  --accent-border: #ffaea1;
  --success: #0f7a46;
  --success-ink: #ffffff;
  --success-soft: #e2efe9;
  --success-strong: #0f7a46;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b4231f;
  --danger-ink: #ffffff;
  --danger-soft: #f6e5e4;
  --danger-strong: #b4231f;
  --chart-1: #ff4a2e;
  --chart-2: #b08e04;
  --chart-3: #1c944e;
  --chart-4: #219cb1;
  --chart-5: #5064f9;
  --chart-6: #e157d4;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.035em;
  --radius-card: 16px;
  --radius-btn: 11px;
  --radius-input: 11px;
  --card-pad: 1.25rem;
  --shadow-card: 0 1px 2px rgba(10, 10, 11, 0.06), 0 10px 28px -20px rgba(10, 10, 11, 0.3);
  --x-band: #0a0a0b;
  --x-on-band: #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: #0a0a0b;
  --surface: #232323;
  --surface-2: #161617;
  --border: #2c2c2d;
  --border-strong: #545454;
  --ink: #ffffff;
  --muted: #9d9d9d;
  --accent: #ff4a2e;
  --accent-hover: #ff654d;
  --accent-ink: #0a0a0b;
  --accent-text: #ff4a2e;
  --accent-strong: #ff4a2e;
  --accent-soft: #401813;
  --accent-border: #78271b;
  --success: #0f7a46;
  --success-ink: #ffffff;
  --success-soft: #0b2318;
  --success-strong: #44986f;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2f1a0b;
  --warning-strong: #c57a40;
  --danger: #b4231f;
  --danger-ink: #ffffff;
  --danger-soft: #2f100f;
  --danger-strong: #ca625e;
  --chart-1: #ff4a2e;
  --chart-2: #d2ac24;
  --chart-3: #029a4d;
  --chart-4: #1fbed6;
  --chart-5: #586ff7;
  --chart-6: #f96dea;
}

/* Tally — motion and ledger details */

.tally-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

/* buttons press down */
.btn {
  transition: transform 0.12s ease, background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:active {
  transform: translateY(1.5px) scale(0.993);
}

/* rows slide in from an offset — visible at rest */
[data-row] {
  transform: translateY(12px);
  transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.2, 1);
}
[data-row].is-in {
  transform: none;
}

/* chart bars grow up */
[data-bar] {
  transform-origin: bottom;
  transform: scaleY(0.4);
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}
[data-bar].is-in {
  transform: none;
}

html.reduced-motion [data-row],
html.reduced-motion [data-bar] {
  transform: none;
  transition: none;
}

/* hairline guide rules behind the chart */
.tally-rule {
  background-image: repeating-linear-gradient(
    to top,
    var(--border) 0 1px,
    transparent 1px 25%
  );
}

.tally-thumb {
  background-color: var(--surface-2);
}
