/* Fresco tokens: the one set of fonts, colours and sizes for the whole portal (approved
   2026-11-03). Loaded first in index.html, before any other sheet, so every sheet can use
   them; the activities that run in their own frame (assets/…) can link this file too.

   fresco.css applies them to the portal's own pages, fresco-class.css to the class pages.
   Type: Sora for titles, DM Sans for everything else, three weights (400, 500, 600).
   Radius: 10 for controls, 12 for cards, 16 for panels, 999 only for status chips. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  /* The portal asks for weights up to 1000 in many places; a variable font clamps to this
     range, so those render as a calm semibold instead of a heavy black. */
  font-weight: 300 650;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
}

:root {
  /* Colour */
  --fresco-ground: #f5f7fb;
  --fresco-surface: #ffffff;
  --fresco-line: #e2e7f0;
  --fresco-line-strong: #c9d1e1;
  --fresco-ink: #12142b;
  --fresco-muted: #5b6380;
  --fresco-primary: #4326c9;
  --fresco-primary-hover: #3519ad;
  --fresco-primary-soft: #eeeaff;
  --fresco-accent: #12b5e5;
  --fresco-accent-ink: #05394a;
  --fresco-accent-soft: #e3f6fd;
  --fresco-success: #0e7556;
  --fresco-success-soft: #dff4ec;
  --fresco-danger: #b42318;
  --fresco-danger-soft: #fdecea;
  --fresco-warning-soft: #fdf3dc;
  --fresco-warning-ink: #7a4b00;
  /* What only the teacher sees (notes, guides) */
  --fresco-teacher: var(--fresco-warning-soft);
  --fresco-teacher-ink: var(--fresco-warning-ink);
  --fresco-teacher-line: #f3e2b8;

  /* Type */
  --fresco-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fresco-display: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --fresco-text-xs: 0.75rem;
  --fresco-text-sm: 0.875rem;
  --fresco-text-base: 1rem;
  --fresco-text-lg: 1.125rem;
  --fresco-text-xl: 1.375rem;
  --fresco-text-2xl: clamp(1.5rem, 2.6vw, 2.25rem);

  /* Space */
  --fresco-space-1: 4px;
  --fresco-space-2: 8px;
  --fresco-space-3: 12px;
  --fresco-space-4: 16px;
  --fresco-space-5: 24px;
  --fresco-space-6: 32px;
  --fresco-space-7: 48px;

  /* Radius */
  --fresco-radius-sm: 10px;
  --fresco-radius: 12px;
  --fresco-radius-lg: 16px;

  /* Controls: 32 small, 42 normal, 52 on the projected stage */
  --fresco-control-sm: 32px;
  --fresco-control: 42px;
  --fresco-control-lg: 52px;

  /* Elevation: 1 at rest, 2 on hover or floating, 3 for dialogs */
  --fresco-shadow: 0 1px 2px rgba(18, 20, 43, 0.04);
  --fresco-shadow-hover: 0 6px 20px rgba(18, 20, 43, 0.08);
  --fresco-shadow-dialog: 0 16px 48px rgba(18, 20, 43, 0.14);
  --fresco-focus: 0 0 0 3px rgba(67, 38, 201, 0.22);
}
