/* ==========================================================================
   Base — reset, element defaults and global helpers
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-offset) + var(--nav-height));
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-body);
  color: var(--color-ink-900);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

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

/* ---------- Accessibility helpers ---------- */

.visually-hidden {
  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: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: var(--z-skip-link);
  padding: var(--space-sm) var(--space-lg);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  background-color: var(--color-brand-600);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Brand wordmark (used inline in copy) ---------- */

.brand-word__care {
  color: var(--color-brand-600);
}

.brand-word__link {
  color: var(--color-teal-500);
}
