/* ==========================================================================
   SUNNYFISH · SET 02 "RUGGED GEAR" — DESIGN TOKENS
   Every value below is traceable to a measured value in:
     ref-2-outrex/analysis.md      (base: colour, type, grid, radius)
     ref-4-monsterhunter/analysis.md (interface neutrals, black pill, image)
     ref-3-anchor/analysis.md      (bottom decision bar)
   Derivation notes are inline. Nothing here is invented from a mood board.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* ------------------------------------------------------------------
     COLOUR — measured, not re-tuned
     Outrex: #080A06 #FAFAFA #FFFFFF #86EE02 #B6F500 #F97A00 #BF5429
             #F4CE14 #EF2B01 #464741 #83A28E #B0A9A0 #AEDDEF
     Monster Hunter: #FDFDFD #49464D #868292 #A4A0A5 #D1D1D2 #000000
     Anchor: #EDEDEE (1px hairline), used as the softest divider only.
     ------------------------------------------------------------------ */
  --ink:        #080A06;  /* Outrex 主暗色 — dark sections, footer, logo  */
  --ink-2:      #49464D;  /* MH 主文字 — warm black, not pure black        */
  --body:       #464741;  /* Outrex 正文灰                                */
  --muted:      #868292;  /* MH 次级文字                                  */
  --faint:      #A4A0A5;  /* MH 弱化文字 / placeholder                    */
  --line:       #E5E5E5;  /* Outrex 卡片 1px 描边（实测 #E5E5E5）          */
  --line-nav:   #DBDBDB;  /* Outrex 导航框线与行分隔（实测 #DBDBDB）       */
  --nav-ink:    #393939;  /* Outrex 导航项文字（实测 #393939）             */
  --line-soft:  #EDEDEE;  /* Anchor 极细描边                              */
  --paper:      #FAFAFA;  /* Outrex 页面浅底                              */
  --paper-2:    #FDFDFD;  /* MH 近白底                                    */
  --white:      #FFFFFF;
  --black:      #000000;  /* MH 纯黑胶囊                                  */

  --green:      #86EE02;  /* Outrex 品牌荧光绿 — 主 CTA / 数据强调 8%     */
  --green-2:    #B6F500;  /* Outrex 第二档绿 — hover / 次层               */
  --orange:     #F97A00;  /* Outrex 橙 — 次强调 / 警示 / 峰值 5%          */
  --orange-2:   #BF5429;  /* Outrex 橙变体 — 小面积文字与描边             */
  --yellow:     #F4CE14;  /* Outrex 黄 — 首屏关键词 / 批注 2%             */
  --red:        #EF2B01;  /* Outrex 红 — 状态角标                         */
  --slate:      #83A28E;  /* Outrex 灰绿 — 冷灰数据标签                   */
  --sand:       #B0A9A0;  /* Outrex 暖灰 — 分隔与弱图表                   */
  --sky:        #AEDDEF;  /* Outrex 插图蓝 — 仅天气图水域                 */

  /* ------------------------------------------------------------------
     TYPE
     Display: Archivo (variable wdth 62→125, wght 100→900) standing in for
     the Druk Wide / Monument Extended class described in ref-2 §1.3.
     Body: Archivo 400–600. Data: IBM Plex Mono (instrument numerals).
     Scale keeps Outrex's 4.2 : 3.2 : 1 : 0.9 drop, then fills the empty
     16–32px band with three derived steps (h2, h3, lead).
     ------------------------------------------------------------------ */
  --f-disp: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --f-mono: "Plex Mono", "SFMono-Regular", Menlo, monospace;

  --d1:   clamp(2.5rem, 4.45vw, 4rem);        /* 40 → 64   Outrex Hero 60–64   */
  --d2:   clamp(2.125rem, 3.6vw, 3.25rem);    /* 34 → 52   Outrex 区块标题 44–52 */
  --d3:   clamp(1.875rem, 3.05vw, 2.75rem);   /* 30 → 44   Outrex 促销标题 36–44 */
  --h2:   1.75rem;                             /* 28  derived √(52×15)=27.9    */
  --h3:   1.25rem;                             /* 20  derived mid(28,15)=20.5   */
  --lead: 1.1875rem;                           /* 19  Outrex 区块导语实测 18.5 */
  --body-s: 1rem;                              /* 16  Outrex 正文 15–16         */
  --sm:   .875rem;                             /* 14                           */
  --meta: .8125rem;                            /* 13  MH 摘要                  */
  --label: .6875rem;                           /* 11  Outrex 角标 / 元信息      */
  --micro: .625rem;                            /* 10  mono 刻度                */

  --lh-disp: 1.08;                             /* Outrex 实测：行距 72.7 / 字号 66 ≈ 1.10 */
  --lh-body: 1.5;                              /* Outrex 实测 16px / 24px = 1.5 */
  --lh-read: 1.7;                              /* MH 1.65–1.75   */
  --tr-disp: -0.02em;                          /* Outrex -1%~-2% */
  --tr-label: .12em;

  /* ------------------------------------------------------------------
     SPACE — 4px base; Outrex measured 40 gutter, 20 gap, 24 card inset,
     100–120 section padding, 60–80 head-to-content.
     ------------------------------------------------------------------ */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 20px;  --s6: 24px;  --s8: 32px;  --s10: 40px;
  --s12: 48px; --s15: 60px; --s20: 80px; --s25: 100px; --s30: 120px;

  --container: 1360px;                         /* Outrex 1360 */
  --gutter: 40px;                              /* Outrex 左右 40 */
  --gap: 20px;                                 /* Outrex 网格 gap 20 */
  --sec: clamp(64px, 7.5vw, 120px);            /* Outrex 100–120 */
  --head-gap: clamp(32px, 4.5vw, 72px);        /* Outrex 60–80 */

  /* ------------------------------------------------------------------
     RADIUS / BORDER — cards and images 0; buttons 4; tags 2.
     The black pill (MH) is the only rounded-for-its-own-sake shape.
     ------------------------------------------------------------------ */
  --r0: 0px;
  --r1: 2px;      /* tags — MH 2px 微圆角 */
  --r2: 0px;      /* buttons / inputs — Outrex 实测直角（角像素即填充色，radius 0） */
  --r-pill: 999px;

  --hair: 1px solid var(--line);
  --hair-soft: 1px solid var(--line-soft);
  --hair-ink: 1px solid var(--ink);

  /* No blur shadows in this system (Outrex §1.4). Layering is done with
     hard-offset paper sheets; this token exists only for the fixed bar. */
  --lift: 0 -1px 0 var(--line);

  --z-nav: 100;
  --z-bar: 150;
  --z-drawer: 200;
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;   /* mobile: Outrex gutter 40 halved on a 390 canvas */
    --gap: 12px;
  }
}
