:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-alt: #f1efea;
  --text: #1d231e;
  --muted: #5e685f;
  --line: #ded8cd;
  --line-strong: #c8c0b2;
  --primary: #2d5a42;
  --primary-hover: #224432;
  --primary-soft: #e7f1eb;
  --amber: #875905;
  --amber-soft: #fcf4e4;
  --shadow-sm: 0 1px 3px rgba(29, 35, 30, 0.05);
  --shadow-md: 0 4px 16px rgba(29, 35, 30, 0.07);
  --radius-sm: 6px;
  --radius-md: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .brand-tagline { display: none; }
}

.site-nav {
  display: flex;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 150ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Disclosure Banner */
.disclosure-banner {
  background: var(--amber-soft);
  border-bottom: 1px solid rgba(135, 89, 5, 0.18);
  color: var(--amber);
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
}

/* Hero */
.hero-section {
  padding: 50px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.5;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 40px 0 60px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  box-shadow: var(--shadow-sm);
}

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

.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}

.guide-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.category-badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-date {
  color: var(--muted);
}

.card-title {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card-title a {
  text-decoration: none;
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary);
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.card-cta {
  margin-top: auto;
}

.read-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.read-link:hover {
  text-decoration: underline;
}

/* Article Page */
.article-container {
  max-width: 780px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

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

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

.breadcrumb-category {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .article-body { padding: 22px 16px; }
}

.article-meta-chips {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.category-chip {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.date-chip {
  color: var(--muted);
  font-size: 13px;
}

.article-hero-image {
  margin: 10px 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.article-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: #faf9f6;
}

.article-hero-image figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.article-body h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.article-body h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.article-body h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 26px 0 10px;
  color: var(--text);
}

.article-body p {
  margin-bottom: 18px;
  color: #2b332c;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-body code {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* Links & Buttons */
.article-body a.affiliate-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a.affiliate-link:hover {
  color: var(--primary-hover);
}

.product-cta {
  margin: 24px 0;
  padding: 16px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f59e0b;
  color: #111827;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 150ms ease;
}

.amazon-btn:hover {
  background: #d97706;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-arrow {
  font-size: 17px;
  font-weight: 900;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-disclosure h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--text);
}

.footer-disclosure p {
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: #8c968d;
}
