/* MASHBOX Visual Language v1 (locked 2026-10-29). Skill: mashbox-visual-language.
   Every value below is copied from live mashbox.gg, Pages deployment 460b98a2 (2026-10-29T07:32Z),
   built from boshjerns/mashbox commit c43a005 (web/assets/{api,home,nav,hero}.css, app/desktop/ui/tokens.css).
   Load order on the site: /ui/tokens.css, api.css, home.css, nav.css, hero.css. This file is the resolved result
   of that cascade for body[data-ns] pages. Fonts are SIL OFL 1.1; keep the OFL texts beside the font files. */

@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/Outfit-Variable.woff2") format("woff2"); }
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 98.99%; ascent-override: 101.02%; descent-override: 26.27%; line-gap-override: 0%; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("/fonts/BigShouldersDisplay-900.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono ASCII"; font-weight: 100 900; font-display: swap; src: url("/fonts/GeistMono-ASCII.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0; }

:root {
  /* colour, light (api.css :root + hero.css :root:has(body[data-ns])) */
  --paper: #f6f3ed;      /* page */
  --paper-2: #ece7dd;    /* cards, menus, nav pill (at 84%) */
  --paper-3: #e2dccf;    /* tags, current nav item, chips inside cards */
  --ink: #0b0a09;        /* text, primary pill fill */
  --ink-2: #4d4740;      /* body copy, secondary text */
  --ink-3: #776f65;      /* faint text, icons at rest */
  --rule: #e0dacd;       /* stroke on large cards (dense pages) */
  --rule-2: #cdc5b6;     /* stroke on inputs, small buttons, badges */
  --ember: #ff5a1f;      /* the one accent: fills, the Live tag stroke, focus ring */
  --ember-text: #b8400f; /* ember used as text on paper */
  --ember-ink: #1a0b04;  /* text on an ember fill */
  --ok: #15803d; --warn: #a16207; --bad: #b91c1c;
  --ok-bg: #e7f4ea; --warn-bg: #fdf3dc; --bad-bg: #fbe9e7;
  --pill: #e6e0d4;       /* --hx-pill: secondary pill */
  --pill-h: #dcd5c7;     /* --hx-pill-h */
  --pri: #0b0a09;        /* --hx-pri: primary pill */
  --pri-ink: #f6f3ed;    /* --hx-pri-ink */
  --pri-h: #2a2521;      /* --hx-pri-h */

  /* type */
  --font: "Outfit", "Outfit Fallback", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Big Shoulders Display", "Barlow Semi Condensed", Impact, sans-serif;
  --mono: "Geist Mono ASCII", "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* radius (all measured on live elements) */
  --r-code: 4px;    /* inline code */
  --r-input: 8px;   /* inputs, selects, small square buttons */
  --r: 10px;        /* api.css --r */
  --r-cmd: 14px;    /* command rows, menu rows */
  --r-tile-s: 16px; /* 52px icon tile */
  --r-img: 18px;    /* screenshots inside a frame */
  --r-tile-m: 22px; /* 76px icon tile, model cards */
  --r-menu: 24px;   /* popover menu */
  --r-clip: 30px;   /* video and image blocks */
  --r-tile-l: 38px; /* 124px dock tile */
  --r-frame: 40px;  /* big ember frame, closing band (28px under 641px) */
  --r-pill: 999px;

  /* stroke: one width, full and rounded, or none */
  --stroke: 1px;

  /* motion */
  --t: .15s;                               /* hover colour on pills and nav */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);  /* tokens.css --ease */
  --fast: 160ms; --slow: 600ms;
  --bob: 2.4s steps(2, jump-none) infinite alternate; /* pixel sprite idle */

  /* shadow (home.css) */
  --sh-1: 0 1px 2px rgb(22 23 27 / .05), 0 2px 8px -4px rgb(22 23 27 / .08);
  --sh-2: 0 2px 4px rgb(22 23 27 / .05), 0 18px 36px -18px rgb(22 23 27 / .28);
  --sh-menu: 0 30px 70px -24px rgb(0 0 0 / .55);
  --sh-nav: 0 18px 40px -30px rgb(0 0 0 / .55);
  --sh-shot: 0 34px 60px -34px rgb(26 11 4 / .75), 0 2px 6px rgb(26 11 4 / .12);

  /* ember frame and dot grid */
  --frame-grad: linear-gradient(140deg, #ff5a1f 0%, #ff6a2e 30%, #ff9a63 66%, #ffc7a4 100%);
  --dots-on-ember: radial-gradient(circle, rgb(255 250 242 / .5) 1.2px, transparent 1.7px) 0 0 / 8px 8px;
  --dots-on-ink: radial-gradient(circle, rgb(255 90 31 / .55) 1.2px, transparent 1.7px) 0 0 / 8px 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0a09; --paper-2: #171411; --paper-3: #211d19;
    --ink: #ece6da; --ink-2: #b3ab9e; --ink-3: #857d71;
    --rule: #24201c; --rule-2: #37312b; --ember-text: #ff8a5c;
    --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
    --ok-bg: #12261a; --warn-bg: #2a2210; --bad-bg: #2c1515;
    --pill: #201c19; --pill-h: #2b2622; --pri: #ece6da; --pri-ink: #0b0a09; --pri-h: #fffaf2;
    --sh-1: 0 1px 2px rgb(0 0 0 / .45), 0 2px 10px -4px rgb(0 0 0 / .5);
    --sh-2: 0 2px 6px rgb(0 0 0 / .4), 0 22px 44px -18px rgb(0 0 0 / .75);
  }
}

html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); }

/* ---- components (values from hero.css / nav.css / home.css at c43a005) ---- */

/* pill buttons: filled, no stroke */
.mbx-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--pill); color: var(--ink); font: 500 16.5px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.mbx-pill:hover { background: var(--pill-h); }
.mbx-pill:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.mbx-pill.pri { padding: 0 22px 0 24px; background: var(--pri); color: var(--pri-ink); font-weight: 600; }
.mbx-pill.pri:hover { background: var(--pri-h); }
.mbx-pill.sm { height: 44px; padding: 0 18px; font: 500 15px/1 var(--font); background: var(--paper-3); }   /* nav "Request access" */
.mbx-pill.sm:hover { background: var(--rule); }
@media (max-width: 640px) { .mbx-pill { height: 50px; padding: 0 22px; font-size: 15.5px; } .mbx-pill.pri { padding: 0 18px 0 20px; } }

/* nav: one floating pill bar, no stroke */
.mbx-nav { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 4px 18px; width: min(1100px, calc(100% - 32px)); height: 60px;
  margin: 12px auto 0; padding: 0 10px 0 22px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--paper-2) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); box-shadow: var(--sh-nav); font: 500 15px/1 var(--font); }
.mbx-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; transition: color .15s, background-color .15s; }
.mbx-nav a:hover, .mbx-nav a[aria-current] { color: var(--ink); background: var(--paper-3); }
.mbx-nav a[aria-current] { font-weight: 600; }

/* status tag (Live, Experimental): the one element with an ember stroke */
.mbx-live { display: inline-block; padding: 3px 7px; border: 1px solid var(--ember); border-radius: 999px; color: var(--ember-text); font: 600 11px/1 var(--font); letter-spacing: .02em; }
/* neutral badge (status on dense pages): full thin stroke */
.mbx-badge { display: inline-block; padding: 4px 7px; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-2); font: 600 11px/1 var(--font); }
/* tag (category on a card): filled, no stroke */
.mbx-tag { display: inline-block; padding: 5px 10px; border: 0; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); font: 500 12.5px/1 var(--font); }

/* cards and tiles: filled, no stroke */
.mbx-card { border: 0; border-radius: 22px; background: var(--paper-2); }
.mbx-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--paper-2); color: var(--ink); }
.mbx-tile.ember { background: var(--ember); color: var(--ember-ink); }
.mbx-tile.m { width: 76px; height: 76px; border-radius: 22px; }
.mbx-tile.l { width: 124px; height: 124px; border-radius: 38px; }
.mbx-menu { padding: 18px 18px 14px; border: 0; border-radius: 24px; background: var(--paper-2); box-shadow: var(--sh-menu); }
.mbx-cmd { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 0; border-radius: 14px; background: var(--paper); font: 500 13.5px/1.9 var(--mono); }

/* input: full thin rounded stroke */
.mbx-input { height: 40px; padding: 9px 11px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 14.5px/1.4 var(--font); }
.mbx-input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* the ember frame: gradient, 8px dot grid faded into the top-right corner, no stroke */
.mbx-frame { position: relative; isolation: isolate; padding: 30px 28px 24px; border-radius: 40px; background: var(--frame-grad); }
.mbx-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--dots-on-ember);
  -webkit-mask-image: linear-gradient(215deg, #000 0%, transparent 42%); mask-image: linear-gradient(215deg, #000 0%, transparent 42%); }
.mbx-band { position: relative; isolation: isolate; padding: 64px 24px 68px; border-radius: 40px; background: #0b0a09; color: #ece6da; text-align: center; }
.mbx-band::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--dots-on-ink);
  -webkit-mask-image: linear-gradient(215deg, #000 0%, transparent 38%); mask-image: linear-gradient(215deg, #000 0%, transparent 38%); }
@media (max-width: 640px) { .mbx-frame { padding: 20px 16px 14px; border-radius: 28px; } }

/* pixel sprites: the 8-bit dose */
.mbx-sprite { width: 64px; height: 64px; image-rendering: pixelated; animation: mbx-bob var(--bob); }
.mbx-sprite.perch { width: 48px; height: 48px; position: absolute; animation: none; } /* sits on a frame edge, top: -26px */
@keyframes mbx-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mbx-pill { transition: none; } .mbx-sprite { animation: none; } }

/* type levels */
.mbx-h-page { margin: 0; font: 900 76px/.92 var(--disp); text-transform: uppercase; letter-spacing: .004em; }   /* page title; 44px at 390 */
.mbx-h-sec  { margin: 0; font: 900 clamp(38px, 4.6vw, 60px)/.92 var(--disp); text-transform: uppercase; letter-spacing: .004em; }
.mbx-h-sub  { margin: 0; font: 600 26px/1.2 var(--font); letter-spacing: -.015em; }
.mbx-lead   { font: 400 20px/1.5 var(--font); letter-spacing: -.012em; color: var(--ink-2); }   /* 16.5px at 390 */
.mbx-body   { font: 400 17px/1.55 var(--font); color: var(--ink-2); }
.mbx-small  { font: 400 14px/1.45 var(--font); color: var(--ink-2); }
.mbx-num    { font: 900 72px/.9 var(--disp); letter-spacing: .005em; }
.mbx-code   { font: 500 13.5px/1.9 var(--mono); }
