/* Base: color and font tokens, page reset, links, the 3D canvas. */

:root {
  --bg: #0E1320;
  --surface: rgba(18, 24, 39, 0.9);
  --line: #34405F;
  --fg: #EEF0F5;
  --muted: #A3ABBD;
  --accent: #F2B38B;
  --accent-ink: #0E1320;
  --display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #FFD3B5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The 3D canvas fills the window; it only shows once WebGL starts ("immersive" mode) */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; z-index: 0; }
body.immersive #scene { display: block; }
