/* typography.css — Fonts, headings, body text */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

@media (max-width: 639px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

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

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

strong, b {
  font-weight: 600;
}

/* Links — only inside main content area */
main a:not(.card):not(.btn):not(.nav-link):not(.logo):not(.page-nav-prev):not(.page-nav-next):not(.page-nav-toc):not(.search-result):not(.list-card):not(.skill-tag) {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

main a:not(.card):not(.btn):not(.nav-link):not(.logo):not(.page-nav-prev):not(.page-nav-next):not(.page-nav-toc):not(.search-result):not(.list-card):not(.skill-tag):hover {
  color: var(--color-accent-hover);
}

/* Lists inside articles */
article ul, article ol {
  margin-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

article ul {
  list-style: disc;
}

article ol {
  list-style: decimal;
}

article li {
  margin-bottom: var(--sp-2);
  line-height: 1.7;
}

article li::marker {
  color: var(--color-accent);
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Article section spacing */
article section,
article > h2,
article > h3 {
  margin-top: var(--sp-10);
}

article section > h2:first-child,
article section > h3:first-child {
  margin-top: 0;
}

article h2 {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--color-border);
}

article h3 {
  margin-bottom: var(--sp-3);
}

/* Timestamp / last modified */
.timestamp {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
