/* Mesurit base: element defaults on top of the tokens, shared by the brand
   guide, the block frames and the site. Components are in components.css;
   a page stylesheet only adds its own layout. */

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-heading);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

p {
  margin: 0;
}

a {
  color: var(--color-heading);
  text-underline-offset: 3px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}
