/* Mom's Balm — one page. Tallow white ground, herb green, butter rule, ink bands.
   Bands fill the 1240 container; the shapes vary so the page reads as chapters, not a template. */

:root {
  --ink: #1d1b14;
  --ink-soft: #4a4636;
  --ground: #f6f1e4;
  --paper: #fffdf6;
  --herb: #3e5133;
  --butter: #d9a93f;
  --rule: rgba(29, 27, 20, .16);
  --rule-strong: rgba(29, 27, 20, .3);
  --wrap: 1240px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, .98rem + .18vw, 1.12rem);
  line-height: 1.6;
  font-optical-sizing: auto;
}

h1, h2, h3, .mark, .btn, .track, .top-nav {
  font-family: var(--sans);
  font-variation-settings: "wdth" 112;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3vw, 2.5rem);
}

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .8rem clamp(1.1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
}
.top-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .01em;
}
.top-nav a:hover { color: var(--ink); }
/* the nav rule above would otherwise repaint the header button's label in olive */
.top-nav a.btn, .top-nav a.btn:hover { color: var(--paper); }
@media (max-width: 640px) {
  /* the hero's own button is one scroll-flick below, so the header keeps only the wordmark */
  .top-nav { display: none; }
}

/* ---------- shared band furniture ---------- */
.band { padding: clamp(3rem, 6.5vw, 6rem) 0; border-bottom: 1px solid var(--rule); }
h2 {
  text-wrap: balance;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.9rem);
  letter-spacing: -.03em;
  line-height: 1.03;
  margin: 0 0 .9rem;
  max-width: 26ch;
}
h3 {
  font-size: 1rem;
  letter-spacing: -.01em;
  margin: 0 0 .4rem;
  font-weight: 700;
}
.track {
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--herb);
  margin: 0 0 .8rem;
}
.pull {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.45rem);
  line-height: 1.32;
  margin: 0 0 .9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--butter);
  color: var(--ink);
}
.small-note { font-size: .86rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.fine { font-size: .82rem; color: var(--ink-soft); margin: 1.4rem 0 0; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(2.2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  background:
    radial-gradient(120% 90% at 84% 14%, rgba(217, 169, 63, .18), transparent 62%),
    var(--ground);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}
h1 {
  font-size: clamp(2.6rem, 1.2rem + 6.2vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
  margin: 0 0 1.1rem;
  text-wrap: balance;
  max-width: 16ch;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .jar-figure { justify-self: stretch; max-width: 380px; margin-top: .5rem; }
}
.lede {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.34rem);
  max-width: 34ch;
  margin: 0;
}
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.9rem; flex-wrap: wrap; }
.legal-note {
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: .74rem;
  line-height: 1.55;
  color: #6b6450;
  margin: 1.1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  max-width: 62ch;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .82rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.btn:hover { background: var(--herb); border-color: var(--herb); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.small { padding: .6rem 1rem; font-size: .8rem; min-height: 40px; display: inline-flex; align-items: center; }
.btn.wide { width: 100%; text-align: center; }
.price-line {
  font-family: var(--sans);
  font-size: .88rem;
  letter-spacing: .01em;
  color: var(--ink-soft);
  margin: 0;
}
.price-line::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--rule-strong);
  vertical-align: middle;
  margin-right: .7rem;
}
.link-quiet {
  color: var(--ink);
  font-family: var(--sans);
  font-size: .86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}
.link-quiet:hover { border-bottom-color: var(--ink); }

.jar-figure { margin: 0; justify-self: end; width: 100%; max-width: 460px; }
.jar-figure svg { width: 100%; height: auto; display: block; }
.jar-figure figcaption {
  font-size: .82rem;
  color: var(--ink-soft);
  max-width: 32ch;
  margin-top: .2rem;
  padding-left: .1rem;
}

/* ---------- what's in it ---------- */
.row-head h2 { max-width: 24ch; }
.row-lede { max-width: 62ch; margin: 0; }

.ingredients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.6rem;
}
.ingredient p, .quote-row p { margin: 0; font-size: .96rem; color: var(--ink-soft); }
.quote-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.quote-row .pull { grid-column: span 2; margin-bottom: 0; }
.bottom-line { border-top: 1px solid var(--rule); padding-top: 1rem; }
@media (max-width: 860px) {
  .ingredients { grid-template-columns: 1fr; gap: 1.4rem; }
  .quote-row { grid-template-columns: 1fr; gap: .8rem; }
}

/* ---------- how it's made ---------- */
.steps {
  list-style: none;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 0;
  padding: clamp(1.2rem, 2.5vw, 1.6rem) 0 0;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.5rem);
}
.steps figure { margin: 0; }
.steps img {
  display: block;
  width: 100%;
  border: 1px solid rgba(29, 27, 20, .12);
  /* the width/height attributes otherwise win as a presentational height and the row goes 600px tall */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7dcc4;
}
.steps figcaption {
  margin-top: .6rem;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.step {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--herb);
  margin-bottom: .15rem;
}
.steps figcaption { min-height: 5.4em; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- the standard ---------- */
.dark { background: var(--ink); color: var(--paper); border-bottom: none; }
.dark .track { color: var(--butter); }
.statement {
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1rem + 3.6vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 clamp(1.8rem, 4vw, 3rem);
  max-width: 26ch;
  color: var(--paper);
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(1.2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.7rem;
}
/* default is the light ground; the dark band flips it. Written this way round because the same
   grid is used on the policy page, where the light value was invisible against cream. */
.statement-grid p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.dark .statement-grid { border-top-color: rgba(255, 253, 246, .22); }
.dark .statement-grid p { color: rgba(255, 253, 246, .8); }
.dark .pull { color: var(--paper); border-left-color: var(--butter); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }
.dark .small-note { color: rgba(255, 253, 246, .72); margin-top: .9rem; }
@media (max-width: 900px) {
  .statement-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ---------- where it goes ---------- */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.2rem);
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--rule-strong);
}
.use { padding-top: 1.2rem; }
.use h3 { font-size: 1.02rem; }
.use p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 900px) { .uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .uses-grid { grid-template-columns: 1fr; } }
.caution { margin-top: clamp(1.6rem, 3vw, 2.2rem); max-width: 68ch; border-top: 1px solid var(--rule); padding-top: 1rem; }

/* ---------- order ---------- */
.order { background: var(--paper); }
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: start;
}
.order-copy p { margin: 0; max-width: 46ch; }
.order-card {
  background: var(--ground);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.waitlist label {
  display: block;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.waitlist input {
  width: 100%;
  padding: .85rem .9rem;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  margin-bottom: .75rem;
}
.waitlist input::placeholder { color: #6f6852; opacity: 1; }
.waitlist input:focus-visible,
.btn:focus-visible,
a:focus-visible { outline: 2px solid var(--herb); outline-offset: 2px; }
#form-note { margin-top: .8rem; }
#form-note.warn { color: #8a2b18; }
.done { font-family: var(--sans); font-size: .98rem; line-height: 1.5; color: var(--herb); margin: 0; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }

/* ---------- foot ---------- */
.foot { padding: 2.2rem 0 3rem; }
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}
.foot .mark { margin: 0; }
.foot .small-note { max-width: 42ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- policy: draft flag and changelog ---------- */
.draft-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  padding: .9rem clamp(1.2rem, 3vw, 2.2rem);
  background: #f3e6c4;
  border-bottom: 1px solid var(--rule-strong);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink);
}
.draft-flag strong { font-weight: 700; letter-spacing: -.01em; }
.draft-stamp {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .76rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.draft-log { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.draft-log li { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- policy page and the one framed shot ---------- */
.vn-shot { width: 100%; height: auto; border: 1px solid rgba(29, 27, 20, .12); }
.policy-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.policy-h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 24ch; }
.policy-facts { border-top: 1px solid var(--rule-strong); }
.policy-log-head { margin-top: 2rem; }
