/*
 * Design tokens: the Curtain scheme from the TY5 Identity Review.
 *
 * Names are the kebab-case of the keys in `Colors` (src/constants/theme.ts)
 * and the values are copied from it. site/__tests__/tokens.test.ts fails if
 * the two drift apart or if a text pair drops below WCAG AA (4.5:1).
 */
:root {
  color-scheme: light dark;

  --text: #000000;
  --background: #f9f7f6;
  --background-element: #eae6e1;
  --background-selected: #dfd9d3;
  --border: #c9c0b5;
  --text-secondary: #645748;
  --primary: #7b2824;
  --on-primary: #ffffff;
  --secondary: #735c26;
  --on-secondary: #ffffff;
  --destructive: #b3261e;

  /* Buttons use the brand red in both modes (white on it is 10:1); the mode's primary is the outline. */
  --button: #7b2824;
  --on-button: #ffffff;

  /* The icon's stage. Fixed in both schemes: the hero stage is always dark. */
  --stage-black: #000000;
  --stage-floor: #79472a;
  --stage-beam: #ffdd59;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f9f7f6;
    --background: #000000;
    --background-element: #181511;
    --background-selected: #2f2922;
    --border: #3b342b;
    --text-secondary: #a39380;
    --primary: #d77a75;
    --on-primary: #000000;
    --secondary: #cfb16e;
    --on-secondary: #000000;
    --destructive: #ff8a80;
  }
}

/*
 * Marquee: same neutrals, primary and secondary swapped. Not shipped; set
 * <html data-scheme="marquee"> to compare it on the real page.
 */
:root[data-scheme='marquee'] {
  --primary: #735c26;
  --on-primary: #ffffff;
  --secondary: #7b2824;
  --on-secondary: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root[data-scheme='marquee'] {
    --primary: #cfb16e;
    --on-primary: #000000;
    --secondary: #d77a75;
    --on-secondary: #000000;
  }
}
