/* ============================================================
   Reset + Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.05;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.5rem, 6.5vw, var(--fs-6xl)); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.5vw, var(--fs-4xl)); letter-spacing: -0.04em; line-height: 1.02; }
h3 { font-size: var(--fs-xl); letter-spacing: -0.025em; line-height: 1.15; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.02em; }
h5 { font-size: var(--fs-md); letter-spacing: -0.015em; }
h6 { font-size: var(--fs-base); }

/* Editorial italic serif accent — use inside h1/h2 */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

ul.unstyled,
ol.unstyled {
  list-style: none;
  padding-left: 0;
}

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

button { font-family: inherit; cursor: pointer; }

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-20) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
}

.section-tight { padding: var(--space-16) 0; }

.section-bg-soft { background: var(--color-bg-soft); }
.section-bg-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}
.section-bg-primary h1,
.section-bg-primary h2,
.section-bg-primary h3,
.section-bg-primary h4 { color: #fff; }
.section-bg-primary p { color: rgba(255, 255, 255, 0.85); }

/* Section heading wrapper */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-12);
}
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.section-head .eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.section-head h2 {
  margin-bottom: var(--space-3);
}
.section-head p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}

.section-head.left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.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;
}
