/* Held While Caring: a practical care ledger, distinct from Shelter's editorial design. */
:root,
[data-theme="light"] {
  --color-bg: #f7faf8;
  --color-surface: #edf5f2;
  --color-surface-2: #dcece7;
  --color-text: #173a3a;
  --color-text-muted: #57706f;
  --color-accent: #176b68;
  --color-accent-hover: #0f5553;
  --color-accent-subtle: #d6ebe6;
  --color-accent-tint: #edf7f4;
  --color-border: #cbddd8;
  --color-border-strong: #a9c5be;
  --color-surface-dark: #123d3d;
  --color-text-on-dark: #f8fbf7;
  --color-muted-on-dark: #c1d8d3;
  --care-ink: #113c3c;
  --care-paper: #fffdf7;
  --care-yellow: #f5b942;
  --care-coral: #e97d69;
  --font-serif: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  --font-body: Aptos, "Segoe UI", system-ui, sans-serif;
  --font-ui: Aptos, "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0d2728;
    --color-surface: #143334;
    --color-surface-2: #1b4141;
    --color-text: #f2f7f4;
    --color-text-muted: #b6ccca;
    --color-accent: #70c9bd;
    --color-accent-hover: #91dbd1;
    --color-accent-subtle: #204d4b;
    --color-accent-tint: #153534;
    --color-border: #2c5352;
    --color-border-strong: #3b6865;
    --color-surface-dark: #071c1d;
    --care-ink: #effaf6;
    --care-paper: #173737;
    --care-yellow: #f5c65e;
    --care-coral: #f29a87;
  }
}

[data-theme="dark"] {
  --color-bg: #0d2728;
  --color-surface: #143334;
  --color-surface-2: #1b4141;
  --color-text: #f2f7f4;
  --color-text-muted: #b6ccca;
  --color-accent: #70c9bd;
  --color-accent-hover: #91dbd1;
  --color-accent-subtle: #204d4b;
  --color-accent-tint: #153534;
  --color-border: #2c5352;
  --color-border-strong: #3b6865;
  --color-surface-dark: #071c1d;
  --care-ink: #effaf6;
  --care-paper: #173737;
  --care-yellow: #f5c65e;
  --care-coral: #f29a87;
}

.logo__word,
.mobile-nav a,
.directory-hero h1,
.topic-hero h1,
.topic-directory h2,
.subtopic-card h2,
.coming-soon h2 { font-family: var(--font-serif); font-weight: 700; }
.logo__mark { color: var(--color-accent); }
.logo__word b { color: var(--color-accent); }
.header { border-bottom-color: color-mix(in srgb, var(--color-border) 80%, transparent); }
.footer { background: var(--color-surface); }

.care-home h1,
.care-home h2,
.care-path strong,
.care-need strong { font-family: var(--font-serif); }

.care-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7.5rem) 0; background: linear-gradient(135deg, var(--color-bg) 0 57%, var(--color-surface) 57%); }
.care-hero::before { content: ""; position: absolute; width: 22rem; height: 22rem; left: -10rem; bottom: -15rem; border: 2px dashed color-mix(in srgb, var(--color-accent) 25%, transparent); border-radius: 50%; }
.care-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .75fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.care-hero h1 { max-width: 12ch; margin: .7rem 0 1.4rem; font-size: clamp(3.1rem, 7.5vw, 6.8rem); font-weight: 700; letter-spacing: -.055em; line-height: .94; }
.care-hero__lead { max-width: 650px; color: var(--color-text-muted); font-size: clamp(1.08rem, 2vw, 1.32rem); line-height: 1.65; }
.care-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 2rem; }

.care-note { position: relative; padding: 1.25rem 1.5rem 1.5rem; color: var(--care-ink); background: var(--care-paper); border: 1px solid color-mix(in srgb, var(--color-border-strong) 70%, transparent); border-radius: 4px 18px 18px 4px; box-shadow: 18px 22px 0 color-mix(in srgb, var(--care-yellow) 34%, transparent); transform: rotate(1.2deg); }
.care-note::before { content: ""; position: absolute; top: 0; bottom: 0; left: 2.2rem; width: 1px; background: color-mix(in srgb, var(--care-coral) 45%, transparent); }
.care-note__top { display: flex; justify-content: space-between; gap: 1rem; margin-left: 1.5rem; padding-bottom: .85rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font: 700 .72rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.care-note blockquote { margin: 1.7rem 0 1.3rem 1.5rem; }
.care-note blockquote p { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.45 Georgia, serif; }
.care-note cite { display: block; margin-top: .65rem; color: var(--color-text-muted); font: 700 .78rem/1.3 var(--font-ui); }
.care-note__lines { margin-left: 1.5rem; display: grid; gap: .65rem; }
.care-note__lines i { height: 1px; background: var(--color-border); }
.care-note__permission { margin: 1.2rem 0 0 1.5rem; color: var(--color-text-muted); font-size: .95rem; line-height: 1.55; }
.care-note__permission strong { color: var(--color-text); }

.care-section-heading { display: grid; grid-template-columns: 1fr minmax(280px, .7fr); gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.care-section-heading h2 { max-width: 13ch; margin-top: .45rem; font-size: clamp(2.35rem, 5vw, 4.1rem); letter-spacing: -.04em; line-height: 1; }
.care-section-heading > p { color: var(--color-text-muted); font-size: 1.08rem; line-height: 1.7; }
.care-path-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.care-path { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; min-height: 190px; padding: 1.5rem; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); text-decoration: none; }
.care-path:nth-child(1), .care-path:nth-child(4) { grid-column: span 7; }
.care-path:nth-child(2), .care-path:nth-child(3) { grid-column: span 5; }
.care-path:nth-child(5), .care-path:nth-child(6) { grid-column: span 6; }
.care-path:nth-child(3n+2) { background: color-mix(in srgb, var(--care-yellow) 13%, var(--color-surface)); }
.care-path:nth-child(4) { background: color-mix(in srgb, var(--care-coral) 9%, var(--color-surface)); }
.care-path__index { color: var(--color-accent); font: 800 .72rem/1 var(--font-ui); letter-spacing: .08em; }
.care-path strong, .care-path small { display: block; }
.care-path strong { max-width: 18ch; font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.08; }
.care-path small { max-width: 43ch; margin-top: .8rem; color: var(--color-text-muted); font: 400 .95rem/1.55 var(--font-body); }
.care-path > b { color: var(--color-accent); font-size: 1.2rem; }
.care-path:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--care-ink) 10%, transparent); }

.care-pause { padding: clamp(4rem, 8vw, 7rem) 0; color: #f4fbf7; background: #123f40; }
.care-pause__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 9vw, 8rem); }
.care-pause .eyebrow { color: #8fd9ce; }
.care-pause h2 { max-width: 10ch; margin: .5rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1; }
.care-pause__grid > div > p:last-child { max-width: 38ch; color: #c3d9d5; line-height: 1.65; }
.care-needs { border-top: 1px solid rgb(255 255 255 / .2); }
.care-need { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem .25rem; color: #f4fbf7; border-bottom: 1px solid rgb(255 255 255 / .2); text-decoration: none; }
.care-need span { color: #8fd9ce; font: 700 .72rem/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.care-need strong { font-size: 1.16rem; }
.care-need:hover strong { color: #f5c65e; }

.care-two-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.care-lane { padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); }
.care-lane--practical { background: var(--color-surface); }
.care-lane--faith { color: #173a3a; background: #f5c65e; }
.care-lane__label { font: 800 .75rem/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.care-lane h2 { max-width: 13ch; margin: .75rem 0 1rem; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.04; }
.care-lane p { max-width: 55ch; color: var(--color-text-muted); line-height: 1.68; }
.care-lane--faith p { color: #355654; }
.care-lane ul { margin-top: 2rem; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.care-lane li { border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.care-lane a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .1rem; color: inherit; font-weight: 700; text-decoration: none; }

.care-commitments { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.care-commitments span { padding: .7rem 1rem; color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; font: 650 .78rem/1.2 var(--font-ui); }
.care-commitments span::before { content: "✓"; margin-right: .45rem; color: var(--color-accent); font-weight: 900; }
.care-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; background: var(--color-surface); border: 0; border-radius: var(--radius-lg); }
.care-newsletter .newsletter__form { grid-template-columns: minmax(0, 1fr); }

.directory-hero, .topic-hero { background: linear-gradient(135deg, var(--color-surface), var(--color-bg)); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.topic-directory__item { border-radius: 14px; padding-inline: 1.25rem; }
.topic-directory__item:hover { background: var(--color-surface); }
.scripture-band { background: #123f40; }

@media (max-width: 850px) {
  .care-hero { background: var(--color-bg); }
  .care-hero__grid, .care-section-heading, .care-pause__grid, .care-two-lanes, .care-newsletter { grid-template-columns: 1fr; }
  .care-note { max-width: 590px; transform: none; }
  .care-path:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 600px) {
  .care-hero { padding-top: 3.2rem; }
  .care-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .care-path-grid { display: grid; grid-template-columns: 1fr; }
  .care-path:nth-child(n) { grid-column: auto; min-height: 0; }
  .care-need { grid-template-columns: 1fr auto; }
  .care-need span { grid-column: 1 / -1; }
  .care-note { margin-right: .6rem; padding-left: 1rem; }
  .care-note::before { left: 1.65rem; }
  .care-note__top, .care-note blockquote, .care-note__lines, .care-note__permission { margin-left: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .care-path { transition: none; }
}
