/* UI-6: Multicolor Magazine
   Palette: white bg, text #1a1a1a; per-category accent colors
     (kitchen green #10b981, beauty pink #ec4899, baby blue #3b82f6,
      pet orange #f59e0b, default purple #8b5cf6)
   Type: Playfair Display headings, Lora body (Google Fonts)
   Layout: masonry grid (CSS columns) + top hero feature image */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Lora:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #faf9f7;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #ece9e4;
  --cat-color: #8b5cf6;       /* default purple, overridden per page */
  --cat-color-soft: #f3edfd;  /* default soft, overridden per page */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cat-color); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--text); }

/* Navigation: editorial header */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; }
.nav-links a {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a.active { color: var(--cat-color); border-bottom: 2px solid var(--cat-color); }

/* Container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

/* Hero with big feature image */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--cat-color); }
.hero .lead {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 680px;
  font-style: italic;
}
.hero-underline {
  width: 60px;
  height: 4px;
  background: var(--cat-color);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 48px 0 24px;
}
.section-head h2 {
  font-size: 30px;
  margin: 0;
  position: relative;
  padding-bottom: 8px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--cat-color);
}
.section-head a { font-size: 14px; font-weight: 600; }

/* Masonry grid via CSS columns */
.masonry {
  column-count: 3;
  column-gap: 24px;
}
.mag-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  border-top: 4px solid var(--cat-color);
  display: inline-block;
  width: 100%;
}
.mag-card .mag-img-wrap {
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.mag-card .mag-img-wrap img { width: 100%; max-height: 220px; object-fit: cover; }
.mag-card .mag-img-wrap img.contain { object-fit: contain; max-height: 180px; }
.mag-card .mag-body { padding: 18px 20px 20px; }
.mag-card h3 { font-size: 21px; margin: 0 0 8px; line-height: 1.3; }
.mag-card h3 a { color: var(--text); }
.mag-card h3 a:hover { color: var(--cat-color); }
.mag-card .mag-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-transform: capitalize;
  font-style: italic;
}
.mag-card .mag-blurb { font-size: 15px; color: var(--text); margin: 0 0 14px; }
.mag-card .mag-actions { display: flex; align-items: center; gap: 14px; }

/* Category-colored rating stars */
.rating-stars { color: var(--cat-color); font-size: 14px; letter-spacing: 1px; }
.mag-card .rating-line { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; }

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--cat-color);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.badge.value { background: var(--cat-color); }
.badge.budget { background: var(--text-muted); }

/* CTA */
.cta-button {
  display: inline-block;
  padding: 10px 22px;
  background: var(--cat-color);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.cta-button:hover { filter: brightness(0.92); text-decoration: none; }

/* Caption under feature image */
.figure-caption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: 8px 0 0;
}

/* Article page */
.article-page { padding: 40px 0 64px; }
.article-header { margin-bottom: 28px; text-align: center; }
.article-header .category-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--cat-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.article-header h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: -0.01em; }
.article-header .article-meta { font-size: 14px; color: var(--text-muted); font-style: italic; }
.article-feature { margin: 28px 0; }
.article-feature img { width: 100%; border-radius: var(--radius); }
.article-feature .figure-caption { margin-top: 10px; }
.article-disclosure {
  background: var(--cat-color-soft);
  border-left: 4px solid var(--cat-color);
  padding: 16px 20px;
  font-size: 14px;
  margin: 24px 0;
  color: var(--text);
  border-radius: 4px;
}
.article-content { font-size: 18px; line-height: 1.8; }
.article-content h2 {
  font-size: 28px;
  margin: 36px 0 14px;
  position: relative;
  padding-bottom: 8px;
}
.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--cat-color);
}
.article-content h3 { font-size: 22px; margin: 28px 0 10px; }
.article-content p { margin: 0 0 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--cat-color);
  margin: 24px 0;
  padding: 8px 0 8px 20px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 17px;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-content th, .article-content td { border-bottom: 1px solid var(--border); padding: 12px 8px; text-align: left; }
.article-content th { font-family: var(--font-body); font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.pros-cons h3 { font-size: 17px; }

/* Category page */
.category-page { padding: 40px 0 64px; }
.category-page h1 { font-size: 38px; margin: 0 0 8px; text-align: center; }
.category-page h1 .accent { color: var(--cat-color); }
.category-page .lead { color: var(--text-muted); margin: 0 auto 24px; text-align: center; font-style: italic; max-width: 620px; }

/* Legal pages */
.legal-page { padding: 40px 0 64px; }
.legal-page h1 { font-size: 36px; margin: 0 0 16px; }
.legal-page h2 {
  font-size: 24px;
  margin: 32px 0 10px;
  position: relative;
  padding-bottom: 8px;
}
.legal-page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--cat-color);
}
.legal-page h3 { font-size: 19px; margin: 24px 0 8px; }
.legal-page p, .legal-page ul, .legal-page ol { margin: 0 0 16px; }
.legal-page ul, .legal-page ol { padding-left: 24px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .lead { font-size: 18px; color: var(--text-muted); font-style: italic; }
.legal-page .contact-email { font-size: 20px; font-family: var(--font-head); color: var(--cat-color); }
.legal-page .disclosure-callout {
  background: var(--cat-color-soft);
  padding: 18px 22px;
  border-radius: 6px;
  border-left: 4px solid var(--cat-color);
  font-family: var(--font-head);
  font-size: 18px;
  margin: 22px 0;
  font-style: italic;
}
.legal-revision { color: var(--text-muted); font-size: 13px; margin-top: 36px; font-style: italic; }

/* Footer */
.site-footer { background: var(--surface-muted); border-top: 1px solid var(--border); margin-top: 56px; padding: 44px 24px 24px; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto 24px; }
.site-footer h4 { font-family: var(--font-head); font-size: 15px; color: var(--text); margin: 0 0 12px; font-style: italic; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-grid a { color: var(--text); font-size: 14px; }
.site-footer .affiliate-disclosure { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.site-footer .footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); text-align: center; font-style: italic; }

.affiliate-disclosure { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Responsive */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .masonry { column-count: 1; }
  .hero h1 { font-size: 32px; }
  .article-header h1 { font-size: 28px; }
  .section-head h2 { font-size: 24px; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
}
