/* -----------------------------
   Root
------------------------------ */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --hover: #f1f5f9;
  --focus: #3b82f6;

  --accent: #2563eb;
  --accent-contrast: #ffffff;

  --caught: #ecfdf5;
  --caught-hover: #d1fae5;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.05);
  --shadow-md: 0 6px 18px rgba(2, 6, 23, 0.08);

  --band-width: 90vw;
  --band-max: 1400px;
}

@media (max-width: 600px) {
  :root {
    --band-width: 96vw;
  }
}

/* -----------------------------
   Dark Theme
------------------------------ */
html[data-theme="dark"],
body[data-theme="dark"] 
{
  --bg: #0b1220;
  --bg-alt: #111827;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
  --hover: #111827;

  --accent: #60a5fa;
  --accent-contrast: #0b1220;

  --caught: #0b3a2b;
  --caught-hover: #0f5138;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* -----------------------------
   Base
------------------------------ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

/* -----------------------------
   Containers
------------------------------ */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

.container > * {
  width: min(var(--band-width), 100%);
  max-width: var(--band-max);
  margin-inline: auto;
  padding-inline: 0.9rem;
  padding-block: 0.9rem;
  box-sizing: border-box;
}

.container > * > * {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  box-sizing: border-box;
}


/* -----------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--hover); }
.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { filter: brightness(0.95); }

/* -----------------------------
   Focus
------------------------------ */
:where(a, button, .btn, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* -----------------------------
   Motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
