/* Organic Oasis — shared stylesheet. Palette + type per BRIEF.md */
:root {
  --ink: #2e4368;
  --slate: #5a729c;
  --wash: #f4f6fa;
  --paper: #ffffff;
  --white: #ffffff;
  --shadow-leaf: drop-shadow(0 10px 14px rgba(46, 67, 104, 0.16));
  --shadow-seal: drop-shadow(0 22px 34px rgba(46, 67, 104, 0.22));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: #004aad; color: #fff; }
body {
  font-family: 'Lora', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, .serif-caps {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  color: var(--ink);
}
h1 { font-size: 2.6rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25; }
h2 { font-size: 1.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
h3 { font-size: 1.15rem; letter-spacing: 0.08em; }
.eyebrow {
  font-family: 'Marcellus', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--slate);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Nav ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 5vw;
  background: var(--white);
  border-bottom: 1px solid rgba(90, 114, 156, 0.18);
}
.nav-name {
  font-family: 'Marcellus', serif;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-icon { width: 28px; height: 28px; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-links a {
  font-family: 'Marcellus', serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-links a:hover, .nav-links a.here { color: var(--ink); border-bottom-color: #004aad; }

/* ---------- Layout ---------- */
.wrap { max-width: 1060px; width: 100%; margin: 0 auto; padding: 0 5vw; }
section { position: relative; padding: 90px 0; }
.section-tint { background: var(--wash); }
.center { text-align: center; }

/* ---------- Pressed botanicals: one seamless wallpaper behind everything ---------- */
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/pattern-tile.png") repeat;
  background-size: 520px auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.leaf { display: none; }
.content { position: relative; z-index: 1; }
/* Text stays legible over the blue block-print: soft white halo fades the
   pattern under words — feathered edges, never a hard panel */
.content h1, .content h2, .content h3, .content p,
.content .eyebrow, .content .divider, .content .facts li,
.content figcaption {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 0 26px 20px rgba(255, 255, 255, 0.93);
}
section, nav, footer { position: relative; z-index: 1; }
section.section-tint { background: transparent; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 70px; text-align: center; }

/* The site lives inside the label: thin double frame like the label's border */
.page-frame {
  position: fixed;
  inset: 14px;
  border: 1.5px solid rgba(46, 67, 104, 0.45);
  outline: 1px solid rgba(46, 67, 104, 0.3);
  outline-offset: 4px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 60;
}
.seal {
  width: min(460px, 82vw);
  height: auto;
  margin-bottom: 34px;
  animation: settle 1.1s ease-out both;
}
@keyframes settle {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero h1 { max-width: 640px; margin: 0 auto 14px; font-size: 1.9rem; }
.hero .lede { max-width: 520px; margin: 0 auto 30px; color: var(--slate); font-size: 1.05rem; }
.usda { width: 92px; height: auto; filter: var(--shadow-leaf); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Marcellus', serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 15px 34px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 10px 22px rgba(46, 67, 104, 0.28);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(46, 67, 104, 0.34); background: #004aad; }
.btn.ghost:hover { background: var(--white); color: #004aad; border-color: #004aad; }
.btn.ghost {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: none;
}
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Waitlist form ---------- */
.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;
}
.waitlist-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
/* The same trap already fixed for .order-form below: this explicit `display` beats the
   browser's own [hidden] rule, so signup.html's form stayed on screen in every branch that
   returns before painting it — "sign-ups haven't opened yet", "sign-ups have closed", and
   "no pickup spot is offered". A visitor saw the explanation AND a fillable form with an
   empty pickup dropdown, and could submit something the Worker then refuses. Caught on the
   live page, not by reading the code. Higher specificity than .waitlist-form, so no
   !important needed. */
.waitlist-form[hidden] { display: none; }
.field-row { display: flex; gap: 14px; }
.waitlist-form input, .waitlist-form select, .waitlist-form textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(90, 114, 156, 0.4);
  border-radius: 3px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.waitlist-form input:focus, .waitlist-form select:focus, .waitlist-form textarea:focus {
  border-color: #004aad;
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.14);
}
.waitlist-form textarea { resize: vertical; }

/* Signup page (signup.html). A quiet line under a field that explains what the choice
   just made actually means — the payment split, the harvest day a pickup spot implies.
   Deliberately not an error style: it is the answer to "what did I just pick?". */
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin: -6px 0 0;
  min-height: 1.1em;
  text-align: center;
}
.muted { color: var(--slate); }
.facts-wrap { max-width: 480px; margin: 0 auto 26px; }
/* "Not joining this season?" — findable, never the easiest thing on the page to click. */
.linklike {
  background: none;
  border: none;
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px;
}
.linklike:hover { color: #004aad; }
.waitlist-form select { color: var(--ink); }
.waitlist-form select:invalid { color: var(--slate); }
/* An OPTIONAL select never matches :invalid, so its placeholder rendered in full ink
   beside the greyed-out required one above it. Toggled by oo.js on change. */
.waitlist-form select.is-empty { color: var(--slate); }
.waitlist-form button.btn {
  align-self: center;
  border: none;
  cursor: pointer;
}
.waitlist-form button.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.form-msg { min-height: 1.4em; font-size: 0.92rem; margin: 0; }
.form-msg.success { color: #1a7a3c; }
.form-msg.error { color: #b3261e; }

/* ---------- Produce strip ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 720px; margin: 0 auto; }
.tags span {
  font-family: 'Marcellus', serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(90, 114, 156, 0.35);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(46, 67, 104, 0.08);
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.card {
  background: var(--white);
  border: 1px solid rgba(90, 114, 156, 0.16);
  border-radius: 6px;
  padding: 34px 30px;
  box-shadow: 0 14px 30px rgba(46, 67, 104, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(46, 67, 104, 0.16); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.98rem; }

/* ---------- Fact list ---------- */
.facts { list-style: none; max-width: 560px; margin: 0 auto; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(90, 114, 156, 0.2);
}
.facts .k { font-family: 'Marcellus', serif; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
.facts .v { color: var(--slate); text-align: right; }

/* ---------- Wash panel ----------
   The shaded box the season email uses beneath its photos, brought onto the site so the
   two surfaces read as the same farm. Deliberately a bordered CARD, not a tinted section
   band — the site's rule is one seamless white surface, and a full-width tint would break
   it. Colours are lifted from the email template (background #f7f9fc, border #e3e9f3) so
   a member seeing both side by side sees one design, not two. */
.panel-wash {
  background: #f7f9fc;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 26px 30px 10px;
  max-width: 620px;
  margin: 0 auto;
}
.panel-wash .facts { max-width: none; }
.panel-wash .facts li:last-child { border-bottom: none; }
.panel-title {
  font-family: 'Marcellus', serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  margin: 0 0 6px;
}
@media (max-width: 640px) { .panel-wash { padding: 22px 18px 6px; } }

/* ---------- Photos ---------- */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.photo { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 18px 36px rgba(46, 67, 104, 0.18); aspect-ratio: 4 / 5; object-fit: cover; border: 1.5px solid rgba(46, 67, 104, 0.45); outline: 1px solid rgba(46, 67, 104, 0.3); outline-offset: 4px; }
.photo-wide { aspect-ratio: 16 / 7; }
/* Landscape variant for photos of a laid-out share. The default .photo is 4/5 portrait,
   which is right for a person or a row of beds but slices a wide table of vegetables in
   half — and the whole point of those two pictures is seeing everything that is in the
   bag. 3/2 keeps enough height to have presence in a half-width grid cell.
   ⚠️ `height: auto` on .photo above is what makes this work AT ALL. csa.html gives these
   images width/height ATTRIBUTES so the browser reserves their space before they load and
   the text below doesn't jump. Those attributes are a presentational hint that sets a real
   height — and `aspect-ratio` is IGNORED when both dimensions are already resolved, so the
   images silently rendered 453x603 PORTRAIT, cropping away the very thing they exist to
   show. Measured in the browser, not guessed: getBoundingClientRect said 453x603 while
   getComputedStyle happily reported "3 / 2". A computed style agreeing with you is not
   evidence the layout agrees. */
.photo-land { aspect-ratio: 3 / 2; }
figure figcaption {
  font-family: 'Marcellus', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 12px;
  text-align: center;
}
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr; } }

/* ---------- Instagram strip ---------- */
.ig-strip { width: 100%; overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ig-track { display: flex; gap: 20px; width: max-content; animation: ig-scroll 46s linear infinite; }
.ig-strip:hover .ig-track { animation-play-state: paused; }
.ig-track img { width: 190px; height: 190px; object-fit: cover; border-radius: 6px; border: 1.5px solid rgba(46, 67, 104, 0.45); outline: 1px solid rgba(46, 67, 104, 0.3); outline-offset: 3px; flex-shrink: 0; }
@keyframes ig-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ig-track img { width: 130px; height: 130px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
footer {
  background: transparent;
  color: var(--slate);
  text-align: center;
  padding: 54px 5vw 44px;
  border-top: 1px solid rgba(90, 114, 156, 0.25);
}
/* Pattern flows through the footer; text keeps the soft white halo */
footer p, footer .foot-cert {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 0 26px 20px rgba(255, 255, 255, 0.93);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Botanical divider under centered headings — logo blue to match the pattern */
.divider {
  display: block;
  width: 86px;
  margin: 0 auto 24px;
  color: #004aad;
  opacity: 0.85;
}
.divider svg { display: block; width: 100%; height: auto; }
footer .seal-mini { width: 84px; height: auto; margin-bottom: 18px; filter: none; }
footer p { font-size: 0.9rem; letter-spacing: 0.04em; }
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(46,67,104,0.35); }
.foot-cert { font-family: 'Marcellus', serif; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.74rem; margin-top: 14px; color: var(--slate); }

/* ---------- Add-on ordering (order.html) ---------- */
/* Panels get a solid white background rather than the halo treatment used for running
   text: a quantity stepper and a price column need a clean edge to read against the
   crop pattern, and a feathered halo behind a control looks like a mistake. */
.order-form { max-width: 560px; }
/* An explicit `display` on a class beats the browser's own [hidden] rule, so the form
   stayed on screen underneath the confirmation — caught in the rendered screenshot, not
   by reading the code. Higher specificity than .waitlist-form's display:flex, so no
   !important needed. */
.order-form[hidden], .order-done[hidden] { display: none; }
.order-week {
  background: var(--wash);
  border: 1px solid rgba(90, 114, 156, 0.16);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}
.order-week:empty { display: none; }
/* Sits under the pickup picker. A member who picks the wrong spot still gets a normal
   confirmation (the response must not reveal who is on the roster), so this hint is
   what prevents the mistake rather than reporting it. */
.order-hint {
  margin: -4px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--slate);
  text-align: center;
}
.order-week.closed { color: #b3261e; }
.order-week strong { font-family: 'Marcellus', serif; letter-spacing: 0.04em; }

.order-items { display: flex; flex-direction: column; gap: 12px; }
.order-items:empty { display: none; }
.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid rgba(90, 114, 156, 0.16);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(46, 67, 104, 0.06);
}
.order-item-info { flex: 1 1 auto; min-width: 0; }
.order-item-name { font-family: 'Marcellus', serif; letter-spacing: 0.04em; font-size: 1rem; display: block; }
.order-item-meta { color: var(--slate); font-size: 0.88rem; display: block; }

/* Stepper. Big enough to hit on a phone with one hand full of vegetables. */
.qty { display: flex; align-items: center; gap: 4px; flex: none; }
.qty button {
  width: 40px; height: 40px;
  font-family: 'Lora', serif; font-size: 1.25rem; line-height: 1;
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(90, 114, 156, 0.32);
  border-radius: 6px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.qty button:hover:not(:disabled) { background: #004aad; color: #fff; border-color: #004aad; }
.qty button:disabled { opacity: 0.4; cursor: default; }
.qty output {
  min-width: 2.2em; text-align: center;
  font-variant-numeric: tabular-nums; font-size: 1.05rem;
}
.order-item.chosen { border-color: #004aad; }

.order-total {
  margin: 0; text-align: right;
  font-family: 'Marcellus', serif; letter-spacing: 0.06em; font-size: 1.1rem;
}
.order-total:empty { display: none; }

.order-done {
  max-width: 560px; margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(90, 114, 156, 0.16);
  border-radius: 6px; padding: 30px;
  box-shadow: 0 14px 30px rgba(46, 67, 104, 0.1);
}
.order-done h2 { font-size: 1.5rem; margin-bottom: 8px; }
.order-done-when { color: var(--slate); margin-bottom: 18px; }
.order-done-lines { list-style: none; margin: 0 0 22px; }
.order-done-lines li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(90, 114, 156, 0.14);
  font-size: 0.98rem;
}
.order-done-lines li:last-child { border-bottom: none; }
/* Who to pay. This is the part that matters most on the page: the farm never handles
   this money, so the member has to leave knowing exactly who to hand it to. */
.payee {
  background: var(--wash);
  border-left: 3px solid #004aad;
  border-radius: 4px;
  padding: 14px 16px; margin-bottom: 12px;
}
.payee-who { font-family: 'Marcellus', serif; letter-spacing: 0.05em; display: block; }
.payee-how { color: var(--slate); font-size: 0.92rem; display: block; }
.order-done-foot { color: var(--slate); font-size: 0.9rem; margin: 18px 0 0; }

@media (max-width: 640px) {
  /* Name above the stepper — side by side at 375px squeezed a product name to two
     words a line, and the price ended up under the minus button. */
  .order-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .qty { justify-content: center; }
  .order-total { text-align: center; }
  .order-done { padding: 22px 18px; }
  .order-done-lines li { flex-direction: column; gap: 2px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 54px 0 48px; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 1.45rem; }
  h2 { font-size: 1.45rem; }
  nav { justify-content: center; text-align: center; }
  .nav-links { gap: 16px; justify-content: center; }
  body::before { background-size: 340px auto; opacity: 1; }
  .page-frame { inset: 8px; outline: none; border-radius: 6px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts .v { text-align: left; }
  footer { padding: 40px 5vw 34px; }
  .field-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .seal { animation: none; }
  .card, .card:hover { transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ig-track { animation: none; }
  .ig-strip { overflow-x: auto; }
}

/* ── Events (Build 6, 2026-08-13) ────────────────────────────────────────────
   One block per event on events.html. Deliberately plain: the site reads as one
   seamless white surface with no tinted bands, so a card here is separated by a
   hairline rule and space, never by a filled panel or a drop shadow. */
.event-card {
  border-top: 1px solid rgba(0, 74, 173, 0.18);
  padding: 30px 0 34px;
  text-align: center;
}
.event-card:first-child { border-top: none; padding-top: 6px; }
.event-card h2 { margin: 0 0 6px; }
.event-when {
  font-family: 'Marcellus', Georgia, serif;
  letter-spacing: 0.04em;
  color: #004aad;
  margin: 0 0 10px;
}
.event-card .btn { margin-top: 16px; }
#ev-list { margin-bottom: 10px; }
/* The Turnstile widget centres with the rest of the form and must not overflow a
   375px screen — its iframe is a fixed 300px wide. */
.cf-turnstile { display: flex; justify-content: center; margin: 18px 0 6px; }
.cf-turnstile iframe { max-width: 100%; }

@media (max-width: 640px) {
  .event-card { padding: 24px 0 26px; }
  .event-when { font-size: 0.95rem; }
}
