/* Silkline design tokens: the ONE file that holds colours, type, spacing, radii and motion for the landing site
   and the console (docs/规格-自营站成品.md「设计方向」; teardown in docs/research/对标拆解-2026-11-19.md).
   Dark is the default. Light is its own palette, not an inversion. A first visit follows the system setting;
   the switch stores the choice (ui/theme.js sets data-theme on <html>).
   Rules: no brand accent. Colour appears only where it means good / bad / caution, and in JSON values.
   Nothing outside this file may write a colour, a font size, a radius or a duration. */
@font-face { font-family: Geist; src: url(/fonts/geist-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 400 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Arial scaled to Geist's width (measured 1.019) so text does not move when Geist swaps in */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 101.9%; }

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #0A0A0B;
  --bg-1: #111113;      /* panels, cards */
  --bg-2: #18181B;      /* raised: inputs, hovered rows, chips */
  --bg-inv: #F4F4F5;    /* the primary button */
  /* text: three steps, no more */
  --fg: #F4F4F5;        /* 18.1:1 on --bg */
  --fg-2: #A1A1AA;      /* 7.7:1 */
  --fg-3: #7F7F8A;      /* 4.9:1: labels and meta only, never body text */
  --fg-inv: #0A0A0B;
  /* lines */
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --control: #5C5C66;   /* borders of inputs: 3:1 on --bg */
  --focus: #FFFFFF;
  /* the backing of the footer's directory badges: their own artwork is drawn for light pages, one is dark on dark */
  --badge-bg: #E4E4E7;
  /* meaning: always shown with a shape and a word, never alone */
  --ok: #3FB984;   --ok-bg: rgba(63, 185, 132, .12);
  --bad: #F0616D;  --bad-bg: rgba(240, 97, 109, .12);
  --warn: #F5C451; --warn-bg: rgba(245, 196, 81, .12);
  /* the request/response area: dark in both themes */
  --code-bg: #0E0E10;
  --code-bg-2: #17171A;
  --code-line: rgba(255, 255, 255, .08);
  --code-fg: #F2F2F3;
  --code-fg-2: #9A9DA3;
  --code-str: #C9B98A;
  --code-num: #A9C4A0;
  --code-ok: #3FB984; --code-ok-bg: rgba(63, 185, 132, .12);
  --code-bad: #F0616D;
  --code-btn: #F4F4F5; --code-btn-fg: #0A0A0B;
  --nav-glass: rgba(10, 10, 11, .72);
  --shadow: 0 0 0 1px var(--line), 0 24px 64px -24px rgba(0, 0, 0, .7);
  /* background light: a cool white and the green of a live answer. No brand hue. */
  --glow-a: rgba(168, 196, 255, .20);
  --glow-b: rgba(63, 185, 132, .13);
  --glow-c: rgba(255, 255, 255, .07);
  --grid: rgba(255, 255, 255, .045);
  --live: #3FB984;
  --dim: #6B6B76;       /* the second line of a two-tone heading: display sizes only (light: #62656A, 4.8:1 on every light ground) */
  --band: #141416;      /* a section set apart from its neighbours: visibly lighter than --bg in dark */
  --lift: #1C1C20;      /* the contrast section: clearly lighter than --band in dark, darker than --band in light */
  --sheen: rgba(10, 10, 11, .14);      /* the streak across the primary button (light button in dark) */
  --card-glow: rgba(255, 255, 255, .26); /* the border light that follows the pointer */
  --lit: rgba(63, 185, 132, .10);
  /* the catalog's groups: five greys, never a brand's colour */
  --cat-0: #3A3A40; --cat-1: #2E2E33; --cat-2: #45454C; --cat-3: #26262A; --cat-4: #333338;
  --cat-fg: #E4E4E7;
  --opaque: #000;      /* mask paint only: what a mask keeps, never seen as a colour */      /* a code line that stays the same across platforms */

  --sans: Geist, "Geist Fallback", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Geist Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", ui-monospace, monospace;

  /* type: size/line-height pairs, the only ones */
  /* headline sizes are at the level of the references we were measured against (88 and 60), not below */
  --t-display: 600 88px/88px var(--sans);  --ls-display: -.04em;
  --t-display-zh: 600 88px/104px var(--sans); /* Chinese: 8 characters a line must fit a phone's width (see below) */   /* the first screen: one title, as large as the references' (88) */
  --lh-display-zh: 1.18;   /* Chinese display lines need more room between them than Latin */
  --t-h2: 600 60px/62px var(--sans);       --ls-h2: -.04em;
  --t-h3: 600 28px/34px var(--sans);       --ls-h3: -.03em;
  --t-h4: 600 20px/28px var(--sans);       --ls-h4: -.015em;
  --t-lead: 400 20px/30px var(--sans);
  --t-cta: 600 72px/74px var(--sans);      --ls-cta: -.04em;
  --t-body: 400 16px/26px var(--sans);
  --t-btn: 500 15px/20px var(--sans);
  --t-ui: 400 14px/20px var(--sans);
  --t-label: 400 13px/20px var(--sans);
  --t-micro: 500 12px/16px var(--mono);    --ls-micro: .06em;
  --t-code: 400 13px/20px var(--mono);
  --t-tiny: 600 10px/12px var(--sans);   /* a letter inside a small square */
  --t-mark: 600 12px/12px var(--sans);
  --t-code-s: 400 11px/14px var(--mono);   /* code inside a small picture */
  --t-q: 500 17px/24px var(--sans);        /* a question in the list */   /* a platform's mark in its square */
  --t-stat: 600 32px/36px var(--sans);     --ls-stat: -.03em;
  --t-big: 600 80px/84px var(--sans);      /* the numbers band: the size of the headline */
  --t-h2s: 600 40px/46px var(--sans);      --ls-h2s: -.03em;   /* a one-line section title, smaller than the two-tone ones */

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px; --r-pill: 999px;
  --wrap: 1232px;
  --gutter: 24px;
  --nav-h: 60px;
  --measure: 35rem;

  /* motion: colour 150, movement 200, reveal 500, arrival 600 (the only long one) */
  --t-fast: 150ms;
  --t-move: 200ms;
  --t-reveal: 500ms;
  --t-arrive: 600ms;
  --t-loop: 2400ms;   /* pictures that keep running: a packet, a caret */
  --t-drift: 22s;     /* the background light */
  --t-draw: 900ms;    /* a bar or a meter filling once */
  --t-word: 70ms;     /* between two words of the headline rising */
  --t-type: 38ms;     /* one character typed in a terminal */
  --t-sweep: 900ms;   /* the streak across a button */
  --t-swap: 180ms;    /* one platform's answer giving way to the next */
  --t-row: 90ms;      /* between two rows of the demo fading in */
  --e-std: cubic-bezier(.4, 0, .2, 1);
  --e-out: cubic-bezier(.19, 1, .22, 1);
}

/* light: set by the switch, or by the system on a first visit */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --bg-1: #F7F7F8; --bg-2: #EFEFF1; --bg-inv: #0B0B0C;
  --fg: #0B0B0C; --fg-2: #55575C; --fg-3: #5E6166; --fg-inv: #FFFFFF;
  --line: #E4E4E7; --line-2: #EFEFF1; --control: #8C8F94; --focus: #0B0B0C;
  --ok: #00754A;   --ok-bg: #E3F4EC;
  --bad: #C4303A;  --bad-bg: #FBE9EA;
  --warn: #8A5A00; --warn-bg: #FFF4D6;
  /* light: the code areas are a light panel with dark text, not a black block on a white page */ --code-bg: #F5F6F8; --code-bg-2: #ECEEF2; --code-line: rgba(11, 11, 12, .09); --code-fg: #17181C; --code-fg-2: #5E636E; --code-str: #7A4E00; --code-num: #2D6A3A; --code-ok: #00754A; --code-ok-bg: #E3F4EC; --code-bad: #C4303A; --code-btn: #0B0B0C; --code-btn-fg: #FFFFFF;
  --nav-glass: rgba(255, 255, 255, .78);
  --shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(11, 11, 12, .28);
  --glow-a: rgba(120, 150, 255, .16); --glow-b: rgba(0, 150, 100, .10); --glow-c: rgba(11, 11, 12, .04); --grid: rgba(11, 11, 12, .05); --live: #00754A; --dim: #62656A;
    --badge-bg: transparent;
    --band: #F3F3F5; --lift: #E8E8EC; --cat-0: #D4D4D8; --cat-1: #E4E4E7; --cat-2: #C4C4CA; --cat-3: #EDEDF0; --cat-4: #DADADF; --cat-fg: #18181B; --sheen: rgba(255, 255, 255, .26); --card-glow: rgba(11, 11, 12, .22);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #FFFFFF; --bg-1: #F7F7F8; --bg-2: #EFEFF1; --bg-inv: #0B0B0C;
    --fg: #0B0B0C; --fg-2: #55575C; --fg-3: #5E6166; --fg-inv: #FFFFFF;
    --line: #E4E4E7; --line-2: #EFEFF1; --control: #8C8F94; --focus: #0B0B0C;
    --ok: #00754A;   --ok-bg: #E3F4EC;
    --bad: #C4303A;  --bad-bg: #FBE9EA;
    --warn: #8A5A00; --warn-bg: #FFF4D6;
    /* light: the code areas are a light panel with dark text, not a black block on a white page */ --code-bg: #F5F6F8; --code-bg-2: #ECEEF2; --code-line: rgba(11, 11, 12, .09); --code-fg: #17181C; --code-fg-2: #5E636E; --code-str: #7A4E00; --code-num: #2D6A3A; --code-ok: #00754A; --code-ok-bg: #E3F4EC; --code-bad: #C4303A; --code-btn: #0B0B0C; --code-btn-fg: #FFFFFF;
    --nav-glass: rgba(255, 255, 255, .78);
    --shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(11, 11, 12, .28);
    --glow-a: rgba(120, 150, 255, .16); --glow-b: rgba(0, 150, 100, .10); --glow-c: rgba(11, 11, 12, .04); --grid: rgba(11, 11, 12, .05); --live: #00754A; --dim: #62656A;
    --badge-bg: transparent;
    --band: #F3F3F5; --lift: #E8E8EC; --cat-0: #D4D4D8; --cat-1: #E4E4E7; --cat-2: #C4C4CA; --cat-3: #EDEDF0; --cat-4: #DADADF; --cat-fg: #18181B; --sheen: rgba(255, 255, 255, .26); --card-glow: rgba(11, 11, 12, .22);
  }
}
@media (max-width: 720px) {
  :root {
    --t-display: 600 46px/46px var(--sans);
    --t-display-zh: 600 40px/48px var(--sans);
    --t-h2: 600 34px/36px var(--sans);
    --t-h3: 600 24px/30px var(--sans);
    --t-h4: 600 18px/26px var(--sans);
    --t-lead: 400 17px/27px var(--sans);
    --t-cta: 600 40px/42px var(--sans);
    --t-stat: 600 26px/30px var(--sans);
    --t-big: 600 44px/48px var(--sans);
    --t-h2s: 600 28px/34px var(--sans);
    --gutter: 20px;
    --s-10: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-move: 0ms; --t-reveal: 0ms; --t-arrive: 0ms; --t-draw: 0ms; --t-word: 0ms; --t-type: 0ms; --t-sweep: 0ms; --t-swap: 0ms; --t-row: 0ms; }
}
