/* Design tokens. Restyle the prototype here: nothing else hard-codes a colour, font or size.
   Light and dark are two designed palettes, not an inversion of each other:
   light is ink on warm paper, dark is warm off-white on deep navy. */
:root{
  --serif:"Iowan Old Style","Charter","Palatino Linotype",Palatino,Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;

  --t-kicker:11px; --t-small:13px; --t-body:14.5px; --t-h3:17px; --t-h2:20px; --t-title:24px;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:40px; --s7:64px;
  --radius:3px; --measure:1040px;

  color-scheme:light;
  --paper:#faf9f5; --surface:#ffffff; --tint:#f1efe7;
  --ink:#0f1b2d; --ink-2:#45526a; --ink-3:#667186;
  --rule:#dcd9cf; --rule-strong:#0f1b2d;
  --accent:#1f47c4; --accent-ink:#ffffff;
  --pos:#17734a; --neg:#b0342b; --warn:#8a5a06;
}
[data-theme=dark]{
  color-scheme:dark;
  --paper:#0c1522; --surface:#121d2d; --tint:#18263a;
  --ink:#ebe8df; --ink-2:#b0b9c8; --ink-3:#8b97aa;
  --rule:#26344a; --rule-strong:#8b97aa;
  --accent:#9bb7ff; --accent-ink:#0c1522;
  --pos:#62c794; --neg:#f2928a; --warn:#e3b765;
}

/* World clocks: a bright face by day (06:00–18:00 local), a dark one by night. */
:root{--clock-day:#fff3c9; --clock-day-ink:#0f1b2d; --clock-night:#22304d; --clock-night-ink:#eef1f7}
[data-theme=dark]{--clock-day:#f6e8b4; --clock-day-ink:#0c1522; --clock-night:#17243a; --clock-night-ink:#c9d2e2}

/* Chart lines: the first two series, checked for colour-blind separation on each theme's paper. */
:root{--series-1:#1f47c4; --series-2:#b8720f}
[data-theme=dark]{--series-1:#5d8df0; --series-2:#c98018}

/* The arrow on a dropdown, in the secondary ink of each theme */
:root{--chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%2345526a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --menu-shadow:0 10px 28px rgba(15,27,45,.16),0 2px 6px rgba(15,27,45,.08)}
[data-theme=dark]{--chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23b0b9c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --menu-shadow:0 12px 32px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.4)}
