@import url("./tokens.css");
@import url("./layout.css");
@import url("./components.css");
@import url("./motion.css");
@import url("./viewport-size-badge.css");

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

html {
  width: 100%;
  height: 100%;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-site);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-style: normal;
  font-synthesis: none;
}

html {
  scrollbar-color: var(--border-strong) var(--surface-muted);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--surface-muted);
}

*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  border: 2px solid var(--surface-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--site-accent);
}

button {
  font: inherit;
  color: inherit;
}

img,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--site-accent-muted);
  color: var(--text-primary);
}
