/* ── Reset & Base ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────── */
h1.hero-title {
  font-size: var(--size-hero-h1);
  letter-spacing: -2px;
  line-height: 1.05;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.15;
  font-weight: 800;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ── Links ──────────────────────────────────────────── */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--color-accent-light);
}

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

/* ── Media ──────────────────────────────────────────── */
img,
video,
svg {
  max-width: 100%;
  display: block;
}

/* ── Lists ──────────────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ── Forms ──────────────────────────────────────────── */
input,
textarea,
select,
button {
  font-family: var(--font-body);
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Touch Targets ──────────────────────────────────── */
.btn,
button,
input[type="submit"],
a.btn {
  min-height: 44px;
}

/* ── Selection ──────────────────────────────────────── */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-mid);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-light);
}
