/* Plot & Pail — a working notebook for the garden */
:root {
  --paper: #F3F0E6;
  --ink: #173F35;
  --leaf: #2E6B4F;
  --shoot: #D6E6A5;
  --clay: #C86F4A;
  --white: #FFFDF6;
  --line: rgba(23, 63, 53, .18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(23, 63, 53, .026) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 63, 53, .026) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
svg { display: block; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--shoot);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.6px;
}
.brand i { color: var(--clay); font-weight: 400; }
.brand-mark { width: 36px; height: 36px; }
.header-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(46, 107, 79, .1); }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 44px 84px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 68px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-block;
  margin-right: 12px;
  padding: 5px 8px;
  color: var(--paper);
  background: var(--leaf);
  letter-spacing: 1px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(66px, 7.1vw, 100px);
  line-height: .85;
  font-weight: 500;
  letter-spacing: -4.5px;
}
h1 em, h2 em { color: var(--clay); font-weight: 400; }
.hero-intro { max-width: 460px; margin-bottom: 26px; font-size: 17px; line-height: 1.75; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.text-link span { color: var(--clay); font-size: 19px; transition: transform .2s; }
.text-link:hover span { transform: translateY(3px); }

.specimen-sheet {
  position: relative;
  padding: 20px 24px 22px;
  background: rgba(255, 253, 246, .58);
  border: 1px solid var(--line);
  box-shadow: 12px 12px 0 rgba(23, 63, 53, .06);
  transform: rotate(1.2deg);
}
.specimen-sheet::before {
  content: "";
  position: absolute;
  width: 84px;
  height: 24px;
  top: -13px;
  left: 50%;
  background: rgba(214, 230, 165, .7);
  transform: translateX(-50%) rotate(-2deg);
}
.sheet-top, .sheet-caption { display: flex; justify-content: space-between; gap: 16px; }
.sheet-top { padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.stone-study { width: 100%; height: auto; }
.sheet-caption { align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .4px; }
.handwritten { color: var(--clay); font-family: var(--serif); font-size: 15px; font-style: italic; }

.calculator-section {
  max-width: 1240px;
  margin: 0 auto 110px;
  padding: 48px 48px 50px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 16px 50px rgba(23, 63, 53, .1);
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 9px; color: var(--shoot); }
h2 { font-family: var(--serif); font-size: clamp(38px, 4.3vw, 56px); line-height: 1.02; font-weight: 500; letter-spacing: -1.7px; }
.section-heading h2 { margin: 0; font-size: 42px; letter-spacing: -1px; }
.section-heading > p { max-width: 370px; margin: 0; color: rgba(243, 240, 230, .68); font-size: 13px; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; }
.calculator-form { min-width: 0; }
.field-group { padding: 0 0 27px; margin-bottom: 27px; border-bottom: 1px solid rgba(243, 240, 230, .16); }
.group-label { margin-bottom: 20px; color: var(--shoot); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.group-label span { margin-right: 10px; color: rgba(243, 240, 230, .38); }
.dimension-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field label, .waste-field legend { display: block; margin-bottom: 8px; font-size: 12px; color: rgba(243, 240, 230, .85); }
.input-wrap { position: relative; }
.input-wrap input, .select-wrap select {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid rgba(243, 240, 230, .25);
  border-radius: 0;
  color: var(--white);
  background: rgba(243, 240, 230, .055);
  outline: none;
  transition: border-color .2s, background .2s;
}
.input-wrap input { padding: 10px 37px 10px 13px; font-size: 18px; font-weight: 500; appearance: textfield; }
.input-wrap input::-webkit-inner-spin-button { appearance: none; }
.input-wrap > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: rgba(243, 240, 230, .5); font-size: 12px; pointer-events: none; }
.input-wrap input:focus, .select-wrap select:focus { border-color: var(--shoot); background: rgba(243, 240, 230, .09); }
.input-wrap input[aria-invalid="true"] { border-color: #F1A383; }
.field-hint { margin: 9px 0 0; color: rgba(243, 240, 230, .48); font-size: 11px; }
.material-field { margin-bottom: 21px; }
.select-wrap { position: relative; }
.select-wrap select { padding: 10px 42px 10px 13px; appearance: none; font-size: 13px; cursor: pointer; }
.select-wrap select option { color: var(--ink); background: var(--paper); }
.select-wrap svg { position: absolute; width: 16px; height: 16px; right: 14px; top: 18px; pointer-events: none; }
.waste-field { padding: 0; margin: 0; border: 0; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented-control label { position: relative; margin: 0; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: block; padding: 9px; border: 1px solid rgba(243, 240, 230, .25); border-right: 0; text-align: center; color: rgba(243, 240, 230, .7); font-size: 12px; }
.segmented-control label:last-child span { border-right: 1px solid rgba(243, 240, 230, .25); }
.segmented-control input:checked + span { color: var(--ink); background: var(--shoot); border-color: var(--shoot); font-weight: 600; }
.segmented-control input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.form-message { min-height: 20px; margin: -12px 0 0; color: #F7B396; font-size: 12px; }

.results-card { min-width: 0; padding: 28px; color: var(--ink); background: var(--paper); position: relative; }
.results-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(23, 63, 53, .09); pointer-events: none; }
.results-card > * { position: relative; z-index: 1; }
.results-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 30px; }
.results-topline h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.results-topline > span { padding: 3px 8px; color: var(--leaf); background: rgba(214, 230, 165, .55); font-size: 9px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.primary-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.result-label { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.primary-result > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.primary-result output { font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); line-height: 1.15; letter-spacing: -2px; }
.result-unit { color: var(--leaf); font-size: 11px; font-weight: 600; }
.result-equivalent { display: block; color: rgba(23, 63, 53, .6); font-size: 10px; }
.result-equivalent output { font: inherit; }
.bag-result { display: flex; align-items: center; gap: 14px; margin-top: 27px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bag-icon { width: 32px; color: var(--clay); }
.bag-result p { margin: 0; line-height: 1.15; }
.bag-result output { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.bag-result p span { font-size: 11px; }
.rounded-note { margin-left: auto; color: rgba(23, 63, 53, .5); font-family: var(--serif); font-size: 12px; font-style: italic; }
.estimate-note { display: flex; gap: 9px; margin-top: 20px; }
.estimate-note svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.estimate-note p { margin: 0; color: rgba(23, 63, 53, .65); font-size: 10px; line-height: 1.6; }
.estimate-note strong { color: var(--ink); }
.calculation-caption { margin: 17px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: rgba(23, 63, 53, .52); font-size: 9px; letter-spacing: .5px; text-align: center; }

.content-section {
  max-width: 1152px;
  margin: 0 auto 120px;
  padding: 0 0 0 50px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 84px;
}
.section-index { position: absolute; left: 0; top: 4px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.content-intro h2 { margin-bottom: 24px; }
.content-intro > p:not(.eyebrow) { max-width: 390px; color: rgba(23, 63, 53, .72); font-size: 14px; line-height: 1.8; }
.table-wrap { min-width: 0; padding-top: 36px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
caption { margin-bottom: 14px; text-align: left; color: rgba(23, 63, 53, .6); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
th, td { padding: 18px 10px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { padding-top: 10px; color: rgba(23, 63, 53, .55); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
thead th:nth-child(2), tbody td:nth-child(2) { white-space: nowrap; }
tbody th { font-weight: 500; }
tbody td:nth-child(2) { color: var(--clay); font-weight: 600; }
tbody td:last-child { color: rgba(23, 63, 53, .64); }
.material-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; transform: rotate(25deg); }
.material-swatch.pea { border-radius: 50%; background: var(--shoot); }
.material-swatch.crushed { background: var(--clay); clip-path: polygon(50% 0, 100% 35%, 82% 100%, 12% 85%, 0 28%); }
.material-swatch.river { border-radius: 45% 55% 40% 60%; background: var(--ink); }
.material-swatch.granite { background: var(--leaf); clip-path: polygon(25% 0, 100% 15%, 80% 100%, 0 73%); }
.table-note { margin: 20px 0 0; color: rgba(23, 63, 53, .63); font-size: 11px; line-height: 1.7; }
.table-note strong { color: var(--ink); }

.method-section { align-items: start; }
.measure-diagram { width: 245px; height: 140px; margin: 40px 0 0 30px; position: relative; transform: rotate(-5deg); }
.measure-box { position: absolute; inset: 14px 10px 20px 20px; border: 1px solid var(--leaf); background: repeating-linear-gradient(45deg, transparent, transparent 7px, rgba(46, 107, 79, .08) 7px, rgba(46, 107, 79, .08) 8px); }
.measure-box::before, .measure-box::after { content: ""; position: absolute; background: var(--paper); }
.measure-box::before { width: calc(100% + 22px); height: 12px; top: 16px; left: -11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.measure-box::after { width: 12px; height: calc(100% + 22px); right: 15px; top: -11px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.measure-box span { position: absolute; z-index: 1; font-size: 8px; letter-spacing: 1px; }
.measure-box span:first-child { top: 15px; left: 80px; }
.measure-box span:last-child { right: 8px; top: 48px; writing-mode: vertical-rl; }
.measure-length { position: absolute; bottom: 0; left: 94px; font-size: 8px; letter-spacing: 1px; }
.formula-stack { padding-top: 28px; }
.formula-step { display: grid; grid-template-columns: 35px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--leaf); border-radius: 50%; color: var(--leaf); font-family: var(--serif); font-size: 15px; }
.formula-step h3 { margin-bottom: 7px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.formula-step p { margin-bottom: 4px; color: rgba(23, 63, 53, .7); font-size: 12px; }

.example-section { max-width: 1152px; margin: 0 auto 120px; padding: 40px 44px 44px; background: var(--shoot); position: relative; }
.example-section::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(23, 63, 53, .16); pointer-events: none; }
.example-section > * { position: relative; }
.example-label { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid rgba(23, 63, 53, .2); font-size: 9px; font-weight: 600; letter-spacing: 1.6px; }
.example-copy { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; padding: 35px 0 30px; }
.example-copy h2 { margin: 0; }
.example-copy h2 em { color: var(--leaf); }
.example-copy p { margin: 0 0 5px; font-size: 13px; }
.example-calculations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 50px; margin: 0; padding: 0; list-style: none; counter-reset: example; }
.example-calculations li { padding: 17px 0; border-top: 1px solid rgba(23, 63, 53, .2); }
.example-calculations span { display: block; margin-bottom: 3px; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.example-calculations strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }

.faq-section { max-width: 1050px; margin: 0 auto; padding: 0 0 120px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 100px; }
.faq-heading h2 { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 38px 22px 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary span { position: absolute; right: 2px; top: 28px; width: 14px; height: 14px; }
summary span::before, summary span::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 1px; background: var(--leaf); transition: transform .2s; }
summary span::after { transform: rotate(90deg); }
details[open] summary span::after { transform: rotate(0); }
details p { margin: -3px 35px 24px 0; color: rgba(23, 63, 53, .72); font-size: 13px; line-height: 1.8; }

.site-footer { padding: 48px max(44px, calc((100vw - 1152px) / 2)); color: var(--paper); background: var(--ink); }
.footer-top { display: flex; justify-content: space-between; gap: 70px; padding-bottom: 42px; }
.footer-brand { color: var(--paper); }
.footer-top > div > p { margin: 14px 0 0; color: rgba(243, 240, 230, .55); font-size: 12px; }
.related-tools { width: 360px; }
.related-tools > p { margin-bottom: 10px; color: var(--shoot); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.related-tools a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(243, 240, 230, .16); font-family: var(--serif); font-size: 18px; text-decoration: none; }
.related-tools a span:last-child { color: var(--shoot); font-family: var(--sans); font-size: 14px; }
.related-tools a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(243, 240, 230, .18); color: rgba(243, 240, 230, .45); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
@media (max-width: 1000px) {
  .hero { gap: 36px; padding-top: 58px; }
  .calculator-section { margin-left: 24px; margin-right: 24px; padding: 40px 32px; }
  .calculator-grid { gap: 28px; }
  .content-section, .example-section { margin-left: 44px; margin-right: 44px; }
  .content-section { gap: 45px; }
  .faq-section { margin-left: 70px; margin-right: 70px; gap: 55px; }
  .results-card { padding: 24px 20px; }
  .rounded-note { display: none; }
}
@media (max-width: 760px) {
  .site-header { padding: 22px 24px; }
  .hero { grid-template-columns: 1fr; padding: 52px 24px 60px; }
  .hero-copy { max-width: 560px; }
  h1 { font-size: 82px; }
  .specimen-sheet { max-width: 560px; width: 100%; justify-self: center; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .calculator-grid { grid-template-columns: 1fr; gap: 34px; }
  .results-card { padding: 28px; }
  .content-section { grid-template-columns: 1fr; gap: 18px; padding-left: 32px; }
  .content-intro > p:not(.eyebrow) { max-width: 560px; }
  .table-wrap, .formula-stack { padding-top: 8px; }
  .measure-diagram { display: none; }
  .example-copy { grid-template-columns: 1fr; gap: 18px; }
  .faq-section { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .header-note { display: none; }
  .brand { font-size: 24px; }
  .hero { padding-top: 42px; gap: 48px; }
  h1 { font-size: clamp(61px, 20vw, 82px); letter-spacing: -3px; }
  .hero-intro { font-size: 15px; }
  .specimen-sheet { padding: 15px 15px 18px; box-shadow: 7px 7px 0 rgba(23, 63, 53, .06); }
  .sheet-caption { font-size: 8px; }
  .handwritten { font-size: 12px; }
  .calculator-section { margin: 0 12px 80px; padding: 32px 20px; }
  .section-heading h2 { font-size: 35px; }
  .dimension-fields { gap: 9px; }
  .input-wrap input { padding-left: 10px; padding-right: 28px; font-size: 16px; }
  .input-wrap > span { right: 9px; }
  .results-card { padding: 24px 18px; }
  .results-topline { margin-bottom: 24px; }
  .results-topline h3 { font-size: 21px; }
  .results-topline > span { max-width: 105px; text-align: center; }
  .primary-results { gap: 12px; }
  .primary-result output { font-size: 43px; }
  .bag-result { gap: 10px; }
  .content-section, .example-section { margin: 0 24px 85px; }
  .content-section { padding-left: 22px; }
  h2 { font-size: 39px; }
  table { font-size: 11px; }
  th, td { padding: 15px 5px; }
  tbody td:last-child, thead th:last-child { display: none; }
  .material-swatch { margin-right: 6px; }
  .example-section { padding: 30px 24px; }
  .example-calculations { grid-template-columns: 1fr; }
  .example-calculations strong { font-size: 17px; }
  .faq-section { margin: 0 24px; padding-bottom: 85px; }
  summary { font-size: 19px; }
  .site-footer { padding: 38px 24px 28px; }
  .footer-top { flex-direction: column; gap: 36px; }
  .related-tools { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !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; }
