/* ── ROOTS ── */
:root {
  --bg:          #0e1a10;
  --bg2:         #131f15;
  --bg3:         #19261b;
  --forest:      #4a8c58;
  --canopy:      #5a9e68;
  --fern:        #6db87c;
  --sage:        #8fc49a;
  --mist:        #4a6650;
  --amber:       #d4941e;
  --gold:        #e0a830;
  --clay:        #c06040;
  --substack:    #f26522;
  --twitter:     #1da1f2;
  --linkedin:    #0077b5;
  --text:        #e8e4d8;
  --text-dim:    #b8b49a;
  --text-muted:  #7a7860;
  --border:      rgba(74, 140, 88, 0.18);
  --border-dim:  rgba(74, 140, 88, 0.09);
  --glow-fern:   rgba(74, 140, 88, 0.12);
  --glow-amber:  rgba(192, 120, 32, 0.12);
  --white:       #1a2a1c;
  --nav-bg:      rgba(14, 26, 16, 0.93);
}
[data-theme="light"] {
  --bg:          #f4efe3;
  --bg2:         #ece7d6;
  --bg3:         #e3dcc8;
  --forest:      #1c3a20;
  --canopy:      #2e5934;
  --fern:        #4a8c58;
  --sage:        #7aad88;
  --mist:        #b2ccba;
  --amber:       #c07820;
  --gold:        #d4941e;
  --clay:        #7a3a18;
  --substack:    #f26522;
  --twitter:     #1da1f2;
  --linkedin:    #0077b5;
  --text:        #1a1a12;
  --text-dim:    #484836;
  --text-muted:  #787862;
  --border:      rgba(28, 58, 32, 0.14);
  --border-dim:  rgba(28, 58, 32, 0.07);
  --glow-fern:   rgba(74, 140, 88, 0.09);
  --glow-amber:  rgba(192, 120, 32, 0.09);
  --white:       #faf7ef;
  --nav-bg:      rgba(244, 239, 227, 0.93);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden; opacity: 1;
}
.bg-canvas svg { width: 100%; height: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 66px; width: auto; }
.nav-logo .logo-light { display: none; }
[data-theme="light"] .nav-logo .logo-dark  { display: none; }
[data-theme="light"] .nav-logo .logo-light { display: block; }
.nav-wordmark {
  font-family: 'Cormorant', serif; font-size: 15px; font-weight: 600;
  color: var(--forest); letter-spacing: 0.04em; white-space: nowrap;
  text-decoration: none;
}
.nav-logo a { text-decoration: none; }
.nav-sep { width: 1px; height: 22px; background: var(--border); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-links a.active:not(.nav-cta) {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.nav-links .nav-cta {
  background: var(--forest); color: var(--bg) !important;
  padding: 7px 18px; border-radius: 2px;
}
.nav-links .nav-cta:hover { background: var(--canopy); }

/* ── PAGE WRAPPER ── */
.page { position: relative; z-index: 1; padding-top: 62px; }

/* ── CALLOUT ── */
.callout {
  border-left: 3px solid var(--fern);
  background: var(--glow-fern);
  padding: 22px 26px; margin: 32px 0; border-radius: 0 3px 3px 0;
}
.callout.amber { border-left-color: var(--amber); background: var(--glow-amber); }
.callout p { margin: 0; font-size: 16px; font-style: italic; color: var(--text-dim); line-height: 1.75; }
.callout strong { color: var(--forest); font-style: normal; }
.callout.amber strong { color: var(--clay); }

/* ── FOOTER ── */
footer {
  background: var(--forest);
  padding: 64px 60px 36px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand {
  font-family: 'Cormorant', serif; font-size: 28px; font-weight: 600;
  color: var(--bg); margin-bottom: 8px; letter-spacing: -0.01em;
}
.footer-tag { font-size: 14px; color: rgba(244,239,227,0.45); max-width: 300px; line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-head { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,239,227,0.3); margin-bottom: 4px; }
.footer-nav a { font-size: 14px; color: rgba(244,239,227,0.55); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--sage); }
.footer-bottom {
  font-size: 12px; color: rgba(244,239,227,0.28);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none; cursor: pointer;
  padding: 5px; border-radius: 2px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-dim);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── THEME TOGGLE ── */
.nav-theme-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.nav-theme-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  footer { padding: 48px 30px 30px; }
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto; min-height: 62px;
    align-items: center;
  }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 12px 0 16px;
    border-top: 1px solid var(--border);
    list-style: none;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 11px 4px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-dim);
  }
  .nav-links li:nth-last-child(2) a { border-bottom: none; }
  .nav-links .nav-cta {
    display: inline-block;
    width: auto;
    margin-top: 10px;
    padding: 9px 20px;
    border-bottom: none;
  }
  .nav-links li:last-child {
    padding-top: 10px;
  }
  .nav-theme-btn { width: 100%; text-align: left; }
}
