/* ---------- fonts ---------- */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  --cream: #f6f0e4;
  --paper: #fffaf1;
  --sand: #ebe1d0;
  --ink: #24201c;
  --text: #4a433b;
  --muted: #62584d;
  --red: #9f3523;
  --red-deep: #7c2716;
  --rust: #b9552c;
  --orange: #d8591c;
  --chili: #cf3a26;
  --chili-deep: #a82a1b;
  --leaf: #4c6b2c;
  --olive: #4b5237;
  --gold: #f4dcb2;
  --line: #dccfbc;
  --field-line: #8f806c;
  --focus: var(--ink);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  /* The small star mark used as a separator and list marker. It is drawn, not
     typed, so no phone can swap it for an emoji. */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7'/%3E%3C/svg%3E");

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --section: clamp(60px, 9vw, 112px);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--red);
}

.accent {
  color: var(--orange);
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

[hidden],
.hidden-field {
  display: none !important;
}

[id] {
  scroll-margin-top: 24px;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.icon {
  flex: none;
}

/* ---------- type helpers ---------- */

.eyebrow {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lede {
  max-width: 36em;
  font-size: 1.125rem;
  line-height: 1.7;
}

.fine {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.text-link:hover {
  color: var(--red);
}

/* ---------- button (one style, used everywhere) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
  border-color: var(--red-deep);
  background: var(--red-deep);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.74rem;
}

.btn--block {
  width: 100%;
}

/* the second choice beside a filled button */
.btn--outline {
  background: transparent;
  color: var(--red);
}

.btn--outline:hover {
  background: #fff;
  color: var(--red-deep);
}

/* same button on dark backgrounds */
.btn--inverse {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn--inverse:hover {
  border-color: #fff;
  background: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  align-items: center;
  column-gap: 16px;
  padding-top: 8px;
}

.wordmark {
  grid-area: brand;
  justify-self: start;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--red);
}

.site-header__cta {
  grid-area: cta;
}

.site-nav {
  grid-area: nav;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
  color: var(--red);
}

@media (min-width: 760px) {
  .site-header__row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    column-gap: 36px;
    padding-block: 12px;
  }

  .site-nav {
    justify-self: end;
    margin-top: 0;
    border-top: 0;
  }

  .site-nav ul {
    gap: 0 34px;
  }
}

/* ---------- "your order was sent" bar (shown by the script when an order is still to be paid) ---------- */

.order-waiting {
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.order-waiting[hidden] {
  display: none;
}

/* one row at every width: what it is, the way to pay, and a way to put it away */
.order-waiting__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0 10px;
  padding-block: 10px;
}

.order-waiting__text {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.order-waiting__text strong {
  display: block;
  font-weight: 600;
}

.order-waiting__text span {
  color: var(--muted);
}

.order-waiting__pay {
  white-space: nowrap;
}

.order-waiting__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.order-waiting__close:hover {
  color: var(--ink);
}

.order-waiting__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- hero (home and product) ---------- */

.hero {
  display: grid;
}

.hero__copy {
  padding: 44px var(--gutter) 52px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 12.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  word-spacing: 0.05em;
}

.hero--product h1 {
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 4.6vw, 3.7rem);
  line-height: 1.02;
}

.product-sub {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 26px;
}

/* Shop page: name, price and button first, then the photo, then the description */
.hero--product .hero__head {
  padding: 34px var(--gutter) 32px;
}

.hero--product .hero__body {
  padding: 34px var(--gutter) 50px;
}

.hero--product .buy {
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero--product .ticks {
  margin-bottom: 0;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  color: var(--ink);
}

.price {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 1rem;
  font-weight: 500;
}

.price-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 22px 0 18px;
  color: var(--ink);
  font-weight: 500;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 0.8em;
  height: 0.8em;
  background: var(--rust);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: min(84vh, 720px);
  }

  .hero__copy {
    align-self: center;
    padding: 72px clamp(32px, 5vw, 80px) 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  }

  /* wide screens: photo on the left, the two text blocks stacked on the right and centred */
  .hero--product {
    grid-template-rows: minmax(56px, 1fr) auto auto minmax(56px, 1fr);
  }

  .hero--product .hero__media {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .hero--product .hero__head,
  .hero--product .hero__body {
    grid-column: 2;
    padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 0 clamp(32px, 5vw, 80px);
  }

  .hero--product .hero__head {
    grid-row: 2;
  }

  .hero--product .hero__body {
    grid-row: 3;
    padding-top: 26px;
  }

  .hero--product .buy {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }

  .hero__media {
    display: grid;
  }
}

/* ---------- label artwork panel ---------- */

.label-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 64px 30px 56px;
  background: radial-gradient(circle at 50% 42%, #f1d9ab 0, #dc9c5f 38%, #a8422a 84%);
}

.label-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: max(130%, 520px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(255 255 255 / 0.05), 0 0 0 150px rgb(255 255 255 / 0.035);
}

.label-card {
  position: relative;
  width: min(100%, 540px);
  padding: 10px;
  border-radius: 12px;
  background: #fcf5ea;
  box-shadow: 0 34px 50px -20px rgb(74 24 10 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.5) inset;
}

.label-card img {
  width: 100%;
  border-radius: 6px;
}

.price-stamp {
  position: absolute;
  top: -30px;
  right: -14px;
  display: grid;
  place-content: center;
  width: 92px;
  height: 92px;
  border: 2px solid #fcf5ea;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 10px 20px -8px rgb(74 24 10 / 0.7);
  color: #fff;
  text-align: center;
  transform: rotate(9deg);
}

.price-stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 50%;
}

.price-stamp b {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.price-stamp span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* prices with cents need a little more room */
.price-stamp.price-stamp--long b {
  font-size: 1.35rem;
}

/* a real photo of the product, used at the top of the Shop page */
.photo-panel {
  position: relative;
  overflow: hidden;
  background: #cdc7bd;
}

.photo-panel picture {
  display: block;
  height: 100%;
}

.photo-panel img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .photo-panel img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
}

.hero--product .label-panel {
  padding: 46px 34px 36px;
}

.hero--product .label-card {
  width: min(86%, 540px);
}

.label-panel--compact {
  padding: 48px 26px 40px;
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .label-panel,
  .hero--product .label-panel {
    padding: 72px 48px;
  }

  .hero--product .label-card {
    width: min(100%, 540px);
  }

  .label-panel--compact {
    padding: 56px 36px;
  }

  .price-stamp {
    top: -40px;
    right: -24px;
    width: 112px;
    height: 112px;
  }

  .price-stamp b {
    font-size: 2.5rem;
  }

  .price-stamp span {
    font-size: 0.68rem;
  }

  .label-panel--compact .price-stamp {
    top: -32px;
    right: -18px;
    width: 96px;
    height: 96px;
  }

  .label-panel--compact .price-stamp b {
    font-size: 2.1rem;
  }

  .price-stamp.price-stamp--long b {
    font-size: 1.6rem;
  }
}

/* ---------- strip ---------- */

.strip {
  --focus: #fff;
  padding: 18px 12px;
  background: var(--ink);
  color: #f7e9d1;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}

.strip li {
  display: flex;
  align-items: center;
}

.strip li:not(:last-child)::after {
  content: "";
  width: 1.15em;
  height: 1.15em;
  margin: 0 9px;
  background: #d98a5c;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

@media (min-width: 520px) {
  .strip {
    padding-inline: var(--gutter);
    font-size: 0.74rem;
    letter-spacing: 0.24em;
  }

  .strip li:not(:last-child)::after {
    margin: 0 20px;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section);
}

.section--flush {
  padding-top: 0;
}

.section--paper {
  background: var(--paper);
}

.section--sand {
  background: var(--sand);
}

.section--olive {
  --focus: #fff;
  background: var(--olive);
  color: #f1ecdd;
}

.section--olive h2 {
  color: #fffaf1;
}

.section--olive .eyebrow {
  color: var(--gold);
}

.intro {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.intro h1,
.intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 6.4vw, 4.1rem);
}

.intro .lede {
  margin-inline: auto;
}

.intro .btn {
  margin-top: 30px;
}

.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}

.page-head .intro h1 {
  font-size: clamp(2.6rem, 9vw, 5rem);
  letter-spacing: -0.03em;
}

/* ---------- selling points ---------- */

.features {
  display: grid;
  gap: 14px;
  margin-top: clamp(36px, 6vw, 60px);
}

.feature {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature__num {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-style: italic;
  line-height: 1;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 1.6rem;
}

@media (min-width: 860px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .feature {
    padding: 38px 32px 42px;
  }
}

/* ---------- ways to use ---------- */

.split {
  display: grid;
  gap: 34px;
  align-items: center;
}

.split h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
}

.uses {
  display: grid;
  border-top: 1px solid #b3a28b;
}

.uses li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 2px;
  border-bottom: 1px solid #b3a28b;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.6vw, 1.9rem);
  line-height: 1.2;
}

.uses li::before {
  content: "";
  flex: none;
  align-self: center;
  width: 0.6em;
  height: 0.6em;
  background: var(--rust);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

/* a plain ampersand; the heading font's own is too ornate */
.amp {
  font-family: var(--sans);
  font-size: 0.9em;
  font-weight: 400;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

/* ---------- product teaser and cards ---------- */

.product-teaser {
  display: grid;
  gap: 30px;
  align-items: center;
}

.product-teaser__media,
.product-card__media {
  display: block;
  text-decoration: none;
}

.product-teaser h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 6.4vw, 3.9rem);
}

.product-teaser__name {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.125rem;
}

.product-teaser__name strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.product-teaser .actions {
  margin-top: 26px;
}

@media (min-width: 860px) {
  .product-teaser {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.product-grid {
  display: grid;
  gap: 28px;
  margin-top: 44px;
}

.product-card__body {
  padding-top: 20px;
}

.product-card h3 {
  font-size: 1.8rem;
}

.product-card h3 a {
  text-decoration: none;
}

.product-card__meta {
  margin: 4px 0 10px;
  color: var(--ink);
  font-weight: 500;
}

.product-card .btn {
  margin-top: 18px;
}

@media (min-width: 760px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* ---------- made with ---------- */

/* "Made with": a plain, readable list of what is in the jar */
.made__list {
  border-top-color: var(--line);
}

.made__list li {
  border-bottom-color: var(--line);
}

.made__note {
  max-width: 30em;
  color: var(--text);
}

.made__note a {
  color: var(--ink);
  font-weight: 500;
}

.ingredients {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.45;
}

.allergens {
  margin-bottom: 18px;
  color: var(--ink);
}

/* ---------- spice level ---------- */

.pepper {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  /* an empty pepper is an outline; a filled one sets these colours */
  --pepper-body: transparent;
  --pepper-shade: transparent;
  --pepper-green: transparent;
  --pepper-shine: transparent;
  --pepper-line: var(--field-line);
  --pepper-green-line: var(--field-line);
}

.pepper path {
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.12s, stroke 0.12s;
}

.pepper__body {
  fill: var(--pepper-body);
  stroke: var(--pepper-line);
}

.pepper__shade {
  fill: var(--pepper-shade);
  stroke: none;
}

.pepper__cap,
.pepper__stem {
  fill: var(--pepper-green);
  stroke: var(--pepper-green-line);
}

.pepper path.pepper__shine {
  fill: none;
  stroke: var(--pepper-shine);
  stroke-width: 2.4;
}

/* a row of filled peppers, used where spice levels are mentioned */
.peppers {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.peppers .pepper,
.spice-scale .pepper {
  --pepper-body: var(--chili);
  --pepper-shade: var(--chili-deep);
  --pepper-green: var(--leaf);
  --pepper-shine: rgb(255 255 255 / 0.5);
  --pepper-line: var(--chili);
  --pepper-green-line: var(--leaf);
}

/* the 1 to 5 scale on the product page: the red deepens with the heat */
.spice-scale {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 4vw, 30px);
  margin: 10px 0 26px;
}

.spice-scale li {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}

.spice-scale .pepper {
  width: clamp(46px, 13vw, 72px);
  height: clamp(46px, 13vw, 72px);
}

.spice-scale li .pepper {
  opacity: var(--heat, 1);
}

/* the picker in the order form */
.fieldset.spice {
  position: relative;
  margin: 14px 0 26px;
  text-align: center;
}

.fieldset.spice legend {
  width: 100%;
  margin-bottom: 2px;
  text-align: center;
}

.spice__scale {
  max-width: 400px;
  margin: 0 auto 10px;
  text-wrap: balance;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* one open row per spice level: the jar label's peppers, the level, and how many jars */
.jar-rows {
  display: grid;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.jar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 11px 0;
}

.jar-row + .jar-row {
  border-top: 1px solid var(--line);
}

/* Every row is laid out the same way at every screen size: the level sits under its
   peppers, centred on them. It never depends on how wide one label happens to be. */
.jar-row__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.jar-row__peppers {
  display: inline-flex;
  gap: 1px;
}

.jar-row__peppers .pepper {
  width: 30px;
  height: 30px;
  --pepper-body: var(--chili);
  --pepper-shade: var(--chili-deep);
  --pepper-green: var(--leaf);
  --pepper-shine: rgb(255 255 255 / 0.5);
  --pepper-line: var(--chili);
  --pepper-green-line: var(--leaf);
}

@media (max-width: 350px) {
  .jar-row__peppers .pepper {
    width: 26px;
    height: 26px;
  }
}

.jar-row__peppers .pepper--off {
  --pepper-body: transparent;
  --pepper-shade: transparent;
  --pepper-green: transparent;
  --pepper-shine: transparent;
  --pepper-line: var(--field-line);
  --pepper-green-line: var(--field-line);
}

.jar-row label {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  position: relative;
}

/* a small flame or curl of smoke stays beside a level that has jars; it hangs off the
   end of the label so the words stay centred under the peppers */
.jar-row.has-jars[data-fx] label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0.95em;
  height: 0.95em;
  margin: -0.5em 0 0 6px;
  background: center / contain no-repeat;
}

.jar-row.has-jars[data-fx="fire"] label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d8591c' d='M12.4 1.8c.7 4 4.8 6.2 4.8 11.2a5.2 5.2 0 0 1-10.4 0c0-2.2.9-3.7 2.1-4.8-.1 2 .7 3.2 1.9 3.3.6-3.3-.5-6.3 1.6-9.7z'/%3E%3Cpath fill='%23f6c04a' d='M12 12.8c1 1.5 2.1 2.5 2.1 4.2a2.1 2.1 0 0 1-4.2 0c0-1.6 1.1-2.6 2.1-4.2z'/%3E%3C/svg%3E");
}

.jar-row.has-jars[data-fx="smoke"] label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round'%3E%3Cpath stroke='%23a3958b' stroke-width='2.6' d='M8 21.5c-3-3.5 2.5-5.5 0-9s2.5-5 .5-8.5'/%3E%3Cpath stroke='%23857970' stroke-width='2.2' d='M15.5 21.5c-2.5-3 2.5-5 0-8s1.5-4 .5-6.5'/%3E%3C/svg%3E");
}

.stepper {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--field-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background-color 0.12s;
}

.stepper__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.stepper__btn:not([aria-disabled="true"]):hover {
  border-color: var(--red);
  color: var(--red);
}

.stepper__btn:not([aria-disabled="true"]):active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.stepper__btn[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--field-line);
  cursor: default;
}

/* without the script this is an ordinary number box; with it, a plain count between the buttons */
.stepper__count {
  width: 76px;
  min-height: 44px;
  padding: 6px 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}

.spice.is-enhanced .stepper__count {
  width: 44px;
  padding: 0;
  cursor: default;
  border-color: transparent;
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
}

.spice.is-enhanced .stepper__count::-webkit-outer-spin-button,
.spice.is-enhanced .stepper__count::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.jar-row.has-jars .stepper__count {
  color: var(--red);
  font-weight: 600;
}

/* the hottest level: a wave of fire rises from the bottom of the section to the top */
.spice__blaze {
  position: absolute;
  inset: -44px -8px -10px;
  z-index: 3;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
}

.spice__blaze-wave {
  position: absolute;
  top: 100%;
  right: -4%;
  left: -4%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 190px;
  opacity: 0;
}

/* the glow that trails underneath the flames */
.spice__blaze-wave::after {
  content: "";
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgb(248 198 79 / 0.55), rgb(238 132 39 / 0.42) 32%, rgb(216 89 28 / 0.2) 70%, rgb(216 89 28 / 0));
}

.flame {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 13%;
  height: 70px;
  margin: 0 -2.2%;
  transform-origin: 50% 100%;
}

.flame__outer {
  fill: var(--orange);
}

.flame__inner {
  fill: #f8c64f;
}

.flame:nth-child(3n + 1) { height: 84px; margin-top: -10px; }
.flame:nth-child(4n + 2) { height: 58px; margin-top: 8px; }
.flame:nth-child(5n + 3) { height: 92px; margin-top: -16px; }

.spice.is-blazing .spice__blaze-wave {
  animation: blaze-sweep 1.6s cubic-bezier(0.3, 0.05, 0.55, 1) both;
}

@keyframes blaze-sweep {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(-1 * var(--blaze-travel, 440px))); }
}

.spice.is-blazing .flame {
  animation: flame-flicker 0.3s ease-in-out infinite alternate;
}

.spice.is-blazing .flame:nth-child(2n) { animation-delay: -0.12s; animation-duration: 0.26s; }
.spice.is-blazing .flame:nth-child(3n) { animation-delay: -0.2s; animation-duration: 0.34s; }

@keyframes flame-flicker {
  from { transform: scaleY(0.84) rotate(-5deg); }
  to { transform: scaleY(1.14) rotate(5deg); }
}

/* a smoky level: curls of smoke drift up through the section, as on that jar's label */
.spice__smoke {
  position: absolute;
  inset: -44px -8px -10px;
  z-index: 3;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
}

.spice__smoke-wave {
  position: absolute;
  top: 100%;
  right: -6%;
  left: -6%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 250px;
  opacity: 0;
}

/* the haze that trails underneath the curls */
.spice__smoke-wave::after {
  content: "";
  position: absolute;
  top: 96px;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgb(184 170 160 / 0), rgb(184 170 160 / 0.4) 26%, rgb(184 170 160 / 0.24) 62%, rgb(184 170 160 / 0));
}

.wisp {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 17%;
  height: 150px;
  margin: 0 -3%;
  overflow: visible;
  transform-origin: 50% 100%;
}

.wisp__back {
  fill: #b8aaa0;
  opacity: 0.62;
}

.wisp__front {
  fill: #8f8178;
  opacity: 0.5;
}

.wisp:nth-child(3n + 1) { height: 186px; margin-top: -8px; }
.wisp:nth-child(4n + 2) { height: 124px; margin-top: 30px; }
.wisp:nth-child(5n + 3) { height: 204px; margin-top: -18px; }

.spice.is-smoking .spice__smoke-wave {
  animation: smoke-sweep 2.5s cubic-bezier(0.22, 0.08, 0.45, 1) both;
}

@keyframes smoke-sweep {
  0% { opacity: 0; transform: translateY(0); }
  14% { opacity: 1; }
  62% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(calc(-1 * var(--blaze-travel, 500px))); }
}

.spice.is-smoking .wisp {
  animation: wisp-sway 1.15s ease-in-out infinite alternate;
}

.spice.is-smoking .wisp:nth-child(2n) { animation-delay: -0.4s; animation-duration: 0.95s; }
.spice.is-smoking .wisp:nth-child(3n) { animation-delay: -0.75s; animation-duration: 1.3s; }

@keyframes wisp-sway {
  from { transform: skewX(-9deg) scaleX(0.9); }
  to { transform: skewX(9deg) scaleX(1.1); }
}

/* the peppers of the level just added pop, one after another */
.jar-row.is-popping .pepper:not(.pepper--off) {
  animation: pepper-pop 0.5s ease-out both;
}

.jar-row.is-popping .pepper:nth-child(2) { animation-delay: 0.07s; }
.jar-row.is-popping .pepper:nth-child(3) { animation-delay: 0.14s; }
.jar-row.is-popping .pepper:nth-child(4) { animation-delay: 0.21s; }
.jar-row.is-popping .pepper:nth-child(5) { animation-delay: 0.28s; }

@keyframes pepper-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.24) rotate(-9deg); }
  70% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1); }
}

.spice__value {
  min-height: 1.5em;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

.spice__limit {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.spice__error {
  margin-top: 4px;
  color: var(--red);
  font-weight: 500;
  text-align: center;
}

/* at-a-glance card on the home page */
.spec {
  display: grid;
  gap: 0;
  margin: 0;
  background: #fff;
}

.spec > div {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.spec > div:first-child {
  padding-top: 0;
}

.spec > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec dt {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.spec dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
}

.order-form__made {
  margin: -6px 0 22px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.order-form__made strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- ordering ---------- */

.order-solo {
  max-width: 600px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
}

.steps li.is-done::before {
  content: "";
  background: var(--red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

/* steps that are ours to do: a quiet number, so they do not read as boxes waiting for a tick */
.steps li.is-us::before {
  border-color: var(--line);
  color: var(--muted);
}

.steps__tag {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.steps li.is-done .steps__tag,
.steps li.is-you .steps__tag {
  color: var(--red);
}

/* "I've paid": the customer's own tick */
.tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.tick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.tick__box {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--field-line);
  border-radius: 6px;
  background: #fff center / 18px no-repeat;
  transition: background-color 0.12s, border-color 0.12s;
}

.tick input:checked ~ .tick__box {
  border-color: var(--red);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E");
}

.tick input:focus-visible ~ .tick__box {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.tick.is-nudging {
  animation: tick-nudge 1s ease-in-out 2;
}

@keyframes tick-nudge {
  50% {
    border-color: var(--red);
    box-shadow: 0 0 0 5px rgb(159 53 35 / 0.16);
  }
}

.steps .tick__hint {
  margin-top: 8px;
}

.card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.order-form__product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.order-form__product strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-bottom: 18px;
}

.fieldset {
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* city on its own line, state and ZIP side by side on a phone */
.field-row--address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.field-row--address .field:first-child {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
}

select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2324201c' stroke-width='1.8'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  appearance: none;
}

textarea {
  display: block;
  min-height: 104px;
  line-height: 1.5;
  resize: vertical;
}

.field__hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.field--message {
  margin-top: 6px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--ink);
  outline-offset: 1px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  margin: 6px 0 22px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  color: var(--ink);
}

.summary__label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary__amount {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.summary__amount small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.summary__note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (min-width: 560px) {
  .card {
    padding: 34px;
  }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .field-row--address {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
  }

  .field-row--address .field:first-child {
    grid-column: auto;
  }
}


/* ---------- waitlist (small, secondary) ---------- */

.waitlist {
  padding-block: clamp(44px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.waitlist__grid {
  display: grid;
  gap: 22px;
}

.waitlist .eyebrow {
  margin-bottom: 10px;
}

.waitlist h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4.4vw, 2.2rem);
}

.waitlist__form label {
  display: block;
  margin-bottom: 8px;
}

.waitlist__controls {
  display: grid;
  gap: 10px;
}

.waitlist .fine {
  margin-top: 12px;
}

@media (min-width: 560px) {
  .waitlist__controls {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 900px) {
  .waitlist__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

/* ---------- contact ---------- */

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  background: var(--paper);
}

.contact-card h2 {
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-card__value {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.6vw, 1.3rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-card .btn {
  margin-top: 8px;
}

@media (min-width: 760px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* three cards: the last one runs the full width rather than leaving a gap beside it */
  .contact-cards--three > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .contact-cards--three {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-cards--three > :last-child {
    grid-column: auto;
  }
}

/* ---------- confirmation and 404 ---------- */

.confirm__inner {
  max-width: 660px;
}

.confirm h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 9vw, 4.2rem);
  letter-spacing: -0.03em;
}

.confirm .lede {
  margin-bottom: 30px;
}

/* pay page with no order: the way to the order form sits right under the intro */
.confirm__first {
  margin: -14px 0 34px;
}

.notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}

.order-summary {
  margin-bottom: 36px;
  background: var(--paper);
}

.order-summary__sent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: -4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.order-summary__sent::before {
  content: "";
  width: 26px;
  height: 26px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.order-summary h2 {
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.order-summary__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.order-summary__line strong {
  font-weight: 500;
}

.order-summary__ref {
  margin-bottom: 10px;
  color: var(--ink);
}

.order-summary__ref strong {
  letter-spacing: 0.08em;
}

.order-summary__email strong {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.order-summary__spice strong {
  letter-spacing: 0;
}

.order-summary__message strong {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.steps .btn {
  margin-top: 16px;
}

.pay-options .btn {
  padding-inline: 18px;
}

/* Zelle: one quieter button under the Venmo one, then a card with what to send and the code */
.pay-options .btn--outline {
  margin-top: 10px;
}

.zelle {
  display: grid;
  justify-items: center;
  margin-top: 12px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.zelle__send,
.zelle__to {
  max-width: 320px;
  line-height: 1.45;
  text-wrap: balance;
}

/* the code is the other way to pay with Zelle: set it off from the line above with a rule */
.zelle__scan {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  line-height: 1.45;
  text-wrap: balance;
}

.zelle__qr {
  width: min(100%, 228px);
  height: auto;
  margin-top: 10px;
  image-rendering: pixelated;
}

/* on a computer the code is scanned off the monitor from further away, so draw it larger */
@media (min-width: 760px) {
  .zelle__qr {
    width: 280px;
  }
}

.zelle__to {
  margin-top: 12px;
}

/* step titles are block-level serif; inside the Zelle card bold is just bold */
.steps .zelle strong {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.steps .zelle__send strong {
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.steps .zelle__phone {
  max-width: 300px;
  margin-top: 10px;
  text-wrap: balance;
}

.steps .fine {
  margin-top: 12px;
}

.steps .text-link {
  margin-top: 6px;
}

.confirm__next {
  margin-bottom: 22px;
  font-size: 1.9rem;
}

.confirm__help {
  margin: 34px 0 10px;
}

/* ---------- optional pages: reviews, gallery, ingredients, text ---------- */

.reviews {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
}

.review {
  background: var(--paper);
}

.review blockquote {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
}

.review__by {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review__by span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: calc(var(--cols, 4) * 340px);
  margin: 0 auto 30px;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.star svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--field-line);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.star--on svg {
  fill: var(--orange);
  stroke: var(--orange);
}

.review__video {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery figure {
  margin: 0;
}

.gallery--single {
  grid-template-columns: 1fr;
  max-width: 400px;
}

.gallery picture {
  display: block;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--sand);
  object-fit: cover;
}

/* home page: the first photo is the big one on a phone, the rest sit side by side under it */
.gallery--feature > :first-child {
  grid-column: 1 / -1;
}

/* Photos page: one photo per row on a phone, so each is seen large */
.gallery--stack {
  grid-template-columns: 1fr;
  max-width: 460px;
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose {
  display: grid;
  gap: 20px;
  max-width: 720px;
  font-size: 1.125rem;
}

.prose__figure {
  margin: 0 0 10px;
}

.prose__figure img {
  width: 100%;
  border-radius: var(--radius);
}

.ingredient-card h2 {
  font-size: 1.9rem;
}

.ingredient-card h2 a {
  text-decoration: none;
}

.ingredient-card h3 {
  margin: 20px 0 8px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .gallery,
  .gallery--stack {
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 18px;
    max-width: calc(var(--cols, 4) * 340px);
  }

  .gallery--feature > :first-child {
    grid-column: auto;
  }

  .gallery--single {
    max-width: 440px;
  }
}

/* ---------- footer ---------- */

.site-footer {
  --focus: #fff;
  padding: 52px 0 28px;
  background: var(--ink);
  color: #d9cdb9;
  font-size: 0.98rem;
}

.site-footer__grid {
  display: grid;
  gap: 30px;
}

.wordmark--light {
  display: inline-block;
  color: #fffaf1;
}

.wordmark--light span {
  color: #e98a63;
}

.site-footer__tagline {
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

.site-footer__links {
  display: grid;
  gap: 2px;
  align-content: start;
}

.site-footer__links a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: #fffaf1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: #b9ad9b;
  font-size: 0.88rem;
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.6fr;
    gap: 48px;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
