/* Plot & Pail — garden worksheet 04 */
:root {
  --paper: #F3F0E6;
  --paper-light: #FAF8F0;
  --ink: #173F35;
  --leaf: #2E6B4F;
  --new-leaf: #D6E6A5;
  --clay: #C86F4A;
  --muted: #5A665E;
  --line: rgba(23, 63, 53, .24);
  --display: "Newsreader", Georgia, serif;
  --body: "Work Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
::selection { color: var(--ink); background: var(--new-leaf); }
a { color: inherit; }
button, input { font: inherit; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
p { text-wrap: pretty; }

.page-width { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.section-space { margin-top: 112px; margin-bottom: 112px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(1280px, calc(100% - 64px));
  min-height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.6px;
}
.brand i, .footer-brand i { color: var(--clay); font-weight: 400; }
.brand-mark { width: 35px; height: 35px; color: var(--leaf); }
.header-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.header-note span { margin-inline: 10px; color: var(--clay); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: 60px;
  padding-top: 70px;
  padding-bottom: 58px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--leaf);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow-line { width: 32px; height: 1px; background: var(--clay); flex: 0 0 auto; }
h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(64px, 7vw, 100px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -4.5px;
}
h1 em { color: var(--leaf); font-weight: 400; }
.hero-intro { max-width: 570px; margin-top: 30px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-key { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 30px; }
.hero-key span {
  position: relative;
  padding-left: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
.hero-key span::before {
  content: "";
  position: absolute;
  top: .65em; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clay);
}
.field-sketch { position: relative; align-self: end; color: var(--leaf); }
.field-sketch svg { width: 100%; max-height: 340px; }
.field-sketch figcaption {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  text-align: right;
}

.calculator-section { scroll-margin-top: 24px; }
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 rgba(23, 63, 53, .1);
}
.measurement-panel, .results-panel { min-width: 0; padding: 38px 42px 40px; }
.results-panel { color: var(--paper); background: var(--ink); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.section-number {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.live-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.live-note > span { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.results-panel .section-number { color: var(--new-leaf); }
.results-panel .panel-heading svg { width: 30px; height: 30px; color: var(--new-leaf); }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.field-depth { grid-column: 1 / -1; }
.field label, .waste-fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.input-wrap { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--ink); }
.input-wrap:focus-within { border-bottom: 2px solid var(--clay); }
.input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 2px 0 7px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  appearance: textfield;
  -moz-appearance: textfield;
}
.input-wrap input::-webkit-inner-spin-button, .input-wrap input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.input-wrap input[aria-invalid="true"] { color: #9A452F; }
.input-wrap:has(input[aria-invalid="true"]) { border-color: #9A452F; }
.unit { color: var(--leaf); font-size: 14px; font-weight: 600; }
.waste-fieldset { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.waste-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.waste-option { position: relative; cursor: pointer; }
.waste-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.waste-option span {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.waste-option:hover span { border-color: var(--leaf); }
.waste-option input:checked + span { color: var(--paper-light); border-color: var(--leaf); background: var(--leaf); }
.waste-option input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 3px; }
.field-hint { margin-top: 10px; color: var(--muted); font-size: 12px; }
.form-message { margin-top: 20px; padding-left: 12px; border-left: 3px solid var(--clay); color: #863D2B; font-size: 13px; font-weight: 500; }

.primary-result { padding-bottom: 25px; border-bottom: 1px solid rgba(214, 230, 165, .28); }
.result-label { color: var(--new-leaf); font-size: 10px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; }
.primary-value { margin-top: 3px; font-family: var(--display); font-size: clamp(56px, 6vw, 76px); font-weight: 400; line-height: 1.05; letter-spacing: -2px; overflow-wrap: anywhere; }
.primary-value > span { font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.bulk-result { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(214, 230, 165, .28); }
.bulk-result > p:last-child { font-family: var(--display); font-size: 32px; line-height: 1.1; text-align: right; }
.bulk-result > p:last-child span { font-family: var(--body); font-size: 12px; }
.bag-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.bag-result + .bag-result { padding-left: 24px; border-left: 1px solid rgba(214, 230, 165, .28); }
.bag-result > p:last-child { margin-top: 4px; font-family: var(--display); font-size: 34px; line-height: 1.1; }
.bag-result > p:last-child span { font-family: var(--body); font-size: 11px; }
.result-summary { padding-top: 17px; border-top: 1px solid rgba(214, 230, 165, .28); color: var(--paper); font-size: 12px; line-height: 1.65; }
.result-footnote { margin-top: 12px; color: rgba(243, 240, 230, .67); font-size: 10px; line-height: 1.6; }

.section-intro { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 60px; align-items: end; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 22px; }
h2 {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -1.8px;
}
.section-intro > p:last-child { max-width: 510px; padding-bottom: 5px; color: var(--muted); font-size: 15px; }
.formula-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.formula-section .section-intro { display: block; }
.formula-section .section-intro h2 { margin: 22px 0 26px; }
.formula-notes { border-top: 3px solid var(--leaf); }
.formula-list { margin: 0; padding: 0; list-style: none; }
.formula-list li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.formula-step {
  display: grid;
  place-items: center;
  width: 29px; height: 29px;
  flex: 0 0 auto;
  border: 1px solid var(--clay);
  border-radius: 50%;
  color: var(--clay);
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
}
.formula-list strong { display: block; margin-bottom: 5px; font-size: 13px; }
.formula-list p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.worked-example { margin-top: 32px; padding: 26px 28px; border: 1px solid var(--line); background: rgba(250, 248, 240, .65); }
.note-label { margin-bottom: 12px; color: var(--clay); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.worked-example h3, .depth-guides h3 { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.worked-example > p:not(.note-label) { margin-top: 13px; color: var(--muted); font-size: 13px; }
.worked-example strong { color: var(--ink); font-weight: 600; }
.conversion-table-wrap { margin-top: 32px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
caption { margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-align: left; text-transform: uppercase; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: right; }
th:first-child { padding-left: 0; text-align: left; }
thead th { color: var(--muted); font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
tbody th { font-weight: 600; }
.conversion-table-wrap > p { margin-top: 8px; color: var(--muted); font-size: 10px; }

.depth-section { padding: 78px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(214, 230, 165, .19); }
.depth-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.depth-heading h2 { margin-top: 20px; }
.depth-heading > p { padding-bottom: 4px; color: var(--muted); font-size: 14px; }
.depth-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin-top: 50px; }
.depth-guides article { padding-top: 24px; border-top: 1px solid var(--leaf); }
.depth-number { margin-bottom: 17px; color: var(--leaf); font-family: var(--display); font-size: 52px; line-height: 1; letter-spacing: -1px; }
.depth-number span { margin-left: 5px; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.depth-guides article > p:last-child { margin-top: 12px; color: var(--muted); font-size: 13px; }
.depth-note { margin-top: 38px; padding: 15px 20px; border-left: 3px solid var(--clay); color: var(--muted); background: var(--paper); font-size: 12px; }
.depth-note strong { color: var(--ink); }

.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 90px; }
.faq-heading h2 { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  padding: 23px 44px 23px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; top: 50%; right: 7px; width: 14px; height: 1px; background: var(--clay); transition: transform .2s ease; }
summary::after { transform: rotate(90deg); }
details[open] summary { color: var(--leaf); }
details[open] summary::after { transform: rotate(0); }
details > p { max-width: 610px; padding: 0 42px 24px 0; color: var(--muted); font-size: 14px; }

.site-footer { padding: 58px 0 24px; color: var(--paper); background: var(--ink); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand { margin-bottom: 7px; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.2; }
.footer-top > div > p:last-child { color: rgba(243, 240, 230, .65); font-size: 12px; }
.footer-motto { color: var(--new-leaf); font-family: var(--display); font-size: 27px; font-style: italic; line-height: 1.05; text-align: right; }
.related-tools { margin-top: 44px; padding-top: 25px; border-top: 1px solid rgba(214, 230, 165, .28); }
.related-tools h2 { color: var(--new-leaf); font-family: var(--body); font-size: 9px; font-weight: 600; line-height: 1.4; letter-spacing: 1.7px; text-transform: uppercase; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 19px; }
.related-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(214, 230, 165, .3); font-family: var(--display); font-size: 21px; text-decoration: none; }
.related-links a span:last-child { color: var(--clay); font-family: var(--body); font-size: 17px; transition: transform .15s ease; }
.related-links a:hover span:last-child { transform: translate(2px, -2px); }
.related-links a:hover { color: var(--new-leaf); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; color: rgba(243, 240, 230, .48); font-size: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); gap: 30px; }
  .calculator-shell { grid-template-columns: 1fr 1fr; }
  .measurement-panel, .results-panel { padding: 32px 28px; }
  .live-note { display: none; }
  .formula-section { gap: 45px; }
  .faq-section { gap: 50px; }
}

@media (max-width: 740px) {
  .page-width, .header-inner { width: min(100% - 40px, 580px); }
  .section-space { margin-top: 76px; margin-bottom: 76px; }
  .header-inner { min-height: 74px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-note { font-size: 9px; letter-spacing: 1.2px; }
  .header-note span { margin-inline: 5px; }
  .hero { display: block; padding-top: 48px; padding-bottom: 40px; }
  h1 { font-size: clamp(58px, 18vw, 82px); letter-spacing: -3px; }
  .hero-intro { margin-top: 25px; font-size: 15px; }
  .hero-key { gap: 8px 18px; margin-top: 24px; }
  .hero-key span { font-size: 10px; }
  .field-sketch { display: none; }
  .calculator-shell { display: block; box-shadow: 5px 5px 0 rgba(23, 63, 53, .1); }
  .measurement-panel, .results-panel { padding: 28px 24px 30px; }
  .panel-heading { margin-bottom: 27px; }
  .live-note { display: flex; }
  .input-grid { gap: 25px 20px; }
  .input-wrap input { font-size: 36px; }
  .primary-value { font-size: 64px; }
  .formula-section, .faq-section { display: block; }
  .formula-section .section-intro h2 { margin-bottom: 20px; }
  .formula-notes, .faq-list { margin-top: 40px; }
  .depth-heading { display: block; }
  .depth-heading > p { margin-top: 24px; }
  .depth-guides { grid-template-columns: 1fr; gap: 30px; margin-top: 38px; }
  .depth-guides article { display: grid; grid-template-columns: 82px 1fr; column-gap: 20px; }
  .depth-number { grid-row: 1 / 3; margin: 0; }
  .depth-guides article > p:last-child { margin-top: 8px; }
  .depth-section { padding: 60px 0; }
  .related-links { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 420px) {
  .header-note { max-width: 105px; line-height: 1.6; text-align: right; }
  .header-note span { display: none; }
  .live-note { font-size: 9px; }
  .measurement-panel, .results-panel { padding-inline: 20px; }
  .field label, .waste-fieldset legend { font-size: 10px; }
  .bag-results { gap: 16px; }
  .bag-result + .bag-result { padding-left: 16px; }
  .worked-example { padding: 22px 20px; }
  th, td { padding-inline: 4px; font-size: 10px; }
  thead th { font-size: 8px; }
  .footer-top { gap: 20px; }
  .footer-motto { font-size: 22px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---- legal page links ---- */
.legal-links {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 0 0 16px;
}
.legal-links a {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted, #5A5F55); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.legal-links a:hover { border-bottom-color: currentColor; }
