/**
 * Base styles. Reset + typography + shared utilities.
 *
 * All values reference tokens.css — this file should contain no
 * literal colors, sizes, or spacing values. If you find yourself
 * wanting to use one, add it to tokens.css first.
 */

/* ========================================
   RESET
   ======================================== */

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  margin: 0;
}

p {
  margin: 0;
}

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

/* ========================================
   SHARED SECTION PATTERNS
   ======================================== */

.section {
  padding: var(--space-section-y) var(--space-section-x);
}

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

.section-label {
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  margin: 0 0 var(--space-5);
}

.section-heading {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 100;
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0 0 var(--space-10);
  max-width: 900px;
}

.section-body {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  max-width: var(--layout-text-width);
}

.section-body p + p {
  margin-top: var(--space-5);
}

.section-dark {
  background: var(--color-espresso);
  color: var(--color-text-inverse);
}

.section-dark .section-heading {
  color: #fff;
}

.section-dark .section-body {
  color: rgba(255, 255, 255, 0.85);
}

.section-dark .section-label {
  color: var(--color-gold-soft);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
  .section {
    padding: var(--space-section-y-mobile) var(--space-section-x-mobile);
  }
}
