/* Lifetime Logistics base styles for a NEW page or project (after brand.css): the website's page
   background, text, uppercase Barlow headings, gold-underlined links and the gold focus outline.
   Every rule here has no weight (:where), so the kit's ll- classes and the page's own classes
   always win over it. Existing projects usually keep their own base and use only brand.css. */

:where(html) {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets stop below the sticky header. */
  scroll-padding-top: 5rem;
}

:where(body) {
  margin: 0;
  font-family: var(--ll-font-text);
  line-height: 1.5;
  color: var(--ll-ink);
  background: var(--ll-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3, h4) {
  margin: 0 0 0.5rem;
  font-family: var(--ll-font-head);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ll-navy);
}
:where(h1) {
  font-size: 2.1rem;
  line-height: 0.95;
}
:where(h2) {
  font-size: 1.5rem;
  line-height: 1.25;
}
:where(h3) {
  font-size: 1.25rem;
}
:where(h4) {
  font-size: 1.05rem;
}
@media (min-width: 640px) {
  :where(h1) {
    font-size: 3rem;
  }
  :where(h2) {
    font-size: 1.875rem;
  }
}

:where(a) {
  color: var(--ll-navy);
  text-decoration-color: var(--ll-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

:where(a:hover) {
  color: var(--ll-gold-text);
}

:where(:focus-visible) {
  outline: var(--ll-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
