:root {
  --bg: #faf7f0;
  --bg-alt: #f0ebe2;
  --text: #1c1410;
  --text-muted: #6b5f52;
  --accent: #b45309;
  --accent-warm: #c2410c;
  --border: #ddd5c8;
  --white: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-warm); }

/* NAV */
.nav {
  padding: 16px 6vw;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand { text-decoration: none; }
.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 6vw;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.hero-cta:hover { background: var(--accent-warm); color: var(--white); }
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.site-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.site-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}
.site-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}
.metric-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.site-bar {
  height: 3px;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
}
.site-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.site-card--secondary .site-bar-fill { background: #8b7355; }

/* SECTION SHARED */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* FEATURED ARTICLES */
.featured-articles {
  padding: 80px 6vw;
}
.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.featured-inner .section-headline {
  margin-bottom: 48px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.articles-grid--small {
  grid-template-columns: repeat(3, 1fr);
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(28, 20, 16, 0.06);
}
.article-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.article-card-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(180, 83, 9, 0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
}
.featured-more {
  text-align: center;
}
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(180, 83, 9, 0.04);
  color: var(--accent);
}
.no-articles {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 0;
}

/* NEWSLETTER CTA */
.newsletter-cta {
  padding: 80px 6vw;
  background: var(--text);
  color: var(--bg);
}
.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}
.newsletter-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250, 247, 240, 0.7);
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(250, 247, 240, 0.2);
  border-radius: 6px;
  background: rgba(250, 247, 240, 0.08);
  color: var(--bg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.newsletter-input::placeholder { color: rgba(250, 247, 240, 0.4); }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-btn {
  padding: 14px 24px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--accent-warm); }
.newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}
.newsletter-status--success { color: #22c55e; }
.newsletter-status--error { color: #ef4444; }

/* CATEGORIES */
.categories-section {
  padding: 80px 6vw;
  background: var(--bg-alt);
}
.categories-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.categories-inner .section-headline {
  margin-bottom: 48px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(28, 20, 16, 0.06);
}
.category-icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.category-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.category-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* BLOG LISTING PAGE */
.blog-header {
  padding: 60px 6vw 40px;
  border-bottom: 1px solid var(--border);
}
.blog-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-header-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 12px;
}
.blog-filters {
  padding: 20px 6vw;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.blog-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.filter-chip--active:hover {
  color: var(--white);
}
.blog-listing {
  padding: 40px 6vw 80px;
}
.blog-listing-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
}
.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.pagination-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* ARTICLE PAGE */
.article-page {
  padding: 60px 6vw 80px;
}
.article-page-inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 48px;
}
.article-category-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}
.article-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.affiliate-disclosure {
  font-size: 13px;
  background: rgba(180, 83, 9, 0.06);
  border: 1px solid rgba(180, 83, 9, 0.15);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ARTICLE CONTENT — styled HTML from AI */
.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 20px;
  line-height: 1.2;
}
.article-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
  line-height: 1.3;
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { color: var(--accent-warm); }
.article-content strong { font-weight: 600; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-content th, .article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* Product recommendation box */
.product-box {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}
.product-box h3 {
  margin-top: 0;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--text);
}
.product-box .product-price {
  font-size: 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0;
}
.product-box .product-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
}
.product-box .product-link:hover {
  background: var(--accent-warm);
  color: var(--white);
}

.article-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* RELATED ARTICLES */
.related-articles {
  padding: 60px 6vw;
  background: var(--bg-alt);
}
.related-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.related-inner .section-headline {
  margin-bottom: 32px;
}

/* ERROR PAGE */
.error-page {
  padding: 120px 6vw;
  text-align: center;
}
.error-inner {
  max-width: 600px;
  margin: 0 auto;
}
.error-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}
.error-message {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* FOOTER */
.footer {
  padding: 40px 6vw;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  display: block;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.footer-affiliate-disclosure {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 6vw; min-height: auto; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid--small { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .site-metrics { gap: 16px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
  .nav-links { display: none; }
  .newsletter-form { flex-direction: column; }
  .article-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
}
