:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2522;
  --muted: #62706a;
  --line: #dfe6df;
  --primary: #116149;
  --primary-strong: #0a4434;
  --accent: #f0b84f;
  --accent-soft: #fff2cf;
  --shadow: 0 16px 45px rgba(24, 49, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(223, 230, 223, 0.85);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 220px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 44px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0;
}

.hero-content h1,
.section-heading h2,
.newsletter h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

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

.primary:hover,
.primary:focus-visible {
  background: var(--primary-strong);
}

.ghost {
  border-color: var(--line);
  background: var(--surface);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  max-width: 120px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.disclosure,
.section,
.newsletter,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.disclosure {
  padding: 16px 18px;
  border: 1px solid #f1d38c;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #5b4217;
}

.section {
  padding: 88px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.newsletter h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.category-grid,
.product-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.category-card:focus-visible,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

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

.recommendations {
  scroll-margin-top: 92px;
}

.filter-row {
  margin: 0 0 24px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card.is-hidden {
  display: none;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 18px;
}

.badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3,
.method-grid h3 {
  margin: 14px 0 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.product-card p,
.method-grid p {
  margin: 0;
  color: var(--muted);
}

.product-meta {
  display: grid;
  gap: 6px;
  margin: auto 0 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-link {
  width: 100%;
  background: var(--accent);
  color: #2c210d;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid > div {
  padding: 24px;
  border-left: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.62);
}

.step {
  color: var(--primary);
  font-weight: 900;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  align-items: center;
  gap: 28px;
  margin-top: 92px;
  padding: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.newsletter .eyebrow {
  color: var(--accent);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
}

.newsletter-form .primary {
  background: var(--accent);
  color: #2c210d;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0;
  color: var(--muted);
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: block;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card span {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin: 12px 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.section-action {
  margin-top: 20px;
}

.page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 24px;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.page-hero p:not(.eyebrow),
.content-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.content-section {
  display: grid;
  gap: 12px;
  padding: 28px 0 64px;
}

.content-section h2 {
  margin: 20px 0 0;
  font-size: 1.35rem;
}

.content-section a,
.page-hero a {
  color: var(--primary);
  font-weight: 800;
}

.wide-page {
  width: min(1120px, calc(100% - 32px));
}

.article-index {
  padding-bottom: 72px;
}

.article-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.article-page h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.article-page h2 {
  margin: 36px 0 12px;
  font-size: 1.55rem;
}

.article-page p,
.article-page li {
  color: var(--muted);
  font-size: 1.05rem;
}

.article-page strong {
  color: var(--text);
}

.article-meta {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
  margin: 0 0 30px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 920px) {
  .hero,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .nav {
    width: min(100% - 24px, 1120px);
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 212px;
    max-width: calc(100vw - 104px);
  }

  .nav-toggle {
    flex: 0 0 auto;
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links a {
    padding: 12px;
    border-radius: 6px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: #edf7f2;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 38px 0;
  }

  .hero-content h1 {
    font-size: clamp(2.45rem, 13vw, 3.25rem);
  }

  .section {
    padding-top: 60px;
  }

  .section-heading {
    display: block;
  }

  .category-grid,
  .product-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding: 24px;
  }

  .newsletter-form,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .page {
    width: min(100% - 32px, 900px);
    padding: 42px 0 16px;
  }

  .page-hero {
    padding: 32px 0 22px;
  }

  .page-hero h1,
  .article-page h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.12;
  }

  .article-page {
    width: min(100% - 32px, 860px);
    padding: 38px 0 64px;
  }

  .article-page h2 {
    margin-top: 30px;
    font-size: 1.35rem;
  }

  .article-page p,
  .article-page li,
  .page-hero p:not(.eyebrow),
  .content-section p {
    font-size: 1rem;
  }

  .article-hero-image {
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
  }

  .article-card {
    min-height: 0;
  }
}
