/* Reset + base typography + shared layout primitives. */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--red); color: #fff; }

/* Layout primitives */
.container { width: min(var(--container), 92vw); margin: 0 auto; }
.container--narrow { width: min(var(--narrow), 92vw); }
.container--960 { width: min(960px, 92vw); }
.container--900 { width: min(900px, 92vw); }
.container--1100 { width: min(1100px, 92vw); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: 0 0 clamp(64px, 9vw, 112px); }
.section--dotted-light {
  background-color: var(--cream);
  background-image: radial-gradient(circle, rgba(28,8,16,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section--alt {
  background: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--dark {
  background: var(--maroon);
  border-top: 1px solid rgba(184,144,76,0.15);
  border-bottom: 1px solid rgba(184,144,76,0.15);
  background-image: radial-gradient(circle, rgba(184,144,76,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Section headings */
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow--sm { font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted-2); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-lead {
  font-size: 18px;
  color: var(--text-soft);
  margin-top: 16px;
  text-wrap: pretty;
}

.on-dark .section-title,
.on-dark .section-lead { color: #fff; }
.on-dark .section-lead { color: var(--cream-dim); }

/* Spacing utilities */
.mb-44 { margin-bottom: 44px; }

/* Animations kept from the original (used by index JS) */
@keyframes slideIn { from { width: 0; } to { width: 220px; } }
