:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #586360;
  --paper: #f8f7f2;
  --white: #ffffff;
  --line: #dfe6e2;
  --green: #1f6b54;
  --green-dark: #144232;
  --blue: #2d6f9f;
  --clay: #b05735;
  --gold: #d49b2a;
  --rose: #f6e9e6;
  --mint: #eaf5ef;
  --sky: #eaf3f8;
  --danger: #9f2727;
  --shadow: 0 20px 55px rgba(23, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

.skip-link {
  position: absolute;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  left: 18px !important;
  top: 18px !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(223, 230, 226, 0.95);
  background: rgba(248, 247, 242, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 850;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.93rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 750;
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  min-height: auto;
  padding: clamp(54px, 7vw, 84px) 0 48px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.card-kicker,
.ad-label {
  display: block;
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 5.15vw, 4.85rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.lede {
  max-width: 610px;
  margin: 20px 0 0;
  color: #3d4845;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 760;
  text-decoration: none;
}

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

.button.compact {
  flex: 0 0 auto;
}

.hero-media {
  margin: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  border-radius: 8px;
}

.hero-media picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 610px;
  margin: 30px 0 0;
  padding: 0;
}

.hero-facts div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-facts dt {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.alert-strip,
.monetization-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 50px;
  padding: 18px 20px;
  border: 1px solid #e7b9b3;
  border-radius: 8px;
  background: var(--rose);
}

.alert-strip strong {
  color: var(--danger);
  white-space: nowrap;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 54px;
  border: 1px solid var(--line);
  background: var(--line);
}

.guide-card {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
}

.guide-card:nth-child(2n) {
  background: var(--sky);
}

.guide-card:nth-child(3n) {
  background: var(--mint);
}

.guide-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.guide-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card p,
.article p,
.article li,
.monetization-band p {
  color: #3f4a47;
}

.monetization-band {
  border-color: #c9d7d2;
  background: #edf7f4;
}

.monetization-band h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.prose p:first-child {
  margin-top: 0;
}

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

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.checklist strong {
  color: var(--green-dark);
}

.sources ul,
.plain-list {
  margin: 0;
  padding-left: 1.2rem;
}

.sources li + li,
.plain-list li + li {
  margin-top: 9px;
}

.article-layout {
  width: min(920px, calc(100% - 36px));
}

.article {
  padding: clamp(42px, 7vw, 78px) 0 70px;
}

.article-header {
  margin-bottom: 42px;
}

.article-header h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
}

.article-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.callout {
  margin: 18px 0;
  padding: 28px;
  border: 1px solid #e4b6ad;
  border-radius: 8px;
  background: var(--rose);
}

.inline-ad,
.resource-box {
  margin: 20px 0 30px;
  padding: 20px;
  border: 1px dashed #a8bcb4;
  border-radius: 8px;
  background: #f3faf7;
}

.inline-ad p,
.resource-box p {
  margin: 0;
}

.resource-box h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.stool-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 34px;
}

.stool-chart article {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.stool-chart h2 {
  font-size: 1.2rem;
}

.stool-chart p {
  margin: 0;
  font-size: 0.93rem;
}

.stool-visual {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 6px;
  border-radius: 8px;
  background: #f3f5f0;
}

.stool-visual i {
  display: block;
  background: linear-gradient(180deg, #8d5b31, #5d391f);
}

.lumps {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lumps i {
  width: 25px;
  height: 21px;
  border-radius: 45% 55% 52% 48%;
}

.lumpy-log i,
.cracked i,
.smooth i {
  width: 82px;
  height: 31px;
  border-radius: 999px;
}

.lumpy-log i {
  box-shadow: inset 17px 0 0 rgba(55, 32, 17, 0.18), inset -18px 0 0 rgba(255, 255, 255, 0.08);
}

.cracked i {
  background: linear-gradient(90deg, #7c4b27 0 45%, #422817 45% 49%, #87562d 49%);
}

.smooth i {
  height: 24px;
  background: linear-gradient(180deg, #a46a35, #6b421f);
}

.blobs {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.blobs i {
  width: 28px;
  height: 24px;
  border-radius: 48%;
}

.mushy i {
  width: 78px;
  height: 34px;
  border-radius: 36% 62% 42% 58%;
  background: linear-gradient(180deg, #b17941, #765027);
}

.watery i {
  width: 84px;
  height: 24px;
  border-radius: 42%;
  background: linear-gradient(180deg, #b8894d, #8b6236);
}

.color-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.color-table article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.color-table h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.color-table p {
  grid-column: 2;
  margin: 0;
}

.swatch {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 50%;
}

.brown { background: #71461f; }
.green { background: #5a7a30; }
.yellow { background: #d8ad45; }
.black { background: #171413; }
.red { background: #9e2f2e; }
.pale { background: #d8c9a1; }

.two-column-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.note-box {
  padding: 18px;
  border: 1px solid #bcd4ca;
  border-radius: 8px;
  background: var(--mint);
}

.note-box.warning {
  border-color: #c7d6e3;
  background: var(--sky);
}

.note-box p {
  margin: 8px 0 0;
}

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

.mini-link-grid a,
.monetization-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-link-grid a {
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

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

.monetization-grid article p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 600px;
  margin: 8px 0 0;
}

.site-footer nav {
  align-content: flex-start;
}

code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: #edf1ef;
  font-size: 0.95em;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .two-column-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .guide-grid,
  .mini-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stool-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main,
  .article-layout,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .site-footer,
  .alert-strip,
  .monetization-band {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1,
  .article-header h1 {
    font-size: 2.45rem;
  }

  .guide-grid,
  .stool-chart,
  .color-table,
  .monetization-grid,
  .mini-link-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 190px;
  }

  .checklist li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .color-table article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .color-table p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }
}
