:root {
  color-scheme: light;
  --ink: #252725;
  --muted: #62665f;
  --line: #d8dbd2;
  --paper: #f7f8f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
a {
  color: inherit;
}
header,
main,
footer {
  max-width: 1160px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.wordmark {
  text-decoration: none;
  font-weight: 750;
}
main {
  padding: 0 24px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  max-width: 700px;
  margin-bottom: 24px;
  font-weight: 550;
}
h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 550;
}
h3 {
  font-size: 17px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button,
a,
summary,
input:focus {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding: 66px 0 52px;
  align-items: center;
}
.eyebrow,
.section-heading > span {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 650;
}
.lede {
  font-size: 20px;
  max-width: 560px;
  color: #4d524a;
}
.quiet,
.hint {
  color: var(--muted);
  font-size: 13px;
}
nav {
  display: flex;
  gap: 8px;
  margin-top: 25px;
  flex-wrap: wrap;
}
nav a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
}
nav a[aria-current='true'] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.drawing {
  background: #e8ebe1;
  padding: 48px 30px 20px;
  border-radius: 2px;
  overflow: hidden;
}
.pavers {
  height: 190px;
  transform: rotate(-15deg) skew(10deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, #f7f8f3 44px 48px),
    repeating-linear-gradient(90deg, #acb3a3 0 76px, #f7f8f3 76px 80px);
  box-shadow:
    10px 12px 0 #7d8575,
    18px 24px 0 #c2bda9;
  margin-bottom: 48px;
}
.drawing span {
  font-size: 9px;
  letter-spacing: 0.16em;
}
.workspace {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.workspace > section,
.workspace > aside {
  padding: 32px;
}
.workspace > aside {
  background: #eef0e9;
  border-left: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 24px;
}
.section-heading > span {
  color: var(--muted);
}
.section-heading h2 {
  margin: 6px 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
label > span {
  font-weight: 400;
  color: var(--muted);
}
input[type='number'] {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #aeb4a7;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 18px;
}
input[aria-invalid='true'] {
  border: 2px solid #a03122;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.mode {
  display: flex;
  gap: 18px;
}
.mode label,
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
}
.mode input,
.check input {
  width: 19px;
  height: 19px;
  accent-color: var(--ink);
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
}
details[open] summary {
  margin-bottom: 12px;
}
.primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: var(--ink);
  color: white;
  margin-top: 16px;
  border: 0;
}
.large-note {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 48px;
}
.layers {
  margin-top: 40px;
  transform: skewY(-4deg);
}
.layers div {
  padding: 16px;
  border-bottom: 4px solid #eef0e9;
  font-size: 10px;
  letter-spacing: 0.14em;
  background: #b7bfae;
}
.layers div:nth-child(2) {
  background: #d7d2c1;
}
.layers div:nth-child(3) {
  background: #a6aa9c;
}
.area-result {
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 0;
}
.material-row {
  padding: 16px 0;
  border-bottom: 1px solid #cbd0c4;
}
.material-row strong {
  display: block;
  font-size: 19px;
}
.material-row small {
  color: #50564b;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.actions button {
  font-size: 13px;
}
#errors,
#stale {
  color: #8a2b21;
  font-size: 14px;
}
#errors:empty {
  display: none;
}
#print-list {
  display: none;
}
.guide {
  padding: 70px 0;
}
.guide h2 {
  font-size: 36px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 36px;
}
.guide-grid p {
  color: var(--muted);
  font-size: 14px;
}
.native {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.native p {
  max-width: 560px;
}
.native a {
  white-space: nowrap;
  font-weight: 600;
}
footer {
  padding: 28px 24px;
  color: var(--muted);
  font-size: 12px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  background: white;
  padding: 10px;
  z-index: 2;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  header {
    padding: 18px;
  }
  .intro {
    display: block;
    padding: 36px 0 28px;
  }
  .drawing {
    display: none;
  }
  main {
    padding: 0 16px;
  }
  h1 {
    font-size: 44px;
  }
  .lede {
    font-size: 18px;
  }
  .workspace {
    display: block;
  }
  .workspace > section,
  .workspace > aside {
    padding: 22px;
  }
  .workspace > aside {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .guide {
    padding: 42px 0;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .native {
    display: block;
  }
  .native a {
    display: inline-block;
    padding: 12px 0;
  }
  .large-note {
    margin-top: 20px;
  }
  .layers {
    display: none;
  }
  .fields {
    gap: 12px;
  }
}
@media print {
  header,
  .intro,
  #calculator,
  .guide,
  .native,
  footer,
  .actions,
  .hint,
  #summary,
  #empty,
  #stale,
  #export-status {
    display: none !important;
  }
  body,
  main,
  .workspace,
  .workspace > aside {
    background: white;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
  }
  #print-list {
    display: block;
    white-space: pre-wrap;
    font: 12pt/1.6 sans-serif;
  }
  #result {
    display: block !important;
  }
}

.mulch-drawing {
  height: 190px;
  border-radius: 50%;
  background: repeating-linear-gradient(25deg, #9c795a 0 8px, #725339 8px 12px, #c29c75 12px 17px);
  transform: rotate(-12deg);
  margin-bottom: 36px;
  box-shadow: 8px 12px 0 #5f4937;
}
nav a[aria-current='page'] {
  background: var(--ink);
  color: white;
}

.gravel-drawing {
  height: 190px;
  border-radius: 45%;
  background:
    radial-gradient(ellipse at center, #9a9f99 0 40%, #d1d4cb 42% 58%, transparent 60%) 0 0 / 36px 28px,
    #747a73;
  transform: rotate(-12deg);
  margin-bottom: 36px;
  box-shadow: 8px 12px 0 #51594f;
}
