/* ════════════════════════════════════════════════════════════════════════════
   KLO base styles — consumes semantic tokens from tokens.css.
   Never use raw hex values here; components are theme-agnostic.
   ═════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  text-align: center;
  padding: 2rem;
  max-width: 44rem;
}

.hero {
  display: block;
  width: min(14rem, 70vw);
  height: auto;
  margin: 0 auto 1.5rem;
}

h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

a {
  color: var(--color-text);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.button--primary:hover {
  background: var(--color-primary-hover);
}

.button--secondary {
  background: var(--color-secondary);
  color: var(--color-secondary-contrast);
}

/* ── Color chips (decorative brand accents) ──────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.chip {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--color-text);
}

.chip--yellow       { background: var(--klo-yellow); }
.chip--teal         { background: var(--klo-teal); }
.chip--green        { background: var(--klo-green); }
.chip--orange-red   { background: var(--klo-orange-red); }
.chip--royal-blue   { background: var(--klo-royal-blue); }
.chip--magenta      { background: var(--klo-magenta); }
.chip--robot-cyan   { background: var(--klo-robot-cyan); }

/* ── Theme picker ────────────────────────────────────────────────────────── */
.theme-picker {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.theme-picker select {
  border: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.theme-picker select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
}
