/* =============================================
   EcoOrganise — Premium Magazine Design System
   Luxury digital shelter magazine aesthetic
   Wirecutter meets Architectural Digest
   ============================================= */


/* --- CSS Variables (Premium Luxury Palette) --- */
:root {
  /* Backgrounds */
  --bg-body:       #FBFBFA;      /* Soft premium bone/alabaster ivory */
  --bg-card:       #FFFFFF;      /* Pure white for floating UI panels */
  --bg-accent:     #F3F2EE;      /* Subtle warm grey for image backgrounds */
  
  /* Text Colors */
  --text-primary:  #1A2421;      /* Deep charcoal forest black */
  --text-secondary:#2D3734;      /* Premium reading text */
  --text-muted:    #606A66;      /* Muted grey for disclosures */
  --text-light:    #8B949E;      /* Light grey for meta info */
  
  /* Brand Colors */
  --brand-green:   #2E4A3F;      /* Muted deep heritage sage/moss green */
  --brand-green-dark: #1F332B;   /* Deeper forest for hover states */
  --brand-gold:    #C49A6C;      /* Gold accent */
  
  /* Borders & Rules */
  --border-subtle: #E6E5E0;      /* Elegant warm grey sand separator */
  --border-light:  #F0EFEA;      /* Very light border */
  
  /* Shadows */
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:     0 4px 6px rgba(0,0,0,0.03);
  --shadow-lg:     0 10px 15px rgba(0,0,0,0.03);
  --shadow-xl:     0 20px 25px rgba(0,0,0,0.05);
  
  /* Spacing */
  --space-xs:      0.25rem;
  --space-sm:      0.5rem;
  --space-md:      1rem;
  --space-lg:      1.5rem;
  --space-xl:      2rem;
  --space-2xl:     3rem;
  --space-3xl:     4rem;
  
  /* Radius */
  --radius-sm:     6px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  
  /* Typography */
  --font-serif:    Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;           /* 18px premium reading size */
  line-height: 1.75;             /* Generous line height */
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;              /* Editorial line height */
  letter-spacing: -0.02em;       /* Precise tracking */
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.5rem; }

a { color: var(--brand-green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-green-dark); text-decoration: underline; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow { max-width: 800px; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 251, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__logo span { color: var(--brand-gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--brand-green); }
.nav__link--active { color: var(--brand-green); }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-body) 0%, #F8F7F5 100%);
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-green);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--brand-green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
}

.btn--outline:hover {
  background: var(--brand-green);
  color: var(--white);
}

/* --- Section --- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-card);
}

.section__header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-green);
  margin-bottom: 1rem;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Article Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.article-content {
  position: relative;
}

/* --- Article Header --- */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-subtle);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-meta__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta__item::before {
  content: "•";
  color: var(--brand-gold);
  margin-right: 0.5rem;
}

.article-meta__item:first-child::before { content: none; }

.article-header h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* --- Article Body --- */
.article-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;              /* Constrained reading width */
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 1.75rem;
  text-align: justify;
}

.article-body strong { font-weight: 600; color: var(--text-primary); }
.article-body em { font-style: italic; }

/* --- Pull Quotes --- */
.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--brand-green);
  border-left: 4px solid var(--brand-gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pull-quote::before {
  content: "“";
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.4rem;
  margin-right: 0.25rem;
  color: var(--brand-gold);
}

.pull-quote::after {
  content: "”";
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.4rem;
  margin-left: 0.25rem;
  color: var(--brand-gold);
}

/* --- Info Callouts --- */
.info-callout {
  background: var(--bg-card);
  border-left: 4px solid var(--brand-green);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-callout h3 {
  margin-top: 0;
  color: var(--brand-green);
}

.info-callout p:last-child { margin-bottom: 0; }

/* --- Image Frames --- */
.figure {
  margin: 2.5rem 0;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  display: block;
}

.figure-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

.figure-caption strong { font-style: normal; color: var(--text-primary); }

/* --- Amazon Product Cards (Wirecutter-Grade) --- */
.amazon-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  transition: box-shadow 0.2s ease;
}

.amazon-product-card:hover {
  box-shadow: var(--shadow-lg);
}

.amazon-product-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-accent);
  display: block;
}

.amazon-product-card__content {
  padding: 2rem;
}

.amazon-product-card__title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.amazon-product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--brand-gold);
}

.amazon-product-card__rating::before {
  content: "★★★★★";
}

.amazon-product-card__rating span {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.amazon-product-card__price {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
}

.amazon-product-card__cta {
  display: inline-block;
  background: var(--brand-green);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.amazon-product-card__cta:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.amazon-product-card__cta::after {
  content: " →";
}

/* --- Disclosure Banner --- */
.affiliate-disclosure {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.affiliate-disclosure strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* --- Table of Contents --- */
.table-of-contents {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  color: var(--brand-green);
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.table-of-contents li::before {
  content: "•";
  color: var(--brand-gold);
  position: absolute;
  left: 0;
}

.table-of-contents a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.table-of-contents a:hover {
  color: var(--brand-green);
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  color: var(--brand-green);
}

/* --- Top Editor Picks --- */
.top-editor-picks {
  position: sticky;
  top: 2rem;
  width: 100%;
}

.top-editor-picks__item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.top-editor-picks__item:last-child { border-bottom: none; }

.top-editor-picks__thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-accent);
}

.top-editor-picks__content h4 {
  font-size: 0.9375rem;
  margin: 0 0 0.25rem 0;
}

.top-editor-picks__content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

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

.breadcrumb__sep {
  color: var(--brand-gold);
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  margin-bottom: 2rem;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer__logo span { color: var(--brand-gold); }

.footer__nav h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer__nav ul { list-style: none; }

.footer__nav li { margin-bottom: 0.5rem; }

.footer__nav a {
  color: #A0AAB5;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__bottom p {
  color: #A0AAB5;
  margin: 0;
  font-size: 0.8125rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .top-editor-picks {
    position: static;
  }
  
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-body);
    flex-direction: column;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav__links.active { display: flex; }
  
  .nav__hamburger { display: block; }
  
  .article-header h1 { font-size: 2rem; }
  
  .pull-quote { font-size: 1.125rem; }
  
  .amazon-product-card__image { height: 180px; }
  
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  
  .article-body { font-size: 1rem; }
  
  .article-layout { padding: 2rem 0; }
  
  .amazon-product-card__price { font-size: 1.5rem; }
}

/* --- Print Styles --- */
@media print {
  .sidebar, .footer, .affiliate-disclosure, .nav, .breadcrumb {
    display: none !important;
  }
  
  .article-layout { grid-template-columns: 1fr; }
  
  body { background: white; color: black; }
  
  a { color: var(--brand-green); text-decoration: underline; }
}

/* --- ClickBank Product Cards --- */
.clickbank-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  transition: box-shadow 0.2s ease;
}

.clickbank-product-card:hover {
  box-shadow: var(--shadow-lg);
}

.clickbank-product-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-accent);
  display: block;
}

.clickbank-product-card__content {
  padding: 1.5rem 2rem;
}

.clickbank-product-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.clickbank-product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--brand-gold);
}

.clickbank-product-card__rating::before {
  content: "★★★★☆";
}

.clickbank-product-card__price {
  color: var(--brand-green);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.clickbank-product-card__cta {
  display: inline-block;
  background: var(--brand-green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.9375rem;
}

.clickbank-product-card__cta:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Email Capture Form --- */
.newsletter-form {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-accent) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

.newsletter-form input[type="email"] {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 400px;
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-form button {
  background: var(--brand-green);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
}

.skip-link{position:absolute;left:-9999px;top:0;background:#1e3a8a;color:#fff;padding:.5rem 1rem;z-index:9999;border-radius:0 0 6px 0}
.skip-link:focus{left:0}


/* --- Article Featured Image --- */
.article-featured-image {
  margin: 2rem -2rem 3rem;
  border-radius: 0;
  overflow: hidden;
}
.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .article-featured-image {
    margin: 1.5rem -1.5rem 2rem;
    max-height: 350px;
  }
}
