/* ==========================================================================
   GET ENGINEERING SEAT — Base Typography & HTML Elements (v1.0)
   Authoritative Reference: docs/02-ui-ux-branding.md (02.6 Typography)
   ========================================================================== */

/* 1. Base Document Typography */
body {
  font-size: var(--font-size-base, 1rem);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-regular, 400);
  line-height: var(--line-height-normal, 1.5);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* 2. Document Heading Hierarchy */
h1, .h1 {
  font-family: var(--font-family-display, var(--font-family-primary));
  font-size: var(--font-size-4xl, 3rem);
  font-weight: var(--font-weight-bold, 700);
  line-height: var(--line-height-tight, 1.25);
  letter-spacing: -0.025em;
  margin-bottom: var(--spacing-4, 1rem);
}

h2, .h2 {
  font-family: var(--font-family-display, var(--font-family-primary));
  font-size: var(--font-size-3xl, 2.25rem);
  font-weight: var(--font-weight-bold, 700);
  line-height: var(--line-height-tight, 1.25);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-4, 1rem);
}

h3, .h3 {
  font-size: var(--font-size-2xl, 1.875rem);
  font-weight: var(--font-weight-semibold, 600);
  line-height: var(--line-height-snug, 1.375);
  letter-spacing: -0.015em;
  margin-bottom: var(--spacing-3, 0.75rem);
}

h4, .h4 {
  font-size: var(--font-size-xl, 1.5rem);
  font-weight: var(--font-weight-semibold, 600);
  line-height: var(--line-height-snug, 1.375);
  margin-bottom: var(--spacing-3, 0.75rem);
}

h5, .h5 {
  font-size: var(--font-size-lg, 1.25rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: var(--line-height-normal, 1.5);
  margin-bottom: var(--spacing-2, 0.5rem);
}

h6, .h6 {
  font-size: var(--font-size-md, 1.125rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: var(--line-height-normal, 1.5);
  margin-bottom: var(--spacing-2, 0.5rem);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  color: var(--color-heading, var(--color-text));
}

/* 3. Text Elements */
p {
  margin-bottom: var(--spacing-4, 1rem);
  color: var(--color-text-secondary);
}

p.lead {
  font-size: var(--font-size-md, 1.125rem);
  line-height: var(--line-height-relaxed, 1.625);
  color: var(--color-text-secondary);
}

small, .text-sm {
  font-size: var(--font-size-sm, 0.875rem);
  line-height: var(--line-height-normal, 1.5);
}

.text-xs {
  font-size: var(--font-size-xs, 0.75rem);
  line-height: var(--line-height-normal, 1.5);
}

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

strong, b {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-text);
}

/* 4. Interactive Links & States */
a {
  color: var(--color-link, var(--color-primary-light));
  transition: color var(--transition-fast);
}

[data-theme="dark"] a:not(.btn) {
  color: var(--color-link, #38bdf8);
}

a:hover:not(.btn) {
  color: var(--color-link-hover, var(--color-secondary));
  text-decoration: underline;
}

/* 5. Accessibility: Keyboard Focus Indicator */
:focus-visible {
  outline: 2px solid var(--color-secondary, #0d9488);
  outline-offset: 2px;
}

/* 6. Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 7. Selection Accent */
::selection {
  background-color: var(--color-secondary-light, #14b8a6);
  color: var(--color-primary-contrast, #ffffff);
}
