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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--accent-text);
}

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

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

ul { padding-left: 1.25rem; }

::selection {
  background: var(--accent-wash);
  color: var(--text);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--surface);
  color: var(--text);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
