:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F3EFE8;
  --text: #1F2421;
  --text-muted: #5A625E;
  --primary: #2F4A3E;
  --primary-hover: #23382E;
  --accent: #B85D3B;
  --accent-hover: #9C4B2D;
  --gold: #D99B52;
  --border: #E5DFD5;
  --shadow-sm: 0 2px 8px rgba(31, 36, 33, 0.05);
  --shadow-md: 0 10px 30px rgba(31, 36, 33, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font-serif: "Playfair Display", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Top Affiliate Strip */
.disclosure-strip {
  background: var(--primary);
  color: #EAE6DF;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}

.disclosure-strip a {
  color: #F4C892;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.eyebrow {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--text);
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pillars / Categories Strip */
.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

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

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 8px;
}

.pillar-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.pillar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card-image {
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

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

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cat-tag {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.post-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.post-card h3 a {
  color: var(--text);
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Single Article Page */
.article-wrap {
  padding: 36px 0 64px;
}

.breadcrumbs {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.article-disclosure-box {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.2;
  margin: 12px 0 14px;
}

.article-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.share-btn.pinterest {
  background: #BD081C;
  border-color: #BD081C;
  color: #FFFFFF;
}

.share-btn.facebook {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
}

.article-hero-img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
}

.article-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 34px 0 12px;
  padding-top: 8px;
  color: var(--text);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 24px 0 10px;
}

.article-content p {
  margin: 0 0 16px;
  font-size: 16.5px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 16px;
}

.article-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14.5px;
  overflow-x: auto;
  display: block;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.article-content th {
  background: var(--surface-alt);
  font-weight: 700;
}

/* Compliant Product Pick Card */
.product-pick {
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
  background: #FCFBF9;
  box-shadow: var(--shadow-sm);
}

.product-pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-best-for {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.product-pick h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 4px 0 8px;
}

.product-pick-summary {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
}

.product-specs li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

.product-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 94px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.toc-list li {
  margin-bottom: 8px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}

.toc-list a {
  color: var(--text-muted);
}

.toc-list a:hover {
  color: var(--primary);
}

/* Legal / Static Pages */
.page-main {
  max-width: 840px;
  margin: 36px auto 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.page-main h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  margin-top: 0;
}

/* Footer */
.site-footer {
  background: #1F2421;
  color: #D7D2C8;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.site-footer h4 {
  color: #FFFFFF;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #C7C1B7;
  font-size: 14.5px;
}

.footer-links a:hover {
  color: #F4C892;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: #A7A198;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }
  .main-nav.open {
    display: flex;
  }
  .pillars-grid,
  .posts-grid,
  .product-specs {
    grid-template-columns: 1fr;
  }
  .hero-grid,
  .article-main,
  .page-main {
    padding: 24px 20px;
  }
}
