/* ============================================================================
   KiBo — small custom layer.
   Tailwind utilities (configured from theme/tokens.css) do almost everything;
   this file holds only base typography and a few things utilities can't express.
   NO color/font/radius literals here — always reference the tokens.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Hide Alpine-controlled elements until Alpine initialises (no flash). */
[x-cloak] { display: none !important; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

/* Headings use the Fraunces display face (warm humanist serif). */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1, h2 { font-weight: 700; }

/* Section eyebrow label: "COMMENT ÇA MARCHE", "CATÉGORIES" — sans-serif (DM Sans). */
.kibo-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem; /* ~13px */
}

/* Auth form fields — styled once here so Django's built-in forms (password
   reset) match too. All values come from the tokens. */
.kibo-form input[type="text"],
.kibo-form input[type="email"],
.kibo-form input[type="password"],
.kibo-form input[type="number"],
.kibo-form input[type="datetime-local"],
.kibo-form select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0.625rem 1rem;
  font-size: 1rem;
}
.kibo-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0.625rem 1rem;
  font-size: 1rem;
}
.kibo-form input:focus,
.kibo-form select:focus,
.kibo-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 25%, transparent);
}
/* File / camera inputs */
.kibo-form .kibo-file {
  width: 100%;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  color: var(--color-muted);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Translucent white border for the email field on the green community band. */
.kibo-band-input {
  border: 1px solid var(--band-input-border);
}
.kibo-band-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
