/* css/base.css — bare-element typography for body, a, button, input/select, kbd, ol/dl. Imported into the base layer by style.css. */

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 220px;
  position: relative;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border: 1px solid rgba(240, 236, 228, 0.15);
  border-radius: var(--radius-xs);
  padding: var(--space-2) var(--space-3);
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}

input:focus,
select:focus {
  border-color: var(--accent-amber);
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-surface-2);
  border: 1px solid rgba(240, 236, 228, 0.2);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  line-height: 1.5;
}

ol,
dl {
  list-style: none;
}

/* ── Phase 18: utilities (relocated from legacy.css section 11 per D-CW2-07; only `[hidden]` folds here — `.rail`/`.ondeck`/`.minimap` stay in legacy.css for Phase 19 per R-PATTERNS-CW2-5 Option A) ── */
[hidden] {
  display: none !important;
}
