/* ═══════════════════════════════════════════════
   BSPL — BASE STYLES
   base.css
   ═══════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* ── Skip link ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-teal-600);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Container ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

/* ── Typography base ───────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 600; }

p { color: var(--color-gray-600); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
svg { flex-shrink: 0; }

/* ── Text utilities ────────────────────────────── */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-overline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: var(--space-3);
}
.section-overline-light {
  color: rgba(45, 212, 191, 0.85);
}

.section-heading { margin-bottom: var(--space-4); }
.section-heading-white { color: #ffffff; }

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin-bottom: var(--space-8);
}
.section-header-centered .section-divider {
  margin-inline: auto;
}

.section-descriptor {
  max-width: 560px;
  font-size: 1.0625rem;
  color: var(--color-gray-500);
  line-height: 1.7;
}
.section-header-centered .section-descriptor {
  margin-inline: auto;
}
.section-descriptor-light {
  color: rgba(203, 213, 225, 0.8);
}

.section-header-centered {
  text-align: center;
  margin-bottom: var(--space-16);
}

/* ── Tag variants ──────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-teal    { background: var(--color-teal-50);  color: var(--color-teal-800); }
.tag-emerald { background: #ECFDF5;               color: #065F46; }
.tag-blue    { background: #EFF6FF;               color: var(--color-blue-700); }
.tag-gray    { background: var(--color-gray-100); color: var(--color-gray-600); }
.tag-teal-sm, .tag-blue-sm, .tag-emerald-sm {
  font-size: 10px;
  padding: 2px 8px;
}
.tag-teal-sm    { background: rgba(13,148,136,0.15);  color: #2DD4BF; }
.tag-blue-sm    { background: rgba(59,130,246,0.15);  color: #93C5FD; }
.tag-emerald-sm { background: rgba(5,150,105,0.15);   color: #34D399; }
