/* The public website. The same colours and fonts as the app
   (frontend/src/styles/theme.css), with its own layouts for reading and comparing. */

:root {
  color-scheme: light dark;
  --background: #F7F4EF;
  --foreground: #1C1917;
  --card: #FFFFFF;
  --secondary: #EDE9E2;
  --quiet-text: #685D50;
  --accent: #7C5C3A;
  --border: rgba(28, 25, 23, 0.12);
  --band: #1C1917;
  --band-text: #F7F4EF;
  --band-quiet: #C9BFB1;
  --band-accent: #D3A877;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17130F;
    --foreground: #F5F1EA;
    --card: #211C17;
    --secondary: #2A241E;
    --quiet-text: #B5A897;
    --accent: #D3A877;
    --border: rgba(245, 241, 234, 0.14);
    --band: #2A241E;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

/* Playfair's default figures dip below the line, which makes R150 read like R15o. */
h1, h2, h3, .facts dd, .glance__big, .area-card__name, .farm__name, .area-lead__text strong { font-variant-numeric: lining-nums; }

h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; }
h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  padding: 10px 16px; border-radius: 999px;
  background: var(--foreground); color: var(--background);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: var(--band-accent); }

.arrow { flex: none; transition: transform 180ms ease; }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 500 0.94rem/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}
.button:hover { opacity: 0.88; }
.button--solid { background: var(--foreground); color: var(--background); }
.button--light { background: var(--band-text); color: #1C1917; }
.button--quiet { background: var(--secondary); color: var(--foreground); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--accent); white-space: nowrap;
}
.text-link:hover .arrow { transform: translateX(3px); }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1; letter-spacing: 0.005em;
}
.brand__mark { color: var(--accent); }

/* On a phone the menu takes its own row under the brand, and the header scrolls away. */
.site-nav {
  order: 3; flex-basis: 100%; display: flex; gap: 22px;
  padding-block: 2px 12px; font-size: 0.9rem;
}
.site-nav a { color: var(--quiet-text); transition: color 160ms ease; }
.site-nav a:hover { color: var(--foreground); }
.site-header .button { margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.site-header .brand { min-height: 60px; }

@media (max-width: 819px) {
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
}

@media (min-width: 820px) {
  .site-nav { order: 0; flex-basis: auto; gap: 28px; margin-left: auto; padding: 0; font-size: 0.94rem; }
  .site-header .button { margin-left: 0; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid; gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(36px, 6vw, 72px) clamp(32px, 4vw, 56px);
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.9rem, 7.2vw, 5.4rem); line-height: 1.04;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede {
  max-width: 34rem; margin-top: 20px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--quiet-text);
}

.search {
  position: relative; display: flex; align-items: center; gap: 6px;
  max-width: 34rem; margin-top: 28px; padding: 6px 6px 6px 44px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  box-shadow: 0 14px 34px -24px rgba(28, 25, 23, 0.55);
}
.search:focus-within { border-color: var(--accent); }
.search__icon { position: absolute; left: 16px; color: var(--quiet-text); }
.search input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent;
  color: var(--foreground); font: 400 1rem var(--font-sans);
}
.search input::placeholder { color: var(--quiet-text); }
.search input::-webkit-search-cancel-button { display: none; }

.hero__areas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 18px; font-size: 0.92rem; color: var(--quiet-text);
}
.hero__areas a {
  color: var(--foreground); border-bottom: 1px solid var(--border);
  transition: border-color 160ms ease;
}
.hero__areas a:hover { border-color: var(--foreground); }

.hero__photos {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
}
.hero__photo--1 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.hero__photo--2, .hero__photo--3 { aspect-ratio: 1 / 1; }

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
}

/* ----------------------------------------------------------------- photos */

.photo {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--secondary);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
a.photo:hover img, .farm:hover .photo img { transform: scale(1.03); }
.photo--failed img { display: none; }

.photo__caption {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column;
  padding: 44px 16px 12px; color: #fff; font-size: 0.8rem; line-height: 1.35;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.72), rgba(12, 10, 8, 0));
}
.photo__caption strong { font-weight: 500; font-size: 0.92rem; }
.photo--failed .photo__caption { background: none; color: var(--foreground); }

/* ------------------------------------------------------------------ facts */

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
}
.facts > div { padding: clamp(18px, 3vw, 28px) 0; }
.facts > div + div { padding-left: clamp(14px, 3vw, 32px); border-left: 1px solid var(--border); }
.facts dd {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1;
}
.facts dt { margin-top: 4px; font-size: clamp(0.8rem, 1.5vw, 0.95rem); color: var(--quiet-text); }
.facts dd a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* --------------------------------------------------------------- sections */

.section { padding-block: clamp(52px, 8vw, 96px) 0; }
.section__head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.section__head h2 { margin-top: 10px; max-width: 22ch; }
.section__head--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
}

.areas { display: grid; gap: clamp(20px, 3vw, 40px); }

.area-lead { min-height: 320px; color: #fff; }
.area-lead img { position: absolute; inset: 0; }
.area-lead__text {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 72px clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px);
  background: linear-gradient(to top, rgba(12, 10, 8, 0.78), rgba(12, 10, 8, 0));
}
.area-lead__text strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
}
.area-lead__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 500; }
.area-lead:hover .arrow { transform: translateX(3px); }
.photo--failed.area-lead .area-lead__text { background: none; color: var(--foreground); }

.area-list li + li { border-top: 1px solid var(--border); }
.area-list a {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding-block: 8px;
}
.area-list__name { flex: 1; font-size: 1.05rem; }
.area-list__count { color: var(--quiet-text); font-size: 0.92rem; }
.area-list .arrow { color: var(--quiet-text); }
.area-list a:hover .arrow { transform: translateX(3px); color: var(--accent); }

@media (min-width: 820px) {
  .areas { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
  .area-lead { min-height: 440px; }
}

.farms { display: grid; gap: clamp(24px, 3vw, 36px) clamp(14px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.farm { display: flex; flex-direction: column; min-width: 0; }
.farm__photo { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.farm__name { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.25; }
.farm__area { margin-top: 2px; font-size: 0.86rem; color: var(--quiet-text); }
.farm__offer { margin-top: 6px; font-size: 0.86rem; line-height: 1.4; }

@media (min-width: 980px) {
  .farms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .farm__name { font-size: 1.2rem; }
}

.note { max-width: 44rem; margin-top: clamp(24px, 3vw, 32px); font-size: 0.86rem; color: var(--quiet-text); }
.preview-note { margin: 0; padding: 8px 16px; background: var(--ink); color: var(--paper); font-size: 0.82rem; text-align: center; }
.limits { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.limits a { border-bottom: 1px solid var(--border); }
.section__head h2 small { font-size: 0.6em; color: var(--quiet-text); }

.reasons { display: grid; gap: clamp(24px, 3.5vw, 48px); }
.reasons > div { padding-top: 18px; border-top: 1px solid var(--foreground); }
.reasons p { margin-top: 8px; color: var(--quiet-text); }

@media (min-width: 760px) {
  .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- app section */

.plan {
  margin-top: clamp(56px, 8vw, 104px); padding-block: clamp(52px, 7vw, 88px);
  background: var(--band); color: var(--band-text);
}
.plan__row { display: grid; gap: clamp(32px, 5vw, 72px); }
.plan h2 { margin-top: 10px; max-width: 18ch; }
.plan__lede { max-width: 28rem; margin: 14px 0 26px; color: var(--band-quiet); }
.plan__list li {
  padding-block: 16px; border-top: 1px solid rgba(247, 244, 239, 0.18); color: var(--band-quiet);
}
.plan__list li:last-child { border-bottom: 1px solid rgba(247, 244, 239, 0.18); }
.plan__list strong { font-weight: 500; color: var(--band-text); }

@media (min-width: 880px) {
  .plan__row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
}

/* ----------------------------------------------------------------- footer */

.site-footer { padding-block: clamp(36px, 5vw, 56px); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer__line { margin-top: 10px; color: var(--quiet-text); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.94rem; }
.site-footer__links a { color: var(--quiet-text); }
.site-footer__links a:hover { color: var(--foreground); }
.site-footer__small {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--quiet-text);
}

.link-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--quiet-text); font: inherit;
}
.link-button:hover { color: var(--foreground); }

/* ---------------------------------------------------------- inner pages */

.page-top { padding-top: clamp(16px, 2.5vw, 28px); }

.crumbs { margin-bottom: clamp(16px, 2.5vw, 28px); font-size: 0.84rem; color: var(--quiet-text); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.crumbs a:hover { color: var(--foreground); }

.page-head { max-width: 46rem; }
.page-head h1, .farm-head h1, .area-head h1 {
  margin-top: 10px;
  font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08;
}
.area-head h1 em { font-style: italic; color: var(--accent); }

.search--page { margin-top: 24px; }

.section__lede { margin-top: 10px; max-width: 38rem; color: var(--quiet-text); }

/* ------------------------------------------------------------- filters */

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-block: 22px clamp(20px, 3vw, 28px);
  font-size: 0.88rem;
}
.filters__label { color: var(--quiet-text); }
.filters button {
  min-height: 38px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--foreground); font: inherit;
  transition: background-color 160ms ease, color 160ms ease;
}
.filters button:hover { border-color: var(--foreground); }
.filters button[aria-pressed="true"] { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
.filters__count { color: var(--quiet-text); }

.farms--list { margin-top: clamp(20px, 3vw, 32px); }
.filters + .farms--list { margin-top: 0; }

/* Distances: shown only after a visitor shares where they are, worked out in their browser. */
.filters .filters__near { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.filters__note { flex-basis: 100%; font-size: 0.82rem; color: var(--quiet-text); }
.filters__note:empty { display: none; }
.farm__distance { margin-top: 2px; font-size: 0.86rem; font-weight: 500; color: var(--accent); }
.visit__distance { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px; font-size: 0.92rem; color: var(--accent); }
.visit__distance .link-button { color: var(--accent); font-weight: 500; border-bottom: 1px solid currentColor; }
.visit__distance [data-distance-text] { color: var(--foreground); }

/* ------------------------------------------------------- coming soon */

.inline-link { border-bottom: 1px solid currentColor; }
.section--tight { padding-top: clamp(28px, 4vw, 44px); }

.coming-list { columns: 1; column-gap: clamp(24px, 4vw, 48px); max-width: 72rem; }
.coming-list li {
  display: flex; align-items: baseline; gap: 12px; padding-block: 11px;
  border-top: 1px solid var(--border); break-inside: avoid;
}
.coming-list__name { flex: 1; min-width: 0; }
.coming-list__area { display: block; font-size: 0.84rem; color: var(--quiet-text); }
.coming-list a { flex: none; font-size: 0.86rem; font-weight: 500; color: var(--accent); }
.coming-list a:hover { text-decoration: underline; }

@media (min-width: 720px) { .coming-list { columns: 2; } }
@media (min-width: 1080px) { .coming-list { columns: 3; } }

.coming-groups { max-width: 72rem; border-bottom: 1px solid var(--border); }
.coming-group { border-top: 1px solid var(--border); }
.coming-group summary {
  display: flex; align-items: center; gap: 14px; min-height: 58px; cursor: pointer;
  list-style: none; font-size: 1.05rem;
}
.coming-group summary::-webkit-details-marker { display: none; }
.coming-group summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 0;
  border-right: 1.5px solid var(--quiet-text); border-bottom: 1.5px solid var(--quiet-text);
  transform: rotate(45deg); transition: transform 180ms ease;
}
.coming-group[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.coming-group summary:hover .coming-group__name { color: var(--accent); }
.coming-group__name { flex: 1; }
.coming-group__count { color: var(--quiet-text); font-size: 0.92rem; }
.coming-group__shown { margin: 2px 0 12px; }
.coming-group .coming-list { padding-bottom: 18px; }

.area-list--columns { max-width: 72rem; }
@media (min-width: 720px) {
  .area-list--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); }
  .area-list--columns li + li { border-top: 0; }
  .area-list--columns li { border-top: 1px solid var(--border); }
}
@media (min-width: 1080px) { .area-list--columns { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------- wine areas */

.area-cards { display: grid; gap: clamp(24px, 3vw, 36px) clamp(14px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(24px, 3.5vw, 40px); }
.area-card { display: flex; flex-direction: column; min-width: 0; }
.area-card__photo { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.area-card:hover .photo img { transform: scale(1.03); }
.area-card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.area-card__meta { margin-top: 4px; font-size: 0.88rem; color: var(--quiet-text); }

@media (min-width: 980px) {
  .area-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.area-head { display: grid; gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(24px, 3.5vw, 40px); }
.area-head .lede { max-width: 38rem; }
.area-head__photo { aspect-ratio: 16 / 10; }

@media (min-width: 900px) {
  .area-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .area-head__photo { aspect-ratio: 4 / 3; }
}

.facts--four { grid-template-columns: repeat(2, 1fr); }
.facts--four > div:nth-child(odd) { padding-left: 0; border-left: 0; }
.facts--four > div:nth-child(n + 3) { border-top: 1px solid var(--border); }

@media (min-width: 720px) {
  .facts--four { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .facts--four > div:nth-child(n) { padding-left: clamp(14px, 3vw, 32px); border-left: 1px solid var(--border); border-top: 0; }
  .facts--four > div:first-child { padding-left: 0; border-left: 0; }
}

.area-list--page { columns: 1; max-width: 46rem; margin-top: clamp(20px, 3vw, 32px); }

.price-list { max-width: 46rem; }
.price-list li + li { border-top: 1px solid var(--border); }
.price-list a { display: flex; align-items: baseline; gap: 10px; padding-block: 12px; }
.price-list a:hover span:first-child { color: var(--accent); }

/* -------------------------------------------------------- a wine farm's page */

.farm-page { padding-top: clamp(16px, 2.5vw, 28px); }
.farm-head { max-width: 50rem; }
.farm-head .eyebrow a { border-bottom: 1px solid currentColor; }

/* Photos run edge to edge in a swipeable strip on a phone, as a mosaic on a wide screen. */
.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: clamp(20px, 3vw, 32px) calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__photo { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
.gallery--1 .gallery__photo { flex-basis: 100%; }

@media (min-width: 820px) {
  .gallery {
    display: grid; gap: 10px; overflow: visible; margin-inline: 0; padding-inline: 0;
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, clamp(150px, 19vw, 250px)));
  }
  .gallery__photo { aspect-ratio: auto; min-height: 0; }
  .gallery__photo:first-child { grid-row: 1 / -1; }
  .gallery--1 { grid-template-columns: 1fr; }
  .gallery--2 { grid-template-columns: 2fr 1fr; }
  .gallery--2 .gallery__photo:nth-child(2) { grid-row: 1 / -1; }
  .gallery--3 { grid-template-columns: 2fr 1fr; }
  .gallery--4 .gallery__photo:nth-child(2) { grid-column: 2 / -1; }
}

.farm-layout { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: clamp(24px, 3.5vw, 40px); }

@media (min-width: 980px) {
  .farm-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; }
  .visit { grid-column: 2; grid-row: 1; position: sticky; top: 88px; }
  .farm-main { grid-column: 1; grid-row: 1; }
}

.visit {
  padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
}
.glance > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 9px; }
.glance > div + div { border-top: 1px solid var(--border); }
.glance dt { font-size: 0.86rem; color: var(--quiet-text); }
.glance dd { text-align: right; font-size: 0.94rem; }
.glance__big { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }

.visit__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.visit__actions .button { padding-inline: 10px; }
.visit__actions .button--solid { grid-column: 1 / -1; }

.visit__details { margin-top: 18px; font-size: 0.92rem; }
.visit__details > div { padding-block: 10px; border-top: 1px solid var(--border); }
.visit__details dt { font-size: 0.8rem; color: var(--quiet-text); }
.visit__details dd { margin-top: 2px; overflow-wrap: anywhere; }
.visit__details dd span { display: block; }
.visit__details a { border-bottom: 1px solid var(--border); }
.visit__unknown dd { color: var(--quiet-text); }
.visit__date { margin-block: 12px 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--quiet-text); }
.visit .text-link { font-size: 0.92rem; white-space: normal; }

.farm-section + .farm-section { margin-top: clamp(36px, 5vw, 56px); }
.farm-section h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-bottom: 8px; }

.highlights li { padding-block: 10px; border-top: 1px solid var(--border); font-size: 1.05rem; }
.highlights li:last-child { border-bottom: 1px solid var(--border); }

/* A menu: the name, a dotted leader, the price; the terms underneath. */
.row { padding-block: 14px; }
.row + .row { border-top: 1px solid var(--border); }
.row__line { display: flex; align-items: baseline; gap: 10px; }
.row__name { font-weight: 500; min-width: 0; }
.row__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--quiet-text); opacity: 0.55; transform: translateY(-4px); }
.row__price { flex: none; max-width: 55%; text-align: right; font-weight: 500; }
.row__price small { font-size: 0.82rem; font-weight: 400; color: var(--quiet-text); }
.row__note { margin-top: 3px; font-size: 0.88rem; color: var(--quiet-text); }
.row__note span { color: var(--foreground); }
.row__detail { margin-top: 5px; font-size: 0.95rem; }
.row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 0.88rem; color: var(--quiet-text); }

.rows--compact .row { padding-block: 9px; }
.rows--compact .row__name { font-weight: 400; }
.rows--compact .row__note, .rows--compact .row__detail { margin-top: 1px; font-size: 0.84rem; color: var(--quiet-text); }

.more { margin-top: 6px; }
.more summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  font-weight: 500; font-size: 0.94rem; color: var(--accent);
}
.more[open] summary { margin-bottom: 4px; }

.more-photos { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.more-photos .photo { aspect-ratio: 4 / 3; }
@media (min-width: 720px) { .more-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.farm-main .note a, .prose a { border-bottom: 1px solid currentColor; }

/* ------------------------------------------------------------- reading pages */

.prose section { max-width: 44rem; margin-top: clamp(32px, 4vw, 48px); }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.prose section p { margin-top: 12px; }

/* --------------------------------------------------------- analytics choice */

.consent {
  position: fixed; inset: auto 12px 12px 12px; z-index: 40;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 34rem; margin-inline: auto; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
  font-size: 0.92rem;
}
.consent a { border-bottom: 1px solid currentColor; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .button { flex: 1 1 auto; min-height: 42px; }

/* -------------------------------------------------------------- not found */

.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; padding-block: 56px; text-align: center;
}
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; }
.not-found p { margin-top: 14px; color: var(--quiet-text); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
