/* TheAdaply · Desktop design tokens (light, primary)
   4px grid · radii ≤ 6px · Geist / Geist Mono (loaded via Google Fonts) */

:root{
  /* ── Neutrals (warm grey, from theadaply.com) ── */
  --canvas:#F3F3F2;          /* window + sidebar */
  --surface:#FFFFFF;         /* content panes, floating panels */
  --surface-2:#FAFAF9;       /* table headers, inset wells */
  --surface-3:#F6F6F4;       /* hover fill */
  --hairline:#E8E7E4;        /* default 1px border */
  --hairline-strong:#DCDBD7; /* control borders */
  --ink:#0A0A0A;             /* primary text */
  --ink-2:#2A2A28;           /* strong secondary */
  --body:#6B6B68;            /* body / secondary text */
  --muted:#8E8D89;           /* metadata */
  --faint:#B5B4AF;           /* disabled, placeholders */

  /* ── Accent: slate teal (matte ink) ── */
  --accent:#1F3A47;
  --accent-2:#3E6A7A;
  --accent-soft:rgba(62,106,122,.10);
  --accent-soft-2:rgba(62,106,122,.16);
  --accent-ring:rgba(62,106,122,.38);

  /* ── Semantic ── */
  --pass:#17864E;  --pass-soft:rgba(23,134,78,.10);
  --flag:#C8553D;  --flag-soft:rgba(200,85,61,.10);
  --partial:#A86F1C; --partial-soft:rgba(168,111,28,.11);
  --unknown:#8E8D89; --unknown-soft:rgba(142,141,137,.12);

  /* ── Earthy tints (illustration / category only) ── */
  --terracotta:#CD8F70; --terracotta-2:#F0C6AB;
  --slate:#6F8D98;      --slate-2:#ADC6CF;
  --mauve:#B78E9D;      --mauve-2:#E6C3CE;

  /* ── Matte gradient (hero zones only) ── */
  --grad-matte:linear-gradient(180deg,#0B1418 0%,#12232B 26%,#1F3A47 52%,#5E7A85 78%,#C9D2D6 100%);
  --grad-matte-band:linear-gradient(180deg,#0B1418 0%,#16303B 55%,#2A4A57 100%);
  --grad-matte-short:linear-gradient(165deg,#0E1A1F 0%,#1F3A47 62%,#3E6A7A 100%);
  --grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-opacity:.07;

  /* ── Matte glass buttons ── */
  --btn-glass-fill:linear-gradient(180deg,#1F3A47 0%,#0E1A1F 100%);
  --btn-glass-fill-hover:linear-gradient(180deg,#26495A 0%,#12222A 100%);
  --btn-glass-border:#0B1418;
  --btn-glass-highlight:inset 0 1px 0 rgba(255,255,255,.18);
  --btn-glass-shadow:0 1px 2px rgba(11,20,24,.24),0 4px 12px -4px rgba(11,20,24,.35);
  --btn-frost-fill:rgba(255,255,255,.70);
  --btn-frost-border:rgba(255,255,255,.55);
  --btn-frost-highlight:inset 0 1px 0 rgba(255,255,255,.9);

  /* ── Elevation ── */
  --shadow-xs:0 1px 1px rgba(10,10,10,.04);
  --shadow-sm:0 1px 2px rgba(10,10,10,.06),0 1px 1px rgba(10,10,10,.03);
  --shadow-pop:0 4px 12px -2px rgba(10,20,24,.12),0 0 0 1px rgba(10,20,24,.06);
  --shadow-float:0 1px 2px rgba(11,20,24,.08),0 14px 36px -10px rgba(11,20,24,.30),0 40px 80px -32px rgba(11,20,24,.35);
  --shadow-palette:0 24px 64px -12px rgba(11,20,24,.35),0 0 0 1px rgba(11,20,24,.08);

  /* ── Type ── */
  --font-sans:"Geist",-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;
  --font-mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --fs-label:11px;   /* uppercase section labels, mono metadata */
  --fs-meta:12px;    /* metadata, table secondary */
  --fs-body:13px;    /* UI body */
  --fs-emph:14px;    /* list titles, quotes */
  --fs-h3:15px;      /* panel titles */
  --fs-h2:18px;      /* hero numbers */
  --fs-title:26px;   /* page titles, weight 300 */
  --lh-tight:1.25; --lh-body:1.5;
  --tracking-label:.06em;

  /* ── Space (4px grid) ── */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s10:40px; --s12:48px;

  /* ── Radii ── */
  --r-xs:3px; --r-sm:4px; --r-md:6px;

  /* ── Chrome sizes ── */
  --titlebar-h:38px; --toolbar-h:44px; --statusbar-h:26px;
  --sidebar-w:248px; --inspector-w:360px; --row-h:36px; --control-h:28px;

  /* ── Focus & states ── */
  --focus-ring:0 0 0 2px var(--surface),0 0 0 4px var(--accent-ring);
  --state-hover:rgba(10,10,10,.04);
  --state-active:rgba(10,10,10,.07);
  --state-selected:var(--accent-soft);
  --state-disabled-opacity:.45;
  --ease:cubic-bezier(.2,.7,.2,1); --dur:120ms;
}
