/* Direction: private bank passbook — ivory paper, hairline rules, one deep emerald */
/* 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: #f8f5ed;
  --surface: #fffdf7;
  --surface-2: #f1ece0;
  --border: #ded6c4;
  --border-strong: #aeb0a9;
  --ink: #1b2420;
  --muted: #666d64;
  --accent: #0b6b4f;
  --accent-hover: #095b43;
  --accent-ink: #ffffff;
  --accent-text: #09583f;
  --accent-strong: #074a36;
  --accent-soft: #e2ebe4;
  --accent-border: #8db7a6;
  --success: #0b6b4f;
  --success-ink: #ffffff;
  --success-soft: #dce4da;
  --success-strong: #0b6b4f;
  --warning: #8a5e12;
  --warning-ink: #ffffff;
  --warning-soft: #ebe3d3;
  --warning-strong: #7f5611;
  --danger: #95301f;
  --danger-ink: #ffffff;
  --danger-soft: #ecddd4;
  --danger-strong: #95301f;
  --chart-1: #0b6b4f;
  --chart-2: #1880a2;
  --chart-3: #4a3d8f;
  --chart-4: #a24b7e;
  --chart-5: #7c360a;
  --chart-6: #7a7516;

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.015em;
  --radius-card: 5px;
  --radius-btn: 3px;
  --radius-input: 3px;
  --card-pad: 1.25rem;
  --shadow-card: 0 1px 0 rgba(27, 36, 32, 0.05);
  --x-rule: #e7dfcd;
  --x-on-photo: #fdfbf6;
  --x-band: #16201c;
  --x-band-rule: #33413a;
  --x-on-band-dim: #b7c3b9;
  --x-scrim: rgba(12, 18, 15, 0.72);
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #020f0b;
  --surface: #1b2723;
  --surface-2: #0f1b17;
  --border: #25312d;
  --border-strong: #4e5754;
  --ink: #f8f5ed;
  --muted: #969993;
  --accent: #0b6b4f;
  --accent-hover: #308169;
  --accent-ink: #ffffff;
  --accent-text: #5e9d8b;
  --accent-strong: #509581;
  --accent-soft: #04231a;
  --accent-border: #06382a;
  --success: #0b6b4f;
  --success-ink: #ffffff;
  --success-soft: #04231a;
  --success-strong: #509581;
  --warning: #8a5e12;
  --warning-ink: #ffffff;
  --warning-soft: #20200d;
  --warning-strong: #a48246;
  --danger: #95301f;
  --danger-ink: #ffffff;
  --danger-soft: #22160f;
  --danger-strong: #b9776b;
  --chart-1: #277d60;
  --chart-2: #0094bd;
  --chart-3: #7b72c9;
  --chart-4: #b75d90;
  --chart-5: #be6435;
  --chart-6: #8d8803;
}

/* Paydown's own two touches: the page settling onto the desk, and ruled paper. */

@keyframes paydown-rise {
  from {
    opacity: 0.45;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[data-page],
[data-fade] {
  animation: paydown-rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

html.reduced-motion [data-page],
html.reduced-motion [data-fade] {
  animation: none;
}

.font-mono,
[data-count-to] {
  font-variant-numeric: tabular-nums;
}

.x-caps {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* faint passbook ruling behind a ledger heading */
.x-ruled {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 29px,
    var(--x-rule) 29px,
    var(--x-rule) 30px
  );
}
