/* ==================================================================
   Mitmachbox — Base layer
   Minimal element defaults so any page linking styles.css inherits the
   Swiss type system. No component styling lives here.
   ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings inherit the tight tracking; weight is the hierarchy device. */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

p { margin: 0; }

a {
  color: var(--text-primary);
  text-decoration: none;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0;
}

/* Focus is expressed in ink, never a new hue. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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