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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-block-size: 100dvh;
  margin: 0;
  padding-block-end: env(safe-area-inset-bottom);
  background: var(--color-canvas);
  color: var(--color-foreground);
  font-family: var(--font-family);
  font-size: var(--font-body);
  line-height: var(--line-body);
}

button,
input,
select,
textarea {
  min-block-size: var(--control-height);
  color: inherit;
  font: inherit;
}

button,
[role="button"],
a {
  touch-action: manipulation;
}

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

img,
svg,
video {
  max-inline-size: 100%;
  block-size: auto;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: var(--font-title);
  line-height: 1.1;
}

h2 {
  font-size: var(--font-heading);
  line-height: 1.2;
}

table {
  border-collapse: collapse;
  inline-size: 100%;
}

[hidden] {
  display: none !important;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
