/*
 * Modern minimal reset — based on Andy Bell's CSS reset, slimmed for our needs.
 * Goal: predictable cross-browser baseline without overriding anything decorative.
 */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
button, input, label {
  line-height: 1.2;
}

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

img {
  height: auto;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Respect users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Suppress the Safari/iOS tap-highlight rectangle that appears on every
   tappable element by default. We provide our own pressed/focus styles. */
html {
  -webkit-tap-highlight-color: transparent;
}

/* Browsers default to drawing an outline whenever an element has focus —
   including after a mouse click or a touch tap, where it just looks like a
   stray blue rectangle. We hide it for those cases and re-enable only for
   `:focus-visible`, the keyboard-focus heuristic. */
:focus:not(:focus-visible) {
  outline: none;
}

/* Accessible focus ring for keyboard users. */
:focus-visible {
  outline: 2px solid var(--color-blue-700);
  outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers. WordPress core themes
   use this class throughout, so we provide the canonical implementation. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-bg-0);
  clip: auto;
  clip-path: none;
  color: var(--color-text-900);
  display: block;
  font-size: var(--text-sm-size);
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
