/* ============================================================
   AMBER RANDHAWA — MAIN STYLESHEET
   Msndrstd Creative
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rufina:wght@400;700&display=swap');

/* ------------------------------------------------------------
   BRAND TOKENS
   ------------------------------------------------------------ */
:root {
  /* Palette — Porch Light, locked 2026-08-30 */
  --color-forest:     #273B29;
  --color-sage:       #96B474;  /* raised from #97A882 (S18) to S30 2026-08-31: the old value was grey-green and read as a neutral. Ink on this = 7.05, forest = 5.21, both better than before. */
  --color-linen:      #F3EDE5;
  --color-oat:        #E3DCCD;
  --color-coral:      #AD5138;
  --color-cedar:      var(--color-coral); /* cedar #C09070 retired; alias kept so existing rules keep working */
  --color-earth:      #6B5B4E;
  --color-ink:        #1A2219;

  /* Semantic */
  --color-bg:         var(--color-linen);
  --color-text:       var(--color-ink);
  --color-text-muted: var(--color-earth);
  --color-accent:     var(--color-coral);
  --color-primary:    var(--color-forest);

  /* Typography */
  --font-display:     'Rufina', Georgia, serif;
  --font-logo:        'brandon-grotesque', 'Raleway', sans-serif;
  --font-body:        'brandon-grotesque', 'Raleway', sans-serif;

  /* Scale */
  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.8125rem;   /* 13px */
  --text-base:  1rem;        /* 16px */
  --text-md:    1.125rem;    /* 18px */
  --text-lg:    1.375rem;    /* 22px */
  --text-xl:    1.75rem;     /* 28px */
  --text-2xl:   2.25rem;     /* 36px */
  --text-3xl:   3rem;        /* 48px */
  --text-4xl:   4rem;        /* 64px */
  --text-5xl:   5.5rem;      /* 88px */

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  11rem;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --duration:   0.7s;

  /* Layout */
  --max-width:  1320px;
  --nav-height: 90px;
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  /* CLIP, not HIDDEN. `overflow-x: hidden` on <body> forces overflow-y to
     compute to `auto`, which makes the body a scroll container and can
     break position:sticky and viewport-rooted IntersectionObservers.
     `clip` suppresses the same horizontal overflow without creating one.
     Changed 2026-08-31 as a precaution, not to fix an observed bug.
     `overflow-x: clip` needs Chrome 90+ / Safari 16+ / Firefox 81+. */
  overflow-x: clip;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Custom cursor removed */

/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: 780px;
}

.container--wide {
  max-width: 1600px;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
/* Nav — always visible, transparent until scrolled */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

/* Pre-scroll: linen elements (readable over dark hero photos/video) */
.site-nav:not(.scrolled) .nav-links a {
  color: var(--color-linen);
}
.site-nav:not(.scrolled) .nav-links a::after {
  background: rgba(243, 237, 229, 0.5);
}
.site-nav:not(.scrolled) .nav-cta {
  background: transparent;
  color: var(--color-linen) !important;
  border: 1px solid rgba(243, 237, 229, 0.45);
}
.site-nav:not(.scrolled) .nav-toggle span {
  background: var(--color-linen);
}

/* Homepage pre-scroll: hide logo (appears in hero content instead) */
.home .site-nav:not(.scrolled) .nav-logo {
  opacity: 0;
  pointer-events: none;
}
.nav-logo {
  transition: opacity 0.4s var(--ease-out);
}

/* Scrolled state: linen bar */
.site-nav.scrolled {
  background: rgba(243, 237, 229, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(27, 34, 25, 0.08);
}
.site-nav.scrolled .nav-links a {
  color: var(--color-earth);
}
.site-nav.scrolled .nav-logo {
  opacity: 1;
}
.site-nav.scrolled .nav-cta {
  background: var(--color-forest) !important;
  color: var(--color-linen) !important;
  border-color: transparent;
}
.site-nav.scrolled .nav-toggle span {
  background: var(--color-ink);
}

/* Sub-pages: start transparent with linen elements; JS adds .scrolled on scroll (fast threshold) */
body:not(.home) .site-nav:not(.scrolled) .nav-logo-text {
  color: var(--color-linen);
}

body:not(.home) .site-nav.scrolled {
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

/* Single post: visible border under nav so it reads against the forest header */
body.single .site-nav {
  border-bottom-color: rgba(243, 237, 229, 0.18);
}
body.single .site-nav.scrolled {
  border-bottom-color: rgba(39, 59, 41, 0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 72px;
  width: auto;
  transition: filter 0.35s var(--ease-out);
}

/* Sub-pages: invert logo to linen/white on transparent nav */
body:not(.home) .site-nav:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-logo-text {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-earth);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-cedar);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav always scrolled-state when visible — no over-hero overrides needed */

.nav-cta {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.nav-cta::after {
  display: none !important;
}

/* Pre-scroll CTA hover: ghost → filled linen */
.site-nav:not(.scrolled) .nav-cta:hover {
  background: var(--color-linen) !important;
  color: var(--color-forest) !important;
  border-color: var(--color-linen) !important;
}

.site-nav.scrolled .nav-cta:hover {
  background: var(--color-cedar) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--color-forest);
    gap: var(--space-md);
    /* Wipe in with clip-path, not translateX(100%). A fixed panel parked
       off the right edge escapes body's overflow clip and widens the
       layout viewport (measured 563px on a 375px phone), which lets the
       page pan sideways. clip-path keeps the box inside the screen.
       visibility keeps the closed panel's links out of the tab order. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.5s var(--ease-out), visibility 0s linear 0.5s;
  }

  .nav-links.open {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path 0.5s var(--ease-out), visibility 0s;
  }

  .nav-links a {
    color: var(--color-linen);
    font-size: var(--text-lg);
    letter-spacing: 0.15em;
  }

  .nav-links a:hover {
    color: var(--color-sage);
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
    position: relative;
  }
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) var(--space-sm) var(--space-lg);
  background: var(--color-forest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.38;
}

/* Reduce motion — pause video for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-bg video {
    display: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(39, 59, 41, 0.3) 0%,
    rgba(39, 59, 41, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-logo {
  margin-bottom: var(--space-xs);
}

.hero-logo img {
  height: clamp(80px, 14vw, 160px);
  width: auto;
  filter: brightness(0) invert(1);
}

/* Placeholder — hidden now that logos are in place */
.hero-logo-placeholder {
  display: none;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--color-cedar);
  margin: 0.5rem auto;
}

.hero-sub {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sage);
}

.hero-tagline {
  font-size: clamp(var(--text-sm), 2vw, var(--text-md));
  font-weight: 300;
  font-style: italic;
  color: rgba(243, 237, 229, 0.75);
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-sage);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-cedar);
  animation: scrollLine 1.8s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------------------------------------------------
   SECTION BASE
   ------------------------------------------------------------ */
.section {
  padding-block: var(--space-xl);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-heading {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

.section-body {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-earth);
  line-height: 1.85;
  max-width: 60ch;
}

/* ------------------------------------------------------------
   INTRO SECTION
   ------------------------------------------------------------ */
.section-intro {
  background: var(--color-linen);
  padding-block: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: clamp(560px, 75vh, 860px);
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl) clamp(2rem, 6vw, 5rem);
}

.intro-pull-quote {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.65;
  font-family: var(--font-display);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-cedar);
}

.intro-image {
  position: relative;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .intro-image {
    order: -1;
    height: 55vw;
    min-height: 300px;
  }
  .intro-text {
    padding: var(--space-lg) clamp(1.5rem, 5vw, 3rem);
  }
}

/* ------------------------------------------------------------
   WRITING / BLOG SECTION
   ------------------------------------------------------------ */
.section-writing {
  background: var(--color-forest);
  color: var(--color-linen);
}

.section-writing .section-label {
  color: var(--color-cedar);
}

.section-writing .section-heading {
  color: var(--color-linen);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid rgba(150, 180, 116, 0.2);
  border-radius: 2px;
  transition: border-color 0.4s, background 0.4s;
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--color-sage);
  background: rgba(150, 180, 116, 0.06);
}

.post-card-category {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
}

.post-card-title {
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.4;
  font-family: var(--font-display);
}

.post-card-excerpt {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-sage);
  line-height: 1.7;
  flex: 1;
}

.post-card-date {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--color-cedar);
  text-transform: uppercase;
  margin-top: auto;
}

@media (max-width: 900px) {
  .writing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .writing-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   LAND SECTION (Area knowledge)
   ------------------------------------------------------------ */
.section-land {
  background: var(--color-linen);
}

.land-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.land-areas {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-lg);
}

.land-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(39, 59, 41, 0.1);
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-earth);
  transition: color 0.3s, padding-left 0.4s var(--ease-out);
  cursor: default;
}

.land-area-item:hover {
  color: var(--color-forest);
  padding-left: 0.75rem;
}

.land-area-item span {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
}

@media (max-width: 768px) {
  .land-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   CTA SECTION
   ------------------------------------------------------------ */
.section-cta {
  background: var(--color-sage);
  text-align: center;
  padding-block: var(--space-xl);
}

.cta-heading {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.3;
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
}

.cta-body {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-linen);
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.75;
}

.btn {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: background 0.35s, color 0.35s;
}

.btn-primary {
  background: var(--color-forest);
  color: var(--color-linen);
}

.btn-primary:hover {
  background: var(--color-cedar);
}

.btn-outline {
  background: transparent;
  color: var(--color-forest);
  border: 1px solid var(--color-forest);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.btn-outline:hover {
  background: var(--color-forest);
  color: var(--color-linen);
}

/* Writing section (dark bg): sage ghost button */
.section-writing .btn-outline {
  border-color: var(--color-sage);
  color: var(--color-sage);
}
.section-writing .btn-outline:hover {
  background: var(--color-sage);
  color: var(--color-forest);
  border-color: var(--color-sage);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
/* FOOTER — two bands. The main band is SAGE, the compliance strip
   under it is FOREST.

   Sage takes near-black only, never white (white on sage is 2.55).
   So everything in the main band is ink, including the logo, which
   uses the near-black variant rather than the cream one.

   The forest strip takes white (12.04). No opacity on any text. */
.site-footer {
  background: var(--color-sage);
  color: var(--color-ink);
  padding-top: var(--space-lg);
  padding-bottom: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.footer-logo img {
  height: 80px;
  width: auto;
  opacity: 1;
}

.footer-logo-text {
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  flex-wrap: wrap; /* 7 links since Guides was added; nowrap forced the footer to 539px on a 375px phone */
  gap: 0.75rem var(--space-md);
  justify-content: center;
}

.footer-links a {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink);
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-ink);
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  /* Tightened 2026-09-29: logo centred with the stack, links packed into
     two close rows, less air between logo, links and legal. */
  .site-footer { padding-top: 2.5rem; }
  .footer-inner { gap: 1.25rem; padding-bottom: 2rem; }
  .footer-logo img { height: 64px; margin-inline: auto; }
  .footer-links { gap: 0 1.5rem; }
  .footer-links a { display: inline-block; padding-block: 0.5rem; }
  .footer-legal {
    text-align: center;
  }
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-ink);
}

.footer-credit a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.footer-credit a:hover {
  color: var(--color-forest);
}

/* KW Compliance Strip */
.footer-compliance {
  background: var(--color-forest);
  border-top: 0;
}

.footer-compliance > .container {
  padding-block: 1.4rem;
}

.compliance-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.compliance-kw {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.kw-logo {
  display: block;
  height: 32px;
  width: auto;
  opacity: 1;
  /* Cream, not pure white, to match the rest of the strip. */
  filter: brightness(0) invert(1) sepia(0.18) saturate(0.55) brightness(0.99);
}

.kw-logo-text {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-linen);
}

.compliance-text {
  flex: 1;
  font-size: 0.625rem;
  line-height: 1.65;
  letter-spacing: 0.05em;
  color: var(--color-linen);
}

.compliance-text p {
  margin: 0;
  padding: 0;
}

.compliance-eho {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-linen);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eho-logo {
  flex-shrink: 0;
  display: block;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .compliance-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    text-align: left;
  }
}

/* ------------------------------------------------------------
   HERO GRAIN — subtle editorial texture over the video
   ------------------------------------------------------------ */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------
   DECORATIVE PULL QUOTE
   ------------------------------------------------------------ */
.intro-pull-quote {
  position: relative;
  overflow: visible;
}

.intro-pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-size: 9rem;
  line-height: 1;
  color: var(--color-sage);
  opacity: 0.14;
  font-family: var(--font-display);
  pointer-events: none;
}

/* ------------------------------------------------------------
   MARQUEE TICKER STRIP
   ------------------------------------------------------------ */
.marquee-strip {
  overflow: hidden;
  background: var(--color-forest);
  padding: 1.1rem 0;
  border-top: 1px solid rgba(150, 180, 116, 0.15);
  border-bottom: 1px solid rgba(150, 180, 116, 0.15);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 55s linear infinite;
}

.marquee-track span {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-sage);
  flex-shrink: 0;
}

.marquee-track .marquee-accent {
  color: var(--color-cedar);
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   PHOTO GRIDS — 2-up and 3-up
   ------------------------------------------------------------ */
.photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: clamp(260px, 36vw, 500px);
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  height: clamp(220px, 28vw, 400px);
}

.photo-grid-item {
  overflow: hidden;
  position: relative;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.photo-grid-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .photo-grid-2 {
    grid-template-columns: 1fr;
    height: auto;
  }
  .photo-grid-2 .photo-grid-item {
    height: clamp(200px, 55vw, 320px);
  }
  .photo-grid-3 {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .photo-grid-3 .photo-grid-item:last-child {
    grid-column: span 2;
  }
  .photo-grid-3 .photo-grid-item {
    height: clamp(160px, 40vw, 260px);
  }
}

/* ------------------------------------------------------------
   BLOG ARCHIVE
   ------------------------------------------------------------ */
.archive-hero {
  background: var(--color-forest);
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  text-align: center;
}

.archive-hero .section-heading {
  color: var(--color-linen);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-xl);
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: opacity 0.3s;
}

.archive-card:hover {
  opacity: 0.8;
}

.archive-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
}

.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.archive-card:hover .archive-card-image img {
  transform: scale(1.04);
}

.archive-card-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
}

.archive-card-title {
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.3;
  font-family: Georgia, 'Times New Roman', serif;
}

.archive-card-excerpt {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-earth);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   SINGLE POST
   ------------------------------------------------------------ */


.post-content p:first-child::first-letter {
  font-size: 4rem;
  font-weight: 700;
  font-style: italic;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.12em 0 0;
  color: var(--color-forest);
  font-family: Georgia, serif;
}

.post-content h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  font-style: italic;
  color: var(--color-forest);
  margin: 2.5rem 0 1rem;
  font-family: Georgia, serif;
}

.post-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-forest);
  margin: 2rem 0 0.75rem;
}

.post-content blockquote {
  border-left: 2px solid var(--color-cedar);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-forest);
  font-family: Georgia, serif;
  line-height: 1.6;
}

.post-content a {
  color: var(--color-cedar);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------
   ANIMATION CLASSES (populated by GSAP)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
}

/* ------------------------------------------------------------
   RESPONSIVE UTILITIES
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Hero */
.about-hero {
  min-height: 85svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 0 var(--space-xl);
  background: var(--color-forest);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(39, 59, 41, 0.88) 0%,
    rgba(39, 59, 41, 0.35) 55%,
    rgba(39, 59, 41, 0.15) 100%
  );
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-md);
}

.about-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.15;
  margin: var(--space-sm) 0;
  max-width: 14ch;
}

.about-hero-tagline {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sage);
}

/* Intro */
.about-intro {
  background: var(--color-linen);
  padding-block: 0;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
  padding-block: var(--space-xl);
}

.about-intro-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-body p {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-earth);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-pull-quote {
  border-left: 2px solid var(--color-cedar);
  padding-left: var(--space-md);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-style: italic;
  color: var(--color-forest);
  font-family: var(--font-display);
  line-height: 1.65;
  margin: 0;
}

.about-intro-image {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  overflow: hidden;
  border-radius: 2px;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--color-sage);
  opacity: 0.18;
  border-radius: 2px;
}

/* Display quote */
.about-quote-section {
  background: var(--color-forest);
  text-align: center;
}

.about-display-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.5;
  opacity: 0.9;
  max-width: 32ch;
  margin: 0 auto;
}

/* Pivot */
.about-pivot {
  background: var(--color-linen);
}

.about-pivot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.about-pivot-left .section-heading {
  margin-top: var(--space-sm);
}

.about-pivot-right p {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-earth);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-pivot-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-style: italic;
  color: var(--color-forest);
  border-left: 2px solid var(--color-cedar);
  padding-left: var(--space-md);
  margin-top: var(--space-md);
  line-height: 1.6;
}

/* Local knowledge */
.about-local {
  background: var(--color-forest);
}

.about-local .section-label {
  color: var(--color-cedar);
}

.about-local .section-heading {
  color: var(--color-linen);
}

.about-local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.about-local-image {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/5;
}

.about-local-image img,
.about-local-image .about-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-local-text p {
  font-size: var(--text-md);
  font-weight: 300;
  color: rgba(243, 237, 229, 0.72);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-areas {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(150, 180, 116, 0.2);
}

.about-areas-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-cedar);
  margin-bottom: 0.5rem;
}

.about-areas-text {
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-sage);
  text-transform: uppercase;
}

/* Human stuff */
.about-human {
  background: var(--color-linen);
  text-align: center;
}

.about-human-heading {
  text-align: center;
  margin: var(--space-sm) auto var(--space-lg);
  max-width: 22ch;
}

.about-human-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
}

.about-human-item {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(39, 59, 41, 0.12);
}

.about-human-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cedar);
  margin-bottom: 0.75rem;
}

.about-human-item p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-earth);
  line-height: 1.75;
  margin: 0;
}

/* About responsive */
@media (max-width: 900px) {
  .about-human-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-intro-grid,
  .about-pivot-grid,
  .about-local-grid {
    grid-template-columns: 1fr;
    padding-block: var(--space-lg);
  }

  .about-intro-image {
    position: static;
    order: -1;
  }

  .about-local-image {
    aspect-ratio: 16/9;
  }

  .about-hero-heading {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .about-human-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ABOUT — PHOTO STRIP
   Drop amber-02, amber-03, amber-04 into assets/images/
   ============================================================ */

.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: clamp(280px, 38vw, 560px);
}

.about-photo-strip-item {
  overflow: hidden;
  position: relative;
}

.about-photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.about-photo-strip-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .about-photo-strip {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .about-photo-strip-item {
    height: clamp(180px, 45vw, 300px);
  }
  .about-photo-strip-item:last-child {
    grid-column: span 2;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-hero {
  background: var(--color-forest);
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
}

.contact-hero-content {
  max-width: 820px;
}

.contact-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.1;
  margin: var(--space-sm) 0 var(--space-md);
}

.contact-hero-sub {
  font-size: var(--text-md);
  font-weight: 300;
  font-style: italic;
  color: var(--color-sage);
  letter-spacing: 0.02em;
}

/* Body */
.contact-body {
  background: var(--color-linen);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-body p {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-earth);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(39, 59, 41, 0.1);
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-detail-label {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cedar);
}

.contact-detail-item p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-earth);
  line-height: 1.6;
}

.contact-detail-item a {
  color: var(--color-cedar);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.contact-detail-item a:hover {
  color: var(--color-forest);
}

/* Form */
.contact-form-wrap {
  background: #fff;
  padding: var(--space-lg) clamp(1.5rem, 4vw, var(--space-lg));
  border-radius: 2px;
  box-shadow: 0 2px 40px rgba(39, 59, 41, 0.07);
}

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

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

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-earth);
}

.form-optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-ink);
  background: var(--color-linen);
  border: 1px solid rgba(39, 59, 41, 0.15);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.3s;
  outline: none;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-cedar);
}

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

.form-submit {
  width: 100%;
  margin-top: var(--space-sm);
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row--half {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG ARCHIVE
   ============================================================ */

.archive-hero {
  background: var(--color-forest);
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
}

.archive-hero .section-label {
  color: var(--color-cedar);
}

.archive-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.15;
  margin: var(--space-sm) 0 0;
  max-width: 16ch;
}

.archive-hero-desc {
  font-size: var(--text-md);
  font-weight: 300;
  color: rgba(243, 237, 229, 0.6);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 55ch;
}

/* Post grid */
.archive-body {
  background: var(--color-linen);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-md);
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: var(--space-md);
  background: var(--color-sage);
  opacity: 0.8;
}

.archive-card-image--empty {
  background: rgba(150, 180, 116, 0.2);
}

.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.archive-card:hover .archive-card-image img {
  transform: scale(1.04);
}

.archive-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.archive-card-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
}

.archive-card-meta a {
  color: var(--color-cedar);
  transition: color 0.3s;
}

.archive-card-meta a:hover {
  color: var(--color-forest);
}

.archive-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.3;
}

.archive-card-title a {
  color: inherit;
  transition: color 0.3s;
}

.archive-card-title a:hover {
  color: var(--color-cedar);
}

.archive-card-excerpt {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-earth);
  line-height: 1.75;
  flex: 1;
}

.archive-card-read {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
  transition: color 0.3s, letter-spacing 0.3s;
  margin-top: var(--space-sm);
  display: inline-block;
}

.archive-card-read:hover {
  color: var(--color-forest);
  letter-spacing: 0.28em;
}

/* Pagination */
.archive-pagination {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

.archive-pagination .nav-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.archive-pagination .page-numbers {
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-earth);
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(39, 59, 41, 0.15);
  border-radius: 2px;
  transition: all 0.3s;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--color-forest);
  color: var(--color-linen);
  border-color: var(--color-forest);
}

.archive-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--color-earth);
  font-style: italic;
  font-size: var(--text-lg);
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   ARCHIVE HERO — photo background, text on right
   ============================================================ */
.archive-hero {
  position: relative;
  overflow: hidden;
}
.archive-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.archive-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.archive-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(26, 34, 25, 0.08) 0%,
    rgba(26, 34, 25, 0.65) 45%,
    rgba(26, 34, 25, 0.85) 100%
  );
}
.archive-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.archive-hero-text {
  max-width: 520px;
  text-align: left;
}


/* ============================================================
   CONTACT HERO — photo background, text on right
   ============================================================ */
.contact-hero {
  position: relative;
  overflow: hidden;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(26, 34, 25, 0.08) 0%,
    rgba(26, 34, 25, 0.65) 45%,
    rgba(26, 34, 25, 0.85) 100%
  );
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: auto;
}


/* ============================================================
   SINGLE POST
   ============================================================ */

/* Post header — linen bg, title + meta */
.single-header {
  background: var(--color-forest);
  padding: calc(var(--nav-height) + var(--space-md)) 0 0;
}
.single-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-sm);
}
.single-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cedar);
  text-decoration: none;
}
.single-category:hover { color: var(--color-sage); }
.single-meta-divider {
  color: rgba(243, 237, 229, 0.35);
  font-size: 0.75rem;
}
.single-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(243, 237, 229, 0.55);
}
.single-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-linen);
  line-height: 1.2;
  margin: 0;
}

/* Featured image — bridges green header and linen content */
.single-feat-wrap {
  background: linear-gradient(to bottom, var(--color-forest) 50%, var(--color-linen) 50%);
  padding: var(--space-md) 0;
}
.single-feat-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(26, 34, 25, 0.22);
}
.single-feat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Post body */
.single-body {
  background: var(--color-linen);
  padding-top: 0;
}
.single-content {
  padding-top: 0;
  padding-bottom: var(--space-2xl);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-ink);
}
.single-content p { margin-bottom: 1.5em; }
.single-content p:last-child { margin-bottom: 0; }
.single-content h2,
.single-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.2;
  margin: 2em 0 0.6em;
}
.single-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.single-content h3 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); }
.single-content blockquote {
  border-left: 3px solid var(--color-cedar);
  margin: 2em 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--color-forest);
  line-height: 1.5;
}
.single-content blockquote p { margin: 0; }
.single-content a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-content a:hover { color: var(--color-cedar); }
.single-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}
.single-content ul,
.single-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.single-content li { margin-bottom: 0.4em; }

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(39,59,41,0.12);
  margin-top: var(--space-lg);
}
.single-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-earth);
  border: 1px solid var(--color-earth);
  padding: 0.3em 0.8em;
  border-radius: 2px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.single-tag:hover {
  color: var(--color-forest);
  border-color: var(--color-forest);
}

/* Author bio */
.single-author {
  background: var(--color-forest);
  padding-block: var(--space-xl);
}
.single-author-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.single-author-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(150,180,116,0.3);
}
.single-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.single-author-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cedar);
  margin-bottom: 0.3em;
}
.single-author-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-linen);
  margin: 0 0 0.5em;
}
.single-author-bio {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(243,237,229,0.7);
  line-height: 1.7;
  margin: 0 0 var(--space-sm);
}
.single-author-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-sage);
  text-decoration: none;
}
.single-author-link:hover { color: var(--color-linen); }

/* Post nav */
.single-nav {
  background: var(--color-linen);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(39,59,41,0.1);
}
.single-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}
.single-nav-prev { text-align: left; }
.single-nav-next { text-align: right; }
.single-nav-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cedar);
  margin-bottom: 0.4em;
}
.single-nav-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-forest);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}
.single-nav-title:hover { color: var(--color-cedar); }
.single-nav-all {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-earth);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(107,91,78,0.35);
  padding: 0.5em 1.2em;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.single-nav-all:hover {
  color: var(--color-forest);
  border-color: var(--color-forest);
}

@media (max-width: 768px) {
  .single-author-inner {
    flex-direction: column;
    text-align: center;
  }
  .single-nav-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .single-nav-prev,
  .single-nav-next { text-align: center; }
}

/* ============================================================
   NAV DROPDOWN — Communities
   ============================================================ */

.nav-item {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35em;
  transition: color 0.3s var(--ease-out);
}

.nav-dropdown-arrow {
  font-size: 0.5em;
  transition: transform 0.25s var(--ease-out);
  display: inline-block;
}

.nav-has-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Inherit link color from nav state */
.site-nav:not(.scrolled) .nav-dropdown-trigger {
  color: var(--color-linen);
}
.site-nav.scrolled .nav-dropdown-trigger {
  color: var(--color-earth);
}
body:not(.home) .site-nav:not(.scrolled) .nav-dropdown-trigger {
  color: var(--color-linen);
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  /* top: 100% + padding-top bridges the hover gap — mouse stays inside the element */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  padding-top: 0.75rem; /* invisible hover bridge fills the visual gap */
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  z-index: 200;
  min-width: 380px;
}

/* Inner panel carries the visual styling */
.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  background: rgba(39, 59, 41, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 237, 229, 0.12);
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(26, 34, 25, 0.22);
  padding: var(--space-md);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
  margin-bottom: 0.4rem;
  display: block;
}

.nav-dropdown a {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(243, 237, 229, 0.8);
  letter-spacing: 0.03em;
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  transition: background 0.18s, color 0.18s;
}

.nav-dropdown a:hover {
  background: rgba(243, 237, 229, 0.1);
  color: var(--color-linen);
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(243, 237, 229, 0.12);
  margin: 0.5rem 0;
}

.nav-dropdown-all {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--color-sage) !important;
  letter-spacing: 0.05em !important;
}

/* Mobile: stack dropdown inline */
@media (max-width: 860px) {
  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .nav-has-dropdown.open .nav-dropdown {
    display: block;
  }
  .nav-dropdown-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    background: rgba(39, 59, 41, 0.3);
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(243, 237, 229, 0.2);
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1rem;
  }
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.2rem 0;
  }
  .nav-dropdown-divider { display: none; }
}


/* ============================================================
   MOBILE NAV PANEL — colour, size, logo, socials
   ------------------------------------------------------------
   The panel ground is forest (main.css ~330). Interior pages set
   .nav-links a to earth for the LIGHT desktop bar
   (system.css `body:not(.home) .site-nav:not(.scrolled)`), and that
   selector is more specific than the mobile rule, so it leaked into
   the overlay and rendered the links earth-on-forest. Every nav
   state is restated here so the panel is always linen.

   Dropdown triggers are <button>, not <a>, so they never received
   the mobile size either and rendered at --text-xs beside --text-lg
   links. Sizes are unified below.
   ============================================================ */
@media (max-width: 768px) {

  .nav-links { justify-content: flex-start; padding: 5.5rem 1.5rem 2rem; overflow-y: auto; }

  /* Colour: beat every desktop nav-state selector.
     system.css and landrecords.css both load AFTER main.css, so an
     equal-specificity rule here loses. The `html` prefix adds one
     element to the count and wins regardless of load order. */
  html .site-nav .nav-links a,
  html .site-nav .nav-links .nav-dropdown-trigger,
  html body:not(.home) .site-nav:not(.scrolled) .nav-links a,
  html body:not(.home) .site-nav:not(.scrolled) .nav-dropdown-trigger,
  html body.home .site-nav:not(.scrolled) .nav-links a,
  html body.home .site-nav:not(.scrolled) .nav-dropdown-trigger,
  html body.home .site-nav.scrolled .nav-links a,
  html body.home .site-nav.scrolled .nav-dropdown-trigger {
    color: var(--color-linen);
  }

  /* Size: triggers match links */
  .site-nav .nav-links .nav-dropdown-trigger {
    font-size: var(--text-lg);
    letter-spacing: 0.15em;
    width: auto;
    justify-content: center;
    gap: 0.5em;
  }
  .site-nav .nav-links .nav-item { display: flex; flex-direction: column; align-items: center; }

  /* Submenu links: one clear step down, still linen */
  html .site-nav .nav-links .nav-dropdown-inner a,
  html body.home .site-nav .nav-links .nav-dropdown .nav-dropdown-inner a {
    color: var(--color-linen);
    font-size: var(--text-sm);
  }
  .site-nav .nav-links .nav-dropdown-inner .nav-dropdown-label { color: var(--color-sage); }
  html .site-nav .nav-links .nav-dropdown-inner .nav-dropdown-all,
  html body.home .site-nav .nav-links .nav-dropdown .nav-dropdown-inner .nav-dropdown-all {
    color: var(--color-sage) !important;
  }

  /* Logo at the top of the panel */
  .nav-panel-logo {
    display: block;
    margin: 0 auto 2rem;
    line-height: 0;
  }
  .nav-panel-logo img { width: 170px; height: auto; display: block; }

  /* Socials at the bottom */
  .nav-panel-social {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(243, 237, 229, 0.18);
    width: 100%;
    max-width: 220px;
  }
  .nav-panel-social a {
    color: var(--color-linen);
    display: inline-flex;
    padding: 0.35rem;
    transition: color 0.3s var(--ease-out);
  }
  .nav-panel-social a:hover,
  .nav-panel-social a:focus-visible { color: var(--color-sage); }
}

/* Panel-only furniture stays out of the desktop bar */
@media (min-width: 769px) {
  .nav-panel-logo,
  .nav-panel-social { display: none; }
}

/* ============================================================
   MOBILE NAV — panel clipping + submenu rendering
   ------------------------------------------------------------
   1. `.site-nav.scrolled` carries backdrop-filter: blur(14px).
      A filtered element becomes the containing block for any
      position:fixed descendant, so once the page was scrolled the
      overlay was clipped to the height of the nav bar instead of
      the viewport. That is why the menu "did not display fully
      when scrolled down". Drop the filter while the panel is open.

   2. redesign.css loads AFTER main.css and sets
      .nav-dropdown-inner { background: linen } site-wide, which beat
      the mobile rule here. The submenu was therefore a cream box,
      and the cream link colour set for the forest overlay rendered
      cream-on-cream — the links were present but invisible, which
      read as "submenus don't appear". On mobile the submenu is now
      an indented list on the forest ground, not a panel.
   ============================================================ */
@media (max-width: 768px) {

  html .site-nav:has(.nav-links.open),
  html .site-nav.scrolled:has(.nav-links.open) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
  }

  html .site-nav .nav-links .nav-item { width: 100%; }

  html .site-nav .nav-links .nav-dropdown {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    padding-top: 0;
    box-shadow: none;
  }

  html .site-nav .nav-links .nav-dropdown-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: block;
    padding: 0.75rem 0 0.25rem;
    text-align: center;
  }

  html .site-nav .nav-links .nav-dropdown-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
  }

  html .site-nav .nav-links .nav-dropdown-inner a,
  html body.home .site-nav .nav-links .nav-dropdown .nav-dropdown-inner a {
    color: var(--color-linen);
    font-size: var(--text-sm);
    padding: 0.4rem 0;
  }

  html .site-nav .nav-links .nav-dropdown-inner .nav-dropdown-label,
  html body.home .site-nav .nav-links .nav-dropdown .nav-dropdown-inner .nav-dropdown-label {
    color: var(--color-sage);
    margin-bottom: 0.25rem;
  }

  /* Open trigger stayed coral, which is the weakest colour on forest */
  html .site-nav .nav-links .nav-has-dropdown.open .nav-dropdown-trigger,
  html body.home .site-nav .nav-links .nav-has-dropdown.open .nav-dropdown-trigger {
    color: var(--color-linen);
  }
}

/* ============================================================
   MOBILE NAV — close button, and a body-class scroll lock
   ------------------------------------------------------------
   `body.nav-open` is set by main.js. It does two jobs: kills the
   nav's backdrop-filter (a filtered element is the containing
   block for its position:fixed children, which clipped this
   overlay to the nav bar once the page was scrolled), and pairs
   with the JS position:fixed body pin that actually holds on iOS.
   The earlier `:has()` version did not cover every case.
   ============================================================ */
body.nav-open .site-nav,
body.nav-open .site-nav.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

.nav-panel-close { display: none; }

@media (max-width: 768px) {
  .nav-panel-close {
    display: flex;
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-linen);
    transition: color 0.3s var(--ease-out);
  }
  .nav-panel-close:hover,
  .nav-panel-close:focus-visible { color: var(--color-sage); }

  /* The hamburger sits under the panel once it is open */
  body.nav-open .nav-toggle { opacity: 0; pointer-events: none; }
}
