/* ========================================
   Stone & Grain — Base Styles
   Typography, body, utilities
   ======================================== */

body {
  background: var(--warm-white);
  color: var(--warm-gray);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 300;
}

h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* Section Labels */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* Container */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Scroll margin for nav offset */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* 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: 0;
}

/* Italic emphasis in headings */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
}
