:root {
  --ivory: #f7f3ec;
  --paper: #fffdf8;
  --ink: #22241f;
  --muted: #666b62;
  --sage: #6f7d69;
  --sage-dark: #42503f;
  --sage-pale: #e3e8df;
  --clay: #b66f49;
  --line: #dcd8cf;
  --shadow: 0 18px 45px rgba(39, 45, 35, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 8rem; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(111, 125, 105, .12), transparent 26rem),
    var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(182, 111, 73, .55);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 236, .93);
  border-bottom: 1px solid rgba(64, 72, 59, .12);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--sage-dark);
  border-radius: 50% 50% 46% 46%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
  letter-spacing: -.07em;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.13);
}

.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a {
  color: #454a43;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover { color: var(--clay); }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-top: clamp(3.4rem, 8vw, 7rem);
  padding-bottom: clamp(3.4rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--clay);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 { margin-bottom: 1.25rem; font-size: clamp(3.15rem, 7vw, 6.8rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { margin-bottom: .55rem; font-size: 1.45rem; }

.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1.15rem;
  border: 1px solid var(--sage-dark);
  border-radius: 999px;
  color: white;
  background: var(--sage-dark);
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); background: #303b2e; }
.button.secondary { color: var(--sage-dark); background: transparent; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px 18px 18px -16px;
  border: 1px solid rgba(111,125,105,.36);
  border-radius: 46% 46% 18px 18px;
  z-index: -1;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 48% 48% 18px 18px;
  box-shadow: var(--shadow);
}
.image-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 230px;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 8px 24px rgba(30,35,28,.12);
  color: var(--sage-dark);
  font-size: .82rem;
  font-weight: 750;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head p { max-width: 34rem; margin: 0; color: var(--muted); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.guide-card {
  grid-column: span 4;
  min-height: 285px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  box-shadow: 0 5px 22px rgba(39,45,35,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(111,125,105,.65);
  box-shadow: var(--shadow);
}
.guide-card.featured {
  grid-column: span 8;
  min-height: 360px;
  color: white;
  background:
    linear-gradient(90deg, rgba(28,35,27,.92), rgba(28,35,27,.42)),
    url('/images/cleverly-kept-home-hero.webp') center / cover;
  border: none;
}
.guide-card.featured p { color: rgba(255,255,255,.78); max-width: 30rem; }
.guide-card.featured .card-meta { color: #e1c7b6; }
.guide-card:nth-child(3n+2) { background: #eff1ec; }
.guide-card:nth-child(4n+3) { background: #f2ebe3; }

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--clay);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.guide-card p { margin: .75rem 0 0; color: var(--muted); }
.card-arrow { margin-top: 1.2rem; font-size: 1.25rem; }

.principles {
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 34px;
  color: white;
  background: var(--sage-dark);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
}
.principles p { color: rgba(255,255,255,.72); }
.principle-list { display: grid; gap: 1rem; }
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.principle strong { color: #e7c5ae; font-family: Georgia, serif; font-size: 1.4rem; }
.principle p { margin: 0; }

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: #efebe4;
}
.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}
.footer-wrap p { margin: .5rem 0 0; max-width: 38rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: .7rem 1.2rem; }
.footer-links a { color: var(--sage-dark); font-weight: 700; text-decoration: none; }
.copyright { grid-column: 1 / -1; color: #777b73; font-size: .82rem; }

.article-shell { max-width: 850px; margin: 0 auto; padding: 0 1.5rem; }
.article-head { padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem 2.5rem; }
.article-head h1 { max-width: 820px; font-size: clamp(2.7rem, 6vw, 5.6rem); }
.article-deck { max-width: 690px; color: var(--muted); font-size: 1.18rem; }
.breadcrumbs { margin-bottom: 1.5rem; color: var(--sage-dark); font-size: .86rem; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.5rem; color: #73776f; font-size: .86rem; }

.article-visual {
  margin: 0 auto 3rem;
  max-width: 1040px;
  padding: 0 1.5rem;
}
.article-visual img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }

.prose { padding-bottom: 4rem; }
.prose h2 { margin-top: 3.1rem; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: #444940; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .7rem; }
.prose a { color: var(--sage-dark); font-weight: 700; }

.quick-take, .checklist, .note-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--sage-pale);
}
.quick-take { border-left: 5px solid var(--sage); }
.quick-take strong, .checklist strong, .note-box strong { color: var(--sage-dark); }
.quick-take p:last-child, .note-box p:last-child { margin-bottom: 0; }
.checklist { background: #f2e8df; }
.checklist ul { margin-bottom: 0; }

.affiliate-note {
  margin: 1.25rem 0 2.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .72);
  font-size: .92rem;
}
.affiliate-note strong { color: var(--sage-dark); }

.product-card {
  margin: 3rem 0;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid rgba(111, 125, 105, .45);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(39, 45, 35, .07);
}
.product-card h2 { margin-top: 0; }
.product-label {
  margin: 0 0 .75rem;
  color: var(--clay) !important;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-button { margin-top: .5rem; color: white !important; }
.product-button span { margin-left: .45rem; }

.product-grid {
  margin: 1.75rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.product-grid .product-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-grid .product-card h3 {
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}
.product-grid .product-button { margin-top: auto; }

.numbered {
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.numbered > div {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.numbered > div::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}
.numbered h3 { margin: 0 0 .35rem; font-family: inherit; font-size: 1.03rem; font-weight: 800; letter-spacing: 0; }
.numbered p { margin: 0; }

.related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-links a {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
}

.page-head { max-width: 800px; padding: 5rem 0 2rem; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.standard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.standard-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }

.social-start { padding-top: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.social-start p { margin: 0 0 .7rem; }
.jump-links { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 1.5rem; }
.jump-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--sage); border-radius: 10px; background: var(--paper); color: var(--sage-dark); font-size: .95rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.jump-links a:hover { background: var(--sage-pale); }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 14px; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--paper); }
.comparison-table th, .comparison-table td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table thead th { background: var(--sage-pale); color: var(--sage-dark); }
.comparison-table tbody th { font-weight: 650; }
@media (max-width: 600px) { .comparison-table th, .comparison-table td { padding: .75rem; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 660px; }
  .hero-visual { max-width: 700px; }
  .guide-card, .guide-card.featured { grid-column: span 6; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: .2rem; }
  .nav-links a { white-space: nowrap; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .guide-card, .guide-card.featured { grid-column: 1 / -1; min-height: 260px; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-wrap { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
  .related-links, .standard-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .image-note { position: static; margin-top: .75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
