/* Design tokens, reset, typography, shared utilities and buttons. */
:root {
  --bg: #17130F;
  --bg-hero: #1B1612;
  --surface: #211B16;
  --surface-2: #221C17;
  --media: #2A221C;
  --border: #3A3029;
  --border-soft: #2E2620;
  --text: #F2E9DC;
  --text-2: #CFC3B4;
  --muted: #B5A898;
  --accent: #E0662F;
  --accent-text: #F08A4B;
  --font-body: Inter, system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1240px;
}

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

/* Scrollbars, site-wide: thin and warm on every scroller (page, code panes, the node
   palette, the inspector). scrollbar-width / scrollbar-color are the standard properties
   (Firefox, Chrome and Edge 121+); ::-webkit-scrollbar covers Safari. */
* { scrollbar-width: thin; scrollbar-color: #4A3E34 transparent; }
html { scrollbar-color: #4A3E34 var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: #4A3E34; border: 2px solid transparent; border-radius: 10px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #6A5848; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--text); }
a:hover { color: var(--accent-text); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; }
h2 { margin-top: 8px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

.mono { font-family: var(--font-mono); font-size: 12px; }
.accent { color: var(--accent-text); }
.muted { color: var(--muted); }
.label { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 8px; text-decoration: none; font-weight: 500;
}
.btn--primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn--primary:hover { color: var(--bg); background: var(--accent-text); }
.btn--ghost { border: 1px solid #4A3E34; background: transparent; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--ghost[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  h2 { font-size: 34px; }
}
