/* ==========================================================================
   Go Laundry — Base styles / resets
   ========================================================================== */

/* The logo is now traced vector outlines (see the #logo-full / #logo-washer
   symbols in index.html), so Pacifico and Yellowtail are no longer loaded —
   the wordmark renders identically with no webfont request and no FOUT.
   The woff2 files remain in assets/fonts/ but are unreferenced. */

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

html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--gradient-page);
}

html {
  overflow-x: hidden;
}

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

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-navy-900);
}

/* Focus visibility — components remove default outlines, so this must be explicit */
:focus-visible {
  outline: 2px solid var(--color-orange-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.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: absolute;
  top: -100px;
  left: var(--spacing-md);
  z-index: var(--z-overlay);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-navy-900);
  color: var(--color-ink-inverse);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--spacing-md);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--spacing-md);
}

section {
  position: relative;
  z-index: var(--z-base);
  padding-block: var(--spacing-2xl);
}

/* Belt-and-suspenders reduced-motion fallback alongside JS-level checks */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
