/* Direction: exam notebook — crisp white page, graphite ink, bold condensed
   headings, marigold kept for money, toppers and the main button only.
   Flat cards, thin rules, tabular figures. */
/* 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: #f4f5f2;
  --border: #dcdfd9;
  --border-strong: #bcb9b3;
  --ink: #22252a;
  --muted: #65696f;
  --accent: #e8a318;
  --accent-hover: #c58b14;
  --accent-ink: #201703;
  --accent-text: #8a5e04;
  --accent-strong: #7d5503;
  --accent-soft: #fdf2d9;
  --accent-border: #f5d697;
  --success: #1c7247;
  --success-ink: #ffffff;
  --success-soft: #e4eee9;
  --success-strong: #1c7247;
  --warning: #8a6204;
  --warning-ink: #ffffff;
  --warning-soft: #f1ece1;
  --warning-strong: #8a6204;
  --danger: #a82219;
  --danger-ink: #ffffff;
  --danger-soft: #f5e4e3;
  --danger-strong: #a82219;
  --chart-1: #bf871c;
  --chart-2: #639e4c;
  --chart-3: #1a8c8e;
  --chart-4: #5c93e1;
  --chart-5: #975daa;
  --chart-6: #dd747a;

  --font-display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.015em;
  --radius-card: 4px;
  --radius-btn: 3px;
  --radius-input: 3px;
  --shadow-card: 0 1px 0 rgba(34, 37, 42, 0.05);
  --card-pad: 1.25rem;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #110c03;
  --surface: #29241c;
  --surface-2: #1d1810;
  --border: #322e26;
  --border-strong: #58554f;
  --ink: #ffffff;
  --muted: #a09e9a;
  --accent: #e8a318;
  --accent-hover: #ebb13b;
  --accent-ink: #201703;
  --accent-text: #e8a318;
  --accent-strong: #e8a318;
  --accent-soft: #402d08;
  --accent-border: #72500c;
  --success: #1c7247;
  --success-ink: #ffffff;
  --success-soft: #132212;
  --success-strong: #5c9a7b;
  --warning: #8a6204;
  --warning-ink: #ffffff;
  --warning-soft: #2c1f03;
  --warning-strong: #a4863b;
  --danger: #a82219;
  --danger-ink: #ffffff;
  --danger-soft: #321108;
  --danger-strong: #c56e67;
  --chart-1: #e8a318;
  --chart-2: #8cd46e;
  --chart-3: #1faeb1;
  --chart-4: #97c0fa;
  --chart-5: #bc75d4;
  --chart-6: #fda0a4;
}

/* Batchwise — notebook texture, the page rise, register rows. */

@keyframes bw-rise {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

.page-rise {
  animation: bw-rise 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

html.reduced-motion .page-rise {
  animation: none;
}

/* faint ruled lines, like a fee register */
.rule-lines {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 2rem,
    var(--border) 2rem calc(2rem + 1px)
  );
}

.margin-rule {
  box-shadow: inset 3px 0 0 var(--accent);
}

.tally {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.row-hover {
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.row-hover:hover {
  background-color: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

@media print {
  .no-print { display: none !important; }
}
