/* Reset + layout. Colors only via tokens from colors.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

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

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

/* Never apply default link colors to buttons */
a:not(.btn),
a:not(.btn):link,
a:not(.btn):visited {
  color: var(--color-text-link);
}

a:not(.btn):hover,
a:not(.btn):active {
  color: var(--color-text-link-hover);
}

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

/* Inputs: ring inside the control so overflow parents don't clip it */
input:is(:focus, :focus-visible),
select:is(:focus, :focus-visible),
textarea:is(:focus, :focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}
