/* Page basics shared by every template. Colours come from tokens.css. */

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

html,
body {
  margin: 0;
  padding: 0;
}

/* Jumps to an anchor stop below the sticky header instead of under it. */
html {
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
