:root {
  /* Colour */
  --paper: #f6f4ef;
  --ink: #141312;
  --ink-soft: #4f4c47;
  --ink-mute: #8b8780;
  --rule: rgba(20, 19, 18, 0.16);
  --red: #c4161c;
  --red-deep: #a31016;
  --white: #ffffff;

  /* Page artwork: a pale stone plane, and the warm charcoal of the dark spread. */
  --stone: #e2e3e5;
  --char: #1d1b19;
  --on-char: #f1ede6;
  --on-char-soft: rgba(241, 237, 230, 0.68);
  --on-char-rule: rgba(241, 237, 230, 0.16);
  /* A lighter warm graphite, as a gradient, for the Labs band, so it reads
     apart from the dark spread while sharing its ink. */
  --graphite: #2b2825;
  --graphite-lift: #403b35;

  /* Terminals and the windows the screens sit in */
  --screen: #18191b;
  --screen-bar: #232427;
  --screen-text: #d8d5ce;
  --screen-mute: #85827c;

  /* Claude Code's own terminal colours, for the agent window and the install. */
  --cc-text: #e6e6e6;
  --cc-dim: #8a8a8a;
  --cc-ok: #4eba65;
  --cc-error: #ff6b80;
  --cc-rule: #6b6b6b;
  --cc-accent: #d77757;

  /* zwischen-web's own colours (app/globals.css), for the account and Labs
     screens. */
  --app-bg: #f7f7f8;
  --app-ink: #16181f;
  --app-border: #e5e7eb;
  --app-muted: #6b7280;
  --app-soft: #59616c;
  --app-chrome: #050507;
  --app-dark: #111318;
  --app-brand: #ff2d2d;
  --app-catch: #b4232c;

  /* The Labs chart's line colours, in fixed order, validated on white. */
  --lab-series-1: #2a78d6;
  --lab-series-2: #eb6834;

  /* The Frank Monitor's palette, as zwischen-client's monitor.py draws it. */
  --mon-chrome: #303030;
  --mon-chrome-text: #d0d0d0;
  --mon-dim: #666666;
  --mon-muted: #9e9e9e;
  --mon-block: #ff5f5f;
  --mon-gate: #ffd75f;
  --mon-agent: #9ecbff;
  --mon-frank: #a8e6b0;
  --mon-release: #00af5f;
  --mon-you: #d7bdf2;

  /* Top bar: carried over from the live zwischen.ai header as-is. */
  --bar-bg: rgba(5, 5, 7, 0.9);
  --bar-solid: #0b0b0d;
  --bar-border: rgba(255, 255, 255, 0.06);
  --bar-red: #ff2d2d;
  --bar-red-glow: rgba(255, 45, 45, 0.18);

  /* Type */
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Mono', 'SF Mono', Consolas, ui-monospace, monospace;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --track-caps: 0.28em;
  --text-caps: 0.75rem;
  /* Section headlines sit a step under the hero's 72px. */
  --text-h2: clamp(2.375rem, 3.1vw, 3.75rem);
  --text-body: clamp(1.0625rem, 0.95vw, 1.1875rem);

  /* Spacing */
  --bar-h: 73px;
  --gutter: clamp(1.25rem, 6.5vw, 6.25rem);
  --section-y: clamp(5rem, 9vw, 9.5rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.25s;
  /* The demo's perspective switch. */
  --dur-swap: 0.55s;
}

/* The live header tightens its padding at this width, so the bar is shorter. */
@media (max-width: 768px) {
  :root {
    --bar-h: 69px;
  }
}

/* Phones run a tighter cadence: shorter chapters, body a step smaller. */
@media (max-width: 767px) {
  :root {
    --text-body: 1rem;
    --section-y: 4.5rem;
  }
}
