/* ============================================================
   GRILL & GREEN — BASE STYLES
   Reset · Body · Typography defaults · Focus · Reduced-motion
   ============================================================ */

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

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

body {
  background-color: var(--field);
  color: var(--body);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* ---- LAYOUT UTILITIES ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ---- FOCUS STATES — Ember outline, always visible ---- */
:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- EYEBROW LABEL ---- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ember);
  flex-shrink: 0;
}

/* ---- SECTION HEADING PAIR ---- */
.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-heading em {
  font-style: italic;
  color: var(--ember);
}

.section-intro {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--dust);
  line-height: 1.75;
  max-width: 580px;
}

/* ---- SECTION SPACING ---- */
.section {
  padding: var(--section-pad-v) 0;
}

.section--light {
  background-color: var(--field);
}

.section--linen {
  background-color: var(--linen);
}

.section--story {
  background-color: var(--field-dk);
}

/* ---- SCROLL REVEAL BASE STATE ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

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

/* ---- REDUCED MOTION — instant state changes, no movement ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity var(--t-reveal), transform var(--t-reveal);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- SCREEN READER ONLY ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
