/* Global styles — body, typography, links, scrollbar */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--text-inverse);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* Headings */
h1 {
  font-size: var(--text-5xl);
  line-height: 1.1;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  line-height: 1.2;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.3;
  color: var(--text-heading);
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--text-heading);
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

/* Links */
a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--border-radius-xs);
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 0.15em 0.4em;
  border-radius: var(--border-radius-xs);
}

/* Horizontal rule */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: var(--space-3xl) 0;
}

/* Strong */
strong {
  color: var(--text-heading);
  font-weight: 600;
}
