/* Base element styles — ported from Lesson Lab src/index.css (Tailwind removed) */

:root {
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

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

a:not([class]) {
  color: var(--link);
}

a:not([class]):hover,
a:not([class]):focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  letter-spacing: var(--tracking-heading);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

::selection {
  background: rgb(var(--primary-rgb) / 0.18);
  color: var(--text);
}
