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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img { height: auto; }

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

/* admin bar: keep the sticky header below it */
.admin-bar { --wp-admin-bar: 32px; }

@media (max-width: 782px) {
  .admin-bar { --wp-admin-bar: 46px; }
}

:focus-visible {
  outline: 3px solid var(--color-primary-300);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus { top: 12px; }

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
