@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/worksans-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #333231;
  --muted: #5f5b56;
  --line: rgba(51, 50, 49, 0.22);
  --line-strong: rgba(51, 50, 49, 0.48);
  --accent: #5c6b54;
  --accent-strong: #46543f;
  --accent-ink: #ffffff;
  --field-1: #cdc3b6;
  --dark: #2c2b28;
  --dark-ink: #eeecea;
  --dark-muted: #c6c0b6;
  --dark-line: rgba(238, 236, 234, 0.24);
  --tile: #f8f6f2;

  --font: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lead: 1.25rem;
  --step-sub: 1.75rem;
  --step-head: clamp(2.25rem, 1.4rem + 2.2vw, 3.25rem);
  --step-display: clamp(2.25rem, 9.6vw, 6.75rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-reveal: 650ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
  hyphens: none;
}

h2 {
  font-size: var(--step-head);
  max-width: 18ch;
}

h3 {
  font-size: var(--step-sub);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.wrap { padding-inline: var(--margin); }

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

.skip {
  position: absolute;
  left: var(--margin);
  top: 0;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1rem;
  text-decoration: none;
}

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

section[id] { scroll-margin-top: 1.5rem; }

/* Masthead */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.4rem;
}

.wordmark {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.masthead nav {
  display: flex;
  gap: 1.4rem;
  font-size: var(--step-small);
}

.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.masthead__where {
  margin: 0;
  font-size: var(--step-small);
  line-height: 1.4;
  text-align: right;
  color: var(--muted);
}

/* Hero */

.hero {
  padding-top: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.5rem, 2.6vw, 2rem);
}

h1 {
  font-size: var(--step-display);
  letter-spacing: -0.05em;
  line-height: 0.94;
  max-width: 17ch;
}

h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

h1 [data-line] { display: block; }

.totals {
  width: 100%;
  margin-top: clamp(1.75rem, 3.4vw, 2.75rem);
  border-collapse: collapse;
  table-layout: fixed;
}

.totals th,
.totals td {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

.totals tr:last-child th,
.totals tr:last-child td { border-bottom: 1px solid var(--line); }

.totals th {
  text-align: left;
  font-weight: 400;
}

.totals__label {
  display: block;
  font-size: var(--step-body);
  line-height: 1.3;
}

.totals__note {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--step-small);
  line-height: 1.35;
  color: var(--muted);
}

.totals td {
  width: 12.5rem;
  text-align: right;
  font-size: 1.5625rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--gutter);
  align-items: end;
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
}

.lede {
  max-width: 46ch;
  font-size: var(--step-lead);
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}

.button:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
}

.link {
  font-size: var(--step-body);
  text-decoration-color: var(--line-strong);
}

/* The sheet */

.sheet {
  padding-top: clamp(1.5rem, 2.6vw, 2rem);
}

.sheet__plate { overflow: hidden; }

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding-inline: var(--margin);
}

.frame {
  margin: 0;
  min-width: 0;
  background: var(--tile);
}

.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--tile);
}

.frame figcaption {
  display: grid;
  gap: 0.12rem;
  min-height: 2.55rem;
  padding: 0.38rem 0.42rem 0.42rem;
  background: var(--surface);
  font-size: var(--step-small);
  line-height: 1.35;
}

.frame__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame__price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Produce band */

.produce {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--dark);
  color: var(--dark-ink);
}

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

.produce__strip figure {
  margin: 0;
  min-width: 0;
}

.produce__strip img {
  width: 100%;
  height: clamp(19rem, 54vh, 32.5rem);
  object-fit: cover;
  background: #1e1d1b;
}

.produce__strip figcaption {
  padding: 0.7rem 0.75rem 0;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--dark-muted);
}

.produce__body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--gutter);
  align-items: start;
  padding-block: clamp(5.5rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.produce__body h2 { max-width: 15ch; }

.produce__body p {
  max-width: 48ch;
  font-size: var(--step-body);
  line-height: 1.6;
  color: var(--dark-ink);
}

/* Item ledger */

.lines {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: var(--surface);
}

.lines__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.lines__head p {
  max-width: 48ch;
  font-size: var(--step-body);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ledger thead th {
  padding: 0 0.75rem 0.6rem 0;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.3;
}

.ledger thead th:last-child { padding-right: 0; }

.ledger .c-store { width: 22%; }
.ledger .c-unit { width: 9%; }
.ledger .c-line { width: 10%; }

.ledger td {
  padding: 0.9rem 0.75rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ledger td:last-child { padding-right: 0; }

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

.cat th {
  padding: 2.2rem 0 0.65rem;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  font-weight: 400;
}

.lines tbody:first-of-type .cat th { padding-top: 0; }

.cat__name {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.cat__sum {
  float: right;
  padding-top: 0.3rem;
  font-size: var(--step-small);
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.item__grid {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.item__grid img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  background: var(--surface);
}

.item__name {
  max-width: 52ch;
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.35;
}

.item__name a { text-decoration-color: var(--line); }
.item__name a:hover { text-decoration-color: currentColor; }

.item__nolink {
  display: inline;
  font-size: var(--step-small);
  font-weight: 400;
  color: var(--muted);
}

.item__meta,
.item__note {
  margin-top: 0.2rem;
  font-size: var(--step-small);
  line-height: 1.45;
  color: var(--muted);
}

.item__note span {
  font-weight: 500;
  color: var(--ink);
}

.item__where {
  display: none;
  margin-top: 0.2rem;
  font-size: var(--step-small);
  line-height: 1.45;
  color: var(--muted);
}

.item__where strong {
  font-weight: 500;
  color: var(--ink);
}

.store strong {
  display: block;
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.3;
}

.store span {
  display: block;
  max-width: 27ch;
  margin-top: 0.2rem;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--muted);
}

.store .channel { color: var(--ink); }

.ledger .unit,
.ledger .total {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger .unit { font-size: var(--step-body); }

.unit__qty {
  display: block;
  font-size: var(--step-small);
  color: var(--muted);
}

.ledger .total {
  font-size: var(--step-body);
  font-weight: 500;
}

/* Delivery */

.delivery {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--dark);
  color: var(--dark-ink);
}

.delivery__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
}

.delivery__head p {
  max-width: 50ch;
  font-size: var(--step-body);
  color: var(--dark-ink);
}

.delivery__calc {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gutter);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 2px solid var(--dark-ink);
}

.delivery__label {
  margin-top: 0.6rem;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--dark-muted);
}

.delivery__total {
  display: block;
  margin-top: 0;
  font-size: var(--step-head);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--dark-ink);
}

.delivery__range {
  margin-top: 0.55rem;
  font-size: var(--step-small);
  color: var(--dark-muted);
}

.control {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.75rem;
  flex-wrap: wrap;
  font-size: var(--step-body);
}

.control input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}

.control label {
  flex: 1 1 16rem;
  cursor: pointer;
}

.control__delta {
  font-size: var(--step-small);
  color: var(--dark-muted);
}

.delivery__switch p {
  max-width: 46ch;
  margin-top: 0.9rem;
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--dark-ink);
}

.delivery__table {
  width: 100%;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  border-collapse: collapse;
  table-layout: fixed;
}

.delivery__table thead th {
  padding: 0 0.75rem 0.6rem 0;
  border-bottom: 2px solid var(--dark-ink);
  text-align: left;
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--dark-muted);
}

.delivery__table thead th:first-child { width: 68%; }
.delivery__table thead th:not(:first-child) { width: 16%; text-align: right; padding-right: 0; }

.delivery__table tbody th,
.delivery__table tbody td {
  padding: 0.95rem 0.75rem 0.95rem 0;
  border-bottom: 1px solid var(--dark-line);
  text-align: left;
  vertical-align: top;
}

.delivery__table tbody tr:last-child th,
.delivery__table tbody tr:last-child td { border-bottom: 0; }

.delivery__table tbody th { width: 68%; font-weight: 400; }

.delivery__table tbody th strong {
  display: block;
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.3;
}

.delivery__table tbody th span {
  display: block;
  max-width: 54ch;
  margin-top: 0.18rem;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--dark-muted);
}

.delivery__table .num {
  width: 16%;
  text-align: right;
  font-size: var(--step-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delivery__table .fee span {
  display: block;
  max-width: 26ch;
  margin-top: 0.22rem;
  font-size: var(--step-small);
  line-height: 1.35;
  color: var(--dark-muted);
  white-space: normal;
}

.delivery__fine {
  max-width: 68ch;
  margin-top: 1.25rem;
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--dark-muted);
}

/* Savings */

.savings {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--surface);
}

.savings__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
}

.savings__head p {
  max-width: 48ch;
  font-size: var(--step-body);
}

.discounts {
  width: 100%;
  margin-top: clamp(2rem, 3.5vw, 3rem);
  border-collapse: collapse;
  table-layout: fixed;
}

.discounts thead th {
  padding: 0 0.75rem 0.55rem 0;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  font-size: var(--step-small);
  font-weight: 500;
}

.discounts thead th:last-child { padding-right: 0; }

.discounts tbody th,
.discounts tbody td {
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: var(--step-body);
  font-weight: 400;
}

.discounts tbody th { width: 22%; font-weight: 500; }
.discounts tbody td:nth-child(2) { width: 60%; }

.discounts .at {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.discounts .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 0;
}

.discounts tfoot th,
.discounts tfoot td {
  padding: 0.9rem 0 0;
  border-top: 2px solid var(--ink);
  text-align: left;
  font-size: var(--step-body);
  font-weight: 500;
}

.discounts tfoot td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.savings__reconcile {
  max-width: 70ch;
  margin-top: 1.2rem;
  font-size: var(--step-small);
  line-height: 1.55;
  color: var(--muted);
}

.overbuy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gutter);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.overbuy__intro h3 { margin-bottom: 0.75rem; }

.overbuy__intro p {
  max-width: 36ch;
  font-size: var(--step-body);
  line-height: 1.55;
}

.overbuy__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ob__item {
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.3;
}

.ob__pay {
  margin-top: 0.35rem;
  font-size: var(--step-lead);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ob__pay span,
.ob__unit span {
  font-size: var(--step-small);
  font-weight: 400;
  color: var(--muted);
}

.ob__unit {
  margin-top: 0.2rem;
  font-size: var(--step-body);
  font-variant-numeric: tabular-nums;
}

.ob__offer {
  max-width: 24ch;
  margin-top: 0.4rem;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--muted);
}

/* Method */

.method {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gutter);
  align-items: start;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.method__head h2 { max-width: 12ch; }

.method__head p {
  max-width: 38ch;
  margin-top: 1rem;
  font-size: var(--step-body);
  line-height: 1.6;
}

.method__notes {
  columns: 2;
  column-gap: 3rem;
}

.method__notes p {
  max-width: 42ch;
  margin-bottom: 1.1rem;
  font-size: var(--step-body);
  line-height: 1.55;
  break-inside: avoid;
}

.method__notes strong { font-weight: 500; }

/* Footer */

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--muted);
}

.footer p { margin: 0; }
.footer p:first-child { color: var(--ink); font-weight: 500; }
.footer p:nth-child(2) { text-align: center; }
.footer p:last-child { text-align: right; }

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* Motion */

@keyframes line-up {
  to { transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes print-out {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js h1 [data-line] {
    transform: translateY(106%);
    animation: line-up 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 110ms + 120ms);
  }

  .js [data-rise] {
    opacity: 0;
    transform: translateY(0.9rem);
    animation: rise 700ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 70ms + 260ms);
  }

  .js .sheet__plate {
    animation: print-out 1100ms var(--ease-in-out) 350ms both;
  }

  .js .sheet__plate .frame img {
    animation: settle 1400ms var(--ease-soft) 350ms both;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity var(--t-reveal) var(--ease-out), transform 750ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: background-color 180ms ease; }
  .button:active { transform: none; }
}

/* Wide and narrow arrangements */

@media (max-width: 1200px) {
  .sheet__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .masthead nav { display: none; }
  .lines__head,
  .delivery__head,
  .savings__head { grid-template-columns: minmax(0, 1fr); }
  .lines__head p,
  .delivery__head p,
  .savings__head p { margin-top: 0.85rem; }
  .produce__body,
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .hero__foot { gap: 1.25rem; }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method__notes { margin-top: 1.5rem; }
  .overbuy { grid-template-columns: minmax(0, 1fr); }
  .overbuy__intro p { max-width: 48ch; }
  .overbuy__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ledger { table-layout: auto; }
  .ledger .c-store,
  .ledger .c-unit,
  .ledger td.store,
  .ledger td.unit { display: none; }
  .ledger .c-line { width: 5.5rem; }
  .ledger td { padding: 0.8rem 0; }
  .ledger thead th { padding-right: 0; }
  .ledger .total { padding-left: 0.5rem; }
  .item__grid { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.7rem; }
  .item__grid img { width: 3rem; height: 3rem; }
  .item__where { display: block; }
  .cat__sum { float: none; display: block; padding-top: 0; }
  .method__notes { columns: 1; }
}

@media (max-width: 700px) {
  .produce__strip { grid-template-columns: minmax(0, 1fr); }
  .produce__strip img { height: 15rem; }
  .produce__strip figcaption { padding: 0.6rem 0.75rem 0; }
  .delivery__calc { grid-template-columns: minmax(0, 1fr); }
  .delivery__switch { margin-top: 1.5rem; }
  .delivery__table .fee span { display: none; }
  .delivery__table thead th:first-child,
  .delivery__table tbody th { width: 58%; }
  .delivery__table thead th:not(:first-child),
  .delivery__table .num { width: 21%; }
  .overbuy__list { grid-template-columns: minmax(0, 1fr); }
  .totals td { width: 9.5rem; }
}

@media (max-width: 620px) {
  .masthead {
    align-items: start;
    gap: 1rem;
  }
  .wordmark { font-size: var(--step-body); white-space: normal; }
  .masthead__where { font-size: var(--step-small); }
  .sheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .hero__actions .link { text-align: center; }
  h1 { max-width: none; }
  .totals th,
  .totals td { padding: 0.6rem 0; }
  .totals td { width: 8.75rem; font-size: var(--step-lead); }
  .totals__label { font-size: var(--step-body); }
  .totals__note { font-size: var(--step-small); }
  .discounts tbody th { width: 34%; }
  .discounts tbody td:nth-child(2) { width: 48%; }
  .footer { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .footer p:nth-child(2),
  .footer p:last-child { text-align: left; }
}

@media (max-width: 700px) {
  .discounts thead { display: none; }
  .discounts,
  .discounts tbody,
  .discounts tfoot,
  .discounts tr,
  .discounts th,
  .discounts td { display: block; }

  .discounts tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .discounts tbody th {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding: 0;
    border: 0;
  }

  .discounts tbody td,
  .discounts tbody td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .discounts tbody td.num {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 0;
    border: 0;
  }

  .discounts tfoot tr {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 2px solid var(--ink);
  }

  .discounts tfoot th,
  .discounts tfoot td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .discounts tfoot td { text-align: right; }
}
