/* Coarse's tokens, copied from design/index.html (which copies website/assets/site.css and canvas/web/src/styles.css).
   Light by default; dark follows the system unless the page sets data-theme. Nothing here invents a colour. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f4f2;
  --surface-2: #eaeae6;
  --ink: #111110;
  --ink-2: #5c5c57;
  --ink-3: #9b9b95;
  --line: #e3e3de;
  --line-strong: #cfcfc9;
  --accent: #f0561d;
  --accent-text: #c2410c;
  --accent-wash: rgba(240, 86, 29, 0.08);
  --btn-bg: #111110;
  --btn-ink: #ffffff;
  --on-accent: #ffffff;

  --band-bg: #12110f;
  --band-surface: #1b1a17;
  --band-line: #2b2a26;
  --band-ink: #edebe5;
  --band-ink-2: #97948b;
  --band-ink-3: #5f5d57;

  --shade: rgba(17, 17, 16, 0.45);
  --shade-soft: rgba(17, 17, 16, 0.2);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --r-plate: 22px;
  --r-card: 22px;
  --r-tool: 14px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ring: 0 0 0 1px var(--line);
  --pop: 0 0 0 1px var(--line), 0 18px 40px -20px var(--shade);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0e0d;
    --surface: #171715;
    --surface-2: #21211e;
    --ink: #efeee9;
    --ink-2: #a4a39c;
    --ink-3: #6b6a64;
    --line: #262623;
    --line-strong: #363632;
    --accent: #ff6a2f;
    --accent-text: #ff8a5c;
    --accent-wash: rgba(255, 106, 47, 0.1);
    --btn-bg: #efeee9;
    --btn-ink: #0e0e0d;
    --band-bg: #070706;
    --band-surface: #131311;
    --band-line: #232320;
    --shade: rgba(0, 0, 0, 0.8);
    --shade-soft: rgba(0, 0, 0, 0.5);
    --pop: 0 0 0 1px var(--line-strong), 0 18px 40px -20px var(--shade);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0d;
  --surface: #171715;
  --surface-2: #21211e;
  --ink: #efeee9;
  --ink-2: #a4a39c;
  --ink-3: #6b6a64;
  --line: #262623;
  --line-strong: #363632;
  --accent: #ff6a2f;
  --accent-text: #ff8a5c;
  --accent-wash: rgba(255, 106, 47, 0.1);
  --btn-bg: #efeee9;
  --btn-ink: #0e0e0d;
  --band-bg: #070706;
  --band-surface: #131311;
  --band-line: #232320;
  --shade: rgba(0, 0, 0, 0.8);
  --shade-soft: rgba(0, 0, 0, 0.5);
  --pop: 0 0 0 1px var(--line-strong), 0 18px 40px -20px var(--shade);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
p { font-weight: 400; }
canvas { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.caps { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; color: var(--ink); }
.brand svg .m { fill: var(--accent); }
