
/* ═══════════════════════════════════════════════════
   WILD ECOSYSTEM - Shared Design System
   Mountain Lodge Editorial - Aman x Kinfolk
   Cormorant Garamond + DM Sans (locked)
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --forest: #1A3A3A;    --fr: 26, 58, 58;
  --parchment: #F5F0EB; --pr: 245, 240, 235;
  --white: #FAFAF7;     --wr: 250, 250, 247;
  --gold: #D4A843;      --gr: 212, 168, 67;
  --slate: #4A5C6A;
  --stone: #B0A89F;     --sr: 176, 168, 159;
  --dark: #2C2C2C;      --dr: 44, 44, 44;

  --heading: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', -apple-system, sans-serif;

  --rule: 1px solid rgba(var(--sr), 0.15);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; color-scheme: light dark; }

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--dark);
  background: var(--parchment);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Topo texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.016;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014' numOctaves='3' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Scroll Reveal ── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.rv.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

@keyframes up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ── Typography ── */

/* Gold rule motif - appears above every .label */
.has-rule .label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}

/* Centered variant - use .has-rule.center when the section is center-aligned */
.has-rule.center { text-align: center; }
.has-rule.center .label::before {
  margin-left: auto;
  margin-right: auto;
}
.has-rule.center .label { text-align: center; }

.label {
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 24px;
}

.lead { font-size: 1.08rem; color: var(--dark); line-height: 1.75; margin-bottom: 1.4em; text-wrap: pretty; }
.body-text { font-size: 0.95rem; color: var(--slate); line-height: 1.72; margin-bottom: 1.35em; text-wrap: pretty; }
.body-text:last-child, .lead:last-child { margin-bottom: 0; }

/* Prevent orphan/widow single-word lines globally */
h1, h2, h3, h4, .mantra, .subtitle, blockquote {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* ── Wordmark System ── */
.wordmark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.wordmark-the {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark-wild {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.wordmark-rest {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Transparent state: subtle dark gradient scrim for legibility over hero photos */
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%);
  transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav.solid {
  padding: 16px 52px;
  background: rgba(var(--pr), 0.92);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: var(--rule);
}

/* Nav colors - transparent state (hero visible) - high contrast */
.nav .wordmark-the,
.nav .wordmark-wild,
.nav .wordmark-rest {
  color: rgba(var(--pr), 0.98);
  transition: color 0.5s;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* Nav colors - solid state (scrolled) */
.nav.solid .wordmark-the,
.nav.solid .wordmark-wild,
.nav.solid .wordmark-rest {
  color: var(--forest);
  text-shadow: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: rgba(var(--pr), 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transition: color 0.3s, text-shadow 0.5s;
}
.nav-links a:hover { color: var(--parchment); }
.nav.solid .nav-links a {
  color: var(--slate);
  text-shadow: none;
}
.nav.solid .nav-links a:hover { color: var(--forest); }

/* External link indicator */
.nav-links a.ext::after {
  content: '\2197';
  font-size: 0.65em;
  margin-left: 3px;
  opacity: 0.7;
}

.nav-links .cta-link {
  padding: 10px 22px;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links .cta-link:hover {
  background: #c49a38;
  border-color: #c49a38;
  color: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(var(--gr), 0.3);
}
.nav.solid .nav-links .cta-link {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
  text-shadow: none;
}
.nav.solid .nav-links .cta-link:hover {
  background: #c49a38;
  border-color: #c49a38;
  color: var(--forest);
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.burger span {
  width: 26px; height: 1.5px;
  background: var(--parchment);
  transition: background 0.4s;
}
.nav.solid .burger span { background: var(--forest); }

/* Mobile nav show */
.nav-links.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(var(--fr), 0.97);
  backdrop-filter: blur(20px);
  padding: 28px 24px;
  gap: 20px;
}
.nav.solid .nav-links.show {
  background: rgba(var(--pr), 0.97);
}

/* ── Buttons ── */
.btn-gold {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  background: var(--gold);
  padding: 18px 40px;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-gold:hover {
  background: #c49a38;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--gr), 0.25);
}

.btn-dark {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--parchment);
  background: var(--forest);
  padding: 18px 44px;
  display: inline-block;
  transition: all 0.4s;
}
.btn-dark:hover { background: var(--dark); transform: translateY(-2px); }

.btn-text {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--slate);
  padding: 18px 4px;
  border-bottom: 1px solid rgba(var(--sr), 0.3);
  transition: all 0.3s;
}
.btn-text:hover { color: var(--forest); border-color: var(--gold); }

/* Dark bg variant */
.on-dark .btn-text {
  color: rgba(var(--pr), 0.5);
  border-bottom-color: rgba(var(--pr), 0.18);
}
.on-dark .btn-text:hover { color: var(--parchment); border-color: var(--gold); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* When a real photo is set as background-image */
.hero-photo.has-photo {
  position: absolute;
  background-size: cover;
  background-position: center;
}
.hero-photo.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--fr), 0.1) 0%,
    rgba(var(--fr), 0.3) 40%,
    rgba(var(--fr), 0.75) 70%,
    rgba(var(--fr), 0.95) 100%);
}

/* Placeholder gradient for hero (use when no photo) */
.hero-photo.no-photo {
  position: absolute;
  background:
    radial-gradient(ellipse at 25% 30%, #2c5656 0%, transparent 50%),
    radial-gradient(ellipse at 72% 20%, #1f4a4a 0%, transparent 45%),
    radial-gradient(ellipse at 50% 85%, #0e1e1e 0%, transparent 35%),
    linear-gradient(168deg, #1f4646 0%, #1A3A3A 30%, #183535 50%, #142e2e 70%, #0e2222 100%);
}

.hero-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  opacity: 0.18;
  clip-path: polygon(
    0% 100%, 0% 72%, 7% 56%, 14% 47%, 21% 41%, 27% 32%,
    33% 37%, 39% 27%, 45% 21%, 51% 15%, 55% 23%, 61% 31%,
    65% 25%, 71% 33%, 77% 27%, 83% 37%, 89% 43%, 95% 51%, 100% 57%, 100% 100%
  );
  background: linear-gradient(to top, rgba(8, 18, 18, 0.7), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 52px 104px;
  max-width: 880px;
}

.hero-eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(var(--sr), 0.65);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  opacity: 0; animation: up 0.9s 0.3s forwards;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  opacity: 0; animation: up 0.9s 0.5s forwards;
}

.hero-sub {
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(var(--pr), 0.55);
  max-width: 520px;
  line-height: 1.72;
  margin-bottom: 56px;
  opacity: 0; animation: up 0.9s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0; animation: up 0.9s 0.9s forwards;
}

/* ── Split Layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82vh;
}

.split-photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.split-photo .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 7s cubic-bezier(0.23, 1, 0.32, 1);
}
.split-photo:hover .bg { transform: scale(1.04); }

.split-text {
  display: flex;
  align-items: center;
  padding: 88px 72px;
}

.split-body { max-width: 480px; }

.split-body h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.split-body .accent {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.4;
  margin: 32px 0;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.split-body .link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(var(--fr), 0.2);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}
.split-body .link:hover { border-color: var(--gold); }

/* Dark split variant */
.split-text.on-dark { background: var(--forest); }
.split-text.on-dark h2 { color: var(--parchment); }
.split-text.on-dark .body-text { color: var(--stone); }
.split-text.on-dark .accent { color: var(--parchment); }

/* Deep dark split - for problem-recognition sections (The Terrain, etc.) */
.split-text-dark {
  background: #14201f;
  color: rgba(245, 240, 235, 0.82);
  display: flex;
  align-items: center;
  padding: 88px 72px;
}
.split-text-dark h2 { color: var(--parchment); }

/* ── Prose Section ── */
.prose-section {
  padding: 120px 52px;
  text-align: center;
}

.prose-body {
  max-width: 600px;
  margin: 0 auto;
}

.prose-body h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 32px;
  line-height: 1.15;
}

/* ── Cards ── */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  padding: 44px 36px;
  background: var(--white);
  border: 1px solid rgba(var(--sr), 0.08);
}

.card h3 {
  font-family: var(--heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 14px;
}

.card .body-text { font-size: 0.88rem; }

/* ── Interlude (full-bleed photo break) ── */
.interlude {
  position: relative;
  height: 65vh;
  overflow: hidden;
}

.interlude .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* ── Topographic line graphic - non-literal visual break ── */
.topo-break {
  position: relative;
  padding: 120px 52px;
  background: var(--forest);
  overflow: hidden;
}
.topo-break::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%23D4A843' stroke-width='0.7'><path d='M 200 300 C 150 200 250 150 400 180 C 550 200 650 280 600 360 C 550 440 350 440 250 380 C 150 320 200 300 200 300 Z'/><path d='M 230 300 C 190 220 270 180 400 210 C 530 230 620 290 580 350 C 540 410 360 410 270 360 C 180 310 230 300 230 300 Z'/><path d='M 260 300 C 230 240 290 210 400 240 C 510 260 590 300 560 340 C 530 380 370 380 290 340 C 210 300 260 300 260 300 Z'/><path d='M 290 300 C 270 260 310 240 400 260 C 490 280 560 310 540 330 C 520 350 380 350 310 330 C 240 310 290 300 290 300 Z'/><path d='M 320 300 C 310 280 330 270 400 280 C 470 290 520 310 510 320 C 500 330 390 330 330 320 C 270 310 320 300 320 300 Z'/><path d='M 350 300 Q 400 295 450 300 Q 400 305 350 300 Z'/><path d='M 800 150 C 720 100 850 60 950 100 C 1050 140 1080 230 1020 270 C 960 310 820 290 780 230 C 740 170 800 150 800 150 Z'/><path d='M 830 150 C 770 110 850 85 930 115 C 1010 145 1040 220 1000 255 C 960 290 845 275 815 225 C 785 175 830 150 830 150 Z'/><path d='M 860 150 C 820 125 860 110 920 130 C 980 150 1010 205 980 230 C 950 255 870 245 850 215 C 830 185 860 150 860 150 Z'/><path d='M 890 150 C 870 135 890 130 920 145 C 950 160 970 195 960 210 C 950 225 900 225 890 205 C 880 185 890 150 890 150 Z'/><path d='M 120 480 C 80 440 140 410 220 430 C 300 450 340 500 310 540 C 280 580 180 580 140 550 C 100 520 120 480 120 480 Z'/><path d='M 150 480 C 120 455 170 435 220 450 C 270 465 300 495 285 520 C 270 545 195 545 165 525 C 135 505 150 480 150 480 Z'/><path d='M 180 480 C 165 465 195 460 225 470 C 255 480 275 500 265 510 C 255 520 205 520 190 510 C 175 500 180 480 180 480 Z'/></g></svg>");
  background-size: 1600px 800px;
  background-position: center;
  background-repeat: repeat;
}
.topo-break-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.topo-break blockquote {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 760px;
}

/* ── Newsletter ── */
.newsletter {
  background: var(--forest);
  padding: 88px 52px;
}

.nl-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--heading);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--parchment);
  margin-bottom: 16px;
}

.newsletter .body-text { color: var(--stone); margin-bottom: 28px; }

.nl-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.nl-form input {
  flex: 1;
  font-family: var(--body);
  font-size: 0.88rem;
  padding: 16px 20px;
  border: 1px solid rgba(var(--sr), 0.2);
  border-right: none;
  background: rgba(var(--pr), 0.04);
  color: var(--parchment);
  outline: none;
  transition: border-color 0.3s;
}
.nl-form input::placeholder { color: rgba(var(--sr), 0.5); font-size: 0.85rem; }
.nl-form input:focus { border-color: var(--gold); }

.nl-form button {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--gold);
  color: var(--forest);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.3s;
}
.nl-form button:hover { background: #c49a38; }

/* ── Final CTA ── */
.final {
  padding: 148px 52px;
  background: var(--parchment);
  text-align: center;
}

.final h2 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 20px;
}

.final .body-text {
  max-width: 440px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ── Closing Quote ── */
.end-quote {
  padding: 64px 52px;
  background: var(--white);
  text-align: center;
}

.end-quote blockquote {
  font-family: var(--heading);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  color: var(--slate);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  padding: 64px 52px 40px;
}

.ft-top {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ft-brand .wordmark-the { color: var(--stone); }
.ft-brand .wordmark-wild { color: var(--parchment); }
.ft-brand .wordmark-rest { color: var(--stone); }

.ft-brand .tagline {
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(var(--sr), 0.5);
  margin-top: 8px;
}

.ft-cols {
  display: flex;
  gap: 56px;
}

.ft-col h4 {
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}

.ft-col a {
  display: block;
  font-size: 0.78rem;
  color: rgba(var(--sr), 0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.ft-col a:hover { color: var(--gold); }

.ft-col a.ext::after {
  content: '\2197';
  font-size: 0.65em;
  margin-left: 3px;
  opacity: 0.5;
}

.ft-bottom {
  max-width: 1100px;
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--sr), 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0;
}

.ft-bottom p, .ft-bottom a {
  font-size: 0.7rem;
  color: var(--slate);
  text-decoration: none;
}
.ft-bottom a:hover { color: var(--gold); }

.ft-eco { display: flex; gap: 20px; }

/* chriswgreene.com author footer uses .ft-trademarks (inline, wraps to its own row);
   the legal sites use .ft-legal (standalone centered line). Both kept so every
   footer renders as currently deployed. */
.ft-trademarks {
  flex-basis: 100%;
  opacity: 0.6;
  margin-top: 10px;
  line-height: 1.6;
}

.ft-legal {
  max-width: 1100px;
  margin: 16px auto 0;
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--slate);
  opacity: 0.72;
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .ft-cols { gap: 32px; }
}

/* Collapse to the mobile menu before the full nav (6 items + gold CTA) crowds */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav { padding: 22px 32px; }
  .nav.solid { padding: 14px 32px; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav { padding: 20px 24px; }
  .nav.solid { padding: 14px 24px; }
  .nav-links { display: none; }
  .burger { display: flex; }

  .hero-content { padding: 0 24px 64px; }

  .split { grid-template-columns: 1fr; }
  .split-photo { min-height: 50vh; }
  .split-text { padding: 64px 24px; }

  .prose-section { padding: 88px 24px; }

  .cards-row { grid-template-columns: 1fr; }

  .interlude { height: 50vh; }

  .newsletter { padding: 64px 24px; }
  .nl-form {
    flex-direction: column;
    max-width: 100%;
  }
  .nl-form input { border-right: 1px solid rgba(var(--sr), 0.2); }

  .final { padding: 80px 24px; }

  .footer { padding: 48px 24px 32px; }
  .ft-top { flex-direction: column; gap: 28px; }
  .ft-cols { flex-direction: column; gap: 24px; }
  .ft-bottom { flex-direction: column; gap: 12px; }
  .ft-eco { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════════════════════════
   DARK MODE — follows the OS (prefers-color-scheme)
   The light-first aesthetic is the default and is left
   untouched. Dark mode remaps surface/ink tokens so every
   token-driven section flips automatically, then patches
   the dark-first components that intentionally use a light
   token as text (heroes, gold buttons, dark CTAs, footer).
   ═══════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    /* Surfaces darken (were parchment / white backgrounds) */
    --parchment: #15241F;   /* page + light-section background */
    --white:     #1E322B;   /* raised cards / alternating sections */
    --wr: 30, 50, 43;

    /* Ink lightens (were forest headings / near-black body text) */
    --forest: #ECE3D4;      /* headings, links, accents sitting on surfaces */
    --slate:  #B9B1A4;      /* muted body text */
    --dark:   #E6DFD3;      /* primary body / lead text */

    /* Deliberately kept:
       --pr  (parchment rgb) stays LIGHT — it carries text-with-opacity on
             dark heroes and the transparent nav, which must stay light.
       --fr  (forest rgb) stays DARK — it tints the photo scrims over heroes.
       --gold / --stone / --sr unchanged — accent + muted-light already read
             correctly on dark. */
  }

  /* —— Dark-first bands declared via INLINE style (background:var(--forest|dark)) ——
     Re-scope the tokens to dark-band values on the element itself, so the band
     AND its children render dark-with-light-text instead of inverting to a light
     panel. Custom properties inherit, so no per-child patching is needed. */
  [style*="background: var(--forest)"],
  [style*="background:var(--forest)"],
  [style*="background: var(--dark)"],
  [style*="background:var(--dark)"] {
    --forest: #0F1D18;  --dark: #0B1512;
    --parchment: #ECE3D4; --pr: 236, 227, 212;
    --white: #14201C;   --slate: #B9B1A4;
  }

  /* —— Nav: scrolled/solid state needs a dark bar (pr text stays light) —— */
  .nav.solid {
    background: rgba(15, 29, 24, 0.92);
    border-bottom: 1px solid rgba(236, 227, 212, 0.10);
  }
  .nav.solid .nav-links.show { background: rgba(15, 29, 24, 0.97); }
  .nav-links a:hover { color: #ECE3D4; }
  .burger span { background: #ECE3D4; }  /* transparent-state burger over dark hero */

  /* —— Hero headline uses --white (now a dark surface); force it light —— */
  .hero h1 { color: #F3ECE0; }

  /* —— Gold buttons keep dark ink on the gold fill —— */
  .btn-gold,
  .nav-links .cta-link,
  .nav.solid .nav-links .cta-link,
  .nl-form button { color: #16241F; }
  .btn-gold:hover,
  .nav-links .cta-link:hover { color: #16241F; }

  /* —— Inverse / dark-first bands: keep a dark bg, light ink —— */
  .newsletter { background: #0F1D18; }
  .newsletter h2 { color: #ECE3D4; }
  .nl-form input { color: #ECE3D4; }

  .topo-break { background: #0F1D18; }
  .topo-break blockquote { color: #ECE3D4; }

  .split-text.on-dark { background: #0F1D18; }
  .split-text.on-dark h2,
  .split-text.on-dark .accent { color: #ECE3D4; }
  .split-text-dark blockquote,
  .split-text-dark h2 { color: #ECE3D4; }

  /* —— btn-dark was forest bg + parchment text; becomes a raised dark chip —— */
  .btn-dark {
    background: #25382F;
    color: #ECE3D4;
    border: 1px solid rgba(212, 168, 67, 0.35);
  }
  .btn-dark:hover { background: #2E443A; }

  /* —— Footer stays dark; the wild-mark was parchment (now a dark surface) —— */
  .footer { background: #0C1714; }
  .footer .ft-brand .wordmark-wild { color: #ECE3D4; }
  .ft-bottom { border-top-color: rgba(236, 227, 212, 0.08); }
}

/* ── Accessibility (added 2026-06-21: skip-link, focus ring, reduced motion) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--forest, #1A3A3A);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold, #D4A843);
  outline-offset: 2px;
}

/* The mobile menu toggle is a <button>; strip default chrome, keep .burger layout. */
button.burger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Scroll-reveal elements must stay visible without their fade and transform. */
  .rv { opacity: 1 !important; transform: none !important; }
}

