/* Mattless — shared design tokens
   Studio-night aesthetic: deep indigo, focused spotlight, gold for glory. */

:root {
  /* Palette */
  --navy-900: #070b1f;
  --navy-800: #0c1330;
  --navy-700: #131c44;
  --navy-600: #1c2a63;
  --navy-500: #2a3d86;
  --indigo-glow: #4d6bff;
  --indigo-soft: #8aa0ff;
  --ink: #e8ecff;
  --ink-dim: #9aa6d6;
  --ink-faint: #5a679c;

  --gold: #ffd24a;
  --gold-deep: #f5a623;
  --gold-glow: #fff3c4;

  --wrong: #ff4d6d;
  --wrong-deep: #c41e3a;
  --ok: #4ade80;

  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(138, 160, 255, 0.18);
  --border-strong: rgba(138, 160, 255, 0.35);

  /* Type */
  --font-display: "Georgia", "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (1.25 ratio) */
  --t-xs: 0.8rem;
  --t-sm: 0.95rem;
  --t-base: 1.1rem;
  --t-md: 1.4rem;
  --t-lg: 1.75rem;
  --t-xl: 2.4rem;
  --t-2xl: 3.4rem;
  --t-3xl: 5rem;
  --t-4xl: 9rem;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 800px at 50% -10%, var(--navy-600), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, var(--navy-700), transparent 55%),
    var(--navy-900);
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }

button {
  font-family: var(--font-ui);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.08s var(--ease);
}
button:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

button.primary {
  background: linear-gradient(180deg, var(--indigo-glow), var(--navy-500));
  border-color: var(--indigo-glow);
  font-weight: 600;
}
button.primary:hover { filter: brightness(1.1); }
button.gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border-color: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
}
button.danger { border-color: var(--wrong); color: var(--wrong); }
button.ghost { background: transparent; }

input, textarea, select {
  font-family: var(--font-ui);
  font-size: var(--t-sm);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-2) var(--sp-3);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--indigo-glow);
  box-shadow: 0 0 0 3px rgba(77, 107, 255, 0.2);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wordmark .less { color: var(--gold); font-style: italic; }

a { color: var(--indigo-soft); }

.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: var(--sp-3); align-items: center; }
.col { display: flex; flex-direction: column; gap: var(--sp-3); }
.spread { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
