/* ============================================================
   Argo Studio — design tokens
   Single source of truth for colour, type and motion.
   Change a value here and every page follows.
   ============================================================ */

/* Chinese display type: self-hosted Noto Serif TC subset (OFL, see
   fonts/OFL.txt) holding only the glyphs headings, menu and quotes use.
   Rebuild with build/subset-cjk-font.py when client copy changes; any
   glyph not in the subset falls back to the system serif, never tofu.
   Chinese body text uses the system sans in --f-body. */
@font-face {
  font-family: 'Noto Serif TC';
  src: url('../fonts/noto-serif-tc-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf9f6;
  --ink: #1c1a16;
  --gold: #a4975a;
  --muted: #6f6a5f;
  /* Light mustard band (Services "How we work"): 35% gold on the page colour.
     --ink on it is about 12:1; gold or --bg text on it fails contrast.
     Deck cards keep solid --bg so they stay opaque over this colour.
     Unused since 2026-10-13 (How we work moved to --bg); kept for reuse. */
  --band: color-mix(in srgb, var(--gold) 35%, var(--bg));
  /* Darker gold for small text that stays on screen (current nav item,
     project eyebrow) and focus rings: about 4.7:1 on --bg, passing WCAG AA.
     --gold itself is about 2.8:1, so keep it for hover, lines and large type. */
  --gold-text: color-mix(in srgb, var(--gold) 70%, var(--ink));
  /* --gold at 35% alpha: the softer hairline above the project page footer. */
  --gold-soft: rgb(164 151 90 / 0.35);

  --nav-h: 74px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --f-display: 'Prata', 'Noto Serif TC', serif;
  --f-body: 'Karla', 'PingFang TC', 'Hiragino Sans TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif;

  /* Type scale. Headings, leads, body and labels share these sizes.
     Contact values stay on the smaller sans size in content.css. */
  --fs-display: clamp(36px, 5vw, 64px);
  --fs-h2: clamp(26px, 3.2vw, 40px);
  --fs-h3: clamp(20px, 2.1vw, 28px);
  --fs-quote: clamp(20px, 2.6vw, 32px);
  --fs-lead: clamp(17px, 1.35vw, 20px);
  --fs-body: clamp(16px, 1.15vw, 18px);
  --fs-menu: clamp(30px, 9vw, 46px);
  --fs-card: clamp(13px, 1.4vw, 15px);
  --fs-card-meta: clamp(11px, 1.2vw, 13px);
  --fs-ui: 14px;
  --fs-facts: 15px;
  --fs-contact-value: 18px;
  --fs-meta: 13px;
  --fs-label: 12px;
  --fs-splash: clamp(9px, 2.2vw, 13px);

  --scrim-top: linear-gradient(to bottom, rgba(250,249,246,.75) 0%, rgba(250,249,246,.5) 45%, rgba(250,249,246,0) 100%);
  --scrim-bottom: linear-gradient(to top, rgba(250,249,246,.75) 0%, rgba(250,249,246,.5) 45%, rgba(250,249,246,0) 100%);
}

/* Browsers without color-mix() (Safari < 16.2, Chrome < 111): the same
   colours precomputed, so the tokens never resolve to nothing. */
@supports not (color: color-mix(in srgb, red, blue)) {
  :root {
    --band: #dcd7bf;
    --gold-text: #7b7246;
  }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; }
}
