/* ==========================================================================
   Radiant Living Family Care — Global Design System
   Palette:  Ink Navy #1F3343 · Ochre #B58A4D · Cream/Paper #F4EFE3
   Type:     Cardo (display) · Cormorant Garamond / Inter (body) · Cormorant SC (labels)
   ========================================================================== */

:root {
  /* Brand Palette */
  --ink:        #1F3343;
  --ink-soft:   #2C4658;
  --ink-deep:   #111D27;
  --ochre:      #B58A4D;
  --ochre-dk:   #9C7538;
  --paper:      #F4EFE3;
  --paper-dk:   #EBE3D2;
  --paper-light:#FBF8F1;
  --white:      #FFFFFF;
  --text:       #2A2A26;
  --muted:      #5C5B52;
  --line:       #DDD4C1;

  /* Shadows & Radius */
  --shadow-sm:  0 2px 8px rgba(31,51,67,0.06);
  --shadow-md:  0 10px 30px rgba(31,51,67,0.10);
  --shadow-lg:  0 18px 48px rgba(31,51,67,0.15);
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  12px;

  /* Layout */
  --maxw:       1140px;
  --maxw-narrow:740px;
  --gap-sm:     1rem;
  --gap-md:     1.8rem;
  --gap-lg:     2.8rem;

  /* Typography Stacks */
  --font-display: "Cardo", Georgia, serif;
  --font-body:    "Cormorant Garamond", Garamond, Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-label:   "Cormorant SC", serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility & Focus States */
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  z-index: 10000;
  transition: top 0.2s ease;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-style: italic;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

p {
  margin: 0 0 1.2em;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--ochre-dk);
}

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

/* Labels & Rules */
.label {
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ochre-dk);
  margin-bottom: 0.4rem;
  display: block;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--ochre);
  width: 48px;
  margin: 0.6rem 0 1.4rem;
}

.rule.center {
  margin-left: auto;
  margin-right: auto;
}

.lede {
  font-size: 1.35rem;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
}

/* Container Wrappers */
.wrap {
  width: 90%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.wrap-narrow {
  max-width: var(--maxw-narrow);
}

.center {
  text-align: center;
}

/* Grids & Layout Helpers */
.grid {
  display: grid;
  gap: var(--gap-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.15rem;
  }
  .grid-2, .grid-3, .grid-4, .split {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .wrap {
    width: 92%;
  }
}
