/* ============================================================
   LYKO'S SPACE — DESIGN TOKENS
   ============================================================ */

:root {
  /* Color */
  --bg:            #1A0A0A;   /* base background, near-black with red undertone */
  --panel:         #2A0F0F;   /* card / panel surface — deep crimson */
  --panel-raised:  #3A1515;   /* hovered / raised surface — richer crimson */
  --primary:       #7A1A1A;   /* primary red — buttons, links */
  --primary-hover: #A02020;
  --mint:          #E05050;   /* bright accent — rose/crimson */
  --mint-dim:      #E0505033;
  --ink:           #F5E8E8;   /* primary text */
  --ink-dim:       #C49898;   /* secondary text */
  --ink-faint:     #7A5050;   /* tertiary / placeholder text */
  --line:          #3D1212;   /* hairline borders */
  --danger:        #E03020;
  --danger-dim:    #E0302033;
  --black:         #0F0505;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-deep: 0 24px 60px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(224,80,80,0.10), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(120,20,20,0.12), transparent 45%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--mint-dim); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-raised); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  color: var(--ink);
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-dim);
}

/* ---------- Shared component classes ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--mint); color: var(--ink); }
.btn-danger { background: var(--danger-dim); color: #F3C9C2; }
.btn-danger:hover { background: var(--danger); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  max-width: min(90vw, 360px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.error { border-color: var(--danger); }

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--mint-dim);
  border-top-color: var(--mint);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}