/* Global definitions. Every colour, typeface, shape, motion curve, layout measure and stacking layer of the site
   is defined here and only here; components and pages refer to these names. theme-engine.js recalculates the
   semantic colours from a visitor's chosen colour at runtime. Overview: docs/DESIGN-SYSTEM.md and /styleguide. */
@layer base,components;
:root{
  /* Colour: semantic roles */
  --seed:#b84022;
  --paper:#f5f2e9;
  --paper-light:#fcfaf4;
  --wash:#e8eadf;
  --ink:#173c2d;
  --muted:#5b685e;
  --line:#cbd0c3;
  --orange:#b84022;
  --yellow:#ecd68b;
  --forest:#1d3e30;
  --on-dark:#fcfaf4;
  --on-dark-muted:#c7d0c8;
  --button-hover:#28523e;
  --scene-bg:#dfe3d6;
  --scene-near:#577666;
  --scene-far:#abb7a3;
  --scene-sun:#e6c888;
  /* Colour: section surfaces of the default palette. A chosen colour maps them onto the roles above (below). */
  --world-bg:#e7eadf;
  --world-line:#b9c2b0;
  --mind-text:var(--paper);
  --mind-muted:#c4cebf;
  --mind-panel:#234936;
  --mind-panel-line:#bdcdb860;
  --postcard:#eedeab;
  --postcard-edge:#c5b77e;
  --postcard-rule:#7a775c;
  --postcard-quiet:#566047;
  --stage-bg:#e9e1cc;
  --stage-sun:#ce744d;
  --stage-sea:#71918a;
  --stage-ground:#c2ccb5;
  --stage-desk:#d5ba8c;
  --stage-city:#bec7ad;
  --stage-city-2:#94aa97;
  --stage-city-4:#a3b39d;
  --stage-hill:#a3b09b;
  --stage-hill-2:#627e6b;
  --stage-hill-3:#85997e;
  --backdrop:rgb(10 25 18 / .48);
  /* Type */
  --font-body:Arial,Helvetica,sans-serif;
  --font-editorial:Georgia,'Times New Roman',serif;
  --font-mono:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,'Liberation Mono',monospace;
  --text-label:12px;
  --text-control:13px;
  /* Shape */
  --radius-xs:2px;
  --radius:3px;
  --radius-lg:6px;
  --radius-pill:999px;
  --shadow-overlay:0 24px 100px rgb(0 0 0 / .2);
  --shadow-popover:0 12px 35px rgb(0 0 0 / .13);
  /* Focus */
  --focus-width:3px;
  --focus-colour:var(--orange);
  /* Motion */
  --ease:cubic-bezier(.2,.7,.25,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  /* Layout */
  --shell:1280px;
  --gutter:clamp(22px,4.45vw,72px);
  --header:94px;
  --tap:44px;
  /* Stacking */
  --z-header:30;
  --z-menu:50;
  --z-popover:80;
  --z-progress:90;
  --z-skip:100;
}
/* A chosen colour: the section surfaces follow the derived roles */
html[data-theme=custom]{
  --world-bg:var(--wash);
  --world-line:var(--line);
  --mind-text:var(--on-dark);
  --mind-muted:var(--on-dark-muted);
  --mind-panel:var(--button-hover);
  --mind-panel-line:var(--on-dark-muted);
  --postcard:var(--yellow);
  --postcard-edge:var(--muted);
  --postcard-rule:var(--muted);
  --postcard-quiet:var(--muted);
  --stage-bg:var(--scene-bg);
  --stage-sun:var(--scene-sun);
  --stage-sea:var(--scene-near);
  --stage-ground:var(--scene-far);
  --stage-desk:var(--yellow);
  --stage-city:var(--scene-far);
  --stage-city-2:var(--scene-near);
  --stage-city-4:var(--scene-near);
  --stage-hill:var(--scene-far);
  --stage-hill-2:var(--scene-near);
  --stage-hill-3:var(--scene-far);
}
@media(max-width:900px){
  :root{--header:80px;--gutter:30px}
}
@media(max-width:700px){
  :root{--header:76px;--gutter:24px}
}
@media(max-width:360px){
  :root{--gutter:20px}
}
