/* ==========================================================================
   Eden Orchards — demo stylesheet (v2)

   Depth comes from a layered tint ladder, never from shadows (Ease Health).
   Display type commands through scale at weight 400, not weight (Wispr Flow).
   Ink is warm and fruit-tinted, never pure black (GRAZA).
   Tracking tightens as size grows (Wise).
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* --- The tint ladder. Every tone is drawn from the fruit or the orchard. --
     Level 0 paper -> 1 blossom -> 2 flesh -> 3 stone, plus one cool leaf
     panel reserved exclusively for the trade section.                       */
  --paper:   #F4EDE2;   /* 0 — canvas. A real cream, not near-white.          */
  --blossom: #F7E4DD;   /* 1 — cherry blossom. Light panels.                  */
  --flesh:   #EBD0C6;   /* 2 — cut fruit. Mid panels.                         */
  --stone:   #DCC7BA;   /* 3 — cherry stone. Deep panels.                     */
  --leaf:    #C7D1C3;   /* cool counter-panel. Trade section only.            */
  --surface: #FFFCF8;   /* warm card white, floats on any tint.               */

  --ink:     #2A1A16;   /* warm near-black, red-brown undertone.              */
  --muted:   #5E4C45;   /* AA on every surface above (worst 4.98:1 on stone). */
  --cherry:  #8C1D2F;   /* the liquid. CTA + accent, nothing else.            */

  --rule:        rgba(42,26,22,.16);
  --rule-strong: rgba(42,26,22,.34);

  --s1:4px; --s2:8px;  --s3:12px; --s4:16px; --s5:24px;
  --s6:32px; --s7:48px; --s8:64px; --s9:96px; --s10:140px;

  --container: 1280px;
  --measure: 62ch;

  /* Three radii, each with a job. */
  --r-panel: 32px;   /* full-bleed tinted panels */
  --r-card:  14px;   /* cards, buttons, inputs, images */
  --r-pill:  999px;  /* badges and filters only */

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --------------------------------------------------------------- type --
   One weight (400) on the serif. Scale and tracking do all the work.      */
.display, h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 144, 'wght' 400;
}
.display {
  font-size: clamp(54px, 9.5vw, 112px);
  line-height: .9; letter-spacing: -.03em;
}
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: .95; letter-spacing: -.028em; }
h2 { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.02; letter-spacing: -.022em; }
h3 {
  font-size: clamp(21px, 2.2vw, 26px); line-height: 1.28; letter-spacing: -.008em;
  font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 28, 'wght' 400;
}
p { margin: 0 0 var(--s4); }

.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; max-width: 32em; }
.measure { max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.tiny  { font-size: 13.5px; }

/* ------------------------------------------------------------- layout -- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
@media (min-width: 900px) { .wrap { padding-inline: var(--s7); } }

section { padding-block: var(--s8); }
@media (min-width: 900px) { section { padding-block: var(--s9); } }

/* Tinted panels sit inside the page gutter and round off, so they read as
   inset rooms rather than full-width stripes. */
.panel {
  border-radius: var(--r-panel);
  margin-inline: var(--s3);
  padding-block: var(--s8);
}
@media (min-width: 900px) { .panel { margin-inline: var(--s5); padding-block: var(--s9); } }
.p-blossom { background: var(--blossom); }
.p-flesh   { background: var(--flesh); }
.p-stone   { background: var(--stone); }
.p-leaf    { background: var(--leaf); }

/* --------------------------------------------------------------- chrome -- */
.utility {
  background: var(--ink); color: var(--paper);
  font-size: 13.5px; line-height: 1; padding-block: 11px;
}
.utility .wrap { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; }
.utility a { color: var(--paper); text-underline-offset: 3px; }
.utility-right { display: flex; gap: var(--s5); align-items: center; }
@media (max-width: 720px) { .utility .shipping { display: none; } }

.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
}
/* The supplied logo is a 150x84 crop of the printed kraft label — the tan is
   baked in, so it reads as a brand chip rather than a floating mark. Rounded
   to match the card radius family so it looks intentional on the cream. */
.wordmark { display: block; line-height: 0; text-decoration: none; }
.wordmark img {
  height: 44px; width: auto; display: block;
  border-radius: 6px;
}
@media (max-width: 640px) { .wordmark img { height: 36px; } }
.nav { display: flex; gap: var(--s5); align-items: center; font-size: 16px; }
.nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); }
@media (max-width: 900px) { .nav .hide-sm { display: none; } }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-block; font: inherit; font-size: 16px; font-weight: 500;
  padding: 15px 28px; border-radius: var(--r-card);
  border: 1px solid var(--cherry); background: var(--cherry); color: #fff;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: #741726; border-color: #741726; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: transparent; border-color: var(--ink); }
.btn-block { display: block; width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--cherry); outline-offset: 3px;
}

/* ----------------------------------------------------------------- hero --
   Asymmetric 7/5, not a 50/50 split. Type is the hero; the bottle supports. */
.hero { padding-block: var(--s7) var(--s8); }
@media (min-width: 900px) { .hero { padding-block: var(--s8) var(--s10); } }
.hero-grid { display: grid; gap: var(--s7); align-items: end; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--s8); }
}
.hero .display { margin-bottom: var(--s5); }
.hero .lede { margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); }
.hero-figure img {
  width: 100%; object-fit: cover; object-position: center;
  border-radius: var(--r-card); background: var(--blossom);
}

.rating { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.stars { color: var(--cherry); font-size: 17px; letter-spacing: 2px; }
.rating .figure { font-weight: 600; }

/* --------------------------------------------------------------- ledger -- */
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger-row { display: grid; gap: var(--s2); padding-block: var(--s5); border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .ledger-row { grid-template-columns: 300px 1fr; gap: var(--s7); align-items: baseline; }
}
.ledger-figure {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 52px);
  line-height: .95; letter-spacing: -.025em;
  font-variation-settings: 'SOFT' 30,'WONK' 1,'opsz' 96,'wght' 400;
}
.ledger-note { margin: 0; max-width: 44em; }

/* ---------------------------------------------------------------- offer -- */
.offer { background: var(--surface); border-radius: var(--r-card); padding: var(--s6); }
.offer h3 { margin-bottom: var(--s4); }
.choice {
  display: block; border: 1px solid var(--rule-strong); border-radius: var(--r-card);
  padding: var(--s4); margin-bottom: var(--s3); cursor: pointer; background: var(--paper);
}
.choice:has(input:checked) { border-color: var(--cherry); border-width: 2px; padding: 15px; }
.choice-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.choice-name { font-weight: 500; }
.choice-price { font-weight: 600; white-space: nowrap; }
.choice input { margin-right: 10px; accent-color: var(--cherry); }
.choice .note { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; margin-left: 26px; }

/* --------------------------------------------------------------- reviews -- */
.reviews { display: grid; gap: var(--s5); }
@media (min-width: 880px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s6); display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 var(--s5); font-size: 17px; }
.review .who { margin-top: auto; font-size: 15px; margin-bottom: 0; }
.review .who strong { font-weight: 600; }
.review .verified { color: var(--muted); }

/* -------------------------------------------------------------- products -- */
.grid { display: grid; gap: var(--s7) var(--s5); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card img {
  width: 100%; object-fit: cover; object-position: center;
  border-radius: var(--r-card); margin-bottom: var(--s4); background: var(--blossom);
}
.card-name {
  font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-bottom: var(--s1);
  font-variation-settings: 'SOFT' 30,'WONK' 0,'opsz' 28,'wght' 400;
}
.card-meta { display: flex; gap: var(--s3); align-items: baseline; font-size: 15px; color: var(--muted); flex-wrap: wrap; }
.card-price { color: var(--ink); font-weight: 600; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------- splits -- */
.split { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; } }
.split-wide { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .split-wide { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: center; } }
.split img, .split-wide img {
  width: 100%; object-fit: cover; object-position: center;
  border-radius: var(--r-card); background: var(--blossom);
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  border-top: 1px solid var(--rule); padding-block: var(--s4);
  display: grid; grid-template-columns: 36px 1fr; gap: var(--s4);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 22px; color: var(--muted);
  font-variation-settings: 'opsz' 28,'wght' 400;
}
.steps p { margin: 0; }

/* ------------------------------------------------------------ wholesale -- */
.people { display: grid; gap: var(--s5); }
@media (min-width: 780px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { border-top: 1px solid var(--rule-strong); padding-top: var(--s4); }
.person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s3); }
.person h3 { font-size: 21px; margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: 15px; margin-bottom: var(--s3); }
.person a { display: block; font-size: 15px; }

.markets { border-top: 1px solid var(--rule-strong); }
.market-row { display: grid; gap: var(--s1); padding-block: var(--s3); border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .market-row { grid-template-columns: 160px 1fr; gap: var(--s5); } }
.market-row .when { color: var(--muted); font-size: 15px; }

.field { display: block; margin-bottom: var(--s4); }
.field span { display: block; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 15px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-card);
  background: var(--surface); color: var(--ink);
}
.form-note { color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- footer -- */
footer { background: var(--ink); color: var(--paper); padding-block: var(--s8); margin-top: var(--s7); }
footer a { color: var(--paper); }
.foot-grid { display: grid; gap: var(--s6); }
@media (min-width: 840px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s8); } }
.foot-grid h3 { font-size: 19px; margin-bottom: var(--s3); color: var(--paper); }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: var(--s2); }
.colophon {
  border-top: 1px solid rgba(244,237,226,.24); margin-top: var(--s7);
  padding-top: var(--s5); font-size: 14px; color: #BCA79C;
}

/* -------------------------------------------------------------- utility -- */
.stack > * + * { margin-top: var(--s6); }
.section-head { margin-bottom: var(--s7); max-width: 26em; }
.section-head h2 { margin-bottom: var(--s3); }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 50; }

.demo-note { background: var(--cherry); color: #fff; font-size: 14px; line-height: 1.5; padding: 10px 0; }
.demo-note a { color: #fff; }

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

/* Label and information images must never be cropped — they carry text.
   Contain instead of cover, on a tinted plate so the letterbox reads as
   intentional framing rather than a gap. */
.img-contain {
  object-fit: contain !important;
  aspect-ratio: 4 / 3 !important;
  background: var(--surface);
  padding: var(--s5);
}

/* --- Ratio classes match the source files exactly -----------------------
   product shots 670x1005 = 2:3 | founders 1300x1309 & crate 1196x1200 = 1:1
   bench banner 1326x532 = 5:2. Nothing is cropped, nothing is stretched.  */
.r-product { aspect-ratio: 2 / 3; }
.r-square  { aspect-ratio: 1 / 1; }
.r-band    { aspect-ratio: 5 / 2; }

/* Product photography is shot on saturated brand gradients. Setting each on
   its own white plate stops six different backgrounds fighting the cream. */
.card .plate {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s3); margin-bottom: var(--s4);
}
.card .plate img { margin-bottom: 0; }
