/* ============================================
   BASE STYLES - Typography & Layout
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--cream-light);
  line-height: 1.7;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.15;
}

@media (max-width: 768px) {
  h1 { font-size: var(--fs-xl); }
  h2 { font-size: var(--fs-lg); }
  h3 { font-size: var(--fs-md); }
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.25;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

a {
  color: var(--terracotta);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--terracotta-dark);
}

strong, b {
  font-weight: 600;
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

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

.section--dark {
  background: var(--gradient-walnut);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--gold) 50%, var(--terracotta) 100%);
  z-index: 1;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p {
  color: var(--text-inverse);
}

.section--dark .section__subtitle {
  color: rgba(247, 233, 199, 0.8);
}

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

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: var(--space-3);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

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

/* === SELECTION === */
::selection {
  background-color: var(--terracotta);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--terracotta);
  color: var(--white);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream-warm);
}

::-webkit-scrollbar-thumb {
  background: var(--wood-walnut-soft);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wood-walnut);
}
