*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--space-2);
  color: var(--color-forest-dark);
}

h1, h2 { text-transform: uppercase; letter-spacing: -0.01em; }

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h1); }
h3 { font-size: var(--text-h2); }
h4 { font-size: var(--text-h3); }

p { margin: 0 0 var(--space-2); color: var(--color-ink); }
p.lead { font-size: 1.15rem; color: var(--color-muted); }

a { color: var(--color-forest); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { padding: var(--space-6) 0; }
section.tight { padding: var(--space-4) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ember-dark);
  margin-bottom: var(--space-1);
}

.section-head { max-width: 640px; margin: 0 0 var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
}
.split-section.reverse > *:first-child { order: 2; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  section { padding: var(--space-5) 0; }
  .container { padding: 0 var(--space-2); }
}

/* Solid-color full-bleed section blocks, for alternating page rhythm
   (Camperworld-style: big type over solid backgrounds, section by section).
   Apply directly to a <section>; overrides text colors for readability. */
.block-dark, .block-forest, .block-ember {
  color: var(--color-white);
}
.block-dark { background: var(--color-forest-dark); }
.block-forest { background: var(--color-forest); }
.block-ember { background: var(--color-ember); }
.block-cream { background: var(--color-ice); }
.block-white { background: var(--color-white); }

.block-dark h1, .block-dark h2, .block-dark h3, .block-dark h4,
.block-forest h1, .block-forest h2, .block-forest h3, .block-forest h4,
.block-ember h1, .block-ember h2, .block-ember h3, .block-ember h4 {
  color: var(--color-white);
}
.block-dark p, .block-dark .lead,
.block-forest p, .block-forest .lead,
.block-ember p, .block-ember .lead {
  color: rgba(255,255,255,0.85);
}
.block-dark .eyebrow, .block-forest .eyebrow { color: var(--color-blue); }
.block-ember .eyebrow { color: rgba(255,255,255,0.85); }
