/**
 * Eagle Media base styles.
 * Design tokens are generated from config/client.php.
 */

:root {
  --em-color-primary: #5488c7;
  --em-color-accent: #e9aa00;
  --em-color-text: #333333;
  --em-color-surface: #f5f5f5;
  --em-color-white: #ffffff;
  --em-color-border: #d9d9d9;
  --em-color-success: #287a4b;
  --em-color-error: #b42318;
  --em-font-heading: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --em-font-body: "Open Sans", Arial, Helvetica, sans-serif;

  --em-space-1: clamp(0.5rem, 0.45rem + 0.2vw, 0.625rem);
  --em-space-2: clamp(0.75rem, 0.65rem + 0.4vw, 1rem);
  --em-space-3: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  --em-space-4: clamp(1.5rem, 1.15rem + 1.4vw, 2.5rem);
  --em-space-5: clamp(2.5rem, 1.7rem + 3vw, 5rem);
  --em-space-6: clamp(4rem, 2.5rem + 5vw, 8rem);

  --em-radius-sm: 0.25rem;
  --em-radius-md: 0.75rem;
  --em-radius-lg: 1.25rem;
  --em-shadow-sm: 0 0.5rem 1.5rem rgb(51 51 51 / 8%);
  --em-shadow-md: 0 1rem 3rem rgb(51 51 51 / 14%);
  --em-content-width: 80rem;
  --em-reading-width: 46rem;
  --em-transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  color: var(--em-color-text);
  font-family: var(--em-font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--em-color-text);
  font-family: var(--em-font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

:where(a) {
  color: var(--em-color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

:where(a:hover) {
  color: var(--em-color-accent);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--em-color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--em-color-accent);
  color: var(--em-color-text);
}

img,
svg,
video {
  height: auto;
  max-width: 100%;
}
