/* ============================================================
   @FONT-FACE — Departure Mono
   ============================================================ */
@font-face {
  font-family: 'Departure Mono';
  src: url('/fonts/DepartureMono-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:      #F5F2E8;
  --color-text:    #3D4A1E;
  --color-accent:  #6B7A3E;
  --color-muted:   #8A9468;
  --color-border:  #C8C4A8;
  --color-surface: #EDEADC;

  --font-mono:  'Departure Mono', monospace;
  --font-serif: 'Spectral', Georgia, serif;
  --font-ui:    system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Nav */
  --nav-height:        3.25rem;
  --nav-top:           20px;
  --nav-clearance:     calc(var(--nav-top) + var(--nav-height) + var(--space-4));
  --bottom-nav-height: 4rem;

  /* Layout */
  --measure:      68ch;
  --grid-gap:     1.5rem;
  --site-padding: 1rem;
}

@media (min-width: 640px)  { :root { --site-padding: 2rem; } }
@media (min-width: 1024px) { :root { --site-padding: 3rem; } }

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select  { font: inherit; }

/* ============================================================
   BASE
   ============================================================ */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-text); }

/* ============================================================
   DESKTOP FLOATING PILL NAV
   ============================================================ */

/* Hidden on mobile — bottom nav takes over */
.site-header { display: none; }

@media (min-width: 768px) {
  .site-header {
    display: flex;
    position: fixed;
    top: var(--nav-top);
    left: 0;
    right: 0;
    z-index: 200;
    justify-content: center;
    padding: 0 var(--site-padding);
    pointer-events: none;
  }
}

/* The pill */
.site-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 var(--space-6);
  width: 100%;
  max-width: 900px;
  background: rgba(245, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  gap: var(--space-4);
}

/* Logo — left, never shrinks */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-logo:hover { color: var(--color-accent); }

.site-logo__img  { height: 32px; width: auto; display: block; }

.site-logo__text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Right group: spacer → nav → divider → search icon */
.pill-right {
  flex: 1;               /* consumes all space between logo and pill edge */
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Pushes nav/divider/icon flush to the right */
.pill-spacer { flex: 1; }

/* Vertical divider between CONTACT and search icon */
.nav-divider {
  width: 1px;
  height: 1em;
  background: var(--color-border);
  margin: 0 var(--space-4);
  flex-shrink: 0;
  align-self: center;
}

/* Search icon button — styled to match nav links */
.nav-search__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.nav-search__toggle:hover { color: var(--color-text); }

/* Search field — hidden by default, expands into pill-right's space */
.nav-search__field {
  display: none;
  flex: 1;        /* fills all space between logo and pill edge */
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding-left: var(--space-4); /* breathing room from logo */
}
.nav-search__field.is-open { display: flex; }

/* When search is open: hide the right group entirely */
.site-header__pill.search-open .pill-right { display: none; }

.nav-search__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  outline: none;
  padding: 2px 0;
}
.nav-search__input::placeholder { color: var(--color-muted); }

/* ✕ close button — matches nav link style */
.nav-search__close {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}
.nav-search__close:hover { color: var(--color-text); }

/* Results dropdown — fixed below the pill */
.nav-search__results {
  position: fixed;
  top: calc(var(--nav-top) + var(--nav-height) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90vw);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
  z-index: 198;
}
.nav-search__results.is-visible { display: flex; }

.search-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--color-surface); }

.search-result__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.search-result__excerpt {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.search-result__excerpt mark {
  background: rgba(107, 122, 62, 0.2);
  color: inherit;
}

.search-empty {
  padding: var(--space-5) var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* Nav links — inside pill-right, flush right via pill-spacer */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover        { color: var(--color-accent); }
.nav-link--active      { color: var(--color-accent); }
.nav-link--disabled    { opacity: 0.4; cursor: default; pointer-events: none; }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  text-decoration: none;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-1);
  height: var(--bottom-nav-height);
  transition: color 0.15s;
  /* Reset for <button> elements */
  background: none;
  border: none;
  cursor: pointer;
}
.bottom-nav__item:hover          { color: var(--color-accent); }
.bottom-nav__item.is-active      { color: var(--color-accent); }
.bottom-nav__item--disabled      { opacity: 0.4; pointer-events: none; cursor: default; }

.bottom-nav__icon { flex-shrink: 0; }

/* ============================================================
   MOBILE SEARCH SLIDE-UP PANEL
   ============================================================ */

/* Panel sits directly above the bottom nav bar */
.mobile-search {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  z-index: 199;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  /* Start translated off-screen below; animate to 0 on open */
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  /* Hidden on desktop — bottom nav is hidden there anyway */
}

@media (min-width: 768px) {
  .mobile-search { display: none !important; }
}

.mobile-search.is-open {
  transform: translateY(0);
}

/* Results area — stacks above the input bar, hidden when empty */
.mobile-search__results {
  overflow-y: auto;
  max-height: 45vh;
  border-bottom: 1px solid var(--color-border);
}
.mobile-search__results:empty { display: none; }

/* Input bar — always visible at the bottom of the panel */
.mobile-search__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px;
}

.mobile-search__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  outline: none;
  padding: var(--space-2) 0;
}
.mobile-search__input::placeholder { color: var(--color-muted); }

.mobile-search__close {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--color-muted);
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}
.mobile-search__close:hover { color: var(--color-text); }

/* Transparent backdrop — covers page content, tap to dismiss */
.mobile-search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  /* Stop at the bottom nav so tapping it doesn't trigger backdrop */
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  z-index: 198;
}
.mobile-search-backdrop.is-visible { display: block; }

@media (min-width: 768px) {
  .mobile-search-backdrop { display: none !important; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-8) var(--site-padding);
  /* Mobile: push up from bottom nav */
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + var(--space-4));
}

@media (min-width: 768px) {
  .site-main {
    padding-top: var(--nav-clearance);
    padding-bottom: var(--space-8);
  }
}

/* ============================================================
   HERO — home page only
   ============================================================ */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  /* Mobile: cancel standard padding-top */
  margin-top: calc(-1 * var(--space-8));
  margin-bottom: var(--space-16);
  height: 80vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

@media (min-width: 768px) {
  /* Desktop: cancel larger nav-clearance padding */
  .hero { margin-top: calc(-1 * var(--nav-clearance)); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero__video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
@media (min-width: 640px) { .hero__video { display: block; } }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: var(--space-5);
}

.hero__rule {
  width: 48px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  margin: 0 auto var(--space-5);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin: 0;
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.filter-btn.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============================================================
   FEATURED CARD (home page "Latest" — first article)
   ============================================================ */
.featured-card {
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  overflow: hidden;
  transition: border-color 0.2s;
}
.featured-card:hover { border-color: var(--color-accent); }

.featured-card__link {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .featured-card__link {
    grid-template-columns: 60fr 40fr;
    min-height: 340px;
  }
}

.featured-card__media {
  overflow: hidden;
  background: var(--color-surface);
  min-height: 220px;
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.featured-card:hover .featured-card__media img { transform: scale(1.03); }

.featured-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: var(--color-surface);
}

.featured-card__body {
  padding: var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  background: var(--color-bg);
}

.featured-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  transition: color 0.15s;
}
.featured-card:hover .featured-card__title { color: var(--color-accent); }

.featured-card__desc {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Individual card — square corners */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61, 74, 30, 0.07);
}
.card[hidden] { display: none; }

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
  flex-shrink: 0;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

/* Flat cream placeholder — not a broken state */
.card__media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
}

.card__body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  flex: 1;
}

/* Pillar tag — square, single olive tint (no per-pillar colours) */
.card__pillar,
.field-note__pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 4px 8px;
  border: 1px solid rgba(107, 122, 62, 0.3);
  background: rgba(107, 122, 62, 0.1);
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.card__date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* ============================================================
   ARTICLE MAP (Leaflet)
   ============================================================ */
.article-map {
  width: 100%;
  height: 280px;
  margin-bottom: var(--space-8);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  /* Leaflet needs a positioned ancestor to render correctly */
  position: relative;
  z-index: 0;
}

@media (min-width: 768px) {
  .article-map { height: 400px; }
}

/* ============================================================
   SLIDESHOW (Embla Carousel)
   ============================================================ */
.slideshow {
  position: relative;
  overflow: hidden;
  margin-block: var(--space-8);
  /* Embla requires the root to clip the track */
  user-select: none;
  -webkit-user-select: none;
}

/* Track — Embla transforms this element */
.slideshow__track {
  display: flex;
  touch-action: pan-y;
}

/* Individual slide */
.slideshow__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slideshow__slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prev / next arrow buttons */
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Adjust for dots row below */
  margin-top: -1.5rem;
  background: rgba(245, 242, 232, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 0;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text);
  transition: background 0.15s, opacity 0.15s;
  z-index: 1;
}
.slideshow__btn:hover    { background: var(--color-bg); }
.slideshow__btn:disabled { opacity: 0.25; cursor: default; }

.slideshow__btn--prev { left:  var(--space-3); }
.slideshow__btn--next { right: var(--space-3); }

/* Dot indicators */
.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
}

.slideshow__dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.slideshow__dot.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================================
   FIELD NOTE ARTICLE
   ============================================================ */
.field-note { max-width: var(--measure); }

.field-note__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: var(--space-8);
}

.field-note__header {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.field-note__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.field-note__date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  display: block;
  margin-top: var(--space-3);
}

.field-note__footer {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   PROSE
   ============================================================ */
.prose { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.8; }

.prose > * + * { margin-top: var(--space-4); }

.prose h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; margin-top: var(--space-8); margin-bottom: var(--space-2); }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }

.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-4);
  margin-inline: 0;
  color: var(--color-muted);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.1em 0.35em;
}

.prose pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-4);
  overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; }

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-6);
}
.back-link:hover { color: var(--color-accent); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-header {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.about-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-header {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.contact-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.03em;
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.contact-header p {
  font-family: var(--font-serif);
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-input,
.form-textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-3) var(--space-4);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--color-accent); }

.form-textarea { resize: vertical; min-height: 140px; }

.form-submit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: var(--space-3) var(--space-8);
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--color-text); }

/* ============================================================
   SUPPLY (SHOP) STUB
   ============================================================ */
.shop-stub { text-align: center; padding-block: var(--space-24); }
.shop-stub__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.shop-stub__heading { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; margin-bottom: var(--space-4); }
.shop-stub__note    { color: var(--color-muted); font-style: italic; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-8) var(--site-padding);
  border-top: 1px solid var(--color-border);
  /* on mobile, above the bottom nav */
  margin-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .site-footer { margin-bottom: 0; }
}
