:root {
  color-scheme: light;
  --ink: #18251f;
  --muted: #5d6b63;
  --soft: #f4f7f1;
  --paper: #fffdf8;
  --line: #dce6dd;
  --green: #206a4b;
  --green-deep: #123d31;
  --teal: #197684;
  --sun: #d99934;
  --clay: #c66145;
  --blue: #2b5b82;
  --shadow: 0 18px 48px rgba(18, 61, 49, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

p,
ul,
ol {
  margin-top: 0;
}

button,
input,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(220, 230, 221, 0.8);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #33433a;
  font-size: 0.94rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span:not(.sr-only) {
  width: 19px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: min(760px, 82vh);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 31, 25, 0.78), rgba(10, 31, 25, 0.18) 54%, rgba(10, 31, 25, 0.08)),
    url("../assets/home-hydroponics-hero.jpg") center / cover no-repeat;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper));
  z-index: -1;
}

.hero-inner,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 72px 0 108px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  background: #18553c;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button-secondary {
  background: var(--teal);
  border-color: var(--teal);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #105f6d;
}

.section {
  padding: 82px 0;
}

.section-tight {
  padding: 46px 0 72px;
}

.band-soft {
  background: var(--soft);
}

.band-dark {
  background: var(--green-deep);
  color: #eef8ef;
}

.band-dark .section-kicker {
  color: #f4bd63;
}

.band-dark p,
.band-dark li {
  color: #d9e8dd;
}

.intro-grid,
.split,
.method-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

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

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #e5f1e8;
  color: var(--green);
  font-weight: 900;
  font-size: 0.85rem;
}

.text-link {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.status-note {
  margin-top: auto;
  color: var(--clay);
  font-weight: 800;
}

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

.metric {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--teal);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.method-list {
  max-width: 660px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 2px;
  background: var(--sun);
}

.feature-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.feature-row span {
  color: var(--clay);
  font-weight: 900;
}

.feature-row strong {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.site-footer {
  padding: 56px 0 28px;
  background: #102820;
  color: #dbe8df;
}

.footer-brand .brand-mark {
  background: #e8f2e8;
  color: #102820;
}

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #aebfb4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 10px;
  color: #dbe8df;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aebfb4;
}

.article-hero {
  padding: 70px 0 52px;
  background: linear-gradient(135deg, #f2f8f0, #fffaf0);
  border-bottom: 1px solid var(--line);
}

.article-hero .container {
  max-width: 920px;
}

.article-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6.6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.article-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 44px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--green);
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  margin: 38px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.article-content h3 {
  margin-top: 26px;
}

.article-content p,
.article-content li {
  color: #3f5047;
}

.callout {
  margin: 28px 0;
  padding: 22px;
  border-left: 5px solid var(--sun);
  border-radius: var(--radius);
  background: #fff8e8;
}

.source-list a {
  color: var(--blue);
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

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

th {
  background: #edf4ed;
  color: #21352a;
}

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

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfdcd2;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.result-box {
  min-height: 86px;
  display: grid;
  align-content: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: #edf7f8;
  color: #17424a;
}

.result-box strong {
  font-size: 1.7rem;
  line-height: 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #405249;
  font-size: 0.9rem;
}

.content-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.content-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: flex-start;
  }

  .hero {
    min-height: 72vh;
  }

  .intro-grid,
  .split,
  .method-grid,
  .footer-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .mini-dashboard,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding: 34px 0 54px;
  }

  .hero-inner {
    padding: 64px 0 92px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(10, 31, 25, 0.82), rgba(10, 31, 25, 0.34)),
      url("../assets/home-hydroponics-hero.jpg") center / cover no-repeat;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-hero {
    padding: 52px 0 42px;
  }
}
