/* Shared by the home page and the admin portal. The listening lab keeps its own stylesheet. */
@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Amber is the interactive accent (buttons, focus, active state).
   Teal is reserved for signal and status, matching the app icon.
   Radii: controls 10px, panels 16px, status pills fully round. */
:root {
  color-scheme: light dark;
  --bg: #f4f6f7;
  --surface: #fbfcfc;
  --raised: #eaeef0;
  --line: #d9dfe3;
  --line-strong: #c3ccd1;
  --text: #11171b;
  --text-2: #435057;
  --text-3: #5b6870;
  --accent: #e8b24a;
  --accent-hover: #f0c065;
  --accent-ink: #1d1505;
  --accent-text: #8a5800;
  --signal: #0b7a71;
  --danger: #b4321f;
  --warn: #8a5800;
  --shadow: 0 1px 2px rgb(17 23 27 / .06), 0 12px 32px -12px rgb(17 23 27 / .18);
  --radius-control: 10px;
  --radius-panel: 16px;
  --font: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e10;
    --surface: #12161a;
    --raised: #192025;
    --line: #242c32;
    --line-strong: #34404a;
    --text: #edf1f3;
    --text-2: #a9b4ba;
    --text-3: #87949b;
    --accent-text: #efbf5e;
    --signal: #4fd1c5;
    --danger: #ff9b8c;
    --warn: #efbf5e;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -16px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code, .mono { font-family: var(--mono); font-size: .92em; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .55; }

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
  vertical-align: -.2em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 550;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.button.secondary:hover:not(:disabled) { border-color: var(--text-3); }
.button.ghost { background: transparent; color: var(--text-2); }
.button.ghost:hover:not(:disabled) { color: var(--text); background: var(--raised); }
.button.small { min-height: 36px; padding: 0 12px; font-size: 14px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }

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