html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-cn);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

::selection {
  background: rgba(102, 126, 234, 0.15);
  color: var(--color-text);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-cn);
  color: var(--color-text);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p {
  line-height: 1.7;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  transition: color var(--dur-fast) ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* === Utility === */
.section-title {
  font-size: var(--text-4xl);
  line-height: 1.2;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-top: var(--space-4);
  line-height: 1.7;
}

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.tag--light {
  color: rgba(255, 255, 255, 0.6);
}
