/* base.css — generic, legible base built on tokens.css. Plain by design: fast to
   read, easy to extend. Import AFTER tokens.css. Used by the lab; adoptable by any tool UI. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-3); }
h1 { font-size: var(--text-2xl); letter-spacing: -.02em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p  { margin: 0 0 var(--space-4); }
small, .meta { color: var(--soft); font-family: var(--mono); font-size: var(--text-xs); letter-spacing: .04em; }

a { color: var(--glow); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, pre { font-family: var(--mono); font-size: var(--text-sm); }
hr, .rule { border: 0; height: 1px; background: var(--line); margin: var(--space-6) 0; }

.wrap { max-width: 980px; margin: 0 auto; padding: var(--space-6) var(--space-5) var(--space-8); }
.eyebrow { font-family: var(--mono); font-size: var(--text-xs); letter-spacing: .28em;
  text-transform: uppercase; color: var(--soft); }

/* buttons */
.btn {
  display: inline-block; font-family: var(--mono); font-size: var(--text-sm);
  letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--glow);
  background: var(--glow); color: var(--bg); cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(233,177,90,.25); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--glow); color: var(--glow); box-shadow: none; }

/* inputs */
input, textarea, select {
  font-family: var(--serif); font-size: var(--text-base); color: var(--ink);
  background: var(--ink-deep); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--glow); }

/* surfaces */
.card {
  background: rgba(255,255,255,.02); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-5);
}

/* badge */
.badge {
  display: inline-block; font-family: var(--mono); font-size: var(--text-xs);
  letter-spacing: .14em; padding: 3px 9px; border-radius: var(--radius-sm);
  border: 1px solid currentColor;
}
.badge.ok      { color: var(--ok); }
.badge.active  { color: var(--glow); }
.badge.pending { color: var(--soft); }

/* layout helpers */
.grid { display: grid; gap: var(--space-4); }
.grid.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
