/* FORM design tokens. Lifted from docs/design/concepts/concept-v3.html.
   Names are a contract: later modules use them, do not rename. */
:root{
  /* Colour: black, white and graphite on paper. Colour comes only from photographs. */
  --paper:#efede8;
  --ink:#000;
  --graphite:#4b4d51;       /* pencil, first pass; notes */
  --graphite-2:#8a8c90;     /* pencil, lighter second pass */
  --pencil:#4b4d51;         /* alias of graphite for drawn marks */
  --hair:#bdbcb7;           /* hairlines and rules */
  --soft:#5a5c60;           /* secondary text on paper (AA) */
  --chalk:#ecebe6;          /* pencil and text on black */
  --chalk-soft:#b9b8b3;     /* secondary text on black (AA) */
  --chalk-2:#96968f;        /* chalk, lighter second pass */
  --ink-soft:#2b2c2e;       /* ink, lifted: hover on solid black */

  /* Fonts: fixed roles */
  --font-display:"Sofia Sans Extra Condensed","Arial Narrow",sans-serif;
  --font-body:"Sofia Sans",system-ui,sans-serif;
  --font-hand:"Sue Ellen Francisco","Sofia Sans Extra Condensed",cursive; /* annotations only */

  /* Type scale: at least v3's sizes (Craig said "too small") */
  --step--1:18px;                          /* small print, captions */
  --step-0:clamp(19px,1.1vw + 14px,21px);  /* body */
  --step-1:clamp(22px,1.9vw,28px);         /* lead */
  --step-2:clamp(36px,3.6vw,54px);         /* h3 */
  --step-3:clamp(46px,5vw,76px);           /* large quote */
  --step-4:clamp(52px,6.6vw,100px);        /* h2 */
  --step-5:clamp(58px,8vw,120px);          /* h1 */
  --step-6:clamp(80px,12vw,200px);         /* display moment */
  --size-fact:clamp(34px,3vw,44px);        /* a fact in a facts list (time, fee) */
  --size-action:clamp(30px,2.6vw,40px);    /* the one solid button a page ends on */

  /* Annotation (hand lettering) */
  --note-size:26px;
  --note-track:.07em;
  --note-tilt:-2deg;

  /* Grid: a framed sheet, 12 columns */
  --grid-cols:12;
  --gutter:24px;            /* column gap */
  --margin-col:52px;        /* the sheet annotation column (phone lane) */
  --frame:8px;              /* sheet border inset from screen edge */
  --pad:16px;               /* padding inside the frame */
  --maxw:1416px;

  /* Line weights, screen px */
  --lw-fine:1.1px;          /* hatching, leaders, second pass */
  --lw-line:1.7px;          /* outlines, rules */
  --lw-heavy:2.6px;         /* walls, the path line */

  /* Spacing */
  --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:40px; --sp-5:64px;
  --sp-6:clamp(60px,8.4vw,120px);

  /* Motion */
  --t-stroke:.5s;           /* per-stroke draw duration */
  --t-fade:.3s;
  --hand-ease:cubic-bezier(.16,.84,.3,1);

  /* Paper grain: a tiny tiled SVG noise, no image file */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .22 0 0 0 0 .2 0 0 0 .42 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width:900px){
  :root{--frame:22px; --pad:48px; --margin-col:48px}
}
