/* The Aloe Farm
   Colors come from inside the greenhouse: the milky light through the film, the aloe leaf and its rind, and the gel
   inside the leaf. Every color is solid: no tints, no see-through layers, no gradients, no divider lines, no boxes
   with borders. Type: Young Serif for headings, Libre Franklin for everything else, at normal letter spacing. */

@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/assets/fonts/libre-franklin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/assets/fonts/libre-franklin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --film: #f1f4ee;        /* greenhouse light: the page */
  --rind: #1e3a2b;        /* the dark outside of the leaf: text and dark bands */
  --leaf: #3d6b48;        /* aloe leaf: buttons and links */
  --gel: #d8eaa4;         /* the gel inside the leaf: highlights */
  --paper: #ffffff;       /* the order card and the receipt */
  --blush: #f4dcd6;       /* soft rose: the home page band of pictures */
  --error: #8a2717;       /* form errors */

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1.125rem, 4vw, 2.75rem);
  --section: clamp(4rem, 9vw, 8rem);

  --step-0: 1.0625rem;                                   /* body, 17px */
  --step-1: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); /* lead */
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);      /* h3 */
  --step-3: clamp(2rem, 1.45rem + 2.3vw, 3.35rem);       /* h2 */
  --step-4: clamp(2.55rem, 1.6rem + 3.9vw, 4.9rem);      /* h1 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--film); color: var(--rind); font: 400 var(--step-0)/1.6 var(--sans); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--leaf); text-decoration-thickness: 0.075em; text-underline-offset: 0.2em; }
a:hover { color: var(--rind); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
::selection { background: var(--gel); color: var(--rind); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--rind); color: var(--film); padding: 0.75rem 1rem; border-radius: 0.375rem; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; }
.prose { max-width: 38em; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.125rem; padding: 0.8rem 1.45rem; border: 2px solid transparent; border-radius: 0.25rem; font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-leaf { background: var(--leaf); color: var(--paper); }
.btn-leaf:hover { background: var(--rind); color: var(--paper); }
.btn-line { color: var(--leaf); background: transparent; padding-inline: 0.4rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.btn-line:hover { color: var(--rind); }
.btn-gel { background: var(--gel); color: var(--rind); }
.btn-gel:hover { background: var(--paper); color: var(--rind); }
.btn:disabled, .btn:disabled:hover { background: var(--film); color: var(--rind); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: var(--film); }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--rind); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--leaf); }
.seal-mark { display: block; width: 3rem; aspect-ratio: 742 / 728; background: currentColor; -webkit-mask: url("/assets/img/seal.svg") center / contain no-repeat; mask: url("/assets/img/seal.svg") center / contain no-repeat; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; }
.site-nav a { display: block; padding: 0.5rem 0; color: var(--rind); font-weight: 600; font-size: 0.98rem; text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-nav a:hover { text-decoration-line: underline; }
.site-nav a[aria-current="page"] { color: var(--leaf); text-decoration-line: underline; }
.header-cta { min-height: 2.75rem; padding: 0.6rem 1.2rem; }
.menu-toggle { display: none; }

@media (max-width: 62rem) {
  .header-row { min-height: 4.25rem; }
  .seal-mark { width: 2.6rem; }
  .brand-name { font-size: 1.3rem; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; min-height: 2.75rem; padding: 0.5rem 1rem; border: 0; border-radius: 0.25rem; background: var(--rind); color: var(--film); font: 600 0.98rem/1 var(--sans); cursor: pointer; }
  .menu-toggle[aria-expanded="true"] { background: var(--leaf); color: var(--paper); }
  .header-cta { display: none; }
  .site-nav { margin: 0; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rind); }
  .js .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 0.5rem 0 1.25rem; }
  .site-nav a { padding: 0.85rem 0; font-size: 1.15rem; }
  .js .site-nav a { color: var(--film); }
  .js .site-nav a[aria-current="page"], .js .site-nav a:hover { color: var(--gel); }
  .site-nav .nav-order { display: block; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-block: 0.75rem; }
}
@media (min-width: 62.01rem) { .site-nav .nav-order { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.band { background: var(--rind); color: var(--film); }
.band a:not(.btn) { color: var(--gel); }
.band a:not(.btn):hover { color: var(--paper); }
.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 5fr 6fr; }
  .split.flip > :first-child { order: 2; }
}
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2, .split h2, .compost-row h2 { margin-bottom: 0.45em; }
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { max-width: 14em; margin-bottom: 0.35em; }

/* ---------- The hoop: a photo with an arched top, the shape of the greenhouse ---------- */
.hoop { margin: 0; }
.hoop img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; }
.hoop figcaption { margin-top: 0.85rem; font-size: 0.9rem; }
.hoop.wide img { aspect-ratio: 1 / 1; }

/* ---------- Home: hero ----------
   The headline, then a stage of round pictures on blush: the 13 scent labels, the soap, the seal and aloe from the
   greenhouses, in tilted columns that drift up and down. The stage's top edge arches up toward the headline, and a
   cream bar of the soap sits in the middle of it. The offer and the buttons come after. The moving pictures are
   decoration only (hidden from screen readers); they stop for people who turn off motion, have a pause button, and
   rest while scrolled out of view. One unit (--u) sets the size of everything in the stage. */
.hero { --u: 0.72rem; padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; }
.hero-head { padding: 0 var(--gutter); }
.hero h1 { font-size: clamp(2.05rem, 1.35rem + 1.9vw, 3rem); max-width: 16em; margin: 0 auto 0.35em; }
.hero .lead { margin: 0 auto; max-width: 40em; font-size: var(--step-0); }
.hero-stage { position: relative; margin-top: clamp(1rem, 2.5vw, 1.5rem); height: clamp(13.5rem, 38vh, 27rem); }
.drift { position: absolute; inset: 0; overflow: hidden; background: var(--blush); border-radius: 50% / 3rem 3rem 1.5rem 1.5rem; pointer-events: none; }
.drift-tilt { position: absolute; left: 50%; top: 50%; width: 220%; height: 320%; display: flex; justify-content: center; gap: calc(1.5 * var(--u)); transform: translate(-50%, -50%) rotate(-14deg); }
.drift-col { flex: none; width: calc(9.5 * var(--u)); }
.drift-track { display: flex; flex-direction: column; align-items: center; animation: drift-up var(--t, 50s) linear var(--d, 0s) infinite; will-change: transform; }
.drift-col:nth-child(even) .drift-track { animation-name: drift-down; }
@keyframes drift-up { from { transform: translateY(0); } to { transform: translateY(-25%); } }
@keyframes drift-down { from { transform: translateY(-25%); } to { transform: translateY(0); } }
.drift.is-paused .drift-track, .drift.is-away .drift-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .drift-track { animation: none; } }
/* The bar: a 3D picture with its own soft shadow, on a see-through background. */
.hero-bar { position: absolute; left: 50%; top: 54%; width: min(72vw, 44vh, 26rem); height: auto; transform: translate(-50%, -50%); }
.hero-offer { padding: clamp(1rem, 2.5vw, 1.4rem) var(--gutter) 0; }
.offer { margin: 0 !important; font-family: var(--serif); font-size: clamp(2rem, 1.35rem + 1.9vw, 2.8rem); line-height: 1.1; }
.offer-note { max-width: 40em; margin: 0.5rem auto 1.25rem !important; }
.tile { flex: none; display: block; width: calc(var(--w) * var(--u)); height: calc(var(--w) * var(--u)); margin-bottom: calc(1.5 * var(--u)); border-radius: 50%; background: center / cover no-repeat; background-image: var(--a); }
@supports (background-image: image-set(url("/assets/img/favicon.svg") 1x)) { .tile { background-image: image-set(var(--a) 1x, var(--b) 2x); } }
.tile.xl { --w: 9.5; }
.tile.l { --w: 8.75; }
.tile.m { --w: 7.5; }
.tile.s { --w: 6.25; }
.t-lavender { --a: url("/assets/img/lavender-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/lavender-aloe-vera-soap-label-280.webp"); }
.t-peppermint { --a: url("/assets/img/peppermint-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/peppermint-aloe-vera-soap-label-280.webp"); }
.t-tea-tree { --a: url("/assets/img/tea-tree-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/tea-tree-aloe-vera-soap-label-280.webp"); }
.t-eucalyptus { --a: url("/assets/img/eucalyptus-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/eucalyptus-aloe-vera-soap-label-280.webp"); }
.t-honey-vanilla { --a: url("/assets/img/honey-vanilla-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/honey-vanilla-aloe-vera-soap-label-280.webp"); }
.t-coconut { --a: url("/assets/img/coconut-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/coconut-aloe-vera-soap-label-280.webp"); }
.t-lemon { --a: url("/assets/img/lemon-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/lemon-aloe-vera-soap-label-280.webp"); }
.t-rosemary { --a: url("/assets/img/rosemary-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/rosemary-aloe-vera-soap-label-280.webp"); }
.t-cedarwood { --a: url("/assets/img/cedarwood-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/cedarwood-aloe-vera-soap-label-280.webp"); }
.t-bergamot { --a: url("/assets/img/bergamot-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/bergamot-aloe-vera-soap-label-280.webp"); }
.t-turmeric { --a: url("/assets/img/turmeric-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/turmeric-aloe-vera-soap-label-280.webp"); }
.t-charcoal { --a: url("/assets/img/charcoal-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/charcoal-aloe-vera-soap-label-280.webp"); }
.t-unscented { --a: url("/assets/img/unscented-aloe-vera-soap-label-140.webp"); --b: url("/assets/img/unscented-aloe-vera-soap-label-280.webp"); }
.t-stamped { --a: url("/assets/img/aloe-vera-soap-bar-stamped-tile-152.webp"); --b: url("/assets/img/aloe-vera-soap-bar-stamped-tile-304.webp"); }
.t-inhand { --a: url("/assets/img/aloe-vera-soap-bar-in-hand-tile-152.webp"); --b: url("/assets/img/aloe-vera-soap-bar-in-hand-tile-304.webp"); }
.t-seal { --a: url("/assets/img/the-aloe-farm-seal-metal-tile-152.webp"); --b: url("/assets/img/the-aloe-farm-seal-metal-tile-304.webp"); }
.t-leaves { --a: url("/assets/img/aloe-vera-leaves-greenhouse-tile-152.webp"); --b: url("/assets/img/aloe-vera-leaves-greenhouse-tile-304.webp"); }
.t-potted { --a: url("/assets/img/potted-aloe-vera-plant-greenhouse-tile-152.webp"); --b: url("/assets/img/potted-aloe-vera-plant-greenhouse-tile-304.webp"); }
.t-speckled { --a: url("/assets/img/aloe-vera-speckled-leaves-tile-152.webp"); --b: url("/assets/img/aloe-vera-speckled-leaves-tile-304.webp"); }
.t-rows { --a: url("/assets/img/aloe-vera-greenhouse-rows-tile-152.webp"); --b: url("/assets/img/aloe-vera-greenhouse-rows-tile-304.webp"); }
.t-pots { --a: url("/assets/img/aloe-vera-pots-greenhouse-tile-152.webp"); --b: url("/assets/img/aloe-vera-pots-greenhouse-tile-304.webp"); }
.hero .actions { justify-content: center; }
/* Pause and play: a round button with the usual two bars or triangle, drawn in CSS; its words are for screen readers. */
.drift-toggle { position: absolute; z-index: 2; right: max(var(--gutter), 5%); bottom: 1.5rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: var(--rind); cursor: pointer; }
.drift-toggle::before { content: ""; box-sizing: border-box; width: 0.8rem; height: 0.9rem; border-left: 0.28rem solid var(--film); border-right: 0.28rem solid var(--film); }
.drift-toggle.is-paused::before { width: 0; height: 0; margin-left: 0.2rem; border-top: 0.5rem solid transparent; border-bottom: 0.5rem solid transparent; border-left: 0.8rem solid var(--film); border-right: 0; }
.drift-toggle:hover { background: var(--leaf); }
@media (min-width: 48rem) {
  .hero { --u: 1rem; }
  .drift { border-radius: 50% / 6rem 6rem 3rem 3rem; }
  .hero .lead { font-size: var(--step-1); }
}

/* ---------- Aloe plants growing from the top edge of each dark band and the footer ----------
   Silhouettes of the aloe from the farm's seal, in the band's own color, a few at each side. */
.band, .site-footer { position: relative; }
.band::before, .site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(3rem, 6vw, 5.5rem); background: var(--rind); pointer-events: none;
  -webkit-mask: url("/assets/img/aloe.svg") 1.5% 100% / auto 48% no-repeat, url("/assets/img/aloe.svg") 5% 100% / auto 100% no-repeat, url("/assets/img/aloe.svg") 9.5% 100% / auto 66% no-repeat, url("/assets/img/aloe.svg") 90% 100% / auto 58% no-repeat, url("/assets/img/aloe.svg") 95% 100% / auto 88% no-repeat, url("/assets/img/aloe.svg") 99% 100% / auto 42% no-repeat;
  mask: url("/assets/img/aloe.svg") 1.5% 100% / auto 48% no-repeat, url("/assets/img/aloe.svg") 5% 100% / auto 100% no-repeat, url("/assets/img/aloe.svg") 9.5% 100% / auto 66% no-repeat, url("/assets/img/aloe.svg") 90% 100% / auto 58% no-repeat, url("/assets/img/aloe.svg") 95% 100% / auto 88% no-repeat, url("/assets/img/aloe.svg") 99% 100% / auto 42% no-repeat; }

/* ---------- The soap: the stamped bar, cut round ---------- */
.puck { margin: 0; justify-self: center; width: min(100%, 27rem); }
.puck img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.puck figcaption { margin-top: 1rem; text-align: center; font-size: 0.9rem; }
.facts { margin: 1.75rem 0 2rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.4rem 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

/* ---------- Thirteen scents: the round labels with their names, centered ---------- */
.scents-home .section-head { margin-inline: auto; text-align: center; }
.scent-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 0.75rem; max-width: 66rem; margin: 0 auto; }
.scent-grid li { width: 6rem; }
.scent-grid a { display: grid; justify-items: center; gap: 0.55rem; color: var(--rind); text-decoration: none; text-align: center; font-family: var(--serif); font-size: 1.1rem; line-height: 1.15; }
.scent-grid a:hover, .scent-grid a:focus-visible { color: var(--leaf); }
.scent-grid a:hover span:last-child, .scent-grid a:focus-visible span:last-child { text-decoration: underline; text-underline-offset: 0.2em; }
.scent-dot { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: center / cover no-repeat; background-image: var(--a); }
@supports (background-image: image-set(url("/assets/img/favicon.svg") 1x)) { .scent-dot { background-image: image-set(var(--a) 1x, var(--b) 2x); } }
@media (min-width: 48rem) { .scent-grid { gap: 2rem 1.5rem; } .scent-grid li { width: 8rem; } .scent-grid a { font-size: 1.3rem; } }

/* ---------- Tuesday delivery ---------- */
.tuesday { padding-block: var(--section); }
.tuesday-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.tuesday h2 { margin-bottom: 0.45em; }
.next-day { margin-top: 1.25rem; }
.next-day strong { color: var(--gel); }
.steps { list-style: none; display: grid; gap: 1.75rem; }
.steps h3 { font-size: 1.45rem; margin-bottom: 0.3em; }
.tuesday .actions { margin-top: 2.25rem; }
@media (min-width: 56rem) { .tuesday-grid { grid-template-columns: 5fr 6fr; align-items: start; } }

/* ---------- Compost ---------- */
.compost-row { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 52rem) { .compost-row { grid-template-columns: 5fr 6fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--rind); color: var(--film); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.site-footer a { color: var(--film); }
.site-footer a:hover { color: var(--gel); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .seal-mark { width: 7.5rem; color: var(--gel); margin-bottom: 1.25rem; }
.footer-brand p { max-width: 22em; }
.footer-name { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin-bottom: 0.4em !important; color: var(--film) !important; }
.footer-h { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 0.8rem; color: var(--gel); }
.footer-list { list-style: none; display: grid; gap: 0.55rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.9rem; }
.footer-base p { margin: 0; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.btn-line.on-dark { color: var(--gel); }
.btn-line.on-dark:hover { color: var(--paper); }

[hidden] { display: none !important; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.page-head h1 { margin-bottom: 0.4em; }
.page-head .lead { margin-bottom: 0; }
.page-head .actions { margin-top: 1.75rem; }
.page-head .facts { margin-bottom: 0; }
.page-head .hoop { max-width: 30rem; justify-self: center; width: 100%; }
.next-day.on-light strong { color: var(--leaf); }
.block + .block { margin-top: clamp(3.5rem, 7vw, 6rem); }
.block h2 { margin-bottom: 0.5em; }
.two-col { display: grid; gap: 1.5rem clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 52rem) { .two-col { grid-template-columns: 5fr 6fr; } }
.tick-list { display: grid; gap: 0.4rem; padding-left: 1.2em; }
.qa { display: grid; gap: 1.75rem; }
.qa > div { display: grid; gap: 0.4rem 3rem; }
.qa h3 { font-size: 1.35rem; }
.qa p { max-width: 38em; }
@media (min-width: 52rem) { .qa > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.photo-pair { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; align-items: end; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-pair figcaption, .plain-photo figcaption { margin-top: 0.7rem; font-size: 0.9rem; }
.plain-photo { margin: 0; }
.plain-photo img { width: 100%; }
.pull { margin: 0; }
.pull p { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.pull footer { margin-top: 1rem; font-weight: 600; }
.cta-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta-band .wrap { display: grid; gap: 1.5rem 3rem; align-items: center; }
.cta-band h2 { margin-bottom: 0.3em; }
@media (min-width: 52rem) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* ---------- Soap page: the scents and the order card ---------- */
.shop { padding-block: 0 var(--section); scroll-margin-top: 1rem; }
.shop-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .shop-grid { grid-template-columns: minmax(0, 1fr) 27rem; gap: clamp(3rem, 5vw, 5rem); } }
.shop .section-head { margin-bottom: 2rem; }
.scent-group + .scent-group { margin-top: 2.5rem; }
.group-h { font: 600 1rem/1.3 var(--sans); margin-bottom: 0.25rem; }
.scent-list { list-style: none; }
.scent { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.6rem 0; scroll-margin-top: 6rem; }
.scent img { width: 4rem; height: 4rem; border-radius: 50%; }
.scent h3 { font-size: 1.5rem; }
.scent p { margin: 0.2rem 0 0; font-size: 0.95rem; }
.scent:target { background: var(--gel); margin-inline: -0.75rem; padding-inline: 0.75rem; }
.add { min-width: 6.75rem; min-height: 2.75rem; padding: 0.55rem 1rem; border: 0; border-radius: 0.25rem; background: var(--leaf); color: var(--paper); font: 600 0.98rem/1 var(--sans); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.add:hover { background: var(--rind); color: var(--paper); }
.add.is-in { background: var(--gel); color: var(--rind); }
.add:disabled, .add:disabled:hover { background: var(--film); color: var(--rind); cursor: not-allowed; }
@media (max-width: 26rem) { .scent { grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: 0.75rem; } .scent img { width: 3.25rem; height: 3.25rem; } .scent h3 { font-size: 1.3rem; } .add { min-width: 0; } }

.order-card { background: var(--paper); padding: clamp(1.25rem, 3vw, 1.75rem); scroll-margin-top: 1rem; }
.form-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.form-head .seal-mark { width: 3.25rem; color: var(--rind); flex-shrink: 0; }
.form-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; margin: 0 !important; }
.form-sub { margin: 0.15rem 0 0 !important; font-size: 0.95rem; }
.order-lines .empty { margin: 1rem 0 0.25rem; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name qty" "type type"; gap: 0.35rem 0.75rem; padding: 0.6rem 0; }
.line-name { grid-area: name; align-self: center; font-weight: 600; }
.qty { grid-area: qty; display: inline-flex; align-items: center; gap: 0.2rem; }
.qty button { width: 2.375rem; height: 2.375rem; border: 0; border-radius: 50%; background: var(--film); color: var(--rind); font: 600 1.15rem/1 var(--sans); cursor: pointer; }
.qty button:hover { background: var(--gel); }
.qty button:disabled, .qty button:disabled:hover { background: var(--film); cursor: not-allowed; }
.qty output { min-width: 2rem; text-align: center; font-weight: 600; }
.line select { grid-area: type; width: auto; min-height: 2.5rem; padding: 0.4rem 2.25rem 0.4rem 0.7rem; font-size: 0.95rem; }
.totals { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1rem 0 0 !important; }
.totals strong { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1; }
.fee-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0 0 !important; }
.totals.due { margin-top: 0.75rem !important; }
.fine { margin-top: 0.75rem !important; font-size: 0.9rem; }
.nudge { margin-top: 0.5rem !important; color: var(--leaf); font-weight: 600; }
.order-sum { margin-top: 1.75rem; }
.order-sum > .fee-row:first-child { margin-top: 0 !important; }
.order-form fieldset { border: 0; margin: 1.75rem 0 0; padding: 0; min-width: 0; }
.order-form legend { padding: 0; margin-bottom: 0.85rem; font-family: var(--serif); font-size: 1.35rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fields .wide { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.8rem; border: 0; border-bottom: 2px solid var(--rind); border-radius: 0; background: var(--film); color: var(--rind); font: inherit; font-size: 1rem; }
select { -webkit-appearance: none; appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231e3a2b' stroke-width='2'/%3E%3C/svg%3E"); background-position: right 0.8rem center; background-size: 0.75rem auto; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--leaf); outline-offset: 1px; border-bottom-color: var(--leaf); }
[aria-invalid="true"] { border-bottom-color: var(--error) !important; }
.form-error { margin-top: 1.25rem !important; color: var(--error); font-weight: 600; }
.pay-option { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.95rem 1rem; background: var(--film); cursor: pointer; }
.pay-option + .pay-option { margin-top: 0.6rem; }
.pay-option.is-picked { background: var(--gel); }
.pay-option input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--leaf); }
.pay-text strong { display: block; }
.pay-text > span { display: block; margin-top: 0.15rem; font-size: 0.95rem; }
.form-actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.form-actions .btn { width: 100%; }
.preview-label { display: block; margin-top: 1rem; }
.preview-label > span { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.preview-label textarea { min-height: 11rem; font-size: 0.92rem; line-height: 1.45; }
.nojs-note { display: none; }
html:not(.js) .nojs-note { display: block; padding: 1rem; background: var(--gel); }
html:not(.js) .order-form, html:not(.js) .scent .add { display: none; }

.pay-panel h3 { font-size: 1.6rem; margin: 1rem 0 0.75rem; }
.pay-panel h3:focus { outline: none; }
.pay-summary { margin: 0; }
.pay-summary div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.4rem 0; }
.pay-summary dt { font-weight: 600; }
.pay-summary dd { margin: 0; }
.pay-summary ul { list-style: none; }
.pay-total dd { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.pay-note { margin-top: 1rem !important; padding: 0.75rem 1rem; background: var(--gel); }
.pay-frame { margin-top: 1rem; min-height: 3rem; }
.pay-preview { display: grid; gap: 0.4rem; padding: 1.5rem; background: var(--film); }
/* On phones the card step uses the whole screen width, so Stripe's form has room. */
@media (max-width: 40rem) {
  .order-card.is-paying { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .order-card.is-paying .pay-frame { margin-inline: calc(-1 * var(--gutter)); }
  .order-card.is-paying .pay-preview { margin-inline: var(--gutter); }
}

.order-bar { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; width: max-content; max-width: calc(100% - 2rem); padding: 0.85rem 1.25rem; border-radius: 0.25rem; background: var(--rind); color: var(--film); text-decoration: none; }
.order-bar:hover { color: var(--film); }
.order-bar-go { color: var(--gel); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- Thank-you page ---------- */
.receipt-page { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.receipt-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .receipt-grid { grid-template-columns: minmax(0, 1fr) 25rem; gap: 4rem; } }
.receipt-page h1 { font-size: var(--step-3); margin-bottom: 0.4em; }
.receipt-page h1:focus { outline: none; }
.receipt { background: var(--paper); padding: clamp(1.25rem, 3vw, 1.75rem); }

/* ---------- Not found ---------- */
.lost { padding-block: clamp(4rem, 10vw, 9rem); }
.lost .seal-mark { width: 6rem; color: var(--leaf); margin-bottom: 2rem; }

a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

/* ---------- Version 2 additions ---------- */
.scent-label { display: block; width: 4rem; height: 4rem; border-radius: 50%; background: center / cover no-repeat; }
.scent .scent-name { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--rind); }
.scent-note { margin: 0.2rem 0 0 !important; font-size: 0.95rem; }
@media (max-width: 26rem) { .scent-label { width: 3.25rem; height: 3.25rem; } .scent .scent-name { font-size: 1.3rem; } }
.pay-heading { margin: 1rem 0 0.75rem !important; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.pay-heading:focus { outline: none; }
.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 56rem) { .about-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .about-grid .qa > div { grid-template-columns: 1fr; } }
.plain-steps { margin: 1.25rem 0 0; padding-left: 1.4em; display: grid; gap: 0.5rem; }
.receipt-page > .wrap > h1 { margin-bottom: 0.45em; }
/* Facts as list rows, and the scent names as one sentence */
ul.facts { list-style: none; padding: 0; }
ul.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.4rem 0; }
