@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');
/* Atrium theme. ROC palette: near-black #111114, signal red #C7493A, warm cream #F4F0E7,
   steel #ABB4BD. Hanken Grotesk stands in for ROC's FK Grotesk. */
:root {
  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-small: 7px;
  --fast: 140ms;
  --medium: 220ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f0e7; --panel: #ffffff; --raised: #fbf9f4; --text: #111114; --muted: #5d6168;
  --line: #e1dacb; --line-strong: #cfc6b3; --accent: #c7493a; --accent-hover: #b03e30; --accent-ink: #ffffff;
  --soft: #efe8da; --focus: #2e6fd8; --danger: #a8322a; --danger-soft: #fbe7e4; --ok: #2f6b3f; --ok-soft: #e4f1e7;
  --warn-soft: #fbf0d9; --shadow: 0 1px 2px #1111140d, 0 8px 24px #11111412;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111114; --panel: #1a1a1f; --raised: #202027; --text: #f4f0e7; --muted: #abb4bd;
  --line: #2c2c34; --line-strong: #3a3a44; --accent: #e0604f; --accent-hover: #ea7564; --accent-ink: #111114;
  --soft: #24242c; --focus: #7aa7ff; --danger: #ff9a8f; --danger-soft: #3a2220; --ok: #8fd3a0; --ok-soft: #1c2e22;
  --warn-soft: #33291a; --shadow: 0 1px 2px #0006, 0 8px 24px #0008;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
a { color: var(--accent); text-underline-offset: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.theme-toggle { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-small);
  background: var(--panel); color: var(--text); white-space: nowrap; transition: background var(--fast) var(--ease); }
.theme-toggle:hover { background: var(--soft); }
dialog { opacity: 0; transform: translateY(6px); transition: opacity var(--medium) var(--ease), transform var(--medium) var(--ease),
  display var(--medium) allow-discrete, overlay var(--medium) allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(6px); } }
dialog::backdrop { background: #11111466; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
