/* base.css */

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

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-surface-0);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.skip-to-content {
  position: absolute;
  left: -999px;
  top: var(--space-12);
  z-index: var(--z-header);
  background: var(--color-surface-0);
  border: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-sm);
}

.skip-to-content:focus {
  left: var(--space-12);
}

