/* Pandang design tokens for the web pages (/, /judge, /pitch).
   Source: the project's design direction "ghost-light playbill": one warm bare-bulb amber on a velvet-dark room,
   oat/linen listeners, pale blue for a listener left alone. Contrast ratios are measured on --bg (#1C1310).
   Import:  <link rel="stylesheet" href="/fonts/fonts.css"> then <link rel="stylesheet" href="/tokens.css"> */
:root {
  color-scheme: dark;

  /* the room */
  --bg:        #1C1310;  /* velvet house-curtain brown-black: the darkened room */
  --bg-deep:   #140D0B;  /* the far wall, footer, letterbox around media */
  --bg-raise:  #241915;  /* a lifted surface: cards, the video frame */
  --bg-raise-2:#2C201A;  /* hover on a lifted surface */
  --rule:      #4A3A31;  /* stage-floor boards: hairlines, seat-plan rows (decorative only, 1.69:1) */
  --rule-soft: rgba(247, 237, 224, 0.09);

  /* ink */
  --ink:       #F7EDE0;  /* ghost-light linen: all body text (15.8:1) */
  --muted:     #B5A595;  /* worn programme paper: captions, labels (7.6:1) */
  --quiet:     #9A8A7D;  /* the quietest text allowed (5.5:1, AA) */

  /* the two states (the whole palette's meaning) */
  --before:    #BFD0F2;  /* waiting / cooling: the pale blue a listener drifts to when ignored (11.8:1) */
  --after:     #FFB861;  /* contact landed: bare-bulb amber, only for a landed look and a pass (10.7:1) */
  --oat:       #E9D3B8;  /* a waiting listener in the Lens: warm oat, solid */
  --warm-body: #FFD7A8;  /* a warm listener's body */
  --seat:      #A8998A;  /* cushion linen */

  --after-glow:  rgba(255, 184, 97, 0.32);
  --after-faint: rgba(255, 184, 97, 0.12);
  --before-faint: rgba(191, 208, 242, 0.10);

  /* type: Ultra = playbill wood type (one shout per view), Lexend = everything else, system mono = log lines only */
  --font-display: "Ultra", "Ultra Fallback", "Alfa Slab One", Georgia, serif;
  --font-body:    "Lexend", "Lexend Fallback", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-data:    ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.80rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.25rem + 0.95vw, 2rem);
  --step-3:  clamp(1.8rem, 1.4rem + 1.9vw, 3rem);
  --step-4:  clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem);
  --step-5:  clamp(3rem, 1.8rem + 6vw, 7.5rem);

  --measure: 66ch;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  /* motion: the signature beat is the 1.5 s dwell */
  --dwell: 1500ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dwell: 1ms; }
}
