/* aiready.family, Direction E ("The Signal"): the shared base every page loads first.
   1. The site's own fonts (no Google Fonts).  2. The design tokens as CSS variables.
   3. The header (menu button and wordmark) and the menu drawer.
   Page styles come after this file and use the variables below. */

/* 1. Fonts: Latin files in /assets/fonts/ (see its README for sources and licenses). */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:600 800;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-var.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-var.woff2) format("woff2")}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-mono-400.woff2) format("woff2")}
@font-face{font-family:"DM Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/dm-mono-500.woff2) format("woff2")}

/* 2. Tokens */
/* tokens:start */
/* Generated from tokens.json version 3 by tools/brand/build-tokens.mjs. Do not edit by hand. */
:root{
  --bg:#FFFFFF;
  --bg-card:#F6F7F9;
  --bg-elevated:#FFFFFF;
  --border:#E4E7EC;
  --line:#EEF0F4;
  --line2:#D9DCE3;
  --text:#0B1020;
  --text-muted:#5B6170;
  --text-dim:#B9BECA;
  --blue:#2563EB;
  --blue-hover:#1D4ED8;
  --blue-glow:#2563EB;
  --on-blue:#FFFFFF;
  --blue-tint:#EEF4FF;
  --highlight:#FFD60A;
  --highlight-soft:#FFF7CC;
  --highlight-panel:#FFF4B8;
  --state-hover:var(--bg-card);
  --state-selected:var(--highlight-soft);
  --focus-ring:var(--blue);
  --band-strong:#17663F;
  --band-steady:#1F5FA8;
  --band-mixed:#7A5200;
  --band-fast:#A3470F;
  --band-fastest:#9B2226;
  --band-strong-soft:#E6F4EC;
  --band-steady-soft:#E8F0FA;
  --band-mixed-soft:#FBF1DC;
  --band-fast-soft:#FCEBDD;
  --band-fastest-soft:#FBE9E9;
  --band-fastest-option-plum:#6D2E6B;
  --cost-1:#CFE0FF;
  --cost-2:#8FB4FF;
  --cost-3:#3D7BFF;
  --cost-4:#1741A6;
  --accent-teal:#14b8a6;
  --thoob-yellow:#fde047;
  --font-display:"Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans:"Inter", system-ui, sans-serif;
  --font-mono:"DM Mono", ui-monospace, monospace;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-7:28px;
  --space-8:32px;
  --radius-sm:12px;
  --radius-md:16px;
  --radius-card:20px;
  --radius-lg:28px;
  --radius-pill:999px;
  --radius-full:50%;
  --shadow-paper:0 14px 34px rgba(11,16,32,0.10);
  --shadow-pin:0 1px 3px rgba(11,16,32,0.25);
  --target-min:44px;
  --ask-first-screen:600px;
}
/* tokens:end */

/* 3. Header: a three-line menu button, then the wordmark. Nothing else. */
.sh{display:flex;align-items:center;gap:10px;padding:14px 20px;background:var(--bg);color:var(--text);font-family:var(--font-sans)}
.sh-menu{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:var(--radius-sm);background:none;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center}
.sh-menu:hover{background:var(--bg-card)}
.sh-word,.sm-word{font-family:var(--font-display);font-weight:800;font-size:21px;line-height:1;letter-spacing:-.02em;color:var(--text);text-decoration:none}
.sh-word{display:inline-flex;align-items:center;min-height:44px}
.sh-word:hover{color:var(--text)}
/* each half of the name carries its own color, so no page's link rule can turn the whole name blue */
.wm-a{color:var(--text)}
.wm-b{color:var(--blue)}
.sh-menu:focus-visible,.sh-word:focus-visible,.sm-close:focus-visible,.sm-link:focus-visible{outline:2px solid var(--text);outline-offset:2px;border-radius:var(--radius-sm)}

/* The menu: a drawer from the left over a dimmed page. A native dialog, so focus stays inside it,
   Escape closes it and focus returns to the menu button. Built by /assets/site-header.js. */
dialog.sm{position:fixed;inset:0 auto 0 0;margin:0;width:min(320px,86vw);height:100%;max-width:none;max-height:none;box-sizing:border-box;padding:14px 12px 24px;border:0;background:var(--bg-elevated);color:var(--text);font-family:var(--font-sans);text-align:left;overflow-y:auto}
dialog.sm[open]{display:flex;flex-direction:column;gap:2px;animation:sm-in .28s cubic-bezier(.2,.8,.2,1) both}
dialog.sm::backdrop{background:rgba(11,16,32,.45)}
@keyframes sm-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
.sm-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px 10px}
.sm-close{width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--line);color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center}
.sm-close:hover{background:var(--border)}
.sm-nav{display:flex;flex-direction:column;gap:2px}
.sm-link{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:13px 12px;border-radius:var(--radius-sm);font-size:17px;line-height:1.3;font-weight:600;color:var(--text);text-decoration:none}
.sm-link:hover{background:var(--bg-card);color:var(--text)}
.sm-link[aria-current="page"]{background:var(--highlight-soft)}
.sm-link.sm-pro{padding:11px 12px;font-size:16px;font-weight:400}
.sm-group{margin:14px 12px 4px;font-size:13px;line-height:1.3;font-weight:600;color:var(--text-muted)}
@media (prefers-reduced-motion:reduce){dialog.sm[open]{animation:none}}
