/* ==========================================================================
   Reset - ported from the static site (tomcamau/css/base.css).
   Loaded straight after tokens.css: it needs --c-* / --header-h, and every
   later stylesheet builds on the flattened defaults it sets here.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The solid bar is the one that actually sits over scrolled content. */
  scroll-padding-top: calc(var(--header-h-solid) + 8px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, dl, dd {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* height: auto is the default here on purpose. wp_get_attachment_image() prints
   width and height attributes and the UA maps them to the width/height
   properties, so an image whose own rule forgets height: auto stays pinned to
   the file's pixel height and any aspect-ratio it declares is silently
   ignored. See the .media block in layout.css. */
img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

