:root {
  --paper: #F3F0E6;
  --paper-light: #FCFAF3;
  --forest: #173F35;
  --leaf: #2E6B4F;
  --sprout: #D6E6A5;
  --clay: #C86F4A;
  --ink-soft: #52645D;
  --line: rgba(23, 63, 53, 0.18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Work Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--forest);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(200, 111, 74, 0.055) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 62%, rgba(23, 63, 53, 0.04) 0 1px, transparent 1.4px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.16), transparent 38%, rgba(23, 63, 53, 0.025));
  background-size: 31px 29px, 37px 41px, 100% 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--forest);
  background: var(--sprout);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 44px;
}

.site-header {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 43px;
  height: 43px;
  color: var(--forest);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.primary-nav a {
  position: relative;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(360px, 0.93fr);
  align-items: center;
  gap: clamp(42px, 6vw, 88px);
  padding: 76px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 19px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span::after {
  content: "";
  width: 35px;
  height: 1px;
  background: var(--clay);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 7.2vw, 100px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.87;
}

h1 em {
  display: block;
  color: var(--leaf);
  font-weight: 400;
}

.hero-intro {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.48;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
}

.hero-points svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-figure {
  position: relative;
  margin: 0;
  padding: 18px 18px 15px;
  background: rgba(252, 250, 243, 0.56);
  border: 1px solid var(--line);
  box-shadow: 8px 9px 0 rgba(23, 63, 53, 0.055);
  transform: rotate(1.2deg);
}

.profile-figure::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 22px;
  top: -11px;
  left: calc(50% - 39px);
  background: rgba(214, 230, 165, 0.7);
  transform: rotate(-2deg);
}

.figure-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soil-profile {
  width: 100%;
  height: auto;
}

.profile-figure figcaption {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

.calculator-section {
  padding: 8px 0 90px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading--compact {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 30px;
  margin-bottom: 28px;
}

.section-heading--compact .section-kicker {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 1.03;
}

.section-heading--compact h2 {
  font-size: clamp(36px, 4vw, 50px);
}

.section-heading > p:last-child:not(.section-kicker) {
  max-width: 650px;
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.section-heading--compact > p:last-child {
  max-width: 300px;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.55;
}

.calculator-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  background: var(--paper-light);
  border: 1px solid rgba(23, 63, 53, 0.24);
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(23, 63, 53, 0.055);
  overflow: hidden;
}

.calculator-form {
  min-width: 0;
  padding: clamp(26px, 4vw, 46px);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 31px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.mini-label {
  display: block;
  color: var(--clay);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.form-heading h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--leaf);
  background: rgba(214, 230, 165, 0.34);
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-badge > span {
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px 20px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > label,
.field legend {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.input-with-unit,
.select-wrap {
  position: relative;
}

.input-with-unit input,
.select-wrap select {
  width: 100%;
  min-width: 0;
  height: 52px;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid rgba(23, 63, 53, 0.27);
  border-radius: 4px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-with-unit input {
  padding: 0 50px 0 15px;
  font-size: 16px;
  font-weight: 500;
}

.input-with-unit > span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  transform: translateY(-50%);
}

.select-wrap select {
  appearance: none;
  padding: 0 48px 0 15px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-with-unit input:hover,
.select-wrap select:hover {
  border-color: var(--leaf);
}

.input-with-unit input:focus,
.select-wrap select:focus {
  background: #fff;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(46, 107, 79, 0.14);
}

.input-with-unit input.is-invalid {
  border-color: var(--clay);
  box-shadow: 0 0 0 2px rgba(200, 111, 74, 0.1);
}

.field-hint,
.field-error {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.field-hint {
  color: var(--ink-soft);
}

.field-error {
  color: #9A452A;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

.waste-field {
  margin-top: 1px;
}

.waste-field legend {
  width: 100%;
}

.waste-field legend span {
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segment-control label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.segment-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segment-control label > span {
  display: grid;
  min-height: 43px;
  place-items: center;
  color: var(--leaf);
  background: transparent;
  border: 1px solid rgba(23, 63, 53, 0.25);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.segment-control input:checked + span {
  color: var(--paper-light);
  background: var(--leaf);
  border-color: var(--leaf);
}

.segment-control input:focus-visible + span {
  outline: 3px solid rgba(200, 111, 74, 0.45);
  outline-offset: 2px;
}

.result-panel {
  min-width: 0;
  margin: 15px;
  padding: clamp(25px, 3.2vw, 38px);
  color: var(--paper);
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at 90% 8%, rgba(214, 230, 165, 0.11), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(243, 240, 230, 0.025) 28px);
  border-radius: 5px;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(243, 240, 230, 0.2);
}

.result-heading .mini-label {
  color: var(--sprout);
}

.result-heading svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: var(--sprout);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-list {
  margin: 0;
}

.result-list dl,
.result-list dd {
  margin: 0;
}

.result-area {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(243, 240, 230, 0.14);
}

.result-area dt,
.bag-results dt {
  color: rgba(243, 240, 230, 0.74);
  font-size: 10px;
  font-weight: 500;
}

.result-area dd {
  font-size: 18px;
  font-weight: 500;
}

.result-area small {
  font-size: 10px;
  font-weight: 400;
}

.result-primary {
  padding: 23px 0 25px;
  text-align: center;
}

.result-primary dt {
  color: var(--sprout);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.result-primary dd {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 65px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.result-primary dd small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.result-primary .yards-result {
  margin: 7px 0 0;
  color: rgba(243, 240, 230, 0.72);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.65;
}

.bag-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(243, 240, 230, 0.14);
  border-bottom: 1px solid rgba(243, 240, 230, 0.14);
}

.bag-results > dl {
  padding: 17px 0;
}

.bag-results > dl + div {
  padding-left: 20px;
  border-left: 1px solid rgba(243, 240, 230, 0.14);
}

.bag-results dd {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
}

.bag-results dd small {
  font-family: var(--sans);
  font-size: 10px;
}

.result-summary {
  margin: 21px 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

.bag-note {
  margin: 17px 0 0;
  color: rgba(243, 240, 230, 0.59);
  font-size: 9px;
  line-height: 1.65;
}

.calculator-note {
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.calculator-note span {
  margin-right: 5px;
  color: var(--clay);
}

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

.depth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.75fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.table-card {
  min-width: 0;
  background: rgba(252, 250, 243, 0.65);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

caption {
  padding: 16px 20px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

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

th {
  color: var(--leaf);
  background: rgba(214, 230, 165, 0.19);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

td:first-child {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

td strong {
  display: inline-block;
  color: var(--clay);
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.field-note {
  position: relative;
  padding: 29px 27px;
  background: var(--sprout);
  box-shadow: 6px 7px 0 rgba(23, 63, 53, 0.07);
  transform: rotate(-1deg);
}

.field-note::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(23, 63, 53, 0.4);
  border-bottom: 1px solid rgba(23, 63, 53, 0.4);
}

.field-note > svg {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-note .mini-label {
  color: var(--leaf);
}

.field-note h3 {
  margin: 10px 0 13px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.16;
}

.field-note > p:last-child {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.formula-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.92fr);
  gap: clamp(35px, 6vw, 80px);
  align-items: start;
}

.formula-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.formula-steps li {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.formula-steps li:first-child {
  padding-top: 4px;
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--clay);
  border: 1px solid rgba(200, 111, 74, 0.45);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.formula-steps h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.formula-steps code {
  display: block;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.worked-example {
  min-width: 0;
  padding: clamp(25px, 3vw, 36px);
  color: var(--paper);
  background: var(--leaf);
  border-radius: 5px;
  box-shadow: 8px 9px 0 rgba(23, 63, 53, 0.09);
}

.example-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.worked-example .mini-label {
  color: var(--sprout);
}

.example-tag {
  padding: 4px 8px;
  color: var(--sprout);
  border: 1px solid rgba(214, 230, 165, 0.35);
  border-radius: 20px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.worked-example h3 {
  margin: 15px 0 20px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
}

.worked-example dl {
  margin: 0;
}

.worked-example dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid rgba(243, 240, 230, 0.17);
  font-size: 11px;
}

.worked-example dt {
  color: rgba(243, 240, 230, 0.72);
}

.worked-example dd {
  margin: 0;
  text-align: right;
}

.worked-example dd strong {
  color: var(--sprout);
  font-weight: 600;
  white-space: nowrap;
}

.worked-example > p {
  margin: 20px 0 0;
  color: rgba(243, 240, 230, 0.7);
  font-size: 10px;
  line-height: 1.7;
}

.faq-section {
  padding-bottom: 100px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 4px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(23, 63, 53, 0.32);
  border-radius: 50%;
}

.faq-list summary > span::before,
.faq-list summary > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--forest);
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
}

.faq-list summary > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] summary > span {
  background: var(--sprout);
  border-color: var(--sprout);
}

.faq-list details[open] summary > span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-list details > p {
  max-width: 790px;
  margin: -3px 0 25px;
  padding: 0 50px 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer {
  color: var(--paper);
  background: var(--forest);
  border-radius: 6px 6px 0 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 40px;
  border-bottom: 1px solid rgba(243, 240, 230, 0.17);
}

.brand--footer .brand-mark {
  color: var(--paper);
}

.footer-top > p {
  margin: 0;
  color: rgba(243, 240, 230, 0.65);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px 29px;
}

.footer-bottom > p {
  margin: 0;
  color: var(--sprout);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}

.related-links a {
  color: rgba(243, 240, 230, 0.8);
  font-size: 11px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(214, 230, 165, 0.35);
}

.related-links a:hover,
.related-links a:focus-visible {
  color: var(--sprout);
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 36px;
  }

  .calculator-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  }

  .calculator-form {
    padding: 30px;
  }

  .result-panel {
    padding: 28px;
  }

  .depth-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(245px, 0.75fr);
    gap: 30px;
  }

  th,
  td {
    padding: 16px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    padding: 0 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 60px 0 72px;
  }

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

  h1 {
    font-size: clamp(64px, 12vw, 92px);
  }

  .profile-figure {
    width: min(100%, 570px);
    justify-self: center;
  }

  .calculator-card {
    grid-template-columns: 1fr;
  }

  .result-panel {
    padding: 34px;
  }

  .result-primary dd {
    font-size: 64px;
  }

  .depth-layout,
  .formula-layout {
    grid-template-columns: 1fr;
  }

  .field-note {
    max-width: 560px;
  }

  .formula-layout {
    gap: 45px;
  }

  .worked-example {
    max-width: 600px;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .site-shell {
    padding: 0 20px;
  }

  .site-header {
    min-height: 84px;
    gap: 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-tagline {
    display: none;
  }

  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 10px;
  }

  .hero {
    gap: 44px;
    padding: 49px 0 62px;
  }

  h1 {
    font-size: clamp(51px, 14.5vw, 76px);
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 19px;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
  }

  .profile-figure {
    padding: 13px 13px 12px;
  }

  .calculator-section {
    padding-bottom: 66px;
  }

  .section-heading--compact {
    display: block;
  }

  .section-heading--compact > p:last-child {
    max-width: 430px;
    margin-top: 14px;
  }

  .section-heading h2,
  .section-heading--compact h2 {
    font-size: 38px;
  }

  .calculator-form {
    padding: 25px 20px;
  }

  .form-grid {
    gap: 21px 13px;
  }

  .form-heading h3 {
    font-size: 25px;
  }

  .result-panel {
    margin: 8px;
    padding: 27px 23px;
  }

  .result-primary dd {
    font-size: 57px;
  }

  .content-section {
    padding: 66px 0;
  }

  .section-heading {
    margin-bottom: 29px;
  }

  table,
  tbody {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  td,
  td:first-child {
    display: block;
    padding: 0;
    border: 0;
  }

  td:nth-child(2) {
    text-align: right;
  }

  td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .field-note {
    padding: 25px 23px;
  }

  .formula-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .step-number {
    width: 35px;
    height: 35px;
  }

  .worked-example dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .worked-example dd {
    text-align: left;
  }

  .faq-list summary {
    gap: 16px;
    padding: 21px 0;
    font-size: 20px;
  }

  .faq-list summary > span {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .faq-list details > p {
    padding: 0;
    font-size: 13px;
  }

  .footer-top,
  .footer-bottom {
    padding-right: 24px;
    padding-left: 24px;
  }

  .related-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
}

@media (max-width: 400px) {
  .site-shell {
    padding: 0 16px;
  }

  .primary-nav {
    gap: 10px;
  }

  .primary-nav a {
    font-size: 9px;
  }

  .brand-name {
    font-size: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .waste-field legend span {
    display: block;
    margin: 2px 0 0;
  }

  .bag-results > dl + div {
    padding-left: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.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; }
