/* The One Percent Project - tokens. Direction a, "The logo's frame".
   Palette from the brief (logo red pixel-sampled from TOP_Logo.png); type: Schibsted Grotesk over Open Sans. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #CC3233;          /* his logo tile's own red: the one field colour and the one action colour on white */
  --red-deep: #A3282A;     /* hover, pressed, red text on stone */
  --ink: #1A1716;
  --ink-hover: #3A3433;
  --paper: #FFFFFF;
  --stone: #F2EFEC;
  --stone-deep: #E9E5E1;   /* hover step on stone */
  --graphite: #5E5857;     /* metadata, numbers in lists, the single-colour company logos */
  --on-red: #FFFFFF;

  --content: 1240px;       /* the column (brief: Content width) */
  --measure: 68ch;         /* prose: transcripts, issues, essays */
  --gutter: 16px;

  /* The logo's frame: on TOP_Logo.png the white rule sits 2.2% in from the tile edge and is 2.9% thick. */
  --frame-inset: 10px;
  --frame-rule: 12px;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;

  /* Fluid type in rem + vw, capped at 1680 (brief: Type cap). */
  --step-h1: clamp(2.75rem, 11vw - 0.45rem, 8.5rem);
  --step-h2: clamp(2rem, 1.2rem + 2.6vw, 3.75rem);
  --step-lead: clamp(1.5rem, 1rem + 1.45vw, 2.25rem);   /* capped at 36px: past ~1500 the copy column stops widening, and a larger promise line only adds lines */
  --step-figure: clamp(2.25rem, 1.4rem + 2.6vw, 4rem);
  --step-h3: clamp(1.25rem, 1rem + 0.7vw, 1.75rem);
  --step-ep-title: clamp(2.125rem, 1.2rem + 3.2vw, 4.25rem);

  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --frame-inset: 12px; --frame-rule: 16px; }
}
