/* Bagmegle — shared styles
   Direction: a calm, trading-terminal-grade product. Light-first, quiet greys with a
   green bias, one emerald accent that means "live". Type does the work, not decoration. */
:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #e9ede8;
  --ink: #0f1512;
  --muted: #59625d;
  --line: #d9ded8;
  --accent: #0d7a58;
  --accent-ink: #ffffff;
  --accent-soft: #d8efe5;
  --danger: #b93c28;
  --stage: #0b0f0d;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c100e;
    --surface: #141a17;
    --surface-2: #1b231f;
    --ink: #edf1ee;
    --muted: #94a19a;
    --line: #26302b;
    --accent: #34c08e;
    --accent-ink: #06130d;
    --accent-soft: #143127;
    --danger: #e8664f;
    --stage: #050706;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0c100e;
    --surface: #141a17;
    --surface-2: #1b231f;
    --ink: #edf1ee;
    --muted: #94a19a;
    --line: #26302b;
    --accent: #34c08e;
    --accent-ink: #06130d;
    --accent-soft: #143127;
    --danger: #e8664f;
    --stage: #050706;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }

.container { max-width: 1140px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

/* wordmark */
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .mark { width: 28px; height: 28px; flex: none; color: var(--ink); }

/* buttons */
.btn {
  font: 600 15px/1 var(--font-body);
  border-radius: var(--radius);
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* live pill */
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 13px var(--font-mono);
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.eyebrow { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

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