/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*
 * The UA stylesheet's [hidden] rule loses to any author rule that sets display
 * on the same element (a cart summary row is display:flex, a modal is
 * display:flex, a tab panel is display:block), which silently makes "hidden"
 * markup visible. Stylesheets have been patching this one component at a time
 * (.search-modal[hidden], .tab-content[hidden], .admin-chart[hidden]); state it
 * once here so the attribute means what it says. hidden="until-found" is left
 * alone because it is designed to keep content findable.
 */
[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: calc(var(--z-mobile-nav) + 10);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--color-charcoal);
  background: var(--color-white);
  box-shadow: var(--shadow-dropdown);
  transform: translateY(-200%);
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
  font-size: 1rem;
  color: var(--color-gray-600);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__label {
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  /* Light surface: use the AA-safe rose so the label stays legible. */
  color: var(--color-dusty-rose-strong);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-lg);
  margin-bottom: var(--space-xs);
}

.section__title {
  color: var(--color-charcoal);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
