/* ============================================================
   Æon Design System — Base Reset & Primitives
   Minimal global defaults. Light, airy canvas + faint dot-grid.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

p { margin: 0; }

a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-standard);
}
a:hover { color: var(--accent); }

code, pre {
  font-family: var(--font-mono);
}

img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* The signature graph-paper backdrop. Drop <div class="aeon-grid-bg"></div>
   as the first child of <body> for the fixed dot-grid. */
.aeon-grid-bg {
  position: fixed;
  inset: 0;
  background-image: var(--grid-dot);
  background-size: var(--grid-dot-size);
  z-index: -1;
  pointer-events: none;
}
