/*
Theme Name: The Care Online
Theme URI: https://thecareonline.com
Description: Personal care & self-care routines — calm, practical, readable.
Version: 1.0
Author: The Care Online
Text Domain: thecareonline
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --color-sage: #7c9885;
  --color-sage-dark: #587060;
  --color-sage-light: #e8efe9;
  --color-terracotta: #d98e73;
  --color-terracotta-dark: #b9704f;
  --color-bg: #faf6f0;
  --color-text: #2e2a26;
  --color-text-muted: #78716c;
  --color-border: #e7e0d6;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Georgia', 'Iowan Old Style', serif;
  background: var(--color-bg); color: var(--color-text); line-height: 1.7;
  font-size: 17px;
}
h1, h2, h3, h4 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; }
h1 { font-size: 2.1rem; color: var(--color-sage-dark); line-height: 1.25; }
h2 { font-size: 1.4rem; color: var(--color-sage-dark); border-bottom: 2px solid var(--color-sage-light); padding-bottom: .3em; margin: 2rem 0 .8rem; }
h2:first-child { margin-top: 0; }
p { color: var(--color-text); }
a { color: var(--color-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.site-header { background: #fff; border-bottom: 1px solid var(--color-border); padding: 1.1rem 0; }
.site-header .site-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-logo a { font-family: -apple-system, sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--color-sage-dark); }
.site-logo .tagline { display: block; font-size: .78rem; font-weight: 400; color: var(--color-text-muted); font-family: 'Georgia', serif; }
.primary-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { color: var(--color-text); font-family: -apple-system, sans-serif; font-size: .92rem; font-weight: 600; }
.primary-nav a:hover { color: var(--color-terracotta-dark); text-decoration: none; }

.site-main { padding: 2.5rem 0 3rem; }
.content-area { }

.hero { text-align: center; padding: 1.5rem 0 2.5rem; }
.hero h1 { font-size: 2.3rem; }
.hero .subtitle { color: var(--color-text-muted); font-size: 1.05rem; max-width: 46ch; margin: .6rem auto 0; }

.series-badge {
  display: inline-block; font-family: -apple-system, sans-serif; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--color-sage-light); color: var(--color-sage-dark);
  padding: .3rem .8rem; border-radius: 2rem; margin-bottom: .8rem;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.post-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; display: block;
}
.post-card:hover { border-color: var(--color-sage); text-decoration: none; }
.post-card h3 { font-size: 1rem; color: var(--color-text); margin: 0 0 .4rem; font-family: -apple-system, sans-serif; }
.post-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

.series-intro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.series-intro-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.3rem; }
.series-intro-card h3 { font-family: -apple-system, sans-serif; font-size: 1.05rem; color: var(--color-sage-dark); margin: 0 0 .5rem; }
.series-intro-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0 0 .7rem; }

.disclaimer-note {
  background: var(--color-sage-light); border-radius: var(--radius); padding: 1rem 1.3rem;
  font-size: .85rem; color: var(--color-sage-dark); margin: 2rem 0; font-family: -apple-system, sans-serif;
}

.related-posts { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.related-posts-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: .8rem 0 0; }
.related-posts-list li a {
  display: inline-block; padding: .4rem .9rem; background: var(--color-sage-light);
  color: var(--color-sage-dark); border-radius: 2rem; font-size: .85rem; font-family: -apple-system, sans-serif;
}
.related-posts-list li a:hover { background: var(--color-sage); color: #fff; text-decoration: none; }

.posts-list { list-style: none; padding: 0; }
.post-list-item { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.post-list-item h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.post-list-item .excerpt { font-size: .9rem; color: var(--color-text-muted); margin: 0; }

.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; font-family: -apple-system, sans-serif; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .5rem;
  border: 1px solid var(--color-border); border-radius: 8px; font-size: .9rem; color: var(--color-text);
}
.pagination .current { background: var(--color-sage); color: #fff; border-color: var(--color-sage); }
.pagination a:hover { border-color: var(--color-sage); color: var(--color-sage-dark); text-decoration: none; }

.site-footer { background: #2e2a26; color: #c9c2b8; padding: 2rem 0; margin-top: 3rem; font-size: .88rem; }
.site-footer .footer-inner { text-align: center; }
.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; padding: 0; margin: .8rem 0 0; }
.footer-nav a { color: #c9c2b8; font-family: -apple-system, sans-serif; font-size: .85rem; }
.footer-nav a:hover { color: #fff; }

.hero-intro { font-size: 1.1rem; color: var(--color-text-muted); }

.reset-day, .autopsy-step {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 1rem;
}
.reset-day h3, .autopsy-step h3 { font-family: -apple-system, sans-serif; font-size: 1.05rem; margin: 0 0 .5rem; color: var(--color-sage-dark); }
.reset-day p, .autopsy-step p { margin: 0 0 .5rem; font-size: .95rem; }
.reset-day p:last-child, .autopsy-step p:last-child { margin-bottom: 0; }

.verdict-tag {
  display: inline-block; font-family: -apple-system, sans-serif; font-size: .68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .6rem; border-radius: 2rem; margin-left: .5rem; vertical-align: middle;
  background: var(--color-terracotta); color: #fff;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .site-header .site-container { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
