:root {
  --ink: #13211a;
  --muted: #5d6e63;
  --line: #d8e4dc;
  --paper: #fffefa;
  --soft: #f1f7f2;
  --leaf: #2d7652;
  --leaf-dark: #123d2c;
  --mint: #dff2e5;
  --sun: #f2c84b;
  --clay: #bd6c45;
  --berry: #7d3658;
  --sky: #d9eef4;
  --water: #89c6d4;
  --shadow: 0 18px 46px rgba(21, 45, 31, 0.1);
  color-scheme: light;
  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;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(45, 118, 82, 0.035) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 44px 44px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.narrow {
  width: min(760px, calc(100% - 32px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 12px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(19, 33, 26, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.94rem;
}

.main-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(180deg, rgba(241, 247, 242, 0.98), rgba(255, 254, 250, 0.98)),
    linear-gradient(120deg, var(--mint), var(--sky) 54%, #fff3c7);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 52px;
  padding: 58px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  letter-spacing: 0;
}

.hero-kicker {
  margin: 8px 0 0;
  color: var(--leaf-dark);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.18rem;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--leaf);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: white;
  color: var(--leaf-dark);
  border: 1px solid var(--line);
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.field-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--sun);
  background: #fff9df;
  border-radius: 6px;
}

.field-note strong {
  display: block;
}

.field-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-plant {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(219, 234, 247, 0.7), rgba(244, 247, 241, 0.95)),
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.8) 44% 56%, transparent 56%);
}

.hero-plant::before {
  content: "";
  position: absolute;
  width: 118px;
  height: 88px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: var(--clay);
  border-radius: 0 0 18px 18px;
}

.hero-plant span {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 34px;
  height: 140px;
  border-radius: 999px;
  background: var(--leaf);
  transform-origin: bottom center;
}

.hero-plant span:nth-child(1) {
  transform: translateX(-12px) rotate(-34deg);
}

.hero-plant span:nth-child(2) {
  height: 172px;
  transform: translateX(-50%) rotate(0deg);
  background: var(--leaf-dark);
}

.hero-plant span:nth-child(3) {
  transform: translateX(12px) rotate(34deg);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 0;
}

.hero-panel dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-panel dd {
  margin: 2px 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.section {
  padding: 54px 0;
}

.section.muted {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

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

.card,
.list-item,
.category-link,
.answer-box,
.related a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.card {
  padding: 18px;
  min-height: 236px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--leaf-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff3c7;
  color: #6f4d12;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-intro {
  margin: -2px 0 16px;
  color: var(--muted);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.diagnostic-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.diagnostic-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.diagnostic-grid strong {
  display: block;
  line-height: 1.35;
}

.check-panel {
  padding: 18px;
  border: 1px solid #eedba4;
  border-radius: 8px;
  background: #fff9df;
}

.check-panel h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.rank {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}

.card h3 a,
.list-item h2 a {
  text-decoration: none;
}

.card h3 a:hover,
.list-item h2 a:hover,
.related a:hover strong {
  color: var(--leaf);
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-link {
  padding: 18px;
  text-decoration: none;
}

.category-link strong,
.category-link span {
  display: block;
}

.category-link span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.page-hero,
.article-header {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap,
.article-header .wrap {
  padding: 48px 0;
}

.page-hero h1,
.article-header h1 {
  max-width: 860px;
  margin-top: 14px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.breadcrumb {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--leaf-dark);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 44px;
  padding: 44px 0 68px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

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

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

.article-body section {
  margin-bottom: 34px;
}

.article-body h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.article-body p,
.article-body li {
  color: #334239;
}

.article-body li + li {
  margin-top: 8px;
}

.answer-box {
  padding: 20px;
  background: #fbf7e8;
  border-color: #eedba4;
}

.answer-box h2 {
  color: #6f4d12;
}

.deep-dive {
  margin: 6px 0 34px;
}

.deep-dive > section {
  scroll-margin-top: 104px;
}

.editor-note {
  padding: 20px;
  border: 1px solid #cfe0d5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(137, 198, 212, 0.2), transparent 42%),
    white;
}

.editor-note strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-note p {
  margin: 0;
}

.signal-grid,
.case-grid,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.signal-grid div,
.case-grid article,
.choice-grid article,
.insight-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.signal-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.signal-grid p,
.case-grid p,
.choice-grid p,
.insight-list p {
  margin: 0;
}

.case-grid h3,
.choice-grid h3,
.insight-list h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.choice-grid article:first-child {
  border-color: #b7dbc4;
  background: #f2faf4;
}

.choice-grid article:nth-child(2) {
  border-color: #eedba4;
  background: #fff9df;
}

.choice-grid article:nth-child(3) {
  border-color: #e2c3c9;
  background: #fff6f7;
}

.compact-table table {
  min-width: 640px;
}

.compact-table th {
  color: var(--leaf-dark);
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: steps;
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
}

.step-list p {
  margin: 0;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.check-list {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.source-box {
  padding: 18px;
  border: 1px solid #cddce2;
  border-radius: 8px;
  background: #f2f8fa;
}

.source-box ul {
  margin-bottom: 0;
}

.context-links {
  display: grid;
  gap: 10px;
}

.context-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
}

.context-links a:hover strong {
  color: var(--leaf);
}

.context-links span,
.context-links em {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.context-links strong {
  display: block;
  margin: 3px 0 4px;
}

.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.related a {
  padding: 14px;
  text-decoration: none;
}

.related span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.article-list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px;
}

.list-item h2 {
  font-size: 1.2rem;
}

.list-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

th {
  background: var(--soft);
  font-size: 0.86rem;
}

td {
  color: #334239;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: white;
}

@media (max-width: 900px) {
  .header-inner,
  .section-head,
  .hero-grid,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid {
    min-height: auto;
    gap: 28px;
  }

  .cards,
  .category-grid,
  .diagnostic-grid,
  .related {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: static;
  }

  .wrap,
  .narrow {
    width: calc(100% - 22px);
    max-width: 1120px;
  }

  .brand,
  .brand span,
  .hero-copy,
  .hero-text,
  .section-head p,
  .page-hero p,
  .lead {
    min-width: 0;
    max-width: 100%;
  }

  .hero-text,
  .lead {
    overflow-wrap: anywhere;
  }

  .hero-grid {
    padding: 34px 0;
  }

  .hero-panel dl,
  .cards,
  .category-grid,
  .diagnostic-grid,
  .signal-grid,
  .case-grid,
  .choice-grid,
  .related {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .main-nav a {
    padding: 8px 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .page-hero .wrap,
  .article-header .wrap {
    padding: 34px 0;
  }

  .article-grid {
    padding-top: 24px;
  }

  .list-item {
    grid-template-columns: 1fr;
  }
}
