/* Sheepkind — shared stylesheet
   Type: EB Garamond (display) + Outfit (body), matching the live site.
   Colour: cream #FAF7F1, deep brown #1E1714, clay #B8614A.
   Note: clay is lightened to #D98A6E on dark grounds and deepened to
   #9E4A33 on cream, so every text/background pair clears 4.5:1. */

:root {
  --cream: #FAF7F1;
  --cream-2: #F2EDE5;
  --ink: #1E1714;
  --ink-deep: #14100E;
  --muted: #6B5D54;
  --clay: #B8614A;
  --clay-deep: #9E4A33;
  --clay-light: #D98A6E;
  --light: #E8E2D8;
  --rule: #E8E2D8;
  --gold: #E0B457;
  --green: #4A7A50;
  /* One size and tracking for every small-caps label on the site.
     Change it here and it changes everywhere. */
  --eyebrow-size: 12px;
  --eyebrow-track: 0.16em;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "EB Garamond", Georgia, "Times New Roman", serif; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: 820px; }

.eyebrow {
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 500;
  margin: 0;
}
.eyebrow-light { color: var(--clay-light); }

a { color: var(--clay-deep); }
a:hover { color: #7D3A27; }

h1, h2, h3, h4 { text-wrap: balance; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; color: var(--cream); }

/* ---------- header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--cream);
  z-index: 21;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.wordmark { text-decoration: none; display: block; }
.wordmark .mark-eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 500;
}
.wordmark .mark-name { display: block; font-size: 32px; line-height: 1; color: var(--ink); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--clay-deep); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.nav-toggle { display: none; }

/* ---------- dropdowns ----------
   "The Farm" is a link that also has pages beneath it, so it keeps its
   link and gets a separate disclosure button beside it — you can still
   reach the page itself. "Shop Online" is a parent only, so it is just
   a button. Open on hover for a mouse, on click or Enter for everyone
   else, and Escape closes. */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-parent {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.nav-parent:hover { color: var(--clay-deep); }
.sub-toggle {
  background: none;
  border: 0;
  padding: 2px 0 0 2px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  font-size: 11px;
}
.sub-toggle::after, .nav-parent::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}
.sub-toggle:hover, .nav-parent:hover { color: var(--clay-deep); }
.sub-toggle:focus-visible, .nav-parent:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }

.subnav {
  position: absolute;
  top: 100%;
  left: -14px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  min-width: 210px;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: none;
  z-index: 30;
}
.nav-item:hover .subnav,
.nav-item .subnav.open { display: block; }
.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: 9px 18px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { background: var(--cream-2); color: var(--clay-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--clay-deep);
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--clay-deep);
  transition: background .15s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #7D3A27; color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(250,247,241,0.65); }
.btn-ghost:hover { background: rgba(250,247,241,0.12); color: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--light); overflow: hidden; }
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,16,14,0.88) 0%, rgba(20,16,14,0.55) 48%, rgba(20,16,14,0.25) 100%),
    repeating-linear-gradient(135deg, #3A2E26 0 22px, #332821 22px 44px);
}
/* The hero sits on the same gutter as everything below it. Measure
   limits go on the text, never on the wrap, or the hero indents itself
   away from the rest of the page. */
.hero-inner { position: relative; padding-block: 120px; }
.hero-inner.compact { padding-block: 88px; }
.hero-inner h1 { max-width: 760px; }
.hero-inner p.lede { max-width: 560px; }
.hero-inner.centred h1,
.hero-inner.centred p.lede { margin-left: auto; margin-right: auto; }
.hero h1 {
  font-weight: 400;
  font-size: clamp(50px, 8.5vw, 92px);
  line-height: 1.02;
  margin: 20px 0 0;
  color: var(--cream);
}
.hero p.lede {
  margin: 26px 0 34px;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 300;
  max-width: 560px;
  color: var(--light);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- image slots ---------- */
.slot-box {
  background: #D9CFC0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  aspect-ratio: 4 / 3;
}
.slot {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(30,23,20,0.72);
  padding: 5px 9px;
}
.hero-slot { position: absolute; right: 20px; bottom: 20px; }

/* ---------- sections ---------- */
.section { padding-block: 92px; }
.section-tight { padding-block: 64px; }
.post-intro { padding-block: 60px 28px; }
.section-cream2 { background: var(--cream-2); }
.section-dark { background: var(--ink); color: var(--light); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 700px; }
.section-head h2 {
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin: 16px 0 20px;
}
.section-head p:not(.eyebrow, .award-label, .role, .attrib) { margin: 0 0 24px; font-size: 18px; line-height: 1.75; }

/* ---------- one type scale for page and section titles ----------
   These replace 13 one-off inline h1 sizes and 52 inline h2 sizes that
   had drifted into twelve near-identical clamps. Component headings
   (.pillar h2, .trust-item h2, .sheep-head h2, .sk-prod h2) keep their
   own sizes: their class selectors outrank these. */
.h-page {
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 56px);
  line-height: 1.04;
  margin: 16px 0 18px;
}
.h-section {
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 18px;
}
/* Subheadings inside running prose: policy clauses, blog body. */
.h-sub {
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.12;
  margin: 40px 0 14px;
}
/* Process steps shared the section scale all along. */
.pstep h2 { font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 18px; }
/* The homepage and shop heroes stay deliberately larger. */
.hero h1.h-page, .hero-split h1.h-page { font-size: inherit; line-height: inherit; margin: inherit; }
.prose p:not(.eyebrow, .award-label, .role, .attrib) { font-size: 17px; line-height: 1.8; margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- pillars ---------- */
.pillars { background: var(--ink-deep); color: var(--light); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px; padding-block: 64px; }
.pillar h2 { color: var(--clay-light); margin: 0 0 14px; }
.pillar p { margin: 0; font-size: 16px; line-height: 1.75; font-weight: 300; }

/* ---------- award ---------- */
.award { background: var(--ink-deep); color: var(--light); }
.award-inner {
  border-top: 1px solid rgba(232,226,216,0.18);
  padding-block: 40px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
}
.award-label { color: var(--gold); white-space: nowrap; }
.award-text { margin: 0; font-size: 16px; font-weight: 300; min-width: 0; }

/* ---------- quote ---------- */
.quote { background: var(--ink); color: var(--light); }
/* Same for the pull quotes: full-width wrap, centred text inside, so
   the band aligns with the page even though its words do not. */
.quote-inner { padding-block: 84px; text-align: center; }
.quote blockquote { max-width: 900px; margin-left: auto; margin-right: auto; }
.quote blockquote {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.38;
  color: var(--cream);
  font-weight: 400;
}
.quote .attrib { margin: 28px 0 0; color: var(--clay-light); }
.quote .attrib span { display: block; color: var(--light); margin-top: 4px; }

/* ---------- split ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.split > div { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }

/* ---------- cards ---------- */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.card { background: var(--cream); display: flex; flex-direction: column; }
.section-cream2 .card { background: var(--cream); }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { margin: 0 0 4px; font-size: 26px; font-weight: 400; }
.card-body .role { color: var(--clay-deep); margin: 0 0 12px; }
.card-body p { margin: 0; font-size: 15px; line-height: 1.72; color: var(--muted); }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; }
.step .num { font-family: "EB Garamond", Georgia, serif; font-size: 52px; line-height: 1; color: var(--clay); }
.step h3 { margin: 8px 0 10px; font-size: 26px; font-weight: 400; }
.step p:not(.eyebrow, .award-label, .role, .attrib) { margin: 0; font-size: 16px; line-height: 1.75; color: var(--muted); }

/* ---------- product tiles ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 22px; }
.product { background: var(--cream-2); text-decoration: none; color: inherit; display: block; }
.section-cream2 .product { background: var(--cream); }
.product .swatch { aspect-ratio: 4 / 5; }
.product .meta { padding: 14px 14px 18px; }
.product h3 { margin: 0 0 4px; font-size: 18px; font-weight: 400; line-height: 1.25; font-family: "EB Garamond", Georgia, serif; }
.product .sub { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.product .price { margin: 0; font-size: 15px; }
.product:hover h3 { color: var(--clay-deep); }

/* ---------- accordion ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.tab-btn {
  background: transparent; border: 1px solid var(--rule); color: var(--ink);
  font-family: inherit; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px; cursor: pointer;
}
.tab-btn[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 22px 0; font-size: 19px;
  font-family: "EB Garamond", Georgia, serif;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay-deep); font-size: 22px; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 24px; max-width: 760px; }
.faq .answer p { margin: 0 0 14px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--rule);
  padding: 13px 14px; border-radius: 0; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--clay-deep); outline-offset: 1px; }
.field textarea { min-height: 150px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { width: auto; margin-top: 5px; }
.check-row label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 400; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid .slot-box { aspect-ratio: 1 / 1; }
.gallery-grid .slot-box.wide { grid-column: span 2; aspect-ratio: 2 / 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--light); }
.footer-inner { padding-block: 64px 44px; }
.footer-logo { display: block; width: 190px; margin: 0 0 28px; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-credit { flex: 0 0 auto; }
.footer-blurb { margin: 0 0 44px; font-size: 15px; line-height: 1.75; max-width: 640px; font-weight: 300; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col { flex: 1 1 190px; min-width: 0; }
.footer-col h3 { color: var(--clay-light); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 15px; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal {
  margin: 44px 0 0; padding-top: 22px;
  border-top: 1px solid rgba(232,226,216,0.18);
  font-size: 14px; color: #B8AEA2;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
}

/* ---------- eyebrows, two jobs ----------
   The live site uses the eyebrow in two distinct ways and they want
   different treatment:

   1. CENTRED, above a big serif heading, introducing a whole section
      ("FRED & FREDA" over "The Hearts of the Farm").
   2. LEFT, as a quiet label on a block of text or a card
      ("THE FOUNDER", "RESCUED ROMNEY").

   A long phrase set in small letterspaced caps is hard to read, so
   anything over about forty characters gets .eyebrow-long: slightly
   larger, less tracking, and not shouted in capitals. */
/* Every small-caps label on the site, one size, one tracking.
   The section eyebrow, the pillar headings, the award line, the card
   roles, the footer column headings and the form labels were all
   slightly different sizes; they are the same thing doing the same
   job, so they now share the tokens.

   Container rules that style paragraphs (.prose p, .section-head p,
   .step p) are more specific than .eyebrow, so they used to win and the
   same label rendered at 12, 16, 17 or 18px depending on where it sat.
   Those three rules now exclude the eyebrow family instead. */
.eyebrow,
.pillar h2,
.award-label,
.card-body .role,
.footer-col h3,
.field > label,   /* direct child only: a consent sentence inside
                     .check-row is prose, not an uppercase label */
.quote .attrib {
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.5;
}
.eyebrow-long {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
}
.section-head.centred,
.hero-inner.centred {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.centred p { margin-left: auto; margin-right: auto; }
.hero-inner.centred .hero-actions { justify-content: center; }
.hero-inner.centred p.lede { margin-left: auto; margin-right: auto; }

/* An interior hero sits over a photograph with an even wash rather than
   the homepage's left-to-right gradient, so centred text stays legible. */
.hero.even .hero-media {
  background: linear-gradient(180deg, rgba(20,16,14,0.42) 0%, rgba(20,16,14,0.52) 100%);
}

/* ---------- split hero: copy one side, picture the other ---------- */
.hero-split { background: var(--ink); color: var(--light); }
.hero-split.green { background: var(--green); }
.hero-split .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-block: 72px;
}
.hero-split .hero-copy { flex: 1 1 420px; min-width: 0; }
.hero-split .hero-pic { flex: 1 1 380px; min-width: 0; }
.hero-split h1 {
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  margin: 18px 0 0;
  color: var(--cream);
}
.hero-split p.lede {
  margin: 22px 0 28px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  max-width: 480px;
}

/* ---------- green panel steps ---------- */
.section-green { background: var(--green); color: var(--cream); }
.steps.panels .step {
  background: var(--green);
  color: var(--cream);
  padding: 26px 24px 30px;
  border-top: 0;
}
.steps.panels .step .eyebrow { color: rgba(250,247,241,0.75); }
.steps.panels .step h3 { color: var(--cream); }
.steps.panels .step p { color: rgba(250,247,241,0.9); }

/* Co-Op panels: a big terracotta serif word, then the point, then the detail. */
.steps.cards .step { background: var(--cream-2); padding: 28px 26px 32px; border-top: 0; }
.section-cream2 .steps.cards .step { background: var(--cream); }
.step-label {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1.1;
  color: var(--clay-deep);
  margin: 0 0 4px;
  font-weight: 400;
}

/* Sheep cards centre their text, the way the live site sets them.
   Scoped to the pages that do it, so the homepage is left as it is. */
[data-cards-centred] .card-body { text-align: center; }

/* ---------- expandable bios ----------
   The clamp is added by site.js only to bios that actually overflow,
   so with JS off every word is still on the page. */
.card-body p.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bio-toggle {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--clay-deep);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.bio-toggle:hover { color: #7D3A27; }
.bio-toggle:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }

/* ---------- real photographs ----------
   Images live in ./images, downloaded from the old Wix site.
   Until that folder is in place the alt text shows on the cream
   ground, so a missing file reads as a caption rather than a
   broken page. */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-media {
  background: linear-gradient(90deg, rgba(20,16,14,0.86) 0%, rgba(20,16,14,0.54) 48%, rgba(20,16,14,0.24) 100%);
}
.slot-box.has-img { padding: 0; display: block; overflow: hidden; }
.slot-box.has-img > img { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 12px; color: var(--muted); }
.product .swatch { overflow: hidden; }
.product .swatch > img { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 11px; color: var(--muted); }
.gallery-grid .slot-box.has-img > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- responsive ---------- */

/* The menu collapses before the layout does. Eight items plus two
   dropdowns and a cart need more width than a two-column grid, so on a
   tablet in landscape the full nav is cramped well before the content
   needs to stack. Hamburger from 1080px down; the layout keeps its own
   breakpoints below. */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    font-size: var(--eyebrow-size);
    letter-spacing: var(--eyebrow-track);
    text-transform: uppercase;
    color: var(--ink);
    background: none;
    border: 1px solid var(--rule);
    padding: 11px 16px;
    cursor: pointer;
    font-family: inherit;
  }
  .nav-toggle::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 11px;
    margin-right: 9px;
    background-image:
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor);
    background-size: 100% 1.5px;
    background-repeat: no-repeat;
    background-position: left top, left center, left bottom;
  }
  .nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
  .nav-toggle:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding-block: 20px 18px;
    border-top: 1px solid var(--rule);
    margin-top: 16px;
  }
  .nav.open a { font-size: 17px; }

  /* Submenus sit open in the flow rather than floating, so nothing
     depends on hovering and nothing is reachable only by hover. */
  .nav.open .nav-item { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .nav.open .subnav {
    position: static;
    display: block;
    border: 0;
    background: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav.open .subnav a { padding: 5px 0; font-size: 15px; color: var(--muted); }
  .nav.open .subnav a:hover { color: var(--clay-deep); }
  .nav.open .sub-toggle { display: none; }
  .nav.open .nav-parent { font-size: 17px; }
  .nav.open .nav-parent::after { display: none; }
  .nav.open .cart-link { font-size: 17px; }

  .header-row { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .card-grid-3, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 48px; }
  .card-grid-3, .card-grid-2, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid .slot-box.wide { grid-column: span 1; aspect-ratio: 1 / 1; }
  .hero-inner { padding-block: 84px; }
  .hero-inner.compact { padding-block: 64px; }
  .section { padding-block: 64px; }
  .section-tight { padding-block: 48px; }
}


/* ---------- green bands ----------------------------------------------
   The flock live on grass, so the green is the farm's own colour rather
   than a decorative accent. Used to break long pages and to carry the
   heroes of the two pages that are about the making. Cream on #4A7A50
   is 4.81:1, so body text clears AA. */
.section-forest { background: var(--green); color: #EDF3ED; }
.section-forest h1,
.section-forest h2,
.section-forest h3 { color: var(--cream); }
.section-forest p:not(.eyebrow, .award-label, .role, .attrib) { color: #E4EDE4; }
.section-forest .eyebrow { color: #CBE0CC; }
.section-forest a:not(.btn) { color: var(--cream); }
.section-forest .btn { background: var(--cream); color: var(--green); border-color: var(--cream); }
.section-forest .btn:hover { background: #fff; color: var(--green); }
.section-forest .btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250,247,241,0.7); }
.section-forest .btn-ghost:hover { background: rgba(250,247,241,0.14); color: var(--cream); }
.section-forest .slot-box { border-color: rgba(250,247,241,0.35); }

/* A page hero on green instead of a photograph. */
.hero-band { background: var(--green); color: #EDF3ED; }
.hero-band .hero-inner { padding-block: 104px; }
.hero-band h1 { color: var(--cream); }
.hero-band .lede { color: #E4EDE4; }
.hero-band .eyebrow { color: #CBE0CC; }

/* ---------- trust row ----------
   Was a 2px ink rule over each column, which read as a table. A hairline
   and a small green marker says the same thing far more quietly. */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 34px; }
.trust-item { min-width: 0; padding-top: 20px; border-top: 1px solid var(--rule); position: relative; }
.trust-item::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 3px;
  background: var(--green);
}
.trust-item h2 { margin: 0 0 8px; font-size: 24px; font-weight: 400; line-height: 1.2; }
.trust-item p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ---------- asides ----------
   Somewhere for the flock's own mischief to live, so the pages have a
   voice as well as information. */
.aside {
  border-left: 3px solid var(--clay-light);
  padding: 4px 0 4px 20px;
  margin: 26px 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  font-style: italic;
  color: var(--muted);
}
.aside strong { font-style: normal; font-weight: 500; color: var(--ink); display: block; font-size: 15px;
                font-family: "Outfit", system-ui, sans-serif; letter-spacing: 0.01em; margin-bottom: 4px; }
.section-forest .aside { border-left-color: rgba(250,247,241,0.55); color: #E4EDE4; }
.section-forest .aside strong { color: var(--cream); }

/* ---------- photo with a caption, used across the softer pages ---------- */
.photo-note { margin: 0; }
.photo-note img { width: 100%; height: auto; display: block; }
.photo-note figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); font-style: italic; }
.section-forest .photo-note figcaption { color: #D7E4D8; }

/* ---------- shop: one block per sheep ----------
   Was three different layouts for four sheep, with the tiles shrinking
   each time. One structure, repeated, so the eye learns it once. */
.sheep-head { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; margin-bottom: 32px; }
.sheep-head > .sheep-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.sheep-head h2 { margin: 10px 0 14px; font-size: clamp(32px,4.2vw,44px); font-weight: 400; line-height: 1.05; }
.sheep-head p:not(.eyebrow, .award-label, .role, .attrib, .aside) { font-size: 16.5px; line-height: 1.75; margin: 0 0 14px; }
@media (max-width: 820px) {
  .sheep-head { grid-template-columns: 1fr; gap: 24px; }
  .sheep-head > .sheep-photo { max-width: 260px; }
}

/* A visible buy affordance on every tile. The whole tile is the link, so
   this is a span dressed as a button, not a nested anchor. */
.product .buy {
  display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500; color: var(--clay-deep);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.product:hover .buy { color: #7D3A27; }
.section-forest .product { background: var(--cream); }
.section-forest .product .buy { color: var(--clay-deep); }

/* ---------- storefront: product panel and basket ----------
   Served entirely from the browser against Wix Headless. */
.sk-modal, .sk-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.sk-modal.is-open, .sk-drawer.is-open { display: block; }
.sk-modal::before, .sk-drawer::before { content: ""; position: absolute; inset: 0; background: rgba(20,16,14,0.55); }

.sk-modal-box {
  position: relative; background: var(--cream); max-width: 880px; width: calc(100% - 32px);
  margin: 6vh auto 0; max-height: 88vh; overflow-y: auto; padding: 34px;
  box-shadow: 0 20px 60px rgba(20,16,14,0.3);
}
.sk-x {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--muted); padding: 4px 8px;
}
.sk-x:hover { color: var(--ink); }

.sk-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.sk-prod-img img { width: 100%; height: auto; display: block; }
.sk-prod h2 { font-weight: 400; font-size: clamp(26px,3.4vw,36px); line-height: 1.1; margin: 10px 0 10px; }
.sk-price { font-size: 21px; margin: 0 0 16px; color: var(--ink); }
.sk-desc { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.sk-optlabel { margin: 0 0 10px; }
.sk-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sk-opt {
  font: inherit; font-size: 14px; padding: 9px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule); color: var(--ink);
}
.sk-opt:hover { border-color: var(--ink); }
.sk-opt.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.sk-opt.is-out { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.sk-add { width: 100%; }
.sk-note { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }
.sk-loading { padding: 40px 0; text-align: center; color: var(--muted); }

.sk-drawer-box {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(20,16,14,0.25);
}
.sk-drawer-box.is-busy { opacity: .6; pointer-events: none; }
.sk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--rule); }
.sk-drawer-head h2 { margin: 0; font-size: 24px; font-weight: 400; }
.sk-drawer-head .sk-x { position: static; }
.sk-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 24px; }
.sk-drawer-foot { border-top: 1px solid var(--rule); padding: 20px 24px; background: var(--cream-2); }
.sk-empty { padding: 48px 0; text-align: center; color: var(--ink); font-size: 17px; }
.sk-empty span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); font-style: italic; }

.sk-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.sk-line-img { background: var(--cream-2); aspect-ratio: 1/1; }
.sk-line-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-line-meta h3 { margin: 0 0 4px; font-family: "EB Garamond", Georgia, serif; font-size: 18px; font-weight: 400; line-height: 1.2; }
.sk-line-sub { margin: 0; font-size: 13px; color: var(--muted); }
.sk-line-price { margin: 6px 0 8px; font-size: 15px; }
.sk-qty { display: flex; align-items: center; gap: 8px; }
.sk-qty button {
  font: inherit; font-size: 15px; line-height: 1; width: 28px; height: 28px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule); color: var(--ink);
}
.sk-qty button:hover { border-color: var(--ink); }
.sk-qty span { min-width: 20px; text-align: center; font-size: 15px; }
.sk-qty .sk-rm { width: auto; padding: 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-color: transparent; }
.sk-qty .sk-rm:hover { color: var(--clay-deep); border-color: transparent; text-decoration: underline; }
.sk-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; font-size: 17px; }
.sk-total strong { font-weight: 500; font-size: 20px; }
.sk-checkout { width: 100%; }

@media (max-width: 720px) {
  .sk-prod-grid { grid-template-columns: 1fr; gap: 20px; }
  .sk-modal-box { padding: 26px 20px; margin-top: 4vh; max-height: 92vh; }
}
