@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* Student Insight — "Classroom Confetti".
   Teal Notebook leads, Cheer Squad pink highlights, Orange Highlighter and
   Good Energy for callouts, Fresh Start mint for soft surfaces. Light only.
   Score colours (success / warning / error) stay a true traffic light, kept
   apart from the palette so a 55% never reads as a cheerful pink. */
:root {
  /* ── brand palette (as supplied) ──────────────────────────────── */
  --brand-teal: #5EB9B8;
  --brand-pink: #E45E9A;
  --brand-orange: #F0962E;
  --brand-lime: #DEE14D;
  --brand-mint: #A3E8CC;

  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.99 0.003 95);
  --foreground: oklch(0.26 0.03 220);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.26 0.03 220);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.26 0.03 220);
  --primary: #5EB9B8;
  --primary-foreground: oklch(0.22 0.035 205);
  --secondary: color-mix(in srgb, var(--brand-mint) 28%, white);
  --secondary-foreground: oklch(0.26 0.03 220);
  --muted: oklch(0.965 0.006 200);
  --muted-foreground: oklch(0.52 0.02 220);
  --accent: color-mix(in srgb, var(--brand-mint) 22%, white);
  --accent-foreground: oklch(0.26 0.03 220);
  --destructive: oklch(0.57 0.2 25);
  --destructive-foreground: oklch(0.99 0.003 95);
  --border: oklch(0.885 0.014 200);
  --input: oklch(0.86 0.016 200);
  --ring: #5EB9B8;
  --success: oklch(0.56 0.14 150);
  --warning: oklch(0.64 0.15 62);
  --chart-1: var(--brand-teal);
  --chart-2: var(--brand-pink);
  --chart-3: var(--brand-orange);
  --chart-4: oklch(0.72 0.15 112);
  --chart-5: oklch(0.74 0.09 165);
  --sidebar: color-mix(in srgb, var(--brand-mint) 16%, white);
  --sidebar-foreground: oklch(0.26 0.03 220);
  --sidebar-primary: #5EB9B8;
  --sidebar-primary-foreground: oklch(0.22 0.035 205);
  --sidebar-accent: color-mix(in srgb, var(--brand-mint) 36%, white);
  --sidebar-accent-foreground: oklch(0.26 0.03 220);
  --sidebar-border: oklch(0.885 0.02 180);
  --sidebar-ring: #5EB9B8;

  /* ── highlight (Cheer Squad) — badges, dots, selected marks ──── */
  --highlight: var(--brand-pink);
  --highlight-foreground: oklch(0.99 0.003 95);
  --highlight-ink: oklch(0.50 0.17 355);
  --highlight-soft: color-mix(in srgb, var(--brand-pink) 10%, white);

  /* ── primary ink — teal deep enough for small text on white ──── */
  --primary-ink: oklch(0.48 0.08 195);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: color-mix(in srgb, var(--brand-mint) 12%, white);
  --surface-hover:   color-mix(in srgb, var(--brand-mint) 18%, white);
  --surface-active:  color-mix(in srgb, var(--brand-mint) 30%, white);
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.935 0.01 200);
  --border-muted: oklch(0.91 0.012 200);
  --border-strong: oklch(0.78 0.02 210);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.025 220);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 86%, black);
  --primary-muted: color-mix(in srgb, var(--primary) 20%, white);
  --primary-soft:  color-mix(in srgb, var(--primary) 11%, white);
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  white);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: color-mix(in srgb, var(--brand-teal) 45%, transparent);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.56 0.2 25);
  --error-foreground: oklch(0.99 0.003 95);

  /* ── radius — rounded like the swatch cards ───────────────────── */
  --radius: 0.5rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Archivo, ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.05;
  --tracking-display: -0.025em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows — flat, like the palette card ────────────────────── */
  --shadow-sm: 0 0 0 1px oklch(0.885 0.014 200);
  --shadow-md: 0 0 0 1px oklch(0.885 0.014 200), 0 4px 14px oklch(0.4 0.04 210 / 8%);
  --shadow-lg: 0 0 0 1px oklch(0.86 0.016 200), 0 12px 32px oklch(0.4 0.04 210 / 12%);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 90ms;
  --duration-normal: 160ms;
  --duration-slow: 260ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

/* Light only: a device in dark mode keeps the same bright classroom palette. */
.dark {
  color-scheme: light;
}

/* Stencil Tweaks */
:root:not(.dark) {
  --primary: #5EB9B8;
  --background: #FFFFFF;
}
:root {
  --font-weight-display: 700;
}
/* /Stencil Tweaks */