/* ===========================================================
   Marcy's House — shared stylesheet
   Warm, homey lifestyle-blog aesthetic.
   =========================================================== */

:root {
  --cream: #fbf6ef;
  --cream-deep: #f3ead9;
  --ink: #362e28;
  --ink-soft: #6b5f54;
  --terracotta: #c96f4a;
  --terracotta-dark: #a6532f;
  --sage: #7c8f6e;
  --sage-light: #e4ebdd;
  --line: #e6dccb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(54, 46, 40, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  letter-spacing: 0.3px;
}

.logo span { color: var(--sage); }

.site-nav { display: flex; gap: 28px; align-items: center; }

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--terracotta-dark); text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--sage-light), var(--cream-deep));
  padding: 64px 0 56px;
  text-align: center;
}

.hero h1 { font-size: 2.6rem; margin-bottom: 14px; }

.hero p.lede {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--terracotta-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--terracotta);
  color: var(--terracotta-dark);
  padding: 10px 24px;
}

.btn.outline:hover { background: var(--terracotta); color: var(--white); }

/* ---------- Section headings ---------- */
.section-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.9rem;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ---------- Post grid / cards ---------- */
main { padding: 60px 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(54,46,40,0.14); }

.card .thumb {
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, var(--sage-light), var(--terracotta) 140%);
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.card .thumb span.tag {
  background: rgba(255,255,255,0.9);
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
}

.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

.card h3 { font-size: 1.2rem; margin-bottom: 8px; }

.card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }

.card .read-more { font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: var(--sage);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin: 20px auto 0;
}

.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 22px; }

.cta-band form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band input[type="email"] {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  font-size: 0.95rem;
}

.cta-band .btn { background: var(--terracotta); }
.cta-band .btn:hover { background: var(--terracotta-dark); }

/* ---------- Article page ---------- */
.article-hero {
  background: var(--cream-deep);
  padding: 48px 0 36px;
}

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }

.article-hero .tag {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-hero h1 { font-size: 2.2rem; max-width: 760px; }
.article-meta { color: var(--ink-soft); font-size: 0.9rem; }

article.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0;
}

article.post-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
article.post-body h3 { font-size: 1.2rem; margin-top: 1.3em; }

.featured-image-slot {
  aspect-ratio: 2 / 3;
  max-width: 420px;
  margin: 0 auto 40px;
  background: linear-gradient(160deg, var(--sage-light), var(--terracotta) 140%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.product-pick {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.product-pick .swatch {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--sage-light);
}

.product-pick .info h4 { margin-bottom: 4px; font-size: 1.05rem; }
.product-pick .info p { margin-bottom: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.product-pick .info a.btn { padding: 8px 18px; font-size: 0.85rem; }

.disclosure-note {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 28px 0;
}

/* ---------- Static pages ---------- */
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}

.page-body h1 { font-size: 2.1rem; margin-bottom: 20px; }
.page-body h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  margin-top: 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.site-footer .footer-links a { color: var(--ink); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .hero h1 { font-size: 2rem; }
  .article-hero h1 { font-size: 1.7rem; }
  .product-pick { flex-direction: column; text-align: center; }
  .cta-band input[type="email"] { min-width: 0; width: 100%; }
}
