/* base.css — the playground's design system.
 * Light rich multi-hue gradient FIELD (baked by build.mjs into field.css from kit/gradient/gradient-core.js,
 * the fleet's single-source generator: 16 big soft overlapping blooms over a tinted base). White glass cards
 * float on top. No line art. No hard-edged discs.
 */

/* ---- local variable fonts. No CDN, no external fetch. ---------------------------------------------- */
@font-face {
  font-family: 'Ubuntu Sans VF';
  src: url('fonts/UbuntuSans-VF.ttf') format('truetype-variations');
  font-weight: 100 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu Sans Mono VF';
  src: url('fonts/UbuntuSansMono-VF.ttf') format('truetype-variations');
  font-weight: 100 800; font-display: swap;
}

:root {
  --ink: #16181f;
  --ink-2: #3d4354;
  --ink-3: #6b7186;
  --line: rgba(22, 24, 31, 0.11);
  --line-2: rgba(22, 24, 31, 0.06);
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #fff;
  --accent: #3f4fd8;
  --accent-2: #b4408a;
  --warm: #e2703a;
  --ok: #1f7a4d;
  --radius: 16px;
  --radius-sm: 9px;
  --sans: 'Ubuntu Sans VF', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Ubuntu Sans Mono VF', ui-monospace, 'Cascadia Code', Menlo, monospace;
  --shadow: 0 1px 2px rgba(22,24,31,.04), 0 8px 28px -8px rgba(22,24,31,.14);
  --shadow-lg: 0 2px 4px rgba(22,24,31,.05), 0 24px 60px -18px rgba(22,24,31,.24);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  /* the baked field lives in field.css (generated). background-attachment stays scroll, never fixed. */
  background-color: #eef1fb;
  min-height: 100vh;
}

img, canvas, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.14; margin: 0; font-weight: 640; letter-spacing: -0.021em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.026em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-color: rgba(63, 79, 216, .32); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ---- header ---------------------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--line-2);
}
.site-head .bar { display: flex; align-items: center; gap: 18px; height: 58px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { font-weight: 700; letter-spacing: -0.03em; font-size: 1.02rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand .dot { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #8fb6ee, #4a55c9 46%, #a8408c 82%); }
.head-sp { flex: 1; }
.head-links { display: flex; gap: 4px; align-items: center; }
.head-links a { font-size: 0.83rem; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 520; }
.head-links a:hover { background: rgba(22,24,31,.06); color: var(--ink); }

/* the motion switch lives in the header on every page: the floor is a feature, so it is testable */
.motion-switch {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(255,255,255,.62); padding: 5px 10px; border-radius: 999px;
  cursor: pointer; font-family: var(--sans); font-weight: 540; white-space: nowrap;
}
.motion-switch:hover { border-color: rgba(22,24,31,.24); }
.motion-switch .led { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31,122,77,.16); }
html.rm-forced .motion-switch .led { background: var(--warm); box-shadow: 0 0 0 3px rgba(226,112,58,.18); }
html:not(.anim) .motion-switch .led { background: var(--warm); box-shadow: 0 0 0 3px rgba(226,112,58,.18); }
html:not(.js) .motion-switch { display: none; }

/* ---- generic surfaces ------------------------------------------------------------------------------ */
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: var(--shadow);
}
.eyebrow {
  font-size: 0.7rem; font-weight: 680; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.lede { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 640;
  letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; white-space: nowrap;
  font-family: var(--mono); text-transform: uppercase;
}
/* The full evidence label is sentence-length, not a chip. nowrap on it forced the document to 502px at a
   390 viewport (horizontal body scroll). Long labels wrap; the short card chips keep their nowrap. */
.tag-long { white-space: normal; text-align: left; line-height: 1.45; max-width: 100%; }
.tag-verified { background: rgba(31,122,77,.12); color: #14603a; }
.tag-inferred { background: rgba(226,112,58,.14); color: #9c4415; }
.tag-ours { background: rgba(63,79,216,.11); color: #2f3aa8; }
.tag-plain { background: rgba(22,24,31,.07); color: var(--ink-2); }

.pill {
  font-family: var(--mono); font-size: 0.7rem; padding: 2px 7px; border-radius: 5px;
  background: rgba(22,24,31,.055); color: var(--ink-3); white-space: nowrap;
}

/* ---- footer ---------------------------------------------------------------------------------------- */
.site-foot {
  margin-top: 72px; border-top: 1px solid var(--line-2); background: rgba(255,255,255,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 30px 0 44px; font-size: 0.85rem; color: var(--ink-3);
}
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.site-foot .sp { flex: 1; }

/* ---- the no-JS notice: visible only when JS never ran ---------------------------------------------- */
.nojs-note {
  border: 1px solid rgba(226,112,58,.34); background: rgba(255,247,242,.9);
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 0.86rem; color: #7d3a13; margin-bottom: 22px;
}
html.js .nojs-note { display: none; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-head .bar { padding: 0 16px; gap: 10px; height: 54px; }
  .head-links a { padding: 5px 7px; font-size: 0.78rem; }
  .brand span.brand-t { display: none; }
}
