/* Public Cloud: design tokens. The one place colours, type and measures are set.

   Set on 16 November 2026. The application had published no colour tokens yet,
   so these are derived from the owner's design references and words. The
   interface typeface, Figtree, is the one the application already depends on.
   Three things are carried over from publicprotocol.org, and no more: its
   Alegreya for headings and the wordmark, its ochre as the hue family of the
   one accent, and its warm paper ground with thin rules. When the application
   publishes tokens, change the values here and nowhere else.

   Every component reads these semantic names and never a raw colour, so a
   theme is only a different set of values. The page uses the default theme.
   The miniature can be switched to a second one ("harbour") and to light or
   dark on its own, by attributes on its frame: that is the same mechanism. */

@font-face{font-family:Figtree;src:url(/assets/fonts/figtree-latin-wght-normal.woff2) format("woff2");font-weight:300 900;font-style:normal;font-display:swap}
@font-face{font-family:Alegreya;src:url(/assets/fonts/alegreya-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}

/* type and measures */
:root{
  --sans:Figtree,"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --display:Alegreya,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;

  --t-xs:.8125rem;
  --t-sm:.9375rem;
  --t-base:1.0625rem;
  --t-lead:clamp(1.1875rem,1.05rem + .55vw,1.4375rem);
  --t-h3:1.25rem;
  --t-h2:clamp(1.875rem,1.4rem + 1.8vw,2.875rem);
  --t-h1:clamp(2.625rem,1.5rem + 5vw,5.25rem);

  --gutter:clamp(1rem,4vw,2.5rem);
  --page:76rem;
  --text:40rem;
  --bar:60px;
}

/* default theme, light */
:root,[data-scheme="light"]{
  color-scheme:light;
  --ground:#F6F3EC;      /* warm paper */
  --surface:#FDFCF8;
  --sunk:#EEEAE0;
  --line:#E0DBCF;
  --line-strong:#8F887A;
  --ink:#201D18;
  --ink-2:#4A453C;
  --ink-3:#625C51;
  --accent:#8A5A0A;      /* ochre, deepened until it carries text */
  --accent-ink:#FFFFFF;
  --accent-soft:#F1E6CB;
  /* diffused tints, each with the ink that sits on it */
  --mint:#DFE9DC;   --mint-ink:#2B5237;
  --sky:#DDE5EE;    --sky-ink:#2A4868;
  --lilac:#E7E1EE;  --lilac-ink:#4B3D72;
  --butter:#F2E7C6; --butter-ink:#5E4707;
  --rose:#F2DFD9;   --rose-ink:#7C352A;
  --focus:#1F5FBF;
  --r-s:6px;
  --r-m:10px;
  --r-l:16px;
}

/* default theme, dark */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --ground:#151310;
    --surface:#1C1A16;
    --sunk:#100F0C;
    --line:#2E2A23;
    --line-strong:#7A7263;
    --ink:#EDE8DD;
    --ink-2:#C2BBAC;
    --ink-3:#A0988A;
    --accent:#E2B866;
    --accent-ink:#1C1403;
    --accent-soft:#3A2F14;
    --mint:#23372A;   --mint-ink:#AEDDB9;
    --sky:#1F3044;    --sky-ink:#AFCBEC;
    --lilac:#2E2844;  --lilac-ink:#CCC1EF;
    --butter:#3B3216; --butter-ink:#EAD492;
    --rose:#43261F;   --rose-ink:#F1B8AC;
    --focus:#8DB8F5;
  }
}
:root[data-theme="dark"],[data-scheme="dark"]{
  color-scheme:dark;
  --ground:#151310;
  --surface:#1C1A16;
  --sunk:#100F0C;
  --line:#2E2A23;
  --line-strong:#7A7263;
  --ink:#EDE8DD;
  --ink-2:#C2BBAC;
  --ink-3:#A0988A;
  --accent:#E2B866;
  --accent-ink:#1C1403;
  --accent-soft:#3A2F14;
  --mint:#23372A;   --mint-ink:#AEDDB9;
  --sky:#1F3044;    --sky-ink:#AFCBEC;
  --lilac:#2E2844;  --lilac-ink:#CCC1EF;
  --butter:#3B3216; --butter-ink:#EAD492;
  --rose:#43261F;   --rose-ink:#F1B8AC;
  --focus:#8DB8F5;
}

/* "harbour": an example of a community's own theme. Cool, blue, square. */
[data-skin="harbour"][data-scheme="light"]{
  --ground:#EEF2F6;
  --surface:#FFFFFF;
  --sunk:#E6ECF2;
  --line:#D5DDE6;
  --line-strong:#7C8896;
  --ink:#14202E;
  --ink-2:#3C4A5A;
  --ink-3:#566373;
  --accent:#1F4FA3;
  --accent-ink:#FFFFFF;
  --accent-soft:#DCE7F8;
  --r-s:2px;
  --r-m:3px;
  --r-l:4px;
}
[data-skin="harbour"][data-scheme="dark"]{
  --ground:#0E141B;
  --surface:#151D27;
  --sunk:#0A0F15;
  --line:#263241;
  --line-strong:#6A7A8D;
  --ink:#E6ECF3;
  --ink-2:#B7C2CF;
  --ink-3:#93A0AF;
  --accent:#8FB6F2;
  --accent-ink:#0A1626;
  --accent-soft:#1B2E4B;
  --r-s:2px;
  --r-m:3px;
  --r-l:4px;
}
