/* Reset, body, links, and the page-wide grid watermark. Reusable across all pages. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--brand); color: var(--ink); }

/* Faint grid watermark behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.page { position: relative; z-index: 1; }
