/* ==========================================================================
   Base Styles — Dévoué Design System
   ========================================================================== */

body {
  font-family: var(--font-text);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--leading-normal);
}

/* -----------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

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

strong, b {
  font-weight: var(--weight-bold);
}

/* -----------------------------------------------------------------------
   Links
   ----------------------------------------------------------------------- */

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-600);
}

/* -----------------------------------------------------------------------
   Code
   ----------------------------------------------------------------------- */

code {
  font-size: 0.9em;
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200);
}

pre {
  padding: var(--space-4);
  background-color: var(--color-gray-100);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  border: none;
  font-size: var(--text-sm);
}

/* -----------------------------------------------------------------------
   Horizontal Rule
   ----------------------------------------------------------------------- */

hr {
  border: none;
  border-top: var(--border-thin);
  margin: var(--space-8) 0;
}

/* -----------------------------------------------------------------------
   Selection
   ----------------------------------------------------------------------- */

::selection {
  background-color: var(--color-blue-200);
  color: var(--color-black);
}
