/* Element defaults. No colour literals — tokens only. */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-canvas);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-3); font-weight: 650; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p  { margin: 0 0 var(--space-3); }

a { color: var(--color-link); text-underline-offset: 2px; }

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

fieldset { border: 0; margin: 0; padding: 0; }

/*
 * A class that sets `display` outranks the browser's own [hidden] rule, so
 * el.hidden = true silently does nothing on anything carrying .button.
 */
[hidden] { display: none !important; }

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