/* Sierra Stems. Mobile first. */
:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --tint: #efe9de;
  --ink: #2b2a28;
  --muted: #69655d;
  --line: #e1dacc;
  --green: #24392e;
  --green-2: #33503f;
  --green-soft: #e3e9df;
  --terra: #94523b;
  --terra-soft: #f3e4dc;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --r: 6px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
ul.plain { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--green); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 .9rem; }
.h-page { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 4rem); letter-spacing: -.01em; }
.h-display { font-family: var(--serif); font-size: clamp(2rem, 6.4vw, 3.1rem); letter-spacing: -.005em; margin-bottom: 1rem; }
.h-section { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 1rem; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 38em; margin-top: 1rem; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-light { color: var(--bg); }
.link-light:hover { color: var(--terra-soft); }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font-weight: 500; font-size: .95rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: var(--green-2); color: var(--bg); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

.badge {
  display: inline-block; white-space: nowrap; vertical-align: 1px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 3px 7px; border-radius: 3px;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); vertical-align: 0; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--green); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.brand span { font: inherit; color: inherit; }
.brand:hover { color: var(--green); }
.order-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r); background: var(--green); color: var(--bg); text-decoration: none; font-weight: 500; font-size: .9rem; }
.order-link:hover { background: var(--green-2); color: var(--bg); }
.order-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--terra); color: #fff; font-size: .72rem; font-weight: 600; display: inline-grid; place-items: center; }
.nav-toggle { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.nav a:last-child { border-bottom: 0; }
.nav a[aria-current="page"] { color: var(--terra); }

@media (min-width: 800px) {
  :root { --header-h: 72px; --gutter: 32px; }
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; gap: 28px; padding: 0; background: none; border: 0; visibility: visible; opacity: 1; transform: none; margin-right: 12px; }
  .nav a { padding: 6px 0; border: 0; font-size: .95rem; border-bottom: 1px solid transparent; }
  .nav a:hover { color: var(--green); border-bottom-color: var(--green); }
  .nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--terra); }
  .order-link { min-height: 44px; padding: 0 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green); color: var(--bg); }
.section-dark .eyebrow { color: #d9a990; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head .h-display { margin: 0; }
.section-cta { margin: 28px 0 0; }
.page-head { padding-top: 48px; padding-bottom: 24px; }
@media (min-width: 800px) {
  .section { padding: 104px 0; }
  .page-head { padding-top: 88px; padding-bottom: 40px; }
}

/* ---------- Hero ---------- */
.hero { display: grid; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-copy { padding-top: 36px; padding-bottom: 8px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 10vw, 5.2rem); line-height: 1.02; letter-spacing: -.015em; max-width: 11em; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 1fr; min-height: max(calc(100vh - var(--header-h)), 640px); max-width: none; }
  .hero-media { order: 2; position: relative; }
  .hero-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .hero-copy { align-self: center; padding: 64px 56px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); margin: 0; max-width: none; }
}

/* ---------- Value props ---------- */
.props { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.props li { border-top: 1px solid var(--ink); padding-top: 20px; }
.props h2 { font-family: var(--serif); font-size: 1.65rem; margin-bottom: .6rem; }
.props p { color: var(--muted); margin: 0; }
@media (min-width: 800px) { .props { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- Home preview ---------- */
.updated { font-size: .85rem; color: var(--muted); margin: 0; min-height: 1.4em; }
.preview-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.preview-card a { display: grid; gap: 2px; height: 100%; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease); }
.preview-card a:hover { border-color: var(--green); color: var(--ink); }
.pc-top { display: flex; align-items: center; gap: 0; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.pc-top .badge { margin-left: auto; }
.pc-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.pc-variety { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.15rem; min-height: 1.3em; }
.pc-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; }
.pc-foot strong { font-weight: 600; font-size: 1rem; }
.pc-source { font-size: .78rem; color: var(--muted); }
.season-grid .preview-card a { display: flex; flex-direction: column; }
.season-grid .pc-source { margin-top: auto; padding-top: 14px; }

.skeleton { list-style: none; height: 150px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, #f1ece3 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--line); }
.skeleton span { display: none; }
.stem-list .skeleton { height: 76px; border-radius: 0; border-width: 0 0 1px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Split sections ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.split-copy p { color: var(--muted); max-width: 34em; }
.split-copy p.note-badge { color: var(--ink); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split-reverse .split-media { order: 2; }
  .page-sourcing .split-media img { aspect-ratio: 3 / 2; }
}

/* ---------- Terms strip ---------- */
.terms-strip { display: grid; gap: 28px; }
.term-list { margin: 0; display: grid; }
.term-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(247, 244, 238, .18); }
.term-list dt { color: rgba(247, 244, 238, .78); }
.term-list dd { margin: 0; font-weight: 500; text-align: right; }
@media (min-width: 960px) { .terms-strip { grid-template-columns: 1fr 1.3fr; gap: 24px 80px; } .terms-strip > p { grid-column: 2; } }

.area { text-align: left; }
.area p { color: var(--muted); max-width: 40em; }
@media (min-width: 800px) { .area { text-align: center; } .area p, .area .h-display { margin-left: auto; margin-right: auto; max-width: 20em; } .area p { max-width: 40em; } .area .actions { justify-content: center; } }

/* ---------- Tool pages ---------- */
.tool-head { padding: 28px 0 14px; }
.tool-head .h-page { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.tool-head .updated { margin-top: 4px; font-size: .9rem; color: var(--ink); }
.tool-note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; max-width: 48em; }

.filters-bar { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.search { grid-column: 1 / -1; }
.search input, .select select {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font-size: 16px; /* no iOS zoom */
}
.search input:focus, .select select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.chips { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-size: .875rem; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--bg); }
.select select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2a28' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; white-space: nowrap; min-height: 44px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
@media (min-width: 800px) {
  .filters { grid-template-columns: minmax(200px, 1fr) auto 180px auto; align-items: center; }
  .search, .chips { grid-column: auto; }
  .chips { margin: 0; padding: 0; overflow: visible; }
  .filters-florist { grid-template-columns: auto minmax(200px, 1fr) auto 180px auto; }
  .filters-florist .select-month select { width: 250px; }
}

.tool-body { padding-top: 14px; padding-bottom: 64px; }
.result-count { font-size: .8rem; color: var(--muted); margin: 0 0 6px; min-height: 1.3em; }
.empty { padding: 32px 0; color: var(--muted); }

/* Stem rows: compact cards on phones, a dense table on wide screens. */
.stem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stem-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name  price"
    "meta  avail"
    "src   qty";
  gap: 2px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease);
}
.stem-row.stem-header { display: none; }
.c-img { display: none; }
.c-img:has(img) { display: block; }
.stem-row:has(.c-img img) { grid-template-columns: 52px 1fr auto; grid-template-areas: "img name price" "img meta avail" "src src qty"; }
.c-img img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; grid-area: img; }
.c-img { grid-area: img; }
.c-name { grid-area: name; font-size: 1rem; line-height: 1.3; }
.c-name strong { font-weight: 600; }
.variety { color: var(--muted); }
.c-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .8125rem; color: var(--muted); }
.c-meta > span:not(:first-child)::before { content: "\00b7"; margin-right: 10px; color: var(--line); }
.c-color { display: inline-flex; align-items: center; }
.c-price { grid-area: price; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-price small { font-weight: 400; color: var(--muted); font-size: .75rem; margin-left: 1px; }
.c-avail { grid-area: avail; text-align: right; font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-source { grid-area: src; font-size: .78rem; color: var(--muted); padding-top: 6px; line-height: 1.5; }
.c-source .badge { margin-left: 4px; }
.c-qty { grid-area: qty; justify-self: end; padding-top: 6px; }
.stem-row.in-order { background: linear-gradient(90deg, transparent, var(--green-soft) 18%, var(--green-soft) 82%, transparent); }
.stem-row.sold-out .c-name, .stem-row.sold-out .c-price { color: var(--muted); }
.stem-row.sold-out .c-avail { color: var(--terra); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); height: 40px; overflow: hidden; }
.qty-btn { width: 40px; height: 100%; border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: var(--green); touch-action: manipulation; }
.qty-btn:hover:not(:disabled) { background: var(--green-soft); }
.qty-btn:disabled { color: var(--line); cursor: default; }
.qty input { width: 44px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--green-soft); }
.in-order .qty { border-color: var(--green); }

@media (min-width: 1000px) {
  .stem-header, .stem-row, .stem-row:has(.c-img img) {
    grid-template-columns: minmax(180px, 2fr) minmax(90px, 1fr) 72px minmax(96px, 1fr) 96px 80px minmax(200px, 2.2fr) 128px;
    grid-template-areas: none;
    gap: 0 14px;
  }
  .stem-table:not(.has-images) .c-img, .stem-table:not(.has-images) .stem-header > span:first-child { display: none; }
  .has-images .stem-header, .has-images .stem-row, .has-images .stem-row:has(.c-img img) {
    grid-template-columns: 44px minmax(180px, 2fr) minmax(90px, 1fr) 72px minmax(96px, 1fr) 96px 80px minmax(200px, 2.2fr) 128px;
  }
  .stem-row.stem-header { display: grid; padding: 10px 0; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); position: sticky; top: calc(var(--header-h) + 65px); background: var(--bg); z-index: 5; }
  .stem-header span:nth-child(6), .stem-header span:nth-child(7) { text-align: right; }
  .stem-row { padding: 10px 0; }
  .stem-row > *, .c-meta > * { grid-area: auto; }
  .has-images .c-img { display: block; }
  .c-img img { width: 44px; height: 44px; }
  .c-meta { display: contents; font-size: .875rem; }
  .c-meta > span { color: var(--muted); font-size: .875rem; }
  .c-meta > span:not(:first-child)::before { content: none; }
  .c-price { order: 0; }
  .c-source, .c-qty { padding-top: 0; }
  .c-source { font-size: .8125rem; }
  .c-avail { font-size: .875rem; }
}

/* Order bar */
.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--green); color: var(--bg); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
.order-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.order-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.order-bar p { margin: 0; display: flex; gap: 10px; align-items: baseline; font-variant-numeric: tabular-nums; }
.order-bar .btn { background: var(--bg); color: var(--green); }
.order-bar .btn:hover { background: #fff; color: var(--green); }
body.has-order-bar .site-footer { padding-bottom: calc(64px + 32px); }

/* ---------- Order page ---------- */
.order-layout { display: grid; gap: 40px; padding-bottom: 72px; }
@media (min-width: 960px) { .order-layout { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; } .order-form { position: sticky; top: calc(var(--header-h) + 20px); } }
.order-layout.is-sent { grid-template-columns: 1fr; }
.order-layout.is-sent .order-items, .order-layout.is-sent .order-form { display: none; }
.sync-note { font-size: .85rem; background: var(--terra-soft); padding: 10px 12px; border-radius: var(--r); }
.line-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line p { margin: 0; }
.line-name { font-size: 1rem; }
.line-meta, .line-source { font-size: .8125rem; color: var(--muted); }
.line-flag { font-size: .8125rem; color: var(--terra); margin-top: 4px !important; }
.line-side { display: flex; align-items: center; gap: 14px; }
.line-total { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }
.line-remove { font-size: .8125rem; color: var(--muted); min-height: 40px; }
@media (min-width: 560px) { .line { grid-template-columns: 1fr auto; align-items: center; } .line-total { min-width: 84px; text-align: right; } }
.empty-order { padding: 28px 0; }
.has-order .empty-order { display: none; }
.line-list:empty { border-top: 0; }
.empty-order .actions .btn { margin: 0; }
.add-more { margin-top: 18px; }

.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; }
@media (min-width: 560px) { .order-form { padding: 32px; } }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.req { font-weight: 400; color: var(--muted); font-size: .75rem; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:not([type="radio"]):focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field [aria-invalid="true"] { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field { margin-bottom: 4px; }
.hint { font-size: .78rem; color: var(--muted); margin: 0 0 16px; }
.field .radio-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; background: var(--bg); transition: border-color .15s, background-color .15s; }
.radio-card.is-checked { border-color: var(--green); background: var(--green-soft); }
.radio-card input { margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--green); }
.radio-card:hover { border-color: var(--green-2); }
.radio-title { display: block; font-size: .9rem; font-weight: 500; }
.radio-detail { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.radio-fee { font-size: .85rem; font-weight: 600; white-space: nowrap; text-align: right; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { border-top: 1px solid var(--line); margin: 20px 0 16px; padding-top: 12px; font-variant-numeric: tabular-nums; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .9rem; }
.summary-total { font-weight: 600; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.minimum-warning { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--terra); background: var(--terra-soft); font-size: .85rem; line-height: 1.5; border-radius: 0 var(--r) var(--r) 0; }
.form-error { color: #8c3b22; font-size: .875rem; margin: 0 0 12px; }

.confirm { padding: 56px 0 24px; max-width: 34em; animation: rise .45s var(--ease) both; }
.confirm:focus { outline: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .confirm { animation: none; } }

/* ---------- Sourcing ---------- */
.season-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8rem; margin: 20px 0 12px; }
.season-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.sw-farm, .s-farm::after { background: var(--green); }
.sw-partner, .s-partner::after { background: #c99a83; }
.season-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.season { border-collapse: collapse; width: 100%; min-width: 400px; table-layout: fixed; font-size: .85rem; }
.season thead th:first-child { width: 34%; }
@media (min-width: 800px) { .season thead th:first-child { width: 24%; } }
.season th, .season td { padding: 0; height: 40px; border-bottom: 1px solid var(--line); }
.season thead th { font-size: .7rem; font-weight: 600; color: var(--muted); text-align: center; height: 32px; }
.season thead th:first-child, .season tbody th { text-align: left; font-weight: 500; padding: 6px 10px 6px 0; line-height: 1.25; }
.season tbody th { position: sticky; left: 0; background: var(--tint); z-index: 1; }
.season abbr { text-decoration: none; }
.season td { position: relative; }
.season td::after { content: ""; position: absolute; left: 1px; right: 1px; top: 13px; bottom: 13px; }
.season td.s-farm + td.s-farm::after, .season td.s-partner + td.s-partner::after { left: -1px; }

/* ---------- Terms & contact ---------- */
.terms-page { display: grid; gap: 8px; padding-bottom: 88px; }
.terms-page > * { max-width: 860px; }
.terms-block { padding: 28px 0; border-top: 1px solid var(--line); }
.terms-block p { max-width: 42em; }
.def { margin: 0; }
.def div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.def div:last-child { border-bottom: 0; }
.def dt { font-weight: 600; font-size: .9rem; }
.def dd { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .def div { grid-template-columns: 220px 1fr; gap: 24px; } }
.contact-grid { display: grid; gap: 32px; padding-bottom: 24px; }
.contact-def dd { color: var(--ink); }
.contact-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid p { margin: 0 0 .5em; }
.brand-footer { font-size: 1.5rem; margin-bottom: .4em !important; }
.footer-h { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--terra); }
.footer-base { margin-top: 40px; font-size: .8rem; }
.footer-contact { margin-top: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr; } }

/* ---------- Two audiences ---------- */
.doors { display: grid; gap: 14px; }
@media (min-width: 800px) { .doors { grid-template-columns: 1fr 1fr; gap: 24px; } }
.door { display: grid; gap: 10px; align-content: start; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease); }
.door:hover { border-color: var(--green); color: var(--ink); }
.door .eyebrow { margin: 0; }
.door-title { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.1; }
.door-copy { color: var(--muted); }
.door .link-arrow { justify-self: start; color: var(--green); margin-top: 6px; }
@media (min-width: 800px) { .door { padding: 40px 36px; } }
.preview-head { margin-top: 64px; }
.trade-only { font-weight: 500; font-size: .8rem; color: var(--muted); }
.term-cols { display: grid; gap: 32px; }
@media (min-width: 700px) { .term-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.term-h { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d9a990; margin-bottom: 4px; }

/* Trade gate: shown until the code is entered, then the list takes its place. */
.gate-wrap { padding-bottom: 72px; }
.trade-ok .gate-wrap, html:not(.trade-ok) [data-trade-content] { display: none; }
.trade-gate { max-width: 560px; padding: 28px 0; }
.trade-gate .h-display { font-size: clamp(1.8rem, 5.5vw, 2.4rem); }
.gate-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 12px; }
.gate-form input { flex: 1 1 200px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 16px; }
.gate-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.gate-diy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* DIY list */
.filters-diy { grid-template-columns: 1fr; }
.select-month { display: flex; align-items: center; gap: 10px; }
.select-label { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.select-month select { flex: 1; }
@media (min-width: 800px) { .filters-diy { grid-template-columns: 260px minmax(200px, 1fr); } .filters-diy .chips { grid-column: 1 / -1; } }
.group-head { list-style: none; padding: 22px 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); border-bottom: 1px solid var(--line); }
.diy-table .stem-row { grid-template-columns: 1fr auto; grid-template-areas: "name price" "meta qty"; }
.diy-table .c-qty { padding-top: 4px; }
@media (min-width: 1000px) {
  .diy-table .stem-header, .diy-table .stem-row { grid-template-columns: minmax(220px, 3fr) minmax(120px, 1fr) 120px 128px; grid-template-areas: none; }
  .diy-table .stem-header span:nth-child(3) { text-align: right; }
  .diy-table .c-unit { color: var(--muted); }
}

/* Order page extras */
.list-tabs { display: flex; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
.list-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px; font-size: .875rem; text-decoration: none; color: var(--ink); background: var(--surface); }
.list-tabs a[aria-current="page"] { background: var(--green); border-color: var(--green); color: var(--bg); }
.locked-note { padding: 20px 0; }
.actions-tight { margin: 8px 0 16px; }

.collective { max-width: 40rem; margin: 0 0 40px; }
.collective .lede { margin-top: 12px; }
.season-section .preview-head { margin-top: 0; }

/* Lists without color, length, or quantity data (Brittany's weekly tab). */
.no-color .c-color, .no-length .c-length, .no-avail .c-avail { display: none; }
.no-color.no-length .c-meta > span:not(:first-child)::before { content: none; }
@media (min-width: 1000px) {
  .stem-table.no-color.no-length.no-avail .stem-header > span:nth-child(3),
  .stem-table.no-color.no-length.no-avail .stem-header > span:nth-child(4),
  .stem-table.no-color.no-length.no-avail .stem-header > span:nth-child(7) { display: none; }
  .stem-table.no-color.no-length.no-avail:not(.has-images) .stem-header,
  .stem-table.no-color.no-length.no-avail:not(.has-images) .stem-row { grid-template-columns: minmax(240px, 3fr) 110px 120px minmax(160px, 1.5fr) 128px; }
  .stem-table.no-color.no-length.no-avail .stem-header > span:nth-child(6) { text-align: right; }
  .stem-table.no-color.no-length.no-avail.has-images .stem-header,
  .stem-table.no-color.no-length.no-avail.has-images .stem-row { grid-template-columns: 64px minmax(240px, 3fr) 110px 120px minmax(160px, 1.5fr) 128px; }
  .stem-table.has-images .c-img img { width: 64px; height: 64px; }
}
/* Sheet photos: a Photo button opens the picture under the row. */
.photo-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: .75rem; font-weight: 500; color: var(--muted); cursor: pointer; vertical-align: 1px; white-space: nowrap; }
.photo-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.photo-btn[aria-expanded="true"] { color: var(--green); border-color: var(--green); }
.photo-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.photo-btn:hover { color: var(--green); border-color: var(--green); }
.c-photo { grid-column: 1 / -1; grid-area: auto; padding: 10px 0 4px; }
.stem-row > .c-photo { grid-column: 1 / -1; }
.c-photo img { display: block; width: auto; max-width: min(100%, 520px); max-height: 520px; height: auto; border-radius: 6px; }
.c-photo a { display: inline-block; margin-top: 6px; font-size: .8rem; color: var(--muted); }

