:root {
  color-scheme: light;
  --ink: #202d29;
  --muted: #53635a;
  --paper: #f5f3eb;
  --accent: #c8ed89;
  --line: #d4d9cf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 'Trebuchet MS',
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: #3d6624;
}
header,
main,
footer {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
header nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.brand {
  font-size: 23px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 8px;
  margin-right: 9px;
}
main {
  padding: 64px 0;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: bold;
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -1px;
}
h1 {
  font:
    normal clamp(40px, 6vw, 70px) / 1.07 Georgia,
    serif;
  max-width: 850px;
  margin: 18px 0 24px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 23px;
}
.intro {
  max-width: 650px;
  font-size: 19px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card .number {
  font:
    42px Georgia,
    serif;
  color: #718b5d;
}
.card p {
  color: var(--muted);
}
.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
button:hover {
  background: #3b5145;
  color: #fff;
}
.button.primary {
  background: var(--accent);
  color: var(--ink);
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--ink);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid #507b29;
  outline-offset: 4px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  gap: 26px;
  margin: 35px 0;
}
.panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.summary {
  background: var(--ink);
  color: #fff;
  align-self: start;
}
.summary p {
  color: #d1dfd3;
}
.summary .total {
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  margin: 18px 0;
}
.summary hr {
  border: 0;
  border-top: 1px solid #5c6e61;
}
.summary button {
  border-color: #c8ed89;
  color: #c8ed89;
  background: transparent;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: bold;
}
input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #a4b3a1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  margin: 5px 0 14px;
}
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 0;
}
.line {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.line button {
  margin-bottom: 14px;
  padding: 10px;
}
.line label {
  font-size: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.notice {
  font-size: 14px;
  color: var(--muted);
}
.error {
  color: #9a2d21;
  min-height: 1.6em;
}
.customize {
  padding: 36px;
  background: #e7eddc;
  border-radius: 16px;
  margin: 42px 0;
}
.customize p {
  max-width: 700px;
}
.explain {
  max-width: 750px;
  margin: 48px 0;
}
.task {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.task span {
  flex: 1;
  overflow-wrap: anywhere;
}
.task small {
  display: block;
  color: var(--muted);
}
.task.done span {
  text-decoration: line-through;
}
.task button {
  padding: 6px 10px;
  font-size: 13px;
}
footer {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 5px;
  background: white;
  padding: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 760px) {
  header {
    align-items: flex-start;
  }
  header nav {
    gap: 12px;
    font-size: 14px;
  }
  main {
    padding-top: 35px;
  }
  .workspace,
  .cards {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .line {
    grid-template-columns: 1fr 1fr 44px;
  }
  .line label:first-child {
    grid-column: 1/-1;
  }
  .line button {
    grid-column: 3;
  }
  .fields {
    gap: 12px;
  }
  h1 {
    font-size: 43px;
  }
  .customize {
    padding: 24px;
  }
}
@media print {
  header,
  footer,
  .actions,
  .customize,
  .explain,
  button,
  .notice,
  .error,
  .skip {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  main {
    width: 100%;
    padding: 0;
  }
  .workspace {
    display: block;
  }
  .summary {
    background: white;
    color: black;
  }
  .summary p {
    color: black;
  }
  .panel {
    border: 0;
    padding: 0;
    margin: 20px 0;
  }
  .intro {
    font-size: 14px;
  }
  h1 {
    font-size: 30px;
  }
  input,
  select {
    border: 0;
    padding: 0;
  }
  label {
    font-size: 12px;
  }
  .line {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}
