/* Direction: teacher's planner — oat paper, soft cards, slab headings, one forest green accent */
/* 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: #f6f0e3;
  --surface: #fffdf6;
  --surface-2: #efe7d5;
  --border: #ddd1b9;
  --border-strong: #aeaca1;
  --ink: #2a2520;
  --muted: #6b6253;
  --accent: #2f5d3a;
  --accent-hover: #284f31;
  --accent-ink: #ffffff;
  --accent-text: #27502f;
  --accent-strong: #1f4227;
  --accent-soft: #e2ecdd;
  --accent-border: #9cae97;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dbe3cf;
  --success-strong: #116d34;
  --warning: #9c6416;
  --warning-ink: #ffffff;
  --warning-soft: #ebdfca;
  --warning-strong: #845512;
  --danger: #9c3427;
  --danger-ink: #ffffff;
  --danger-soft: #ebd9cc;
  --danger-strong: #9c3427;
  --chart-1: #2f5d3a;
  --chart-2: #157886;
  --chart-3: #324593;
  --chart-4: #8d4588;
  --chart-5: #86281d;
  --chart-6: #7e640c;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.01em;
  --radius-card: 16px;
  --radius-btn: 11px;
  --radius-input: 11px;
  --card-pad: 1.5rem;
  --shadow-card: 0 1px 1px rgba(42, 37, 32, 0.05), 0 10px 26px rgba(42, 37, 32, 0.07);
  --x-late: #9c6416;
  --x-late-soft: #f5e7c9;
  --x-absent: #9c3427;
  --x-absent-soft: #f5dad3;
  --x-on-dark: #fdfaf1;
  --x-on-dark-dim: rgba(253, 250, 241, 0.82);
  --x-rule: rgba(253, 250, 241, 0.3);
  --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: #070d08;
  --surface: #202521;
  --surface-2: #131914;
  --border: #2a2f2b;
  --border-strong: #515652;
  --ink: #f6f0e3;
  --muted: #96958b;
  --accent: #2f5d3a;
  --accent-hover: #4e7558;
  --accent-ink: #ffffff;
  --accent-text: #76947c;
  --accent-strong: #6a8b71;
  --accent-soft: #101f13;
  --accent-border: #19311e;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0a2614;
  --success-strong: #499c68;
  --warning: #9c6416;
  --warning-ink: #ffffff;
  --warning-soft: #28200b;
  --warning-strong: #b2864a;
  --danger: #9c3427;
  --danger-ink: #ffffff;
  --danger-soft: #28160f;
  --danger-strong: #be7a70;
  --chart-1: #4b7a55;
  --chart-2: #2098a9;
  --chart-3: #627ace;
  --chart-4: #ac63a6;
  --chart-5: #c15e50;
  --chart-6: #a18016;
}

/* Ruled-paper lines behind the planner page */
body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.016) 1px, transparent 1px);
  background-size: 100% 30px;
}

@keyframes page-in {
  from {
    opacity: 0.5;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main {
  animation: page-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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

.tally {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}

.register-row:hover {
  background: var(--accent-soft);
}
