/* Praxis for the course library: the fonts and every colour, in one place.
   index.html, login.html and the extras pages all link this file; nothing else holds a hex value.
   It sits under /fonts/ because the site's access function serves that folder without a password,
   and the sign-in page needs it. Values follow the Praxis design system (renderer/src/styles/praxis.css
   in video-course-builder). */
@font-face { font-family: "Space Grotesk"; src: url(SpaceGrotesk-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(IBMPlexSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(IBMPlexSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(IBMPlexSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;

  /* Surfaces: canvas 900, bars 850, cards 800, inset 700. */
  --ink-900: #0B0F14; --ink-850: #0F151D; --ink-800: #141A22; --ink-700: #161D26;
  --line-soft: #232C38; --line: #29333F; --line-strong: #3A4B5E;

  /* Text, brightest first. */
  --txt-1: #E6EDF3; --txt-2: #C3D0DC; --txt-3: #9FB0C0; --txt-4: #8A97A8;

  /* Accents. Each has a text colour, a 1px line and an 8% tint, so one chip recipe covers them all.
     Mint: the primary action, selection and focus. Amber: notes and things to notice.
     Sky: a second category (made by Gemini). Coral: errors. */
  --mint: #6EE7C7;  --mint-line: #2C5A50;  --mint-bg: rgba(110, 231, 199, .08);
  --amber: #F2B45C; --amber-line: #5E4A2A; --amber-bg: rgba(242, 180, 92, .08);
  --sky: #A8E6FF;   --sky-line: #2F4E5E;   --sky-bg: rgba(168, 230, 255, .08);
  --coral: #E89178; --coral-line: #5E3A33; --coral-bg: rgba(232, 145, 120, .08);
  --glow: rgba(110, 231, 199, .09);        /* the faint mint glow at the top right of the canvas */
  --scrim: rgba(11, 15, 20, .78);         /* behind the play button, over a poster */
  --mark-from: #17222B; --mark-to: #0E141B; /* the prompt tile */

  /* Type: Space Grotesk for titles, IBM Plex Sans for reading, IBM Plex Mono for labels. */
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Corners: chips and tags, controls, cards and panels. */
  --r-chip: 6px; --r-control: 8px; --r-card: 12px;
}

/* The Praxis mark at header size: the prompt tile. Markup: <span class="mark" aria-hidden="true">›_</span> */
.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px;
  border-radius: var(--r-chip); background: linear-gradient(135deg, var(--mark-from), var(--mark-to));
  border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 1px var(--mint-bg);
  font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--mint); }
