/* The Aftercare Project — calm, educational palette */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #2b2a33;
  --ink-soft: #4a4955;
  --muted: #6b6976;
  --rule: #e8e3da;
  --accent: #5b6f7a;        /* slate teal */
  --accent-soft: #c7d4d9;
  --warm: #b08363;          /* warm earth tone for emphasis */
  --link: #3f5d6b;
  --link-hover: #284450;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Source Serif Pro", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

/* Layout */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
}
.brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--warm); }
nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}
nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
}
nav.primary a:hover { color: var(--link-hover); text-decoration: underline; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

article h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
article .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
article h2 {
  margin-top: 2.2em;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}
article h3 {
  margin-top: 1.8em;
  font-size: 1.1rem;
  color: var(--accent);
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}
article p, article li { color: var(--ink); }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }
article blockquote {
  border-left: 3px solid var(--accent-soft);
  margin: 24px 0;
  padding: 4px 18px;
  color: var(--ink-soft);
  font-style: italic;
}

.callout {
  background: #f3efe7;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 28px 0;
}
.callout h4 {
  margin: 0 0 6px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
}
.callout p:last-child { margin-bottom: 0; }

.subtasks-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 36px 0;
}
.subtasks-card h4 {
  margin: 0 0 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
}
.subtasks-card .cta {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.subtasks-card .cta:hover { background: var(--link-hover); color: #fff; }

.hero {
  margin: 12px 0 40px;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 { font-size: 2.5rem; margin: 0 0 14px; }
.hero p { font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 12px;
}
.topic-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.topic-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}
.topic-card h3 {
  margin: 0 0 6px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--accent);
}
.topic-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px dashed var(--rule);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: #fff;
}

footer.stewardship {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  padding: 28px 24px;
  text-align: center;
  line-height: 1.6;
}
footer.stewardship a { color: var(--link); }

.meta-row {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 40px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 2rem; }
  article h1 { font-size: 1.8rem; }
  main { padding: 24px 18px 48px; }
  .site-header .wrap { padding: 16px 18px; gap: 14px; }
}
