/* Jessica Numbers — a mom lifestyle & wellness blog.
   Design: soft and warm. Cream ground, sage + blush palette, serif
   display headings, rounded cards and lots of air. Friendly, not
   clinical. Distinct from the sibling sites by design. */

:root {
  --bg: #fdfbf7;
  --bg-soft: #f3eee6;
  --ink: #3a352f;
  --muted: #837b6f;
  --primary: #7c9473;   /* sage — used by enhance.py */
  --accent: #d4a59a;    /* blush — used by enhance.py */
  --line: #ece5d9;
  --card: #ffffff;
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

a { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---- Header ---- */
header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  text-align: center;
  padding: 84px 26px 64px;
}
.hero h1 { font-size: 2.9rem; max-width: 18ch; margin: 0 auto 20px; }
.hero p { font-size: 1.18rem; color: var(--muted); max-width: 54ch; margin: 0 auto 28px; }
.hero .btn { margin: 0 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.btn:hover { background: #688060; transform: translateY(-1px); }
.btn-soft { background: var(--accent); }
.btn-soft:hover { background: #c7958b; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- Sections ---- */
section { padding: 60px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
section h2 { font-size: 2rem; margin-bottom: 14px; }
section p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.reverse .ph { order: 2; }
.ph { border-radius: 18px; overflow: hidden; box-shadow: 0 16px 36px rgba(58,53,47,.12); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Post / card grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(58,53,47,.1); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.pill {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; }

/* ---- Prose ---- */
.prose { max-width: 66ch; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 42px 0 12px; }
.prose h3 { font-size: 1.24rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #4a443c; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.note p { margin: 0; color: var(--ink); }
.pull {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--primary);
  text-align: center;
  max-width: 30ch;
  margin: 38px auto;
}

/* ---- CTA / signup ---- */
.cta { background: var(--bg-soft); text-align: center; padding: 64px 26px; }
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 24px; }

/* ---- Footer (enhance.py rebuilds) ---- */
footer { background: var(--ink); color: #d8d1c6; padding: 52px 0 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: Georgia, serif; font-size: 1.05rem; margin-bottom: 12px; }
.footer-grid a, .footer-grid p { color: #b9b2a6; text-decoration: none; display: block; margin: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom, .footer-meta { max-width: var(--maxw); margin: 34px auto 0; padding: 18px 26px 0; border-top: 1px solid #4d473e; font-size: 0.82rem; color: #948d81; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .ph { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* LOGO:start */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; color: var(--primary); letter-spacing: 0.02em; text-decoration: none; }
.brand-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--primary); }
.brand-icon path, .brand-icon circle, .brand-icon rect, .brand-icon polygon, .brand-icon line { vector-effect: non-scaling-stroke; }
.brand:hover .brand-icon { color: var(--accent); transition: color 0.15s ease; }
/* LOGO:end */

/* ENHANCE:start */
.hero {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: left;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid p,
.footer-grid a {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
  line-height: 1.5;
}
.footer-grid a:hover { color: var(--primary); }
.footer-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
  margin: 0;
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}
/* ENHANCE:end */
