/* ============================================================
   Caregiver & Senior-Care Resource Hub
   Design: warm-professional. Calm sage + warm clay accents on
   a soft warm-white. Large readable type, high contrast,
   generous spacing. Mobile-first. Accessible.
   ============================================================ */

:root {
  /* Palette — warm, calm, trustworthy (deliberately not cream+serif default) */
  --bg:        #f7f4ef;   /* soft warm paper */
  --surface:   #ffffff;
  --surface-2: #f0ece4;   /* muted warm panel */
  --ink:       #2b2a27;   /* near-black warm ink, high contrast on --bg */
  --ink-soft:  #54514b;   /* secondary text, still AA on --bg */
  --line:      #e2dccf;   /* hairline borders */

  --sage:      #4a7c6f;   /* primary — calm healing green */
  --sage-deep: #356055;   /* hover / strong */
  --sage-tint: #e4efea;   /* soft sage panel */
  --clay:      #b5623f;   /* warm accent — CTAs / affiliate */
  --clay-deep: #97492b;
  --clay-tint: #f7e9e1;

  --gold:      #c8922e;   /* gentle highlight (badges) */

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(43,42,39,.05), 0 8px 24px rgba(43,42,39,.07);
  --shadow-sm: 0 1px 2px rgba(43,42,39,.06);

  --maxw:      72rem;
  --readw:     42rem;   /* comfortable reading measure */

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;            /* large readable base for older readers */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage-deep);
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.read { max-width: var(--readw); margin-inline: auto; }

/* ---------- Links & focus ---------- */
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--sage); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: 2.2rem; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin-top: 1.6rem; }
p  { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: .55rem; }
strong { font-weight: 700; }

.lede { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.65; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-deep);
  margin-bottom: .6rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,244,239,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.12rem; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--sage) 0%, var(--sage-deep) 75%);
  display: grid; place-items: center; color: #fff; font-size: 1.05rem;
  flex: none;
}
.nav { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: .5rem .7rem; border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

/* mobile nav: collapse extra links, keep "Start here" */
@media (max-width: 720px) {
  .nav a.hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--sage-tint) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, var(--clay-tint) 0%, transparent 50%);
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: var(--sage-deep); }
.btn-ghost:hover { background: var(--sage-tint); color: var(--sage-deep); }
.btn-clay { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-clay:hover { background: var(--clay-deep); color: #fff; transform: translateY(-1px); }

/* ---------- Section spacing ---------- */
section { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.section-tight { padding-block: clamp(1.4rem, 3vw, 2.2rem); }

/* ---------- "Start here" need cards ---------- */
.grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); }
.card .ico {
  width: 3rem; height: 3rem; border-radius: 12px;
  background: var(--sage-tint); color: var(--sage-deep);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .3rem;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--sage-deep); font-size: .95rem; }

/* ---------- Guide list ---------- */
.guide-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem,1fr)); }
.guide-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .4rem;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.guide-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); }
.guide-item .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay-deep); background: var(--clay-tint); padding: .2rem .55rem;
  border-radius: 999px; align-self: flex-start;
}
.guide-item h3 { margin: .2rem 0 0; }
.guide-item p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.guide-item .read-more { margin-top: .4rem; font-weight: 700; color: var(--sage-deep); font-size: .92rem; }

/* ---------- Article ---------- */
.article { padding-block: clamp(2rem, 5vw, 3.5rem); }
.article .read > p,
.article .read > ul,
.article .read > ol,
.article .read > h2,
.article .read > h3,
.article .read > .callout,
.article .read > .rec,
.article .read > figure { /* keep reading column */ }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center;
  color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.5rem;
}
.article-meta .pill {
  background: var(--sage-tint); color: var(--sage-deep); font-weight: 700;
  padding: .2rem .65rem; border-radius: 999px; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.breadcrumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.breadcrumb a { font-weight: 600; }

/* ---------- Callout / disclaimer boxes ---------- */
.callout {
  background: var(--sage-tint); border: 1px solid #cfe1d9;
  border-left: 5px solid var(--sage-deep);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label { font-weight: 800; color: var(--sage-deep); display:block; margin-bottom: .3rem; }
.callout.warn { background: #fbf1e9; border-color: #ecd2bf; border-left-color: var(--clay-deep); }
.callout.warn .label { color: var(--clay-deep); }

/* ---------- Affiliate recommendation block ---------- */
.rec {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.rec-head {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
}
.rec-head .badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--clay-tint); color: var(--clay-deep); padding: .25rem .6rem; border-radius: 999px;
}
.rec h3 { margin: 0; font-size: 1.2rem; }
.rec .why { color: var(--ink-soft); font-size: .98rem; }
.rec .why strong { color: var(--ink); }
.rec .rec-cta { margin-top: .9rem; }
.rec .disc { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; margin-bottom: 0; }

/* checklist style */
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative; padding-left: 2rem; margin-bottom: .7rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sage-deep); font-weight: 900; font-size: 1.05rem;
}

/* gentle script blockquote */
blockquote.script {
  margin: 1.4rem 0; padding: 1.1rem 1.3rem;
  background: var(--surface-2); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); font-style: italic; color: var(--ink);
}
blockquote.script p { margin-bottom: .5rem; }
blockquote.script p:last-child { margin-bottom: 0; }

/* ---------- Related / next ---------- */
.related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.8rem; }

/* ---------- Disclosure strip ---------- */
.disclosure-strip {
  background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-soft);
}
.disclosure-strip .wrap { padding-block: .9rem; }
.disclosure-strip strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2b3a36; color: #d9e3df; margin-top: 3rem;
  padding-block: 2.6rem 2rem; font-size: .95rem;
}
.site-footer a { color: #bfe0d3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem,1fr)); }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
  color: #a9bcb5; font-size: .85rem;
}
.footer-bottom .built a { font-weight: 700; }

/* ---------- Misc ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
hr.soft { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.tldr {
  background: var(--surface); border: 1px dashed var(--sage);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.4rem 0;
}
.tldr .label { font-weight: 800; color: var(--sage-deep); display:block; margin-bottom:.3rem; font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; }
