/* Heads Up: shared tokens, fonts, base styles and motifs for every page.
   Page CSS builds on this: home.css for the homepage, doc.css for privacy, support and removed.
   Palette "Slate": monotone and heavy on contrast. Grey paper, near-black ink, one slate grey for
   quiet text, and the logo's red as the only colour, kept for the dot, the badge and late work.
   scripts/contrast.mjs checks the text pairs below against WCAG AA. */
:root{
  --paper:#E7E8E9;        /* the ground: cool concrete grey, never white, never cream */
  --paper-up:#F3F4F4;     /* raised surfaces: the phone box, the How it works band */
  --ink:#0F1012;          /* text, rules, buttons, the inverted highlight */
  --ink-deep:#0A0B0C;     /* the final call-to-action band and the footer */
  --red:#E0412F;          /* the logo head: the dot, the badge, late. Graphics and text 24px+ only. */
  --red-ink:#B8301E;      /* small red text, and the phone "Get it" button */
  --on-red:#FFFFFF;       /* text on red-ink */
  --blue:#9AB2E6;         /* the second colour: a light, desaturated electric blue. The Heads Up ticks and the
                             cool glow deep in the intro's water. Graphics, and text on ink only. */
  --blue-ink:#3F5FA6;     /* blue text on paper */
  --mute:#4F5864;         /* slate: secondary text */
  --line:#C5C9CE;         /* rules and borders */
  --on-deep:#E7E8E9;      /* text on ink-deep */
  --on-deep-mute:#9AA1AA; /* secondary text on ink-deep */

  --display:"Inter Tight","Helvetica Neue",Arial,system-ui,sans-serif;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --ease-out:cubic-bezier(.16,1,.3,1);
  --gutter:clamp(18px,4vw,40px);
  --max:1240px;
}
/* Inter Tight (OFL, INTER-TIGHT-OFL.txt), the display cut of Inter with tight spacing, from
   @fontsource-variable/inter-tight 5.3.0, subset to Latin with fontTools: 18 KB with every weight.
   Same family as the body face, so headlines get contrast from weight and size alone. */
@font-face{font-family:"Inter Tight";font-weight:100 900;font-style:normal;font-display:swap;
  src:url("/fonts/inter-tight-latin-wght.woff2") format("woff2")}
/* Inter, self-hosted like the popup's: fetching it from Google would hand every visitor's IP to Google. */
@font-face{font-family:"Inter";font-weight:100 900;font-style:normal;font-display:swap;
  src:url("/fonts/inter-latin-wght.woff2") format("woff2")}

*{box-sizing:border-box}
html{background:var(--paper);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.55 var(--body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-underline-offset:.18em;text-decoration-thickness:1px}
img{max-width:100%;height:auto;display:block}
::selection{background:var(--ink);color:var(--paper)}
:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:4px}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.skip{position:absolute;left:-9999px;top:8px;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:8px;z-index:10}
.skip:focus{left:8px}

/* ---------- Motifs ----------
   Each one has a job; none is decoration on every heading.
   .tiles  a fading field of small ink squares: the assignment grid, used at a section's edge.
   .halftone a dot screen that fades out: print texture. */
.tiles{position:absolute;pointer-events:none;background:url("/img/tiles.svg") 0 0/168px auto repeat;opacity:.9;
  -webkit-mask-image:radial-gradient(closest-side,#000 30%,transparent);mask-image:radial-gradient(closest-side,#000 30%,transparent)}
.halftone{position:absolute;pointer-events:none;background:radial-gradient(circle,var(--ink) 1.3px,transparent 1.8px) 0 0/8px 8px;opacity:.55;
  -webkit-mask-image:linear-gradient(135deg,#000 10%,transparent 70%);mask-image:linear-gradient(135deg,#000 10%,transparent 70%)}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
