/* GENERATED by build/tokens_css.py from runs/piiix-marketing/tokens.json.
   Do not hand-edit: run the script. Every value here is in the signed handoff. */

:root {
  /* colour — the plaster wall */
  --wall: #f7f4ef;
  --ink: #2b2723;
  --plinth: #efeae2;
  --mid: #6e675e;
  --seam: #ac5500;
  --amber-text: #8a4400;
  --red: #d91000;
  --hairline: #ddd6cb;
  --disabled: #a59e92;
  /* the three role aliases the composition uses by name */
  --substrate: var(--wall);
  --module: var(--plinth);
  --secondary-text: var(--mid);
  --stamp-border-color: var(--red);
  --object-ink: var(--ink);

  /* space */
  --space-0-5: 4px;
  --space-1: 8px;
  --space-1-25: 10px;
  --space-1-5: 12px;
  --space-2: 16px;
  --space-2-5: 20px;
  --space-2-75: 22px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* stroke */
  --stroke-hairline: 1px;
  --stroke-ink: 2px;
  --stroke-seam-glyph: 1.75px;
  --stroke-seam-module: 2.5px;
  --stroke-seam-module-hover: 4px;
  --stroke-seam-exhibit: 4px;
  --stroke-seam-mark: 1.5px;
  --stroke-seam-page: 2px;
  --stroke-vein-leader: 2px;
  --stroke-vein-dot-r: 3px;
  --stroke-focus-ring: 2px;
  --stroke-stamp-border: 2px;
  --radius: 0px;

  /* type — system faces only, zero font bytes */
  --font-serif: "Iowan Old Style", Charter, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* motion */
  --dur-micro-enter: 120ms;
  --dur-micro-exit: 80ms;
  --dur-reveal: 480ms;
  --dur-stagger: 60ms;
  --dur-trace: 900ms;
  --dur-trace-delay: 120ms;
  --dur-page-enter: 240ms;
  --dur-page-exit: 160ms;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-leave: cubic-bezier(0.4, 0, 1, 1);
  --ease-trace: cubic-bezier(0, 0, 1, 1);
}

/* The lacquer room. One design, two palettes: token swap only, plus the
   three per-mode retunes DIRECTION.md names (object ink -> secondary,
   stamp border -> red-text, hairline). Composition does not change. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #272625;
    --ink: #f5f9fb;
    --panel: #332f2d;
    --secondary: #d8d4cf;
    --seam: #fd9f13;
    --red-text: #ff6a4a;
    --red-graphical: #e62706;
    --hairline: #434241;
    --disabled: #6a6560;
    --substrate: var(--ground);
    --module: var(--panel);
    --secondary-text: var(--secondary);
    --stamp-border-color: var(--red-text);
    --object-ink: var(--secondary);
    --red: var(--red-text);
    /* DIRECTION.md: dark small-amber IS dark.seam (confirmed at Gate C).
       It is an alias rather than a literal key in tokens.json, so it has
       to be written here or the light amber #8a4400 leaks onto the dark
       ground and measures 2.09:1 — caught at build. dark.seam is 7.30. */
    --amber-text: var(--seam);
  }
}

