/* Hallmark · shape: Conversational FAQ (every section head a question a buyer asks) · genre: playful · theme: Halftone (deal assigned by sites) · job: buy · draw: da8da6
 * hero: Corridor, the name printed as a jar label · nav: slab (swapped from masthead; the last Corridor build used one) · footer: letter close · imagery: built print specimens, one library photograph · signature: sistersgoodness.com printed as a jar label in the hero, then on a lid, a sign, a wrapper and a tag · halftone: cream
 * axes: light/slab-serif/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · finish-review: in-thread · 4 resolved (dots under the lid type, specimens too small, hero height on a phone, buy bar wrap) · 58 WARN confirmed at 84 words, the who list beside the offer head */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, the specimens are flat print, not objects; set big and varied in shape so the rail reads as a range */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Ultra"; src: url("fonts/ultra400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chivo"; src: url("fonts/chivo-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root { --bar-h: 72px; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2, h3 { font-weight: var(--display-weight); line-height: 1.08; color: var(--color-ink); }
a { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
a:hover { color: var(--color-accent-deep); }
strong { font-weight: 700; color: var(--color-ink); }
.lead { color: var(--color-ink-2); }

/* Controls */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-deep); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--line { background: none; color: var(--color-ink); padding: 0; min-height: 44px; border-radius: 0; border-bottom: var(--rule-bar) solid var(--color-accent); }
.btn--line:hover { background: none; color: var(--color-accent-deep); border-bottom-color: var(--color-accent-deep); }
.btn--small { min-height: 44px; }

/* The halftone screen: one spot, dots fading from solid to nothing, never under type. */
.halftone { position: relative; isolation: isolate; }
.halftone::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--color-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.5px)) 0 0 / var(--halftone-size) var(--halftone-size); }

/* Nav: a slab of ink, the name in cream. */
.slab { background: var(--color-ink); color: var(--color-paper); }
.slab__in { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: var(--bar-h); }
.slab__mark { font: 400 var(--text-lg)/1 var(--font-display); color: var(--color-paper); text-decoration: none; white-space: nowrap; }
.slab__mark:hover { color: var(--color-paper); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.slab__link { font-weight: 700; font-size: var(--text-sm); color: var(--color-paper); text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 0.35em; white-space: nowrap; padding-block: var(--space-sm); }
.slab__link:hover { color: var(--color-paper); text-decoration-color: var(--color-paper); }
.slab a:focus-visible { outline-color: var(--color-paper); }

/* Hero: one centred column, the name printed as a label, dots fading in from both edges. */
.hero { position: relative; isolation: isolate; min-height: calc(100dvh - var(--bar-h)); display: grid; align-items: center; padding-block: var(--space-2xl); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--color-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.5px)) 0 0 / var(--halftone-size) var(--halftone-size);
  mask: linear-gradient(90deg, var(--color-ink) 0, transparent 20%, transparent 80%, var(--color-ink) 100%); }
.hero__in { display: grid; justify-items: center; text-align: center; gap: var(--space-lg); }
.jar { position: relative; padding: var(--space-2xl) var(--space-2xl) calc(var(--space-2xl) + var(--space-md)); background: var(--color-paper); border: var(--rule-bar) solid var(--color-ink); outline: var(--rule-hair) solid var(--color-ink); outline-offset: calc(-1 * var(--space-sm)); max-width: 100%; }
.jar::after { content: ""; position: absolute; inset: auto 0 0; height: var(--space-md); background: var(--color-accent); }
.jar h1 { font-size: clamp(1.75rem, 8.2vw, 6rem); max-width: none; letter-spacing: 0; }
.hero .lead { max-width: 34ch; font-size: var(--text-xl); margin-top: var(--space-xs); }
.hero__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-xl); }

/* What comes in the box: the back of the jar. */
.box { padding-block: var(--section-gap-s) var(--section-gap); }
.box__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.box__head .lead { justify-self: end; max-width: 30ch; }
.panel { margin: 0; border-top: var(--rule-bar) solid var(--color-ink); border-bottom: var(--rule-bar) solid var(--color-ink); }
.panel > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); }
.panel > div + div { border-top: var(--rule-hair) solid var(--color-rule); }
.panel dt { font-weight: 700; color: var(--color-ink); }
.panel dd { margin: 0; min-width: 0; }
.panel__v { font: 400 var(--text-title)/1.15 var(--font-display); color: var(--color-ink); overflow-wrap: break-word; }

/* What could it become: a rail of printed specimens on the second stock. */
.become { background: var(--color-paper-2); padding-block: var(--section-gap-s); }
.become__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.rail { display: flex; gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  padding-bottom: var(--space-lg); scrollbar-color: var(--color-ink) var(--color-paper-2); }
.rail:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.sp { flex: 0 0 auto; width: min(400px, 82vw); margin: 0; scroll-snap-align: start; display: grid; gap: var(--space-sm); }
.sp__art { height: 440px; display: grid; place-items: center; background: var(--color-paper); padding: var(--space-xl); }
.sp figcaption { font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.sp p { margin: 0; }

.sp-jar { position: relative; width: 290px; padding: var(--space-xl) var(--space-lg) var(--space-2xl); text-align: center; border: var(--rule-bar) solid var(--color-ink); outline: var(--rule-hair) solid var(--color-ink); outline-offset: -8px; display: grid; gap: var(--space-sm); }
.sp-jar::after { content: ""; position: absolute; inset: auto 0 0; height: var(--space-sm); background: var(--color-accent); }
.sp-jar__name { font: 400 var(--text-3xl)/1.04 var(--font-display); color: var(--color-ink); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-ink); }
.sp-jar__what { font-weight: 700; font-size: var(--text-lg); color: var(--color-ink); }
.sp-jar__small { font-size: var(--text-sm); }

.sp-lid { width: 320px; aspect-ratio: 1; padding: var(--space-lg); border: var(--rule-bar) solid var(--color-ink); background: var(--color-paper); display: grid; align-content: end; gap: var(--space-xs); }
.sp-lid.halftone::before { mask: radial-gradient(circle at 100% 0, var(--color-ink) 0, transparent 40%); }
.sp-lid__name { font: 400 var(--text-3xl)/1.02 var(--font-display); color: var(--color-ink); }
.sp-lid__what { font-weight: 700; font-size: var(--text-sm); color: var(--color-ink); }

.sp-sign { width: 100%; text-align: center; }
.sp-sign__name { background: var(--color-ink); color: var(--color-paper); font: 400 var(--text-3xl)/1.04 var(--font-display); padding: var(--space-xl) var(--space-md); border: var(--rule-bar) solid var(--color-ink); outline: var(--rule-hair) solid var(--color-paper); outline-offset: -8px; }
.sp .sp-sign__what { background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; padding: var(--space-xs) var(--space-md); margin-inline: var(--space-xl); }

.sp-soap { width: 100%; background: var(--color-accent); color: var(--color-accent-ink); text-align: center; padding: var(--space-xl) var(--space-md); display: grid; gap: var(--space-xs); border-block: var(--space-sm) solid var(--color-accent-deep); }
.sp-soap__name { font: 400 var(--text-2xl)/1.08 var(--font-display); }
.sp-soap__what { font-weight: 700; }

.sp-tag { position: relative; width: 210px; min-height: 320px; padding: var(--space-3xl) var(--space-lg) var(--space-lg); border: var(--rule-bar) solid var(--color-ink); background: var(--color-paper-2); display: grid; align-content: end; gap: var(--space-sm); text-align: center; }
.sp-tag::before { content: ""; position: absolute; top: var(--space-lg); left: 50%; width: 22px; height: 22px; transform: translateX(-50%); border-radius: 50%; border: var(--rule-bar) solid var(--color-ink); background: var(--color-paper); }
.sp-tag__what { font: 400 var(--text-xl)/1.1 var(--font-display); color: var(--color-ink); }
.sp-tag__name { font-weight: 700; font-size: var(--text-sm); color: var(--color-accent-deep); border-top: var(--rule-hair) solid var(--color-ink); padding-top: var(--space-sm); }

/* Why the name works: three words, set big. */
.why { padding-block: var(--section-gap) var(--section-gap-s); }
.why h2 { margin-bottom: var(--space-2xl); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.why__list li { border-top: var(--rule-bar) solid var(--color-ink); padding-top: var(--space-lg); display: grid; gap: var(--space-md); align-content: start; }
.why__list h3 { font-size: var(--text-section); max-width: none; }
.why__list p { max-width: 34ch; }

/* Who should buy it: the photograph beside the list. */
.who { padding-block: var(--section-gap-s) var(--section-gap); }
.who__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.who__pic { margin: 0; display: grid; gap: var(--space-sm); }
.photo { width: 100%; aspect-ratio: 1; object-fit: cover; outline: var(--rule-hair) solid var(--color-ink); outline-offset: calc(-1 * var(--rule-hair)); filter: saturate(1.1) contrast(1.06); }
.who__pic figcaption { font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.who__text { display: grid; gap: var(--space-2xl); }
.who__list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-ink); }
.who__list li { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); max-width: 52ch; }
.who__list strong { display: block; font-size: var(--text-lg); margin-bottom: var(--space-2xs); }

/* The offer on the spot: cream knocked out of vermilion, the form on a cream well. */
.order { background: var(--color-accent); color: var(--color-accent-ink); padding-block: var(--section-gap-s); }
.order.halftone::before { --color-dot: var(--color-accent-deep); --halftone-dot: 4px; mask: radial-gradient(circle at 0 100%, var(--color-ink) 0, transparent 45%); }
.order__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.order h2 { color: var(--color-accent-ink); font-size: var(--text-display-s); }
.order__head { display: grid; gap: var(--space-lg); }
.order .lead { color: var(--color-accent-ink); max-width: 36ch; }

.tray { position: relative; background: var(--color-paper); color: var(--color-ink-2); border: var(--rule-bar) solid var(--color-ink); padding: var(--space-xl); display: grid; gap: var(--space-lg); }
.label__top { font-weight: 700; color: var(--color-ink); padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-ink); padding-right: var(--space-3xl); }
.stamp { position: absolute; top: calc(-1 * var(--space-xl)); right: var(--space-lg); width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--color-ink); color: var(--color-paper); font: 400 var(--text-sm)/1.15 var(--font-display); }
.tray__fields { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field > span:first-child { font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.field input { width: 100%; min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-lg); }
.field input::placeholder { color: var(--color-muted); }
.field input:hover { background: var(--color-paper-2); }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -1px; }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.field input:user-invalid { border-color: var(--color-error); }
.field__money { position: relative; display: block; }
.field__money > span { position: absolute; left: var(--space-md); top: 50%; transform: translateY(-50%); color: var(--color-muted); font-size: var(--text-lg); }
.field__money input { padding-left: var(--space-xl); font-variant-numeric: tabular-nums; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tray__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.tray__note { font-size: var(--text-sm); }
.tray__status:empty { display: none; }
.tray__status { font-weight: 500; color: var(--color-ink); }
.tray.is-done .tray__fields, .tray.is-done .tray__foot { opacity: 0.55; }

/* The buy bar: sticky at the foot once the hero has gone. */
.buybar { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); background: var(--color-ink); color: var(--color-paper); border-top: var(--rule-bar) solid var(--color-accent); transition: transform var(--dur-long) var(--ease-out); }
html.js .buybar:not(.is-on) { transform: translateY(110%); }
html:not(.js) body { padding-bottom: var(--bar-h); }
.buybar__in { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: var(--bar-h); }
.buybar p { font: 400 var(--text-lg)/1.1 var(--font-display); min-width: 0; overflow-wrap: anywhere; }

/* Footer: a letter close. */
.foot { padding-block: var(--section-gap-s) calc(var(--space-2xl) + var(--bar-h)); border-top: var(--rule-bar) solid var(--color-ink); }
.foot__close { font: 400 var(--text-2xl)/1.15 var(--font-display); color: var(--color-ink); max-width: 30ch; text-wrap: balance; }
.foot__sign { margin-top: var(--space-xl); font-weight: 500; color: var(--color-ink); }
.foot__row { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); font-size: var(--text-sm); }
.foot__credit { margin-left: auto; color: var(--color-muted); }

/* Privacy and 404 pages. */
.page { padding-block: var(--section-gap-s) var(--section-gap); }
.prose { display: grid; gap: var(--space-md); max-width: calc(70ch + 2 * var(--gutter)); margin-inline: auto; }
.prose h1 { font-size: var(--text-display-s); }
.prose h2 { font-size: var(--text-title); margin-top: var(--space-lg); }
.prose p, .prose li { max-width: 68ch; line-height: 1.7; }

@media (max-width: 60rem) {
  .box__head, .order__in, .who__in { grid-template-columns: minmax(0, 1fr); }
  .box__head { gap: var(--space-md); }
  .box__head .lead { justify-self: start; }
  .order__in, .who__in { gap: var(--space-2xl); }
  .why__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .panel > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .who__text { order: -1; }
  .hero::before { mask: linear-gradient(180deg, var(--color-ink) 0, transparent 14%); }
  .hero { min-height: 0; padding-block: var(--space-3xl) var(--space-2xl); }
}
@media (max-width: 40rem) {
  :root { --bar-h: 64px; }
  .jar { padding: var(--space-xl) var(--space-md) calc(var(--space-xl) + var(--space-md)); }
  .sp__art { height: 380px; padding: var(--space-lg); }
  .sp-lid { width: 260px; }
  .sp-jar { width: 250px; }
  .sp-jar__name, .sp-sign__name { font-size: var(--text-2xl); }
  .tray { padding: var(--space-lg); }
  .stamp { width: 84px; height: 84px; font-size: var(--text-xs); }
  .label__top { padding-right: var(--space-3xl); }
  .buybar p { font-size: var(--text-sm); }
  .buybar__sale { display: none; }
  .slab__mark { font-size: var(--text-sm); }
  .foot__credit { margin-left: 0; }
}
