@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================
   DESIGN SYSTEM — Portable Stove Reviews
   Aesthetic: Rugged Wilderness Editorial
   ========================================== */
:root {
  --forest:    #1a2e1a;
  --pine:      #2d4a2d;
  --moss:      #4a6741;
  --sage:      #7a9b6e;
  --bark:      #5c3d1e;
  --ember:     #c8491a;
  --flame:     #e8732a;
  --ash:       #f4f0e8;
  --smoke:     #e8e4dc;
  --stone:     #9b9490;
  --charcoal:  #2a2520;
  --white:     #fefcf8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 2px;
  --radius-md: 6px;
  --shadow: 0 2px 12px rgba(26,46,26,0.12);
  --shadow-lg: 0 8px 40px rgba(26,46,26,0.18);
  --transition: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--forest);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { margin-bottom: 1.2rem; font-size: 1.05rem; }
a  { color: var(--ember); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--flame); }
ul,ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; color: var(--forest); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  background: var(--forest);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--ember);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px; max-width: 1200px; margin: 0 auto;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--ember); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.logo-text span { display: block; font-size: 0.65rem; font-family: var(--font-body); font-weight: 400; opacity: 0.7; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--white); font-size: 1.5rem; padding: 4px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ash); font-family: var(--font-body); font-size: 0.88rem;
  padding: 6px 12px; border-radius: var(--radius);
  letter-spacing: 0.03em; transition: background var(--transition), color var(--transition);
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.site-nav .nav-cta {
  background: var(--ember); color: var(--white); padding: 6px 14px;
  border-radius: var(--radius-md); font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--flame); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 50%, var(--bark) 100%);
  color: var(--white); padding: 80px 24px 90px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block; background: var(--ember); color: var(--white);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 2px; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; max-width: 720px; }
.hero p { font-size: 1.15rem; opacity: 0.85; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none; letter-spacing: 0.02em;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover { background: var(--flame); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,73,26,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.btn-green { background: var(--pine); color: var(--white); }
.btn-green:hover { background: var(--forest); color: var(--white); }
.btn-amazon {
  background: #FF9900; color: #111; font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,153,0,0.3);
}
.btn-amazon:hover { background: #e68900; color: #111; transform: translateY(-1px); }

/* ── FEATURED GRID ── */
.featured-section { padding: 64px 24px; }
.section-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ember); background: rgba(200,73,26,0.08);
  padding: 3px 10px; border-radius: 2px; border-left: 3px solid var(--ember);
}
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── CARD ── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--smoke); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sage); }
.card-thumb {
  height: 160px; background: linear-gradient(135deg, var(--pine), var(--forest));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.card-thumb::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(transparent, rgba(26,46,26,0.3));
}
.card-type {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 2px 8px; border-radius: 2px; color: var(--white);
}
.card-type.roundup  { background: var(--ember); }
.card-type.review   { background: var(--bark); }
.card-type.compare  { background: var(--pine); }
.card-type.info     { background: var(--stone); }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--forest); line-height: 1.3; }
.card-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--stone); letter-spacing: 0.08em; margin-bottom: 10px; }
.card-excerpt { font-size: 0.9rem; color: #5a5550; flex: 1; line-height: 1.55; margin-bottom: 0; }
.card a { text-decoration: none; }
.card a:hover .card-title { color: var(--ember); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--ash); border-bottom: 1px solid var(--smoke);
  padding: 10px 24px; font-size: 0.82rem; font-family: var(--font-mono);
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb-sep { color: var(--stone); opacity: 0.5; }
.breadcrumb-current { color: var(--charcoal); }

/* ── ARTICLE ── */
.article-header {
  background: linear-gradient(160deg, var(--forest) 0%, var(--pine) 100%);
  color: var(--white); padding: 56px 24px 48px;
}
.article-header-inner { max-width: 900px; margin: 0 auto; }
.article-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--flame); margin-bottom: 14px; display: block;
}
.article-header h1 { color: var(--white); margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.article-meta span { font-size: 0.82rem; opacity: 0.7; font-family: var(--font-mono); }
.article-meta .rating { color: #FFD700; opacity: 1; font-size: 1rem; letter-spacing: 2px; }

.article-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px; max-width: 1200px; margin: 0 auto;
  padding: 48px 24px 80px; align-items: start;
}
.article-content h2 { margin: 2rem 0 0.75rem; padding-top: 0.5rem; border-top: 2px solid var(--smoke); }
.article-content h3 { margin: 1.5rem 0 0.5rem; color: var(--pine); }
.article-content img { max-width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }
.article-content .intro { font-size: 1.15rem; line-height: 1.75; color: #3a3530; margin-bottom: 2rem; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 88px; }
.sidebar-box {
  background: var(--ash); border: 1px solid var(--smoke);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px;
}
.sidebar-box h4 { font-size: 0.9rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--smoke); }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { padding: 5px 0; border-bottom: 1px dotted var(--smoke); }
.sidebar-box ul li:last-child { border: none; }
.sidebar-box ul li a { font-size: 0.88rem; color: var(--charcoal); }
.sidebar-box ul li a:hover { color: var(--ember); }
.sidebar-toc a { font-size: 0.85rem; }
.affiliate-box {
  background: linear-gradient(135deg, var(--forest), var(--pine));
  color: var(--white); border: none; text-align: center;
}
.affiliate-box h4 { color: var(--white); border-color: rgba(255,255,255,0.2); }
.affiliate-box p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 12px; }

/* ── PRODUCT CARD ── */
.product-card {
  border: 2px solid var(--smoke); border-radius: var(--radius-md);
  padding: 24px; margin: 28px 0; background: var(--white);
  transition: border-color var(--transition);
}
.product-card:hover { border-color: var(--sage); }
.product-card.top-pick { border-color: var(--ember); position: relative; }
.product-card.top-pick::before {
  content: '🏆 Top Pick'; position: absolute; top: -14px; left: 20px;
  background: var(--ember); color: var(--white); font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em; padding: 3px 12px; border-radius: 2px;
}
.product-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.product-rank {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900;
  color: var(--smoke); line-height: 1; flex-shrink: 0; min-width: 44px;
}
.top-pick .product-rank { color: rgba(200,73,26,0.2); }
.product-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--forest); margin-bottom: 4px; }
.product-tagline { font-size: 0.88rem; color: var(--stone); }
.product-stars { color: #FFD700; font-size: 1rem; letter-spacing: 2px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.spec-tag {
  background: var(--ash); border: 1px solid var(--smoke);
  padding: 3px 10px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--charcoal);
}
.product-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.pros h5, .cons h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); margin-bottom: 6px; }
.pros h5 { color: var(--moss); }
.cons h5 { color: var(--ember); }
.pros ul, .cons ul { list-style: none; padding: 0; font-size: 0.88rem; }
.pros li::before { content: '✓ '; color: var(--moss); font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--ember); font-weight: 700; }
.pros li, .cons li { margin-bottom: 3px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--smoke); }
.product-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--forest); }

/* ── INFO BOXES ── */
.info-box {
  border-left: 4px solid var(--sage); background: rgba(74,103,65,0.06);
  padding: 16px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}
.info-box.warning { border-color: var(--flame); background: rgba(232,115,42,0.06); }
.info-box.tip { border-color: var(--ember); background: rgba(200,73,26,0.06); }
.info-box h4 { font-size: 0.9rem; margin-bottom: 6px; }
.info-box p { margin: 0; font-size: 0.92rem; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.compare-table th { background: var(--forest); color: var(--white); padding: 12px 16px; text-align: left; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-table td { padding: 11px 16px; border-bottom: 1px solid var(--smoke); }
.compare-table tr:nth-child(even) td { background: var(--ash); }
.compare-table .winner { color: var(--moss); font-weight: 700; }
.compare-table .loser { color: var(--stone); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--smoke); padding: 18px 0; }
.faq-question { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--forest); cursor: pointer; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.faq-question::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--ember); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding-top: 12px; font-size: 0.95rem; }
.faq-item.open .faq-answer { display: block; }

/* ── AFFILIATE DISCLAIMER ── */
.affiliate-note {
  background: var(--ash); border: 1px solid var(--smoke);
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 0.8rem; color: var(--stone); margin-bottom: 32px;
  font-family: var(--font-mono); line-height: 1.5;
}
.affiliate-note a { color: var(--ember); }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal); color: var(--ash);
  padding: 56px 24px 32px; margin-top: 80px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { color: var(--white); margin-bottom: 12px; display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.footer-brand p { font-size: 0.88rem; opacity: 0.6; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--flame); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--ash); opacity: 0.65; font-size: 0.88rem; transition: opacity var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--ash); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; opacity: 0.45; font-family: var(--font-mono); }
.footer-bottom a { color: var(--ash); opacity: 0.55; font-size: 0.78rem; font-family: var(--font-mono); }
.footer-bottom a:hover { opacity: 0.9; color: var(--ash); }

/* ── RATING WIDGET ── */
.score-widget {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--forest); color: var(--white); padding: 12px 20px;
  border-radius: var(--radius-md); margin: 20px 0;
}
.score-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--flame); line-height: 1; }
.score-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.score-stars { font-size: 1.1rem; letter-spacing: 3px; color: #FFD700; }

/* ── LEGAL PAGES ── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .last-updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--stone); margin-bottom: 32px; display: block; }
.legal-content h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.legal-content p, .legal-content li { font-size: 0.97rem; }

/* ── CONTACT FORM ── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--forest); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 2px solid var(--smoke);
  border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); color: var(--charcoal); transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--sage);
}
.form-group textarea { height: 140px; resize: vertical; }

/* ── PHASE DIVIDER ── */
.phase-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 56px 0 32px; padding: 0 24px;
}
.phase-divider::before,.phase-divider::after { content: ''; flex: 1; height: 1px; background: var(--smoke); }
.phase-label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--stone);
  white-space: nowrap;
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--forest); padding: 12px; border-top: 1px solid var(--pine); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 56px; }
}

/* ── ANIMATION ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
