/* Bloom & Thrive — Sage Botanical Editorial Wellness Stylesheet */
:root {
  --bg: #F9F7F3;
  --surface: #FFFFFF;
  --surface-warm: #EFF3EF;
  --surface-sand: #F3ECE2;
  --ink: #1D2A24;
  --muted: #53625B;
  --sage: #2C4A3E;
  --sage-dark: #1E352C;
  --accent: #B85D3B;
  --accent-dark: #944629;
  --sage-bg: #E4EDE7;
  --sage-ink: #244035;
  --border: #DCE3DC;
  --radius: 16px;
  --shadow-sm: 0 4px 16px rgba(29, 42, 36, 0.05);
  --shadow-md: 0 12px 32px rgba(29, 42, 36, 0.08);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--sage);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--sage); }

.home-hero {
  padding: 44px 0 28px;
  text-align: center;
}
.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage-bg);
  color: var(--sage-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.18;
  margin-top: 0;
}
.home-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.home-hero p {
  max-width: 700px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.search-box {
  width: 100%;
  max-width: 470px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.search-box input:focus {
  outline: 2px solid rgba(44, 74, 62, 0.3);
  border-color: var(--sage);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pill-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pill-btn:hover { border-color: var(--sage); color: var(--ink); }
.pill-btn.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  padding-bottom: 44px;
}
.guide-card-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.guide-card-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tile-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-warm);
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.guide-card-tile:hover .tile-media img { transform: scale(1.03); }
.tile-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tile-cat {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.tile-title {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.26;
  margin-bottom: 8px;
}
.tile-title a { color: var(--ink); }
.tile-summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
  flex: 1;
}
.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.offer-box {
  background: linear-gradient(135deg, #21382F 0%, #2C4A3E 100%);
  color: #F9F7F3;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.offer-box.warm-light {
  background: var(--surface-sand);
  color: var(--ink);
  border: 1px solid #DFD2C0;
  box-shadow: var(--shadow-sm);
}
.offer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 210, 137, 0.22);
  color: #F4D289;
  margin-bottom: 8px;
}
.warm-light .offer-badge {
  background: var(--sage-bg);
  color: var(--sage-ink);
}
.offer-box h2, .offer-box h3 { color: inherit; margin-bottom: 6px; font-size: 1.32rem; }
.offer-box p { margin: 0; opacity: 0.92; font-size: 0.95rem; max-width: 560px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease;
}
.cta-btn:hover { background: var(--accent-dark); text-decoration: none; }
.cta-btn.secondary {
  background: var(--sage);
  color: #FFFFFF;
}
.cta-btn.secondary:hover { background: var(--sage-dark); }
.cta-btn.outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.cta-btn.outline:hover { background: var(--surface-warm); }

.article-wrap { padding: 32px 0 56px; }
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.article-header h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  margin-bottom: 12px;
}
.disclosure-note {
  background: var(--surface-warm);
  border-left: 3px solid var(--sage);
  padding: 11px 15px;
  font-size: 0.84rem;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
  margin: 14px 0 18px;
}
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.stat-cell span { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.stat-cell strong { font-size: 1.02rem; color: var(--ink); }

.hero-photo-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 26px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.story-copy p { font-size: 1.04rem; color: #2A3832; margin-bottom: 16px; }

.pin-share-box {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 26px 0;
}
.pin-thumb { border-radius: 10px; border: 1px solid var(--border); }

.routine-box {
  background: var(--surface);
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  padding: 28px;
  margin: 34px 0;
  box-shadow: var(--shadow-md);
}
.routine-box-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.routine-box-top h2 { margin-bottom: 6px; font-size: 1.75rem; }
.progress-pill {
  background: var(--sage-bg);
  color: var(--sage-ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.check-group-title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 18px 0 8px;
}
.check-list { list-style: none; padding: 0; margin: 0 0 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #DCE3DC;
}
.check-list input[type="checkbox"] {
  margin-top: 5px;
  width: 17px;
  height: 17px;
  accent-color: var(--sage);
  cursor: pointer;
  flex-shrink: 0;
}
.check-list label { cursor: pointer; flex: 1; }
.check-list li.checked label { text-decoration: line-through; color: var(--muted); }
.timing-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--sage);
  background: var(--sage-bg);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin-right: 6px;
}

.step-list { list-style: none; padding: 0; margin: 12px 0 20px; counter-reset: steps; }
.step-list li {
  position: relative;
  padding: 0 0 18px 46px;
  counter-increment: steps;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.gear-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.gear-card h4 { margin: 0 0 4px; font-size: 0.98rem; font-family: var(--font-sans); }
.gear-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.notes-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}
.faq-item { margin-bottom: 14px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q { font-weight: 700; margin-bottom: 4px; }
.faq-a { color: var(--muted); margin: 0; font-size: 0.95rem; }

.prose-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px auto 48px;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 340px;
  background: var(--sage);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .header-inner { flex-wrap: nowrap; min-height: 52px; padding: 6px 0; gap: 8px; }
  .brand { font-size: 1.02rem; white-space: nowrap; flex-shrink: 0; gap: 7px; }
  .brand-dot { width: 8px; height: 8px; }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    font-size: 0.76rem;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .article-wrap { padding-top: 18px; }
  .pin-share-box { grid-template-columns: 1fr; }
  .pin-thumb { max-width: 180px; }
  .routine-box { padding: 20px 18px; }
  .offer-box { padding: 20px; }
}

@media print {
  .site-header, .action-bar, .hero-photo-box, .story-copy, .pin-share-box,
  .offer-box, .gear-section, .site-footer, .disclosure-note, .toast,
  .more-guides { display: none !important; }
  body { background: #FFFFFF; font-size: 11pt; }
  .routine-box { border: 1px solid #444; box-shadow: none; margin: 0; padding: 12px; }
}
