/* The Desk — design tokens (§4.1). Every colour in theme.css comes from here,
   so Studio mode (§4.11) is only the two override blocks at the bottom. */
:root {
  /* brand — sampled from the wordmark PNG */
  --tp-navy:        #112240;
  --tp-navy-2:      #1b3160;
  --tp-gold:        #b8963a;   /* rules only: 2.8:1 on white */
  --tp-gold-ink:    #9c7c2a;   /* gold as large text (numerals): 3.6:1 on paper-2 */
  --tp-blue:        #16448c;
  --tp-blue-hover:  #2f6fd6;
  --tp-live:        #e03a2f;   /* dots, progress bar */
  --tp-live-ink:    #c62f25;   /* behind white LIVE text: 5.5:1 */

  /* desks: kickers, rules, live dots — never backgrounds behind text.
     Darkened from the handoff's #0f8b8d / #c77d12 / #2f6fd6 so 11px kickers
     pass WCAG AA (≥4.6:1 on paper and paper-2). */
  --desk-world:         #0b7a7c;
  --desk-international: #a05f08;
  --desk-technology:    #2563c9;
  --desk-interviews:    #9b3d5a;
  --desk-default:       var(--tp-navy);

  /* surfaces & ink */
  --paper:   #ffffff;
  --paper-2: #f3f4f6;
  --paper-3: #e7e9ee;
  --ink:     #0e1726;
  --ink-2:   #3b4656;
  --ink-3:   #636d7d;
  --ink-4:   #98a1ad;
  --link:    var(--tp-blue);
  --link-hover: var(--tp-blue-hover);
  --wm-ink:  var(--tp-navy);
  --chrome:  var(--paper);          /* wordmark + nav rows */
  --overlay: linear-gradient(180deg, rgb(14 23 38 / 0) 30%, rgb(14 23 38 / .88) 100%);
  --img-filter: none;

  /* type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius:  2px;
  --shadow-1: 0 1px 2px rgb(14 23 38 / .06), 0 4px 16px rgb(14 23 38 / .06);
  --measure: 68ch;
  --wrap:    1280px;
  --gutter:  24px;
  --ease:    cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (max-width: 599px) {
  :root { --gutter: 16px; }
}

/* Studio mode: follows the OS unless the reader picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #0f1623;
    --paper-2: #151e2e;
    --paper-3: #22304a;
    --ink:     #f3f5f8;
    --ink-2:   #c6cdd8;
    --ink-3:   #8d97a7;
    --ink-4:   #6b7585;
    --link:    #8db8ff;
    --link-hover: #b5d0ff;
    --wm-ink:  #f3f5f8;
    --chrome:  #0b1220;
    --desk-world:         #2fb8ba;
    --desk-international: #e39a35;
    --desk-technology:    #6ea0ff;
    --desk-interviews:    #d77a98;
    --desk-default:       #a9b6cc;
    --tp-gold-ink:        var(--tp-gold);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .3);
    --img-filter: brightness(.92);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:   #0f1623;
  --paper-2: #151e2e;
  --paper-3: #22304a;
  --ink:     #f3f5f8;
  --ink-2:   #c6cdd8;
  --ink-3:   #8d97a7;
  --ink-4:   #6b7585;
  --link:    #8db8ff;
  --link-hover: #b5d0ff;
  --wm-ink:  #f3f5f8;
  --chrome:  #0b1220;
  --desk-world:         #2fb8ba;
  --desk-international: #e39a35;
  --desk-technology:    #6ea0ff;
  --desk-interviews:    #d77a98;
  --desk-default:       #a9b6cc;
  --tp-gold-ink:        var(--tp-gold);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .3);
  --img-filter: brightness(.92);
  color-scheme: dark;
}
