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

* { margin: 0; }

html, body { height: 100%; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

h1, h2, h3, h4, h5, h6 { line-height: var(--lh-tight); font-weight: 700; }

#root, #__next { isolation: isolate; }

a { color: var(--color-brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }

a:hover { color: var(--color-brand-strong); }

ul, ol { padding-left: 1.25em; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-focus-on-light);
  outline-offset: 2px;
  border-radius: 2px;
}

[data-theme="dark"] :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

::selection {
  background: var(--color-brand);
  color: #fff;
}

[hidden] { display: none !important; }
