/* ==========================================================================
   Radiant Living Family Care — Base Styles & Resets
   ========================================================================== */

html {
  font-size: 100%; /* respect the visitor's own browser text size */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
}

p {
  margin: 0 0 1.2rem;
  color: var(--slate-2);
}

p:last-child {
  margin-bottom: 0;
}

em, .italic-accent {
  font-style: italic;
  color: var(--terracotta-deep);
}

.bg-dark em, .bg-navy em, .hero-dark em {
  color: var(--blush);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background-color: var(--parchment-warm);
  color: var(--ink);
}

/* Keyframes */
@keyframes rlPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.7); }
}

@keyframes rlUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

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