/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-2); color: var(--color-ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--color-teal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  background: var(--color-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover, .btn:focus { background: var(--color-blue); color: #fff; }
.btn--secondary { background: transparent; color: var(--color-ink); border: 2px solid var(--color-slate); }
.btn--secondary:hover, .btn--secondary:focus { background: var(--color-slate); color: #fff; }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 0.3em; }
input, textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: var(--space-2);
}
.field-error { color: #b3261e; font-size: 0.9rem; margin: -0.6rem 0 var(--space-2); }
.form-success {
  background: var(--color-bg-muted);
  border-left: 4px solid var(--color-teal);
  padding: var(--space-2);
  border-radius: var(--radius);
}
