/* Standard Biochar — site stylesheet. No frameworks, no external fonts. */

:root {
  --charcoal: #2b2a27;
  --charcoal-deep: #1c1b19;
  --soil: #6b4a2e;
  --soil-deep: #4e3521;
  --moss: #4f6b3a;
  --moss-deep: #3b5230;
  --straw: #e9dcb4;
  --straw-light: #f4ecd6;
  --paper: #fbf8f0;
  --white: #ffffff;
  --ink: #2b2a27;
  --muted: #5b544a;
  --line: #d8cdb2;
  --focus: #3b5230;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3rem; }
a { color: var(--soil-deep); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:hover { color: var(--moss-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 48em) {
  .wrap { width: min(100% - 4rem, var(--wrap)); }
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* Header and navigation (no JS required) */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.55rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--moss-deep); border-bottom-color: var(--straw); }
.site-nav a[aria-current="page"] { color: var(--moss-deep); border-bottom-color: var(--moss); }

/* Sections */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section.alt { background: var(--straw-light); }
.section > .wrap > h2:first-child { margin-top: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--soil-deep);
  margin-bottom: 0.8rem;
}
.lede { font-size: 1.2rem; max-width: 46rem; color: var(--charcoal); }
.measure { max-width: 46rem; }
.notice {
  background: var(--straw-light);
  border-left: 5px solid var(--soil);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 52rem;
}
.section.alt .notice { background: var(--white); }

/* Hero and page heads */
.hero {
  background: linear-gradient(180deg, var(--straw-light) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding-block: clamp(3rem, 8vw, 6.5rem); max-width: 54rem; }
.hero h1 { margin-bottom: 0.5em; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }
.page-head { background: var(--straw-light); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 54rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  background: var(--moss-deep);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--moss-deep);
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--moss); border-color: var(--moss); color: var(--white); }
.btn-secondary { background: transparent; color: var(--soil-deep); border-color: var(--soil); }
.btn-secondary:hover { background: var(--straw-light); color: var(--soil-deep); border-color: var(--soil-deep); }

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card h3 { margin-bottom: 0.35em; }
.card p { flex: 1 1 auto; }
.card-link { font-weight: 700; margin-top: 0.75rem; display: inline-block; }
.section.alt .card { border-color: transparent; }

/* Numbered steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: step;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--moss-deep);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.3em; }

/* Definition-style lists (h3 + p pairs) */
.pairs { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.pair h3 { margin-bottom: 0.25em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--straw-light); color: var(--charcoal); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; caption-side: top; padding: 0.75rem 0.9rem; font-weight: 700; color: var(--charcoal); }

/* CTA band */
.cta { text-align: center; max-width: 44rem; }
.cta .btn { margin-top: 0.5rem; }

/* Forms */
.form-wrap { max-width: 46rem; }
.form { display: grid; gap: 1.25rem; }
.form-intro { color: var(--muted); }
.field { display: grid; gap: 0.35rem; }
.field label, legend { font-weight: 700; color: var(--charcoal); }
.hint { font-weight: 400; color: var(--muted); }
.req { color: var(--soil); font-weight: 700; }
.field-help { color: var(--muted); font-size: 0.92rem; margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--soil);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%232b2a27' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #a3341c; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem 1.1rem; margin: 0; min-width: 0; }
legend { padding: 0 0.4rem; }
.choices { display: grid; gap: 0.25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.choices label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0.25rem;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--moss-deep);
}
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.form .actions { margin-top: 0.25rem; }
.form-note { color: var(--muted); font-size: 0.95rem; }

/* Honeypot: visually removed, never prefilled. Bots fill it, people never see it. */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Footer */
.site-footer {
  background: var(--charcoal-deep);
  color: var(--straw-light);
  margin-top: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.site-footer a { color: var(--straw); }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { color: var(--straw); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-brand { font-weight: 800; font-size: 1.25rem; color: var(--white); margin-bottom: 0.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 0.3rem 0; min-height: 40px; }
.footer-fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3a3833; font-size: 0.9rem; color: #c9bfa4; }

/* Small screens */
@media (max-width: 30em) {
  body { font-size: 1rem; }
  .site-nav a { padding-inline: 0.45rem; font-size: 0.95rem; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}

/* Print: keep it plain */
@media print {
  .site-header, .site-footer, .actions, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
