/* ==========================================================================
   Homewise Living — Modern Organic Living Design System
   Visual Identity: Premium Editorial Magazine + Modern Shopping Guide
   ========================================================================== */

/* ── DESIGN TOKENS & CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Surface Colors */
  --bg-primary: #F7F5F0;          /* Warm Ivory (Primary background) */
  --bg-secondary: #E9E2D6;        /* Soft Beige (Secondary background) */
  --bg-card: #FFFFFF;             /* Pure White (Card surface) */
  --bg-sage: #DCE3D5;             /* Sage Green surface */
  --bg-subtle: #F2EFE9;           /* Light neutral surface */

  /* Brand Signature Colors */
  --brand-forest: #34483B;        /* Forest Green (Signature brand) */
  --brand-forest-hover: #26362C;  /* Dark Forest hover */
  --brand-sage: #DCE3D5;          /* Sage Green */
  --brand-sage-dark: #34483B;     /* Primary link color */
  --accent-terracotta: #C49A72;   /* Warm Terracotta */
  --accent-terracotta-hover: #B0855D;

  /* Text & Typography Colors */
  --text-primary: #292D29;        /* Charcoal */
  --text-secondary: #5A5D5A;      /* Refined Charcoal */
  --text-muted: #77776F;          /* Muted Gray */
  --border-color: #E9E2D6;        /* Soft Beige border */
  --border-light: #F0EDE6;

  /* Typography Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Geometry & Elevation */
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 6px rgba(41, 45, 41, 0.04);
  --shadow-md: 0 6px 20px rgba(41, 45, 41, 0.06);
  --shadow-lg: 0 12px 32px rgba(41, 45, 41, 0.09);
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.25s ease;

  /* Backward Compatibility Aliases */
  --cream: var(--bg-primary);
  --white: var(--bg-card);
  --s50: var(--bg-primary);
  --s100: var(--bg-secondary);
  --s200: var(--brand-sage);
  --s400: var(--text-muted);
  --s600: var(--text-muted);
  --s800: var(--text-primary);
  --s900: var(--brand-forest);
  --sage: var(--brand-forest);
  --sage-l: var(--brand-sage);
  --sage-d: var(--brand-forest);
  --terra: var(--accent-terracotta);
  --terra-l: #FDF1EB;
  --tp: var(--text-primary);
  --ts: var(--text-muted);
  --tm: var(--text-muted);
  --bd: var(--border-color);
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --r: var(--radius-md);
  --rs: var(--radius-sm);
  --rxs: 4px;
}

/* ── RESET & BASE ELEMENTS ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-forest);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

ul, ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

blockquote {
  border-left: 3px solid var(--brand-forest);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  padding: 16px 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ── EDITORIAL TYPOGRAPHY ──────────────────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 12px 0 16px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 36px 0 16px;
}

h3 {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
  color: var(--text-secondary);
}

article p, article li {
  font-size: 17px;
  line-height: 1.85;
}

small {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── LAYOUT & CONTAINERS ───────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── HEADER & NAVIGATION ───────────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 24px;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-forest);
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.site-title:hover {
  text-decoration: none;
  color: var(--brand-forest-hover);
}

.brand-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  stroke: var(--brand-forest);
  flex-shrink: 0;
}

.brand-icon-light {
  stroke: var(--brand-sage);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: var(--transition-fast);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-forest);
  text-decoration: none;
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-forest);
  border-radius: var(--radius-pill);
}

.nav-cta {
  background: var(--brand-forest) !important;
  color: var(--bg-card) !important;
  padding: 7px 18px !important;
  border-radius: var(--radius-pill);
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: var(--brand-forest-hover) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* ── HERO SPLIT SECTION ────────────────────────────────────────────────── */
.hero-split {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 440px;
  min-height: 440px;
}

.hero-left {
  padding: 60px 48px 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  max-width: 680px;
  margin-left: auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-terracotta);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-forest);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 500px;
}

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

.hero-right {
  display: flex;
  flex-direction: column;
  background: var(--bg-subtle);
}

/* ── HERO FEATURED CARD ────────────────────────────────────────────────── */
.hero-featured {
  flex: 1;
  background: var(--bg-card);
}

.hf-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hf-link:hover {
  text-decoration: none;
}

.hf-image {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 230px;
  background: var(--bg-secondary);
}

.hf-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.hf-link:hover .hf-image img {
  transform: scale(1.04);
}

.hf-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-forest);
  color: var(--bg-card);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.hf-body {
  padding: 20px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.hf-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin-bottom: 6px;
  display: block;
}

.hf-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hf-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.hf-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-forest);
}

/* ── HERO SIDEBAR LIST ─────────────────────────────────────────────────── */
.hero-sidebar {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.hs-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}

.hs-item:last-child {
  border-bottom: none;
}

.hs-item:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}

.hs-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-terracotta);
  min-width: 20px;
  flex-shrink: 0;
}

.hs-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.hs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hs-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-forest);
  margin-bottom: 2px;
}

.hs-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hs-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── TRUST BAR ─────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
}

.trust-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
}

.trust-item {
  flex: 1;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--border-color);
}

.trust-item:last-child {
  border-right: none;
}

.trust-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-forest);
  line-height: 1;
}

.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 110px;
}

/* ── FILTER CHIPS & SEARCH BAR ─────────────────────────────────────────── */
.chips-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
}

.chips-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chips-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.chips-row {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
  display: inline-block;
  line-height: 1.4;
}

.filter-chip:hover {
  border-color: var(--brand-forest);
  color: var(--brand-forest);
}

.filter-chip.active {
  background: var(--brand-forest);
  border-color: var(--brand-forest);
  color: var(--bg-card);
  font-weight: 600;
}

.search-input {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
  width: min(240px, 100%);
}

.search-input:focus {
  border-color: var(--brand-forest);
  box-shadow: 0 0 0 3px rgba(52, 72, 59, 0.12);
}

/* ── HOME LAYOUT & SECTIONS ────────────────────────────────────────────── */
.home-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.home-main {
  min-width: 0;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-forest);
}

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

/* ── POST GRID & CARDS ─────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: block;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

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

.post-card:focus-within {
  outline: 2px solid var(--brand-forest);
  outline-offset: 2px;
}

.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link:hover {
  text-decoration: none;
}

.card-media {
  display: block;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.post-card:hover .card-media img {
  transform: scale(1.04);
}

.card-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  box-shadow: var(--shadow-sm);
}

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

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.post-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-forest);
}

/* ── CATEGORY HUB GRID ─────────────────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-fast);
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.hub-card:hover {
  border-color: var(--brand-forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.hub-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.hub-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
}

.hub-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hub-count {
  font-size: 12px;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-top: auto;
}

/* ── WIDE CARDS (Continue Reading) ─────────────────────────────────────── */
.wide-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.post-card-wide {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

.post-card-wide .card-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  text-decoration: none;
  color: inherit;
}

.wide-thumb {
  height: 140px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.wide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.post-card-wide:hover .wide-thumb img {
  transform: scale(1.04);
}

.wide-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin-bottom: 6px;
}

.wide-body h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.wide-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── SIDEBAR WIDGETS ───────────────────────────────────────────────────── */
.sidebar-newsletter {
  background: var(--brand-forest);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  color: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.snl-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sage);
  margin-bottom: 10px;
}

.sidebar-newsletter h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-card);
  margin-bottom: 8px;
  line-height: 1.25;
}

.sidebar-newsletter p {
  font-size: 13px;
  color: var(--brand-sage);
  line-height: 1.6;
  margin-bottom: 18px;
}

.snl-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-card);
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.snl-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.snl-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-sage);
}

.snl-btn {
  width: 100%;
  padding: 10px;
  background: var(--bg-primary);
  color: var(--brand-forest);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.snl-btn:hover {
  background: var(--bg-card);
  transform: translateY(-1px);
}

.snl-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65) !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

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

.sidebar-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.trending-list, .start-list {
  display: flex;
  flex-direction: column;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.trending-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-forest);
  margin-bottom: 2px;
}

.trending-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.start-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.start-link:last-child {
  border-bottom: none;
}

.start-link:hover {
  color: var(--brand-forest);
  text-decoration: none;
}

.start-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-forest);
  flex-shrink: 0;
}

/* ── ARTICLE READING VIEW ──────────────────────────────────────────────── */
.post-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
}

.post-main {
  min-width: 0;
  max-width: 740px;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  color: var(--brand-forest);
}

.breadcrumb span {
  color: var(--text-primary);
  font-weight: 500;
}

.article-tag-pill {
  display: inline-block;
  background: var(--brand-sage);
  color: var(--brand-forest);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-forest);
  color: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.meta-sep {
  opacity: 0.4;
}

.post-main picture img {
  margin: 22px 0 28px;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ── CALLOUT BOXES & EDITORIAL ELEMENTS ────────────────────────────────── */
.quick-answer {
  background: var(--bg-subtle);
  border-left: 4px solid var(--brand-forest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
}

.quick-answer strong {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-forest);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.takeaways {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.takeaways h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin: 0 0 12px;
}

.takeaways ul {
  padding-left: 20px;
}

.takeaways li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.quick-win {
  background: #F3F7F2;
  border: 1px solid #CAD9C5;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
}

.quick-win h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin: 0 0 8px;
}

.quick-win p {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
}

.myth-fact {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}

.myth-header {
  background: #FDF3F1;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B23B2B;
  border-bottom: 1px solid var(--border-color);
}

.myth-body {
  padding: 14px 18px;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 15px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.fact-header {
  background: #F2F7F2;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-forest);
  border-bottom: 1px solid var(--border-color);
}

.fact-body {
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 15px;
  background: var(--bg-card);
}

.editorial-notice {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-forest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 32px 0 24px;
}

.editorial-notice h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin: 0 0 8px;
}

.editorial-notice p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin: 0 0 12px;
}

.toc ol {
  padding-left: 20px;
}

.toc li {
  font-size: 14px;
  margin-bottom: 6px;
}

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

.toc a:hover {
  color: var(--brand-forest);
}

.sidebar-toc {
  margin: 0;
}

.related, .next-article, .more-in-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.related h2, .next-article h2, .more-in-tag h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin: 0 0 14px;
}

.next-link {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.next-link:hover {
  color: var(--brand-forest);
}

/* ── AFFILIATE DESIGN SYSTEM ───────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.product-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.product-badge {
  display: inline-block;
  background: var(--brand-sage);
  color: var(--brand-forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

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

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-merchant {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-forest);
  color: var(--bg-card);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-affiliate:hover {
  background: var(--brand-forest-hover);
  color: var(--bg-card);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-terracotta {
  background: var(--accent-terracotta);
}

.btn-terracotta:hover {
  background: var(--accent-terracotta-hover);
}

/* ── COMPARISON TABLE ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

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

.comp-table th {
  background: var(--bg-subtle);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.comp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

.comp-table tr:hover td {
  background: rgba(220, 227, 213, 0.15);
}

.comp-table .winner-col {
  background: rgba(220, 227, 213, 0.3);
  font-weight: 600;
  color: var(--brand-forest);
}

/* ── PROS & CONS ──────────────────────────────────────────────────────── */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.pros-box {
  background: #F4F8F4;
  border: 1px solid #CAD9C5;
  border-radius: var(--radius-md);
  padding: 20px;
}

.cons-box {
  background: #FDF6F3;
  border: 1px solid #E9D2C7;
  border-radius: var(--radius-md);
  padding: 20px;
}

.pros-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-forest);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cons-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-box ul, .cons-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-box li, .cons-box li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}

.pros-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-forest);
  font-weight: 700;
}

.cons-box li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.affiliate-disclosure {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-sage);
}

/* ── PINTEREST VERTICAL IMAGE SUPPORT ──────────────────────────────────── */
.pinterest-card {
  max-width: 420px;
  margin: 32px auto;
  text-align: center;
}

.pinterest-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.pin-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E60023;
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: var(--transition-fast);
}

.pin-save-btn:hover {
  background: #B8001B;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--brand-forest);
  color: var(--bg-card);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-forest-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  border-color: var(--brand-forest);
  color: var(--brand-forest);
  text-decoration: none;
}

/* ── TAG & ABOUT PAGES ─────────────────────────────────────────────────── */
.tag-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 44px 24px 32px;
  margin-bottom: 32px;
}

.tag-hero h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tag-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand-forest);
  color: var(--brand-sage);
  padding: 56px 24px 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--brand-sage);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 10px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-card);
  display: inline-flex;
  align-items: center;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-card);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--brand-sage);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--bg-card);
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--brand-sage);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--brand-sage);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--bg-card);
}

/* ── BACK TO TOP BUTTON ────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--brand-forest);
  font-size: 18px;
  font-weight: 700;
  display: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  z-index: 40;
}

.back-to-top.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--brand-forest);
  color: var(--bg-card);
  border-color: var(--brand-forest);
  transform: translateY(-2px);
}

/* ── RESPONSIVE DESIGN (Tablets & Mobile) ───────────────────────────────── */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-left {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 44px 24px 36px;
  }

  .home-layout,
  .post-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-sidebar,
  .post-sidebar {
    display: none;
  }

  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-inner {
    flex-wrap: wrap;
  }

  .trust-item {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--border-color);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 56px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-h1 {
    font-size: clamp(28px, 6.5vw, 38px);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .post-card-wide .card-link {
    grid-template-columns: 1fr;
  }

  .wide-thumb {
    height: 160px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .chips-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }
}
