/* Farm21 mockup — layout and components. All values come from tokens.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 500; line-height: var(--lh-tight); margin: 0 0 var(--s-2); letter-spacing: -0.01em; color: inherit; }
h1, h2, .hero h1, .feature h3, .feature .h3, .post-head h1 { font-family: var(--f-display); font-weight: var(--fw-display); letter-spacing: var(--ls-display); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 19px; }
p { margin: 0 0 var(--s-2); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--c-surface); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--w-layout) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--w-text) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section:not(.section--teal):not(.section--white):not(.section--sand) + .section:not(.section--teal):not(.section--white):not(.section--sand) { padding-top: 0; }
.section--white { background: var(--c-surface); }
.section--teal { background: var(--c-teal); color: var(--c-on-dark); }
.section--teal a:not(.btn) { color: var(--c-on-dark); }
.section--line { border-top: 1px solid var(--c-border); }

.eyebrow {
  display: block; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-tan-ink); margin-bottom: var(--s-2);
}
.section--teal .eyebrow { color: var(--c-on-dark-m); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-text-m); font-weight: 300; }
.section--teal .lead { color: var(--c-on-dark-m); }
.muted { color: var(--c-text-m); }
.small { font-size: var(--fs-small); }
.rule { width: 48px; height: 2px; background: var(--c-tan); border: 0; margin: 0 0 var(--s-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  font: 500 15px/1.2 var(--f-sans); letter-spacing: 0.02em; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--primary { background: var(--c-orange); color: var(--c-text); }
.btn--primary:hover { background: #f69a1f; }
.btn--outline { border-color: var(--c-border-strong); color: var(--c-teal); background: transparent; }
.btn--outline:hover { border-color: var(--c-teal); }
.section--teal .btn--outline, .btn--on-dark { border-color: var(--c-border-dk); color: var(--c-on-dark); }
.section--teal .btn--outline:hover { border-color: var(--c-on-dark); }
.arrow-link { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.arrow-link::after { content: "→"; transition: transform var(--t-fast); }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-teal); color: var(--c-on-dark); }
.site-header--overlay { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(0, 38, 43, 0.55), rgba(0, 38, 43, 0)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-top: 8px; }
/* Reading mode (all pages): the header leaves while you scroll down and returns on the first
   scroll up (site.js). Home/About: once past the top it comes back as a solid fixed bar.
   No transform in the resting state on purpose: a transform would make the header the containing
   block of the fixed mobile menu and squeeze the overlay into it. */
.site-header { transition: transform 240ms ease; }
.site-header.is-pinned { position: fixed; top: 0; left: 0; right: 0; background: var(--c-teal); }
.site-header.is-away { transform: translateY(-100%); }
.menu-open .site-header.is-away { transform: none; }
.site-header.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.brand img { width: 124px; height: auto; }
@media (max-width: 760px) { .site-header .wrap { padding-top: 4px; } .brand img { width: 100px; } }
.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav ul { display: flex; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--c-on-dark); text-decoration: none; font-size: 15px; font-weight: 400; letter-spacing: 0.02em; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--c-border-dk); }
.nav a[aria-current="page"] { border-bottom-color: var(--c-orange); }
.lang { display: inline-flex; gap: 2px; border: 1px solid var(--c-border-dk); border-radius: 999px; padding: 3px; }
.lang a, .lang span { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 0; letter-spacing: 0.06em; }
.lang span { background: var(--c-on-dark); color: var(--c-teal); }
.lang a:hover { background: rgba(255, 255, 255, 0.12); }
.menu-btn { display: none; background: none; border: 0; color: var(--c-on-dark); width: 48px; height: 48px; margin-right: -12px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
  .menu-btn .ic-close { display: none; }
  .menu-open .menu-btn .ic-open { display: none; }
  .menu-open .menu-btn .ic-close { display: block; }
  /* The menu drops down right under the button the thumb just pressed; the same button closes it */
  .nav {
    position: fixed; z-index: 1; top: calc(var(--header-h) - 10px); right: var(--gutter);
    width: min(300px, calc(100vw - var(--gutter) * 2)); max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: var(--s-1); padding: var(--s-2) var(--s-3) var(--s-3);
    background: var(--c-teal-deep); border: 1px solid var(--c-border-dk); border-radius: var(--radius-l);
    box-shadow: 0 14px 40px rgba(0, 20, 24, 0.5);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear 160ms;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a { display: block; font-size: 24px; font-weight: 300; padding: 12px 0; border-bottom-width: 0; }
  .nav ul a[aria-current="page"] { color: var(--c-orange); }
  .nav .lang { align-self: flex-start; margin-top: var(--s-1); }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-fast), transform var(--t-fast); }
  .menu-open::before { content: ""; position: fixed; inset: 0; z-index: 49; background: rgba(0, 20, 24, 0.5); }
}
@media (min-width: 861px) { .nav .menu-close { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--c-on-dark); background: var(--c-teal-deep); overflow: hidden; }
.hero__media, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 900ms ease; }
.hero__video.is-playing { opacity: 1; }
/* MOCK-2: text centred; an even veil plus a soft centre shade keeps it readable on any frame */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 52%, rgba(0, 38, 43, 0.38), rgba(0, 38, 43, 0) 70%), rgba(0, 38, 43, 0.22); }
.hero__content { position: relative; z-index: 1; padding-top: var(--header-h); padding-bottom: var(--s-6); display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: var(--fw-hero); line-height: 1.12; max-width: 20ch; margin: 0; text-wrap: balance; text-shadow: 0 1px 24px rgba(0, 30, 34, 0.35); }
.hero__toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 24px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--c-border-dk); background: rgba(0, 38, 43, 0.35); color: var(--c-on-dark); cursor: pointer; display: none;
}
.js .hero__toggle { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .hero { min-height: 78svh; } }

/* ---------- page head (non-home) ---------- */
.page-head { background: var(--c-teal); color: var(--c-on-dark); padding: var(--s-10) 0 var(--s-8); }
.page-head h1 { margin: 0; max-width: 22ch; }
.page-head .lead { margin: var(--s-2) 0 0; max-width: 46ch; color: var(--c-on-dark-m); }

/* ---------- welcome ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; }
.mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: var(--s-1); aspect-ratio: 5 / 4; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-row: span 2; }
@media (max-width: 860px) {
  .split, .split--even { grid-template-columns: 1fr; gap: var(--s-5); }
  .mosaic { aspect-ratio: 4 / 3; }
}

/* ---------- stay cards ---------- */
.stay-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-6); }
.stay-head p { max-width: 52ch; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.card { display: block; text-decoration: none; color: inherit; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--s-2); transition: opacity var(--t-fast); }
.card:hover img { opacity: 0.88; }
.card .eyebrow { margin-bottom: var(--s-1); }
.card h3 { margin-bottom: var(--s-1); font-weight: 500; }
.card p { color: var(--c-on-dark-m); margin-bottom: var(--s-2); }
.card .arrow-link { color: var(--c-on-dark); }
.stay-foot { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-border-dk); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 860px) {
  .stay-head { flex-direction: column; align-items: flex-start; }
  .cards { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (min-width: 561px) and (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }

/* ---------- blog: feature + editorial list ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.section-head h2 { margin: 0; }
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-6); align-items: center; text-decoration: none; color: inherit; margin-bottom: var(--s-6); }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; margin-bottom: var(--s-2); }
.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.meta { font-size: var(--fs-small); color: var(--c-text-l); margin-bottom: var(--s-1); letter-spacing: 0.02em; }
.excerpt { color: var(--c-text-m); margin: 0; }
/* MOCK-2: one reading line per row (best practice for editorial lists): image left at a fixed
   3:2 ratio, then meta (date · reading time) directly above the title, then the excerpt. */
.feature .arrow-link { margin-top: var(--s-2); color: var(--c-teal); }
.postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.postlist a { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-5); text-decoration: none; color: inherit; align-items: center; }
.postlist img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: opacity var(--t-fast); }
.postlist a:hover img { opacity: 0.88; }
.postlist .meta { margin-bottom: 6px; }
.postlist h3, .postlist .h3 { margin-bottom: var(--s-1); font-weight: 500; }
.postlist a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.postlist .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: var(--s-3); }
  .postlist { gap: var(--s-4); }
  .postlist a { grid-template-columns: 120px 1fr; gap: var(--s-3); align-items: start; }
  .postlist h3, .postlist .h3 { font-size: 18px; }
  .postlist .excerpt { display: none; }
}

/* ---------- forms (optin, contact) ----------
   MOCK-3: softer. Sand section instead of a bordered card, white fields with a light border,
   a soft focus ring, larger radius, custom select arrow, calmer labels. */
.section--sand { background: var(--c-sand); }
.optin { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; }
.optin h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: var(--s-1); }
.optin p { color: var(--c-text-m); margin: 0; max-width: 40ch; }
.form { display: grid; gap: var(--s-2); }
.form--row { grid-template-columns: 1fr 1fr; }
.form--row .field--wide, .form--row .field--check, .form--row .form-actions, .form--row .form-note { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 400; color: var(--c-text-m); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--c-text); width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--c-field-border); border-radius: var(--radius-l); background: var(--c-surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: #9a9a96; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300464f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 4px rgba(0, 70, 79, 0.12); }
.field .error { display: none; font-size: var(--fs-small); color: var(--c-error); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-error); box-shadow: 0 0 0 4px rgba(168, 47, 38, 0.1); }
.field.has-error .error { display: block; }
.form .btn { border-radius: var(--radius-l); min-height: 50px; padding-inline: 28px; }
.form-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.form-note { display: none; padding: 12px 16px; border-radius: var(--radius-l); background: rgba(0, 70, 79, 0.06); font-size: var(--fs-small); color: var(--c-teal); }
.form-note:not(:empty) { display: block; }
.form-note[data-state="error"] { background: rgba(168, 47, 38, 0.08); color: var(--c-error); }
.form.is-busy .btn { opacity: 0.6; cursor: progress; }
/* consent checkbox (newsletter) */
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--c-teal); cursor: pointer; }
.field--check label { color: var(--c-text-m); cursor: pointer; }
.field--check .error { grid-column: 2; }
.field.has-error input[type="checkbox"] { outline: 2px solid var(--c-error); outline-offset: 2px; box-shadow: none; }
/* honeypot: off screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 13px; color: var(--c-text-l); margin: 0; }
.contact-panel { background: var(--c-surface); border-radius: var(--radius-l); padding: var(--s-5); }
.contact-direct { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.contact-direct a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.contact-direct a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact-direct svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 860px) {
  .optin { grid-template-columns: 1fr; gap: var(--s-4); }
  .form--row { grid-template-columns: 1fr; }
  .contact-panel { padding: var(--s-3); }
}

/* ---------- about ---------- */
/* MOCK-2: image + text tiles in a checkerboard (the live page has photo tiles here) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: var(--s-2); margin-top: var(--s-8); }
.tile { margin: 0; border-radius: var(--radius-l); overflow: hidden; }
.tile--img img { width: 100%; height: 100%; object-fit: cover; }
.tile--text { background: var(--c-teal); color: var(--c-on-dark); padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; justify-content: flex-end; }
.tile--text h2, .tile--text h3 { font-family: var(--f-display); font-weight: var(--fw-display); font-size: clamp(22px, 2vw, 28px); }
.tile--text p, .tile--text li { color: var(--c-on-dark-m); }
.tile--text ul { margin: 0; padding-left: 1.1em; }
.tile--text p:last-child { margin-bottom: 0; }
.team-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.team-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-l); }
.section--strip { padding-top: var(--s-2); background: var(--c-surface); }
.section--strip .pgallery { grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.section--strip .pgallery img { aspect-ratio: 1; border-radius: var(--radius); }
.strip-more { margin: var(--s-3) 0 0; text-align: right; }
.section--photo { position: relative; overflow: hidden; }
.section__media { position: absolute; inset: 0; z-index: 0; }
.section__media img { width: 100%; height: 100%; object-fit: cover; }
.section--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 54, 61, 0.66), rgba(0, 54, 61, 0.86)); }
.section--photo > .wrap { position: relative; z-index: 2; }
.page-head--image { position: relative; overflow: hidden; padding: calc(var(--header-h) + var(--s-12)) 0 var(--s-10); }
.page-head__media { position: absolute; inset: 0; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-head--image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 38, 43, 0.8), rgba(0, 38, 43, 0.55) 55%, rgba(0, 38, 43, 0.3)); }
.page-head--image .wrap { position: relative; z-index: 2; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-l); margin-bottom: var(--s-3); }
.person h3 { margin-bottom: 2px; }
.person .role { font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-tan-ink); font-weight: 500; margin-bottom: var(--s-2); }
.person p { color: var(--c-text-m); }
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.expect .num { font-size: 15px; font-weight: 500; color: var(--c-on-dark-m); border-bottom: 1px solid var(--c-border-dk); padding-bottom: var(--s-2); margin-bottom: var(--s-3); display: block; }
.expect p { color: var(--c-on-dark-m); }
.contact-img { width: 100%; height: auto; }
.map { margin: 0; }
.map img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-border); }
.map figcaption { display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; font-size: 13px; color: var(--c-text-l); margin-top: var(--s-1); }
.address { font-style: normal; font-weight: 500; margin-bottom: var(--s-3); }
@media (max-width: 860px) {
  .people, .expect { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile--img { aspect-ratio: 4 / 3; }
  .tile--text { padding: var(--s-4) var(--s-3); }
  .team-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .section--strip .pgallery { grid-template-columns: 1fr 1fr; gap: var(--s-1); }
  .people { gap: var(--s-6); }
  .person img { max-width: 320px; }
}

/* ---------- post ---------- */
.post-head { padding: var(--s-10) 0 var(--s-5); }
.post-head h1 { font-size: clamp(32px, 4.4vw, 54px); max-width: 20ch; margin-bottom: var(--s-2); text-wrap: balance; }
.post-head .meta { font-size: 15px; margin: 0; }
.post-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.prose { padding-top: var(--s-6); }
.prose > * { max-width: var(--w-text); margin-inline: auto; }
.prose h2, .prose h3, .prose h4 { margin-top: var(--s-6); }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); }
.prose h3, .prose h4 { font-size: var(--fs-h3); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 auto var(--s-2); }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 2px solid var(--c-tan); margin: var(--s-4) auto; padding: 0 0 0 var(--s-3); color: var(--c-text-m); font-size: var(--fs-lead); font-weight: 300; }
/* Standalone article images: never wider than the column or the viewport. 16px between two of them
   (block margins collapse, so --s-2 above and below gives one 16px gap, not 32). */
.prose > img { width: auto; max-width: min(100%, var(--w-text)); height: auto; margin-block: var(--s-2); border-radius: var(--radius); }
.prose .pgallery, .prose .video { max-width: var(--w-text); margin: var(--s-4) auto var(--s-2); }
.js .prose .album-btn { display: flex; width: fit-content; margin: 0 0 var(--s-5) calc((100% - min(100%, var(--w-text))) / 2); }
.prose .album-btn + * { margin-top: 0; }
.is-post .prose > :first-child { margin-top: 0; }
/* Phones: the text should start on the first screen, not below it. */
@media (max-width: 760px) {
  .post-head { padding: var(--s-5) 0 var(--s-3); }
  .prose { padding-top: var(--s-4); }
}
/* Share block at the end of a post: quiet, after the text, never above it. */
.share { margin-top: var(--s-8); margin-bottom: var(--s-8); }
.share > * { max-width: var(--w-text); margin-inline: auto; }
.share__title { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-tan-ink); padding-top: var(--s-4); border-top: 1px solid var(--c-border); margin-bottom: var(--s-2); }
.share__btns { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.share__btn { min-height: 44px; padding: 10px 18px; }
.share__btn[hidden] { display: none; }
.share__note { min-height: 1.5em; margin: var(--s-1) auto 0; color: var(--c-text-m); }
@media (max-width: 760px) { .share { margin-top: var(--s-6); margin-bottom: var(--s-6); } }
.notice { padding: var(--s-3); border: 1px solid var(--c-border); border-left: 3px solid var(--c-tan); border-radius: var(--radius); background: var(--c-surface); }

/* in-post gallery and photo grid (shared with gallery page) */
.pgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-1); }
.pgallery--n2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.pgallery--n2 img { aspect-ratio: auto; }  /* two images: show them whole (e.g. review screenshots) */
.pgallery--n3 { grid-template-columns: repeat(3, 1fr); }
.pgallery--n4 { grid-template-columns: repeat(2, 1fr); }  /* four photos: 2x2 */
.pgallery--n4 img { aspect-ratio: 1; }
.pgallery a[hidden] { display: none; }
.pgallery a { position: relative; }
.pgallery__more {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 38, 43, 0.55);
  color: var(--c-on-dark); font-size: clamp(22px, 3vw, 30px); font-weight: 300; letter-spacing: 0.02em;
}
/* "View all N photos": shown only with JS (it opens the lightbox) */
.album-btn {
  display: none; align-items: center; gap: 10px; margin-top: var(--s-2); padding: 10px 18px; min-height: 44px;
  font: 500 15px/1.2 var(--f-sans); color: var(--c-teal); background: transparent; cursor: pointer;
  border: 1px solid var(--c-border-strong); border-radius: 999px; transition: border-color var(--t-fast), background-color var(--t-fast);
}
.album-btn:hover { border-color: var(--c-teal); background: rgba(0, 70, 79, 0.05); }
.album-btn svg { width: 18px; height: 18px; }
.js .album-btn { display: inline-flex; }
@media (max-width: 560px) { .pgallery--n3 { grid-template-columns: 1fr 1fr; } .pgallery--n3 figure:first-child { grid-column: 1 / -1; } }
.pgallery--single { grid-template-columns: 1fr; }
.pgallery figure { margin: 0; }
.pgallery a { display: block; border-radius: var(--radius-s); overflow: hidden; }
.pgallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity var(--t-fast); }
.pgallery a { border-radius: var(--radius); }
.pgallery--single img { aspect-ratio: auto; border-radius: var(--radius); }
.pgallery a:hover img { opacity: 0.86; }
.pgallery figcaption { font-size: 13px; color: var(--c-text-l); margin-top: 6px; }

/* click-to-load video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-teal-deep); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--c-on-dark);
  background: linear-gradient(180deg, rgba(0, 38, 43, 0.15), rgba(0, 38, 43, 0.65)); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-2); font: inherit; text-align: center; padding: var(--s-3);
}
.video .play { width: 72px; height: 72px; border-radius: 50%; background: var(--c-on-dark); color: var(--c-teal); display: grid; place-items: center; transition: transform var(--t-fast); }
.video button:hover .play { transform: scale(1.05); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video .vtitle { font-weight: 500; max-width: 40ch; }
.video .vnote { font-size: 13px; color: var(--c-on-dark-m); max-width: 44ch; }

/* ---------- gallery page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-4); }
.chips a { text-decoration: none; padding: 8px 16px; border: 1px solid var(--c-border-dk); border-radius: 999px; color: var(--c-on-dark); font-size: 15px; }
.chips a:hover { border-color: var(--c-on-dark); }
.album { padding-top: var(--s-8); }
.album:first-child { padding-top: 0; }
.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.album-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); }
.album .pgallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.album .pgallery figcaption { display: none; }

/* instagram grid (local copies, no Instagram request on load) */
.ig-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.ig-handle { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; }
.ig-handle svg { width: 22px; height: 22px; }
.ig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; border-radius: var(--radius); overflow: hidden; }
.ig a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--c-teal-deep); color: var(--c-on-dark); text-decoration: none; }
.ig img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-fast); }
.ig .badge { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.ig .cap {
  position: absolute; inset: 0; padding: 12px; font-size: 13px; line-height: 1.4; background: rgba(0, 54, 61, 0.88);
  opacity: 0; transition: opacity var(--t-fast); display: flex; flex-direction: column; justify-content: space-between;
}
.ig .cap span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ig .cap time { font-size: 12px; color: var(--c-on-dark-m); }
.ig a:hover .cap, .ig a:focus-visible .cap { opacity: 1; }
.ig a[hidden] { display: none; }
.ig-more { margin-top: var(--s-3); display: flex; justify-content: center; gap: var(--s-2); flex-wrap: wrap; }
@media (max-width: 860px) { .ig { grid-template-columns: repeat(3, 1fr); } .ig .cap { display: none; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0, 24, 27, 0.95); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 24px; color: var(--c-on-dark); }
.lb.is-open { display: flex; }
.lb img { max-width: min(1600px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: var(--radius-s); }
.lb p { margin: var(--s-2) 0 0; font-size: 15px; color: var(--c-on-dark-m); text-align: center; max-width: 60ch; min-height: 1.6em; }
.lb button { position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--c-border-dk); color: var(--c-on-dark); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; }
.lb button:hover { background: rgba(255, 255, 255, 0.16); }
.lb .lb-x { top: 12px; right: 12px; }
.lb .lb-p { left: 16px; top: 50%; }
.lb .lb-n { right: 16px; top: 50%; }
.lb .lb-c { position: absolute; top: 22px; left: 20px; font-size: 13px; color: var(--c-on-dark-m); }
@media (max-width: 760px) { .lb .lb-p, .lb .lb-n { top: auto; bottom: 16px; } }

/* ---------- 404 ---------- */
.search { display: flex; gap: var(--s-1); margin: var(--s-4) 0 var(--s-2); }
.search input { flex: 1; }
.results { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.results li { border-bottom: 1px solid var(--c-border); }
.results a { display: block; padding: 12px 0; text-decoration: none; }
.results small { color: var(--c-text-l); margin-left: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-teal-deep); color: var(--c-on-dark-m); padding: var(--s-10) 0 var(--s-4); font-size: 15px; }
.site-footer a { color: var(--c-on-dark); }
.foot { display: grid; grid-template-columns: 4fr 3fr 5fr; gap: var(--s-6); }
.foot img { width: 128px; margin-bottom: var(--s-3); }
.foot address { font-style: normal; }
.foot h2 { font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--c-on-dark-m); margin-bottom: var(--s-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.social { display: flex; gap: var(--s-1); margin-top: var(--s-3); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-border-dk); border-radius: 50%; }
.social a:hover { border-color: var(--c-on-dark); }
.social svg { width: 18px; height: 18px; }
.foot-stay p { color: var(--c-on-dark-m); }
.foot-stay .arrow-link { font-size: 18px; }
.foot-bottom { margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid var(--c-border-dk); display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- motion: fade-in on scroll + hover only ---------- */
.reveal { transition: opacity var(--t-fade), transform var(--t-fade); }
.reveal.is-pending { opacity: 0; transform: translateY(12px); }
.reveal.is-pending.is-visible { opacity: 1; transform: none; }

/* ---------- MOCK-4: home location photo, pillars, timeline, plan ---------- */
.split--top { align-items: start; }
.locpin { position: relative; margin: 0; }
.locpin img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); }
.locpin figcaption { margin-top: var(--s-1); font-size: 13px; color: var(--c-text-l); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
.pillars .num { display: block; font-size: 15px; font-weight: 500; color: var(--c-tan-ink); border-bottom: 1px solid var(--c-border); padding-bottom: var(--s-2); margin-bottom: var(--s-3); }
.pillars p { color: var(--c-text-m); margin: 0; }
.timeline { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: var(--s-2); padding: 10px 0 10px var(--s-3); border-left: 1px solid var(--c-border-strong); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-teal); box-sizing: border-box; }
.timeline li:first-child { padding-top: 0; } .timeline li:first-child::before { top: 7px; }
.timeline .when { font-size: 15px; font-weight: 500; color: var(--c-tan-ink); padding-top: 2px; }
.timeline p { margin: 0; }
.timeline .is-goal::before { background: var(--c-orange); border-color: var(--c-orange); }
.timeline .is-goal .when, .timeline .is-goal p { color: var(--c-text); font-weight: 500; }
.next-panel { background: var(--c-sand); border-radius: var(--radius-l); padding: var(--s-5) var(--s-5) var(--s-4); }
.next-panel h3 { font-family: var(--f-display); font-weight: var(--fw-display); }
.next-panel p { color: var(--c-text-m); }
.ticks { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
.ticks li { position: relative; padding-left: 1.4em; margin-bottom: var(--s-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--c-teal); }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.plan > div { background: var(--c-sand); border-radius: var(--radius-l); padding: var(--s-4); }
.plan h3 { font-family: var(--f-display); font-weight: var(--fw-display); margin-bottom: var(--s-1); }
.plan p { color: var(--c-text-m); margin: 0; }
.plan-note { margin-top: var(--s-3); }
.people--dogs { grid-template-columns: repeat(3, 1fr); }
.people--dogs .person img { aspect-ratio: 4 / 5; object-position: center 35%; }
@media (max-width: 860px) {
  .pillars, .plan { grid-template-columns: 1fr; gap: var(--s-4); }
  .plan { gap: var(--s-2); }
  .next-panel { padding: var(--s-4) var(--s-3) var(--s-3); }
  .people--dogs { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
/* ---------- MOCK-4b: cookie banner ---------- */
.consent { position: fixed; z-index: 70; left: var(--gutter); bottom: var(--gutter); max-width: 440px; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--radius-l); box-shadow: 0 10px 30px rgba(0, 38, 43, 0.18); padding: var(--s-3); font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 var(--s-2); color: var(--c-text-m); }
.consent p strong { color: var(--c-text); }
.consent__actions { display: flex; gap: var(--s-1); }
.consent__actions .btn { flex: 1; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-on-dark); cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
@media (max-width: 560px) { .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-pending { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- small utilities ---------- */
.intro { max-width: var(--w-text); color: var(--c-text); }
.narrow { max-width: 60ch; }
.eyebrow--gap { margin-top: var(--s-3); }
.on-dark-m { color: var(--c-on-dark-m); }
.grow { flex: 1; }
.prose--page { padding-top: 0; } .prose--page > * { margin-left: 0; }
.h3 { font-size: var(--fs-h3); font-weight: 500; }
.feature .h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; margin-bottom: var(--s-2); }
.postlist .h3 { margin-bottom: var(--s-1); }
.feature:hover .h3, .postlist a:hover .h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- MOCK-5: more compact on the phone (Thomas, 08.11.) ---------- */
/* Gallery: a few photos per album, the rest behind "Show all N photos" (JS only; without JS all show) */
.js .album:not(.is-open) .pgallery figure:nth-child(n+9) { display: none; }
.album-toggle[hidden] { display: none; }
@media (max-width: 760px) {
  .album { padding-top: var(--s-5); }
  .album-head { margin-bottom: var(--s-2); }
  .album .pgallery { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .album .pgallery a { border-radius: var(--radius-s); }
  .album .pgallery img { aspect-ratio: 1; }
  .js .album:not(.is-open) .pgallery figure:nth-child(n+7) { display: none; }
}
/* Home pillars: number beside the heading, one line between items instead of one per number */
@media (max-width: 860px) {
  .pillars { gap: var(--s-3); margin-top: var(--s-3); }
  .pillars > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; border-top: 1px solid var(--c-border); padding-top: var(--s-2); }
  .pillars .num { border: 0; padding: 0; margin: 0; font-size: 14px; }
  .pillars h3 { margin: 0 0 4px; }
  .pillars p { grid-column: 1 / -1; font-size: 16px; line-height: 1.55; }
}
/* Home "Stay with us" (≤ 560 px): cards side by side, swipe sideways; the next card peeks in */
@media (max-width: 560px) {
  .stay-head { margin-bottom: var(--s-4); }
  .cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .card p { font-size: 16px; line-height: 1.5; }
  .cards .reveal.is-pending { opacity: 1; transform: none; }  /* no fade for cards off to the side */
  .stay-foot { margin-top: var(--s-4); padding-top: var(--s-3); }
}
/* Compact page heads on phones: less empty teal above the content */
@media (max-width: 760px) {
  .page-head { padding: var(--s-3) 0 var(--s-4); }
  .page-head h1 { font-size: clamp(30px, 8.5vw, 38px); }
  .page-head .lead { margin-top: var(--s-1); font-size: 16px; }
  .chips { margin-top: var(--s-2); gap: 6px; }
  .chips a { padding: 6px 14px; font-size: 14px; }
  .page-head--image { padding: calc(var(--header-h) + var(--s-5)) 0 var(--s-4); }
  .section--head-gap, .page-head + .section { padding-top: var(--s-5); }
}
