/* BACK2NOW lab: shared tokens + base. Concepts only, not production. */
:root {
  --black: #000000;
  --white: #ffffff;
  --orange: #f76328;
  --grey: #8a8a8a;
  --edge: clamp(12px, 2.5vw, 40px);        /* side spacing for page-wide titles */
  --font: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", sans-serif;
  --font-semi: "Barlow Semi Condensed", "Barlow", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); overflow-x: hidden; }

/* Page-wide fitted title (sized by fitTitle() in lab.js; clamp() is the no-JS fallback) */
.fit {
  display: block; width: max-content; white-space: nowrap; line-height: 0.82; margin: 0;
  font-size: clamp(48px, 17vw, 320px); text-transform: uppercase;
}

/* ---------- variant switcher ---------- */
.lab-switch {
  position: fixed; right: 12px; bottom: 12px; z-index: 1000;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  font: 500 12px/1.3 var(--font); max-width: min(340px, calc(100vw - 24px));
}
.lab-switch__row { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
  background: rgba(20,20,20,.88); backdrop-filter: blur(8px); padding: 5px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); }
.lab-switch button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 999px; color: #ddd; letter-spacing: .04em; }
.lab-switch button:hover { color: #fff; }
.lab-switch button[aria-pressed="true"] { background: var(--orange); color: #000; }
.lab-switch__note { background: rgba(20,20,20,.88); color: #eee; padding: 7px 11px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); text-align: right; }
.lab-switch__note b { color: var(--orange); font-weight: 600; }
