body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* === Headings === */
h1 {
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
}

h4 {
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
}

h5 {
  font-size: var(--fs-lg);
}

h6 {
  font-size: var(--fs-base);
}

/* === Text === */
p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

small {
  font-size: var(--fs-sm);
}

/* === Links === */
a {
  transition: color var(--transition-fast);
}

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

/* === Code === */
code,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

pre {
  padding: var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

pre code {
  padding: 0;
  background: none;
  border-radius: 0;
}

/* === Selection === */
::selection {
  background: rgba(var(--accent-primary-rgb), 0.3);
  color: var(--text-primary);
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* === Utility === */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.font-mono {
  font-family: var(--font-mono);
}

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