/* ============================================================
   MachineDog · BASE — minimal element defaults + page washes.
   Dark-first. Apply .md-page to a full-bleed wrapper to get the
   ink background, aurora glow and grid in one shot.
   ============================================================ */
:root {
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: hsl(200 90% 60% / 0.3);
  color: var(--color-foreground-bright);
}

/* The standard page shell: ink base + drifting aurora + grid */
.md-page {
  position: relative;
  min-height: 100%;
  background: var(--color-background-deep);
  color: var(--color-foreground);
  isolation: isolate;
}
.md-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--gradient-aurora);
  pointer-events: none;
}

/* Scrollbar — thin, cool */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--color-surface-sunken);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-border-strong); background-clip: padding-box; }
