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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-near-black);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-crimson);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(var(--text-4xl), 10vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-crimson);
  color: var(--color-cream);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* Theme: dark sections — cream text only */
.theme-dark {
  background-color: var(--color-near-black);
  color: var(--color-cream);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3 {
  color: var(--color-cream);
}

.theme-dark p {
  color: var(--color-cream);
}

.theme-dark a {
  color: var(--color-cream);
}

.theme-dark label {
  color: var(--color-cream);
}

.theme-dark .section-label {
  color: var(--color-muted-rose);
  border-color: var(--color-muted-rose);
}

/* Theme: crimson accent sections */
.theme-crimson {
  background-color: var(--color-crimson);
  color: var(--color-cream);
}

.theme-crimson h1,
.theme-crimson h2,
.theme-crimson h3 {
  color: var(--color-cream);
}

.theme-crimson p {
  color: var(--color-cream);
}

.theme-crimson a {
  color: var(--color-cream);
}

.theme-crimson label {
  color: var(--color-cream);
}

.theme-crimson .section-label {
  color: var(--color-cream);
  border-color: var(--color-cream);
}

/* Theme: light sections — near-black text only */
.theme-light {
  background-color: var(--color-cream);
  color: var(--color-near-black);
}

.theme-light h1,
.theme-light h2,
.theme-light h3 {
  color: var(--color-near-black);
}

.theme-light p {
  color: var(--color-near-black);
}

.theme-light a {
  color: var(--color-near-black);
}

.theme-light label {
  color: var(--color-near-black);
}

.theme-light .section-label {
  color: var(--color-crimson);
  border-color: var(--color-crimson);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  border: 2px solid currentColor;
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header__title {
  margin-top: var(--space-md);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bag-sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(6px); }
}

.bag-sway {
  animation: bag-sway 4s ease-in-out infinite;
  transform-origin: top center;
}
