/* Theme tokens. Change these to restyle the whole platform. */
:root {
  --plum-950: #1a1124;
  --plum-900: #241830;
  --plum-800: #33243f;
  --plum-700: #4a3759;
  --cream: #f6efe4;
  --lilac: #b3a5c0;
  --marigold: #f2a93b;
  --marigold-dark: #c97f12;
  --live: #e5484d;
  --ok: #3fb68b;

  /* light surfaces (admin) */
  --bg: #f4f1f7;
  --surface: #ffffff;
  --ink: #1e1528;
  --muted: #6b5e78;
  --line: #e3dbea;
  --focus: #7a4fd0;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1124;
    --surface: #241830;
    --ink: #f6efe4;
    --muted: #b3a5c0;
    --line: #3d2d4b;
    --focus: #c8a8ff;
  }
}

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

html, body { margin: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--marigold); color: #1e1528; }
.btn-primary:hover { background: #f7b955; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { background: transparent; border-color: transparent; color: var(--live); }
.btn-danger:hover { border-color: var(--live); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
textarea.input { min-height: 90px; resize: vertical; }

.error-text { color: var(--live); font-size: 14px; min-height: 1.2em; margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
