/* tokens.css — the design system's values, as custom properties on :root.
 *
 * Copied from the Sector prototype (prototypes/Sector, source revision 2ffb47d) and checked against
 * prototypes/Sector-design-system/sector-tokens.json by design/design.test.js. The names are the
 * prototype's, unchanged, so a rule lifted from it reads the same here.
 *
 * TOKENS ONLY. This file styles no element: no selector but :root, so linking it changes nothing a
 * page already draws. What the editor and the portal do with these is theirs (docs/contracts/design.md).
 *
 * The five role colours below are the first built-in palette (Ember Tide). design/theme.js replaces
 * them, and --line and --ink with them, when a palette is applied; --line and --ink here are what it
 * computes for Ember Tide, so a page looks the same before and after the script runs.
 */
:root{
  color-scheme:dark;

  /* Colour roles: a palette is these five, in this order. */
  --base:#171615;      /* app background and chrome */
  --surface:#272522;   /* raised panels, cards, hover fill */
  --primary:#F27C66;   /* main action and selected state */
  --accent:#62BBC5;    /* supporting semantic annotations */
  --signal:#DED17B;    /* additional emphasis; not automatically an error red */

  /* Derived from a palette (theme.js), or fixed. */
  --line:#3D3B3A;      /* edge strokes, field strokes, dividers: the palette's edge, or 83% base + 17% text */
  --ink:#151515;       /* text on a primary fill: #151515 on a bright primary, #FFFFFF on a dark one */
  --text:#F4F2ED;
  --muted:#B5B1AD;     /* supporting detail */

  /* Spacing: a 4px rhythm. There is no --space-5 and no --space-7. */
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;

  /* Corners. 0 is square; a circle is 50%. */
  --radius-2:2px;--radius-4:4px;--radius-8:8px;--radius-16:16px;
  --control-radius:var(--radius-8);

  /* Type: size and leading by role. 12 → 20 → 32 approximates the golden ratio. */
  --type-marker:8px;--type-tag:10px;
  --type-detail:12px;--type-control:12px;--type-body:12px;
  --type-name:16px;--type-pane:16px;--type-title:20px;
  --type-dialog:24px;--type-page-compact:28px;--type-page:32px;
  --leading-detail:16px;--leading-control:16px;--leading-body:16px;
  --leading-name:24px;--leading-pane:24px;--leading-title:28px;
  --leading-dialog:32px;--leading-page-compact:36px;--leading-page:40px;

  /* Typefaces (design/fonts.css declares them). */
  --font-primary:'Sector Flowing Round',sans-serif;
  --font-secondary:'Albert Sans',Arial,Helvetica,sans-serif;

  /* Bars. */
  --app-bar-height:38px;--tool-bar-height:44px;

  /* Icons. */
  --icon-inspector:16px;

  /* Phone, portrait. */
  --nav-height:68px;--inspector-height:154px;--mobile-content-gutter:16px;
}

/* The user's choice of primary typeface: theme.js sets data-primary-type on the root element. */
:root[data-primary-type=flat]{--font-primary:'Sector Flowing Flat',sans-serif}

/* Phone, landscape. The phone condition itself is
 *   (max-width:700px), (max-width:1000px) and (max-height:500px)
 * and a custom property cannot hold a media query, so a stylesheet repeats it as written. */
@media(min-width:701px) and (max-width:1000px) and (max-height:500px){
  :root{--nav-height:48px;--inspector-height:108px}
}
