/**
 * Base layer: typography, rhythm, sensible element defaults.
 * Scoped lightly so Kadence parent styles are refined, not fought.
 */

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

body {
  font-family: var(--rt-font-sans);
  font-weight: var(--rt-weight-body);
  font-size: var(--rt-text-base);
  line-height: var(--rt-leading-body);
  color: var(--rt-ink);
  background: var(--rt-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--rt-font-sans);
  color: var(--rt-ink);
  line-height: var(--rt-leading-tight);
  letter-spacing: var(--rt-tracking-tight);
  font-weight: var(--rt-weight-heavy);
  margin: 0 0 var(--rt-space-4);
}

h1 {
  font-size: var(--rt-text-hero);
}
h2 {
  font-size: var(--rt-text-2xl);
}
h3 {
  font-size: var(--rt-text-lg);
  font-weight: var(--rt-weight-bold);
}
h4 {
  font-size: var(--rt-text-md);
  font-weight: var(--rt-weight-bold);
}

p {
  margin: 0 0 var(--rt-space-4);
}

a {
  color: var(--rt-navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--rt-cta-alt);
}

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

ul,
ol {
  padding-left: 1.2em;
  margin: 0 0 var(--rt-space-4);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--rt-focus-ring);
  border-radius: var(--rt-radius-sm);
}

::selection {
  background: var(--rt-coral-soft);
  color: var(--rt-navy);
}

/* Dark (navy) section context flips text colors once, centrally. */
.rt-on-dark,
.rt-section--navy {
  color: var(--rt-on-navy-soft);
}
.rt-on-dark h1,
.rt-on-dark h2,
.rt-on-dark h3,
.rt-on-dark h4,
.rt-section--navy h1,
.rt-section--navy h2,
.rt-section--navy h3,
.rt-section--navy h4 {
  color: var(--rt-white);
}
.rt-on-dark a,
.rt-section--navy a {
  color: var(--rt-white);
}

/* Motion discipline */
@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;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .rt-rise {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--rt-dur-slow) var(--rt-ease),
      transform var(--rt-dur-slow) var(--rt-ease);
  }
  .rt-rise.rt-in {
    opacity: 1;
    transform: none;
  }
}

/* Screen-reader-only helper */
.rt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
