/* EDGEWISE DESIGN SYSTEM — the shared tokens (batch 1, 2026-10-24).
   The source is the approved homepage, static/index.html: Geist and Geist Mono, near-black #08090a, 1px lines,
   one teal accent, no glows, gradients or grain. Every page that links this file gets the same palette, type,
   radius and buttons; a page's own stylesheet maps its local names onto these tokens (see dashboard.html's :root).

   Fonts are NOT loaded here. A page carries the Google Fonts link itself, with the preconnects, so the request
   starts with the HTML rather than after this file arrives (CSP: style-src allows fonts.googleapis.com,
   font-src fonts.gstatic.com):
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">
     <link rel="stylesheet" href="/static/ew-design.css?v=20261027">
   The ?v= is the cache key: bump it on every page that links this file whenever this file changes, or a browser that
   cached the old sheet renders the new page in the old tokens. A page keeps its own fallbacks for the tokens it uses
   directly, on `html` (lower specificity than :root, so this file wins once it loads), for the case this file does not. */

:root{
  color-scheme:dark;

  /* surfaces, darkest to lightest: page, raised strip, card, card on a card */
  --bg:#08090a; --bg2:#0d0e10; --card:#111214; --card2:#15171a;

  /* the 1px lines: --line divides, --line2 outlines a control or a card that must read as one */
  --line:#1e2024; --line2:#2a2d33; --line3:#40444b;

  /* text, loudest to quietest */
  --text:#f7f8f8; --sub:#b4bcc6; --dim:#8a8f98; --mute:#7c828b;

  /* the one accent, and the semantic colours: --teal fills, --tealtx is the same hue lifted for text on dark */
  --teal:#2dd4a7; --tealtx:#5ee6c0; --teal-tint:rgba(45,212,167,.10);
  --red:#eb5757; --amber:#f2b84b;

  /* type */
  --f:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --m:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  /* the scale: labels and keys in mono, prose and headings in sans */
  --fs-lab:11px;        /* mono, uppercase, letter-spacing .06em: a card title, a key */
  --fs-eyebrow:12px;    /* mono, uppercase: a section eyebrow, a source line */
  --fs-note:13px;       /* a footnote, a hint */
  --fs-ui:14px;         /* a button, a control, a table */
  --fs-body:15px;       /* body copy */
  --fs-h3:16px;         /* a card heading in sans, weight 600 */
  --fs-h2:clamp(28px,3.8vw,42px);
  --fs-h1:clamp(34px,5.6vw,58px);
  --fs-big:44px;        /* the one large figure in a block */
  --track-lab:.06em;    /* letter-spacing for the mono uppercase labels */
  --lh:1.6;

  /* radius: --r for a card or a window, --r2 for a control, a strip or a popover */
  --r:14px; --r2:10px; --r3:8px;

  /* spacing steps used by the marketing pages */
  --s4:40px; --s5:64px; --s6:clamp(72px,9vw,112px);
}

*{box-sizing:border-box}
/* `hidden` wins over every display rule, including the button rules below: a hidden control is never shown */
[hidden]{display:none!important}
html,body{background:var(--bg);margin:0}
body{color:var(--text);font:var(--fs-body)/var(--lh) var(--f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.006em;text-rendering:optimizeLegibility}
::selection{background:rgba(45,212,167,.28)}

/* links: inherit by default; a quiet nav link (.lk) lifts to full text on hover; .t is teal text */
a{color:inherit;text-decoration:none}
.lk{color:var(--dim);transition:color .15s;white-space:nowrap}
.lk:hover{color:var(--text)}
.t{color:var(--tealtx)}

/* buttons: primary is white on near-black, ghost is a 1px outline; .lg is the call-to-action size */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--r3);
  font:500 var(--fs-ui)/1 var(--f);letter-spacing:-.01em;border:1px solid transparent;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;white-space:nowrap;background:var(--text);color:#0b0c0e}
.btn:hover{background:#dfe3e6}
.btn.ghost{background:transparent;color:var(--text);border-color:var(--line2)}
.btn.ghost:hover{border-color:var(--line3);background:#121316}
.btn.lg{height:44px;padding:0 18px;font-size:var(--fs-body);border-radius:var(--r2)}
.btn:disabled{opacity:.55;cursor:default}

/* the mono label: .eyebrow, opt-in. NO GLOBAL .lab (batch 1 review P2, 2026-10-27): the app's render code names
   fourteen plain key labels `lab` (dashboard.html's "Break level (30%)", "We said", "It happened"…) that have no rule
   of their own and must stay body text; a shared .lab rule restyled them. A page that wants the mono label on its own
   .lab/.k/.note writes the one-line rule itself, in these tokens: font:500 var(--fs-lab)/1.3 var(--m);
   letter-spacing:var(--track-lab);text-transform:uppercase;color:var(--dim). */
.eyebrow{font:500 var(--fs-eyebrow)/1.3 var(--m);letter-spacing:var(--track-lab);text-transform:uppercase;color:var(--dim)}

/* focus: one ring, the accent colour */
.btn:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--tealtx);outline-offset:2px}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
