/**
 * @file
 * Typography styles for Barrio Red Aprende theme.
 */

:root {
  /* Font Families */
  --ra-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ra-font-heading: var(--ra-font-primary);

  /* Font Sizes */
  --ra-font-size-xs: 0.75rem;    /* 12px */
  --ra-font-size-sm: 0.875rem;   /* 14px */
  --ra-font-size-base: 1rem;     /* 16px */
  --ra-font-size-lg: 1.125rem;   /* 18px */
  --ra-font-size-xl: 1.25rem;    /* 20px */
  --ra-font-size-2xl: 1.5rem;    /* 24px */
  --ra-font-size-3xl: 1.875rem;  /* 30px */

  /* Font Weights */
  --ra-font-weight-normal: 400;
  --ra-font-weight-medium: 500;
  --ra-font-weight-semibold: 600;
  --ra-font-weight-bold: 700;

  /* Line Heights */
  --ra-line-height-tight: 1.25;
  --ra-line-height-normal: 1.5;
  --ra-line-height-relaxed: 1.75;
}

body {
  font-family: var(--ra-font-primary);
  font-size: var(--ra-font-size-base);
  line-height: var(--ra-line-height-normal);
  color: var(--ra-color-matterhorn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ra-font-heading);
  font-weight: var(--ra-font-weight-bold);
  line-height: var(--ra-line-height-tight);
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--ra-color-matterhorn);
}

h1 {
  font-size: var(--ra-font-size-3xl);
}

h2 {
  font-size: var(--ra-font-size-2xl);
}

h3 {
  font-size: var(--ra-font-size-xl);
}

h4 {
  font-size: var(--ra-font-size-lg);
}

h5, h6 {
  font-size: var(--ra-font-size-base);
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: var(--ra-color-cobalt);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ra-color-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--ra-color-focus);
  outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers */
.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;
}

