/* Layout concept: a farm journal — wide photo bands alternate with calm reading columns;
   sections follow the farm's own calendar rather than generic feature grids. */
:root {
  --bg: #FBF8F1;
  --surface: #F0EBDD;
  --ink: #2A2419;
  --muted: #675E4E;
  --line: #DDD5C2;
  --green: #2F4A36;
  --green-ink: #FBF8F1;
  --gold: #A9771F;
  --barn: #9A2E25;
  --overlay: rgba(20, 18, 12, 0.55);
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151913; --surface: #1F251D; --ink: #ECE6D6; --muted: #ABA48F; --line: #343B30;
    --green: #2C4232; --green-ink: #ECE6D6; --gold: #D6A54A; --barn: #D0685C;
    --overlay: rgba(8, 10, 6, 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151913; --surface: #1F251D; --ink: #ECE6D6; --muted: #ABA48F; --line: #343B30;
  --green: #2C4232; --green-ink: #ECE6D6; --gold: #D6A54A; --barn: #D0685C;
  --overlay: rgba(8, 10, 6, 0.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.prose { max-width: 64ch; display: grid; gap: 1.1em; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }
.band { background: var(--surface); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 4px; font-weight: 600; font-size: 0.98rem; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; padding: 8px 12px; font: 600 0.95rem var(--font-body); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
         flex-direction: column; padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
}

/* Hero */
.hero { position: relative; color: #FBF8F1; background: #1d2418; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,10,0.15) 0%, rgba(14,14,10,0.62) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(120px, 20vw, 220px) clamp(40px, 6vw, 72px); display: grid; gap: 18px; }
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.hero p { font-size: var(--step-1); max-width: 44ch; color: rgba(251,248,241,0.9); }
.hero .eyebrow { color: #F0C870; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(251,248,241,0.85); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 4px; background: var(--gold); color: #1f1a10; border: 0; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.split h2 { font-size: var(--step-3); margin-bottom: 18px; }
.photo { border-radius: 6px; overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: end; }
.photo-pair .photo:first-child { aspect-ratio: 3/4; }
.photo-pair .photo:last-child { aspect-ratio: 3/4; margin-bottom: 48px; }

/* Seasons */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .seasons { grid-template-columns: 1fr; } }
.season { display: grid; gap: 14px; align-content: start; }
.season .photo { aspect-ratio: 4/5; }
.season h3 { font-size: var(--step-1); }
.season .when { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.season p { color: var(--muted); font-size: 1rem; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }
.product { display: grid; gap: 12px; align-content: start; }
.product .photo { aspect-ratio: 1; }
.product h3 { font-size: var(--step-1); }
.product .tag { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.product p { color: var(--muted); font-size: 1rem; }
.products.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .products.four { grid-template-columns: repeat(2, 1fr); } }
.products.four .photo { aspect-ratio: 4/5; }

/* Feature band (dark green) */
.feature { background: var(--green); color: var(--green-ink); }
.feature .eyebrow { color: #E8BC62; }
.feature p { color: color-mix(in srgb, var(--green-ink) 82%, transparent); }
.feature .photo { aspect-ratio: 4/5; }

/* Verse */
.verse { text-align: center; padding-block: clamp(56px, 8vw, 96px); }
.verse blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.3; text-wrap: balance; }
.verse cite { display: block; margin-top: 18px; font-style: normal; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--gold); }

/* Story (Our Farm) */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story aside { position: sticky; top: 100px; display: grid; gap: 14px; }
@media (max-width: 860px) { .story aside { position: static; } }
.story aside .photo { aspect-ratio: 4/3; }
.story aside figcaption, figure figcaption { font-size: var(--step--1); color: var(--muted); }
figure { margin: 0; display: grid; gap: 8px; }
.story h2 { font-size: var(--step-3); margin-bottom: 22px; }
.story .prose p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 3.6em; line-height: 0.9; padding: 6px 10px 0 0; color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: var(--step-1); }
.facts div { display: grid; gap: 2px; }

/* Chapter nav + galleries */
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chapters a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chapters a:hover { color: var(--ink); border-color: var(--gold); }
.chapter { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; margin-bottom: 28px; align-items: end; }
@media (max-width: 760px) { .chapter-head { grid-template-columns: 1fr; } }
.chapter-head h3 { font-size: var(--step-2); }
.chapter-head p { color: var(--muted); max-width: 56ch; }
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery button { all: unset; display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; cursor: zoom-in; border-radius: 5px; overflow: hidden; background: var(--surface); }
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,8,0.92); display: grid; place-items: center;
  padding: max(56px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(56px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: 4px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.24); }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(12px + env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.lb-next { right: calc(12px + env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }

/* Farm to Table */
.event-hero { background: #10140f; color: #FBF8F1; }
.event-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
@media (max-width: 860px) { .event-hero .wrap { grid-template-columns: 1fr; } }
.event-hero h1 { font-size: var(--step-4); }
.event-hero h1 em { font-style: normal; color: #E36B5C; }
.event-hero p { color: rgba(251,248,241,0.85); font-size: var(--step-1); max-width: 40ch; }
.event-hero .photo { aspect-ratio: 4/5; background: #222; }
.event-hero .eyebrow { color: #F0C870; }
.event-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin-top: 10px; padding-top: 22px; border-top: 1px solid rgba(251,248,241,0.2); }
@media (max-width: 520px) { .event-facts { grid-template-columns: 1fr 1fr; } }
.event-facts dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251,248,241,0.6); font-weight: 600; }
.event-facts dd { margin: 0; font-family: var(--font-display); font-size: var(--step-1); }
.event-facts div { display: grid; gap: 2px; }
.menu { max-width: 680px; margin-inline: auto; text-align: center; display: grid; gap: 30px; }
.menu h3 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--barn); margin-bottom: 8px; }
.menu p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5; }
.menu .rule { width: 60px; height: 2px; background: var(--gold); margin-inline: auto; }
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; }
.vendor { padding-block: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.vendor strong { font-weight: 700; }
.vendor .town { color: var(--muted); font-size: 0.95rem; }
.vendor .gave { font-size: 0.98rem; }
.vendor.host strong { color: var(--barn); }
.credits { margin-top: 32px; display: grid; gap: 6px; color: var(--muted); }
.printed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .printed { grid-template-columns: 1fr 1fr; } .printed figure:first-child { grid-column: 1 / -1; } }
.printed button { all: unset; cursor: zoom-in; display: block; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.printed button:focus-visible { outline: 3px solid var(--gold); }

/* Market note */
.note { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.note img { width: 96px; height: 96px; }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; } }
.note h3 { font-size: var(--step-1); margin-bottom: 6px; }
.note p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 0; }
.contact-list div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; font-family: var(--font-display); font-size: var(--step-1); }

/* Footer */
.site-footer { background: var(--green); color: var(--green-ink); padding-block: 56px 40px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px 48px; align-items: center; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img { width: 104px; height: 104px; }
.site-footer h2 { font-size: var(--step-2); }
.site-footer p { color: color-mix(in srgb, var(--green-ink) 75%, transparent); }
.site-footer nav { display: grid; gap: 6px; }
.site-footer nav a { text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.printed img { width: 100%; }
.scripture { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.scripture cite { display: block; margin-top: 6px; font-family: var(--font-body); font-style: normal; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.verse.small { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.verse.small blockquote { font-size: var(--step-2); max-width: 36ch; }
.site-footer a { color: inherit; }
.announce { background: var(--gold); color: #1f1a10; }
.announce .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-block: 22px; }
.announce .eyebrow { color: #1f1a10; opacity: 0.75; }
.announce h2 { font-size: var(--step-2); }
.announce p { font-weight: 600; }
.next-up { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.2); }
.next-up strong { color: #E8BC62; font-weight: 700; }
