/* Farm Stays UK
   Layout: full-bleed photo bands + a calm canvas page; content in a 1200px wrap, cards in auto-fill grids.
   Palette: pasture green (structure), meadow (accents), hay (highlights), barn red (book buttons), canvas (page). */
:root {
  --pasture: #1E3A2B;
  --pasture-2: #284a37;
  --meadow: #3F6B3A;
  --grass: #7FA65A;
  --hay: #E6C463;
  --hay-soft: #F5E7B8;
  --barn: #B9402B;
  --barn-dark: #96301F;
  --canvas: #FAF7F0;
  --canvas-dark: #EFE6D2;
  --paper: #FFFFFF;
  --bark: #26231F;
  --muted: #605E53;
  --line: #E4DDCC;
  --sky: #DCEAEC;
  --shadow: 0 1px 2px rgba(38,35,31,.06), 0 6px 18px rgba(38,35,31,.08);
  --radius: 14px;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--bark); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--meadow); text-underline-offset: 3px; }
a:hover { color: var(--pasture); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; color: var(--pasture); text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--hay); outline-offset: 2px; border-radius: 4px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--paper); padding: 8px 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--meadow); margin-bottom: .9em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-barn { background: var(--barn); color: #fff; }
.btn-barn:hover { background: var(--barn-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--pasture); background: transparent; }
.btn-light { background: var(--paper); color: var(--pasture); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }

/* Header */
.site-header { background: var(--pasture); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
/* Logo: Tom's FARM STAYS UK stamp (img/logo.png, white on transparent) */
.logo-img { display: block; height: 34px; width: auto; }
.site-footer .logo-img { height: 40px; }
.logo-mask { display: block; width: 213px; height: 36px; background: var(--pasture); -webkit-mask: url(/img/logo.png?v=2) center / contain no-repeat; mask: url(/img/logo.png?v=2) center / contain no-repeat; }
@media (max-width: 420px) { .logo-img { height: 28px; } }
/* (old drawn wordmark, kept for reference) */
.wordmark { font: 800 1.55rem/1 'Outfit', var(--body); letter-spacing: .045em; white-space: nowrap; color: currentColor; }
.wordmark .tentA { display: inline; height: .70em; width: auto; vertical-align: baseline; overflow: visible; margin: 0 .01em; }
.wordmark .wm-uk { display: inline-block; font-size: .4em; letter-spacing: .1em; border: .1em solid currentColor; border-radius: .25em;
  padding: .22em .34em .16em; margin-left: .5em; position: relative; top: -.42em; }
.admin-tag { font: 700 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--hay); }
@media (max-width: 420px) { .wordmark { font-size: 1.3rem; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button { color: #fff; text-decoration: none; font: 600 .95rem/1 var(--body); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav-drop > button:hover { background: var(--pasture-2); }
.nav .btn { margin-left: 8px; }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ''; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.drop { display: none; position: absolute; top: 100%; left: 0; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; grid-template-columns: 1fr 1fr; }
.drop a { color: var(--bark); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.drop a:hover { background: var(--canvas); }
.nav-drop:hover .drop, .nav-drop:focus-within .drop, .nav-drop.open .drop { display: grid; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--pasture); flex-direction: column; align-items: stretch;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--pasture-2); }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { padding: 14px 8px; text-align: left; width: 100%; }
  .drop { position: static; display: grid; box-shadow: none; background: var(--pasture-2); }
  .drop a { color: #fff; }
  .drop a:hover { background: var(--pasture); }
  .nav .btn { margin: 12px 0 0; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--pasture); overflow: hidden; }
.hero-photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,38,28,.35) 0%, rgba(20,38,28,.72) 60%, rgba(20,38,28,.92) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 140px) clamp(40px, 6vw, 72px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--hay); }
.hero .lead { color: #EDEBE3; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; padding: 0; list-style: none; font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hay); }

/* Finder (search box) */
.finder { background: var(--paper); color: var(--bark); border-radius: 18px; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.25);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; max-width: 980px; }
.finder label { display: grid; gap: 6px; font: 700 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.finder select { font: 500 1rem var(--body); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--bark); width: 100%; }
.finder .btn { height: 48px; }
@media (max-width: 800px) { .finder { grid-template-columns: 1fr 1fr; } .finder .btn { grid-column: 1 / -1; } }
@media (max-width: 460px) { .finder { grid-template-columns: 1fr; } }

/* Animal chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; color: var(--bark); text-decoration: none; cursor: pointer; font-size: .95rem; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--pasture); color: #fff; border-color: var(--pasture); }
.chip small { font-weight: 500; opacity: .7; }

/* Farm cards */
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.farm-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.farm-card:hover { transform: translateY(-3px); }
.farm-card[hidden] { display: none; }
.farm-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--canvas-dark); }
.farm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.score { position: absolute; top: 12px; left: 12px; background: var(--pasture); color: #fff; font: 700 1rem/1 var(--body); padding: 8px 10px; border-radius: 10px; display: grid; gap: 3px; }
.score small { font-size: .68rem; font-weight: 500; opacity: .85; }
.farm-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.farm-card-body h3 { margin: 0; font-size: 1.3rem; }
.farm-card-body h3 a { color: var(--pasture); text-decoration: none; }
.farm-card-where { margin: 0; font: 700 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--meadow); }
.farm-card-animals { margin: 0; color: var(--muted); font-size: .92rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 0; list-style: none; }
.badges li { font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 6px; background: var(--canvas); color: var(--pasture); }
.badges .b-tub { background: #E3EEF3; color: #24566B; }
.badges .b-dog { background: var(--hay-soft); color: #6B5214; }
.badges .b-lamb { background: #EEF4E6; color: var(--meadow); }
.farm-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.from { margin: 0; font-size: .9rem; color: var(--muted); display: grid; line-height: 1.3; }
.from b { color: var(--bark); font-size: 1.2rem; }
.from span { font-size: .8rem; }

/* Steps band */
.steps-band { background: var(--pasture); color: #fff; position: relative; overflow: hidden; }
.steps-band h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--pasture-2); }
.steps li::before { counter-increment: s; content: counter(s); font: 400 2.6rem/1 var(--display); color: var(--hay); display: block; margin-bottom: 10px; }
.steps h3 { color: #fff; margin-bottom: .35em; }
.steps p { margin: 0; color: #D9DED6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Canvas lodge explainer */
.lodge { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.lodge-plan { background: var(--paper); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.lodge-plan svg { width: 100%; height: auto; display: block; }
.lodge-plan figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.lodge-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.lodge-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.lodge-list b { display: block; color: var(--pasture); }
.lodge-list .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--hay-soft); display: grid; place-items: center; font-weight: 800; color: #6B5214; }
@media (max-width: 860px) { .lodge { grid-template-columns: 1fr; } }

/* Shower options table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--canvas); cursor: default; }
table.data th[data-sort] { cursor: pointer; }
table.data td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }

/* Calendar strip */
.calendar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month { background: var(--paper); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: .8rem; box-shadow: var(--shadow); min-width: 0; }
.month b { display: block; font: 400 1rem/1.2 var(--display); color: var(--pasture); }
.month i { display: block; font-style: normal; color: var(--muted); font-size: .72rem; line-height: 1.25; margin-top: 4px; }
.month.hot { background: var(--hay-soft); }
.month.lamb { background: #EEF4E6; }
@media (max-width: 760px) { .calendar { grid-template-columns: repeat(4, 1fr); } }

/* Region tiles */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.region { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--pasture); }
.region img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.region:hover img { transform: scale(1.05); }
.region::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,38,28,.85)); }
.region span { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 400 1.35rem/1.1 var(--display); }
.region small { display: block; font: 600 .8rem var(--body); color: var(--hay); margin-top: 4px; }

/* Map */
.map { height: 460px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; background: var(--sky); }
.leaflet-popup-content { font: 14px/1.4 var(--body); }
.leaflet-popup-content a { font-weight: 700; }

/* Filter bar on /farms/ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filters select { font: 500 .95rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.filters .count { margin-left: auto; color: var(--muted); font-weight: 600; }

/* Article / page body */
.page-hero { background: var(--pasture); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #E6E9E1; }
.page-hero-bg { position: absolute; inset: 0; opacity: .32; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #CFD8CC; }
.crumbs a { color: #fff; }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--meadow); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .3em 0; }
.prose .chips, .prose .tick-list, .prose .badges { padding-left: 0; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--hay-soft); border-radius: 12px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.aside-card { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.15rem; }
@media (max-width: 980px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* Farm page */
.farm-hero { position: relative; min-height: 380px; display: flex; align-items: end; color: #fff; background: var(--pasture); overflow: hidden; }
.farm-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.farm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,38,28,.1) 30%, rgba(20,38,28,.88)); }
.farm-hero .wrap { position: relative; z-index: 1; padding-block: 120px 36px; width: 100%; }
.farm-hero h1 { color: #fff; margin-bottom: .2em; }
.farm-hero p { margin: 0; color: #EDEBE3; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.fact-row li { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px 16px; }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--grass); border-bottom: 3px solid var(--grass); transform: rotate(-45deg); }
.tick-list li.no::before { border: 0; content: '–'; color: var(--barn); font-weight: 800; transform: none; top: 0; }
.highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.highlight { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.highlight h3 { font-size: 1.1rem; margin-bottom: .3em; }
.highlight p { margin: 0; font-size: .95rem; color: var(--muted); }
.distances { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.distances div { background: var(--paper); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.distances b { display: block; color: var(--pasture); }
.distances span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: .85rem; color: var(--muted); }

/* CTA banner (ad) */
.cta-band { background: var(--hay); color: var(--bark); border-radius: 22px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }
.ad-inline { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 2px solid var(--hay); border-radius: var(--radius); padding: 12px; margin: 1.6em 0; text-decoration: none; color: var(--bark); }
.ad-inline img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; margin: 0; }
.ad-inline b { font: 400 1.15rem var(--display); color: var(--pasture); display: block; }
.ad-inline span { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .ad-inline { grid-template-columns: 96px 1fr; } .ad-inline .btn { grid-column: 1 / -1; } }

/* Content tools (same markup as bookholidaylodge: bhl-tool blocks) */
.bhl-tool { margin: 1.6em 0; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.bhl-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bhl-checklist li { display: flex; gap: 10px; align-items: start; cursor: pointer; }
.bhl-checklist li::before { content: ''; flex: 0 0 20px; height: 20px; border: 2px solid var(--meadow); border-radius: 5px; margin-top: 2px; }
.bhl-checklist li.done { color: var(--muted); text-decoration: line-through; }
.bhl-checklist li.done::before { background: var(--meadow); box-shadow: inset 0 0 0 3px var(--paper); }
details.bhl-faq { background: var(--paper); border-radius: 12px; padding: 14px 18px; margin: 10px 0; box-shadow: var(--shadow); }
details.bhl-faq summary { cursor: pointer; font-weight: 700; color: var(--pasture); }
details.bhl-faq[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--pasture); color: #D9DED6; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; }
.footer-grid h3 { color: var(--hay); font-size: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-about p { margin-top: 14px; max-width: 40ch; }
.footer-base { border-top: 1px solid var(--pasture-2); padding-block: 20px 28px; font-size: .85rem; }
.footer-base p { margin: 0; max-width: 90ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* Hoplink page */
body.hop { min-height: 100vh; display: grid; place-items: center; background: var(--pasture); padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.hop-bg { position: fixed; inset: -20px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.1); opacity: .45; }
.hop-card { position: relative; background: var(--canvas); border-radius: 24px; max-width: 560px; width: 100%; padding: clamp(24px, 5vw, 44px); box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.hop-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--pasture); }
.hop-logo .wordmark { font-size: 1.2rem; }
.hop-eyebrow { margin: 22px 0 6px; font: 700 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--meadow); }
.hop-card h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem); }
.hop-sub { color: var(--muted); }
.hop-track { position: relative; height: 70px; margin: 20px 0 18px; }
.hop-field { position: absolute; left: 0; right: 0; bottom: 8px; height: 10px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--grass) 0 14px, var(--meadow) 14px 28px); opacity: .85; }
.hop-tractor { position: absolute; bottom: 12px; left: 0; width: 64px; animation: drive 2.2s cubic-bezier(.45,.05,.4,1) forwards; }
.hop-tent { position: absolute; bottom: 14px; right: 0; width: 60px; }
@keyframes drive { from { left: 0; } to { left: calc(100% - 128px); } }
@media (prefers-reduced-motion: reduce) { .hop-tractor { animation: none; left: calc(100% - 128px); } .btn, .farm-card, .region img { transition: none; } }
.hop-tips { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; text-align: left; }
.hop-tips li { background: var(--paper); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.hop-tips span { display: inline-block; min-width: 92px; font-weight: 700; color: var(--meadow); }
.hop-back { display: block; margin-top: 14px; font-size: .9rem; }
.hop-small { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* Farms with no photo in the feed: illustration, darker overlay so the title stays readable */
.farm-hero-illus > img { object-position: center 70%; }

.top-text .prose { font-size: 1.08rem; }
.top-text .prose p:last-child { margin-bottom: 0; }
.hero .lead p { margin: 0 0 .6em; }

/* Farm photo gallery: mosaic + lightbox (js/site.js) */
.gallery-strip { padding-block: 20px 0; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px; gap: 8px; border-radius: 18px; overflow: hidden; }
.gallery a { display: block; overflow: hidden; background: var(--canvas-dark); cursor: zoom-in; }
.gallery a.g0 { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--pasture);
  border: 0; border-radius: 999px; padding: 10px 16px; font: 700 .9rem var(--body); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.gallery-all svg { width: 16px; height: 16px; }
.gallery-all:hover { background: var(--hay); }
.gallery-strip .note { margin-top: 6px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px; } .gallery a.g0 { grid-column: span 2; grid-row: auto; }
  .gallery a.g3, .gallery a.g4 { display: none; } }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12,20,15,.985); display: grid; grid-template-rows: auto 1fr auto; color: #fff;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 600; }
.lb-top b { font: 400 1.15rem var(--display); }
.lb-count { opacity: .75; margin-left: 12px; font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 70px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .25s; }
.lb-stage img.fade { opacity: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px 18px; scrollbar-width: thin; justify-content: safe center; }
.lb-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; opacity: .55; background: none; }
.lb-thumbs button[aria-current="true"] { border-color: var(--hay); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-nav { width: 40px; height: 40px; background: rgba(0,0,0,.35); } .lb-thumbs button { width: 64px; height: 46px; } }
body.lb-open { overflow: hidden; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.post-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card-img { display: block; aspect-ratio: 16 / 10; background: var(--canvas-dark); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.post-card-body h3 { margin: 0; font-size: 1.25rem; }
.post-card-body h3 a { color: var(--pasture); text-decoration: none; }
.post-card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-hero { position: relative; min-height: 360px; display: flex; align-items: end; color: #fff; background: var(--pasture); overflow: hidden; }
.post-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,38,28,.15) 25%, rgba(20,38,28,.9)); }
.post-hero .wrap { position: relative; z-index: 1; padding-block: 120px 34px; width: 100%; }
.post-hero h1 { color: #fff; max-width: 24ch; margin-bottom: .3em; }
.post-meta { margin: 0; color: #E6E9E1; font-weight: 600; }
.post-cta { background: var(--hay-soft); border-radius: 18px; padding: 20px; margin: 1.8em 0; display: grid; gap: 12px; }
.post-cta .eyebrow { margin: 0; }
.post-cta h3 { margin: 0; color: var(--pasture); }
.post-cta-farms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post-cta-farms a { background: var(--paper); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--bark); display: grid; }
.post-cta-farms img { margin: 0; border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-cta-farms b { padding: 8px 10px 0; color: var(--pasture); font-family: var(--display); font-weight: 400; }
.post-cta-farms span { padding: 0 10px 10px; font-size: .85rem; color: var(--muted); }
.post-cta .btn { justify-self: start; }
@media (max-width: 640px) { .post-cta-farms { grid-template-columns: 1fr; } }
.preview-bar { background: var(--hay); color: var(--bark); text-align: center; font-weight: 700; padding: 10px; }

/* Fun headline under the farm gallery (data/farm_taglines.json) */
.farm-fun { padding-block: 34px 0; }
.farm-fun .wrap { display: flex; align-items: center; gap: 16px; }
.farm-fun h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); color: var(--pasture); max-width: 44ch; }
.farm-fun-tent { flex: 0 0 auto; width: 46px; height: 42px; color: var(--hay); overflow: visible; }
.farm-fun + .farm-body { padding-top: 26px; }
.gallery-strip + .farm-body { padding-top: 30px; }
@media (max-width: 600px) { .farm-fun .wrap { flex-direction: column; align-items: flex-start; gap: 10px; } .farm-fun-tent { width: 30px; height: 27px; } .farm-fun { padding-block: 24px 0; } }
.farm-body .prose > :first-child { margin-top: 0; }
