/* Beyond the Sky — shared foundation v148 */
:root {
  --bg:#080a0b;
  --bg-soft:#0d1012;
  --ink:#e8e8e4;
  --muted:#969b9e;
  --line:rgba(232,232,228,.18);
  --pad:clamp(1.25rem,4vw,4.5rem);
  --chapter-rail-reserve:clamp(7.5rem,8vw,9rem);
  --header-h:5.5rem;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--bg); scrollbar-gutter:stable; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:Inter,system-ui,sans-serif; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { display:block; width:100%; }
button { color:inherit; font:inherit; }
::selection { background:#d9ddd7; color:#0a0c0d; }
@media (max-width:760px) {
  :root { --header-h:4.6rem; --pad:1.15rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
}
