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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--color-bg);
  color-scheme: light;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* RTL/LTR: text alignment follows direction automatically via `start`/`end`.
   Never use `left`/`right` in component styles — see DESIGN_SYSTEM.md. */
[dir='rtl'] .icon--directional {
  transform: scaleX(-1);
}

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