/* Estilos de elementos HTML. Valores só por tokens (web/styles/tokens.css). */

*,
*::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(--font-size-md);
  line-height: var(--line-height-normal);
}

h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
}

h2,
h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
}

h3 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-width);
}

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

@media print {
  .header,
  .button,
  .toast {
    display: none;
  }
}
