:root {
  /* ── Core surfaces ───────────────────────────────────────────── */
  --cream: #dce8d5;           /* richer sage — card/panel backgrounds */
  --warm-white: #f5f7f2;      /* crisp white with subtle green tint — page background */
 
  /* ── Ink / Borders  ──────────────────────────────────────────────── */
  --ink: #000;             /* deep forest — primary text (richer than before) */
  --border: #c2d4bb;          /* sage mist — slightly richer */
 
  /* ── Extended palette (used in component CSS) ────────────────── */
  --forest-deep: #1a2e28;     /* darkest — hover states, hero right panel */
  --forest-mid: #2d4a40;      /* primary accent alias */
  --forest-light: #52796f;    /* secondary accent alias */
  --leaf: #b5cba8;            /* highlight backgrounds */
  --stone: #7a9e8e;           /* icons, tags, neutral mid-green */

  /* ── Pastel Rainbow ────────────────────────────────────── */
  --pastelred:    #f1b3b3;
  --pastelpink:   #f7c5d2;
  --pastelorange: #f7c5a0;
  --pastelyellow: #f9e8a5; 
  --pastelgreen:  #b8e1c4; 
  --pastelblue:   #b0d7f5; 
  --pastelpurple: #d1c1f0; 

  /* ── Typography ──────────────────────────────────────────────── */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

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

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--warm-white);
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Home page needs to scroll — unlock body */
body:has(#page-home) {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

nav {
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 58px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest-deep);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  gap: 0;
  height: 100%;
  list-style: none;
}

.nav-tabs li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-tabs a,
.nav-tabs button {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--forest-mid);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.nav-tabs a:hover,
.nav-tabs button:hover {
  color: var(--forest-light);
}

.nav-tabs a.active,
.nav-tabs button.active {
  color: var(--forest-mid);
  border-bottom-color: var(--forest-mid);
}

.pages {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.page-standalone {
  position: relative;
  inset: auto;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  opacity: 1;
  pointer-events: all;
  transform: none;
  transition: none;
}

.inner-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--forest-mid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--forest-mid);
}

.section-title {
  margin-bottom: 40px;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.page::-webkit-scrollbar {
  width: 4px;
}

.page::-webkit-scrollbar-track {
  background: transparent;
}

.page::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: var(--stone);
}

@media (max-width: 900px) {
  nav {
    gap: 16px;
    padding: 0 20px;
  }

  .nav-tabs {
    overflow-x: auto;
  }

  .nav-tabs a,
  .nav-tabs button {
    padding: 0 12px;
    white-space: nowrap;
  }

  .inner-page {
    padding: 32px 20px;
  }
}
/* ── Mobile nav hamburger ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 8px 0 16px;
  box-shadow: 0 8px 24px rgba(47, 62, 70, 0.1);
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  padding: 12px 24px;
  color: var(--forest-mid);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--forest-mid);
  background: rgba(53, 79, 82, 0.06);
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-tabs { display: none; }
}