/* MarcusLabs design tokens — the whole site stays inside these eight colors. */
@font-face {
  font-family: "ML Sans";   /* Zalando Sans (SIL OFL), lowercase drawn 5% taller — see fonts/FONTS.txt */
  src: url("../fonts/mlsans-var.woff") format("woff");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "ML Logo";   /* the same face at width 125 / weight 860, only the letters of the wordmark */
  src: url("../fonts/mllogo.woff") format("woff");
  font-weight: 100 1000;
  font-display: block;
}
@font-face {
  font-family: "ML Mono";
  src: url("../fonts/ptmono-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ML Mono";
  src: url("../fonts/ptmono-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "ML Arrows";   /* ← ↑ → ↓ ↖ ↗ ↘ ↙ for the buttons, centred on the capitals — see tools/build_arrows.py */
  src: url("../fonts/mlarrows.woff") format("woff");
  unicode-range: U+2190-2199;
  font-display: block;
}

/* a length, so it is worked out once on the root (in px) and inherited as a number of pixels, and scripts can read it */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }
/* how much a region's content is filled by (main.js fillScreens): its fluid type and spacing follow it; 1 elsewhere */
@property --f { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  /* print grain, painted into each surface so it scrolls with the page */
  --grain: url("/assets/img/grain.png");
  /* palette (from the brand board) */
  --charcoal: #2D2B2C;
  --cocoa: #53453C;
  --olive: #958B58;
  --stone: #C0B8AB;
  --taupe: #B1A595;
  --fog: #D4D3D8;
  --cream: #EFE2BF;
  --amber: #E5A126;
  /* added with the multicolor wordmark */
  --orange: #FD5719;
  --blue: #0942C5;
  --white: #FBFAE8;

  /* type */
  --sans: "ML Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "ML Mono", "PT Mono", "ML Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", ui-monospace, Menlo, monospace;
  --text: var(--mono);   /* everything that is not display type is set in PT Mono */
  --expanded: 125%;   /* ML Sans width everywhere: the font's widest (the user, 2026-10-25; it was 112%) */

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* layout. One scaled pixel, --u (registered below): 1px up to a 1440 × 900 screen; on a larger one the whole site
     grows in proportion, like a slide, so its white space follows the screen's shape and not its size (the user,
     2026-11-16). Every size in the site's stylesheets is a multiple of it, except hairlines and the breakpoints. */
  --u: max(1px, min(100vw / 1440, 100vh / 900));
  --u0: var(--u);   /* the page's own scaled pixel, worked out here once: a filled region's --u does not change it */
  --f: 1;   /* (registered below as well; set here too for browsers without @property) */
  --gutter: clamp(calc(20 * var(--u)), 10vw - calc(14 * var(--u)), calc(160 * var(--u)));
  --max: calc(1120 * var(--u));
  --radius: calc(4 * var(--u));

  /* surface roles, overridden per section tone */
  --bg: var(--charcoal);
  --ink: var(--cream);      /* headings, primary text */
  --ink-2: var(--stone);    /* body text */
  --ink-3: var(--taupe);    /* captions, meta */
  --line: var(--cocoa);     /* rules, borders */
  --accent: var(--amber);
  --panel: #2D2B2C;         /* same as charcoal: panels are drawn with lines, not tints */
}

/* Light (cream) surfaces */
.tone-light {
  --bg: var(--cream);
  --ink: var(--charcoal);
  --ink-2: var(--cocoa);
  --ink-3: var(--cocoa);
  --line: var(--taupe);
  --accent: var(--cocoa);
  --panel: var(--cream);
}
