:root {
  --green-deep: #1d2e1c;
  --green-darker: #162415;
  --sage: #c7cdb6;
  --sage-block: #a8b09a;
  --tan: #b9a88a;
  --cream: #f4f1e8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --nav-height: 3.75rem;
  --focus-ring: 2px solid var(--tan);
}

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

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

body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--green-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- HEADER / NAV (mobile-first) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(29, 46, 28, 0.96);
  border-bottom: 1px solid rgba(185, 168, 138, 0.12);
  backdrop-filter: blur(6px);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 0 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.site-logo {
  font-family: var(--script);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  color: var(--sage);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(185, 168, 138, 0.25);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  color: var(--cream);
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  top: calc(var(--nav-height) + env(safe-area-inset-top, 0));
  background: rgba(22, 36, 21, 0.98);
  padding: 1.5rem 1.25rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.site-nav.is-open {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(185, 168, 138, 0.12);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--tan);
  background: rgba(185, 168, 138, 0.06);
}

/* Tablet and up — horizontal nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1.5rem;
  }

  .nav-list a {
    min-height: 2.75rem;
    padding: 0.5rem 0.25rem;
    border-bottom: none;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
  }

  .header-inner {
    padding: 0 2rem;
  }
}

/* ---------- LAYOUT ---------- */
section {
  padding: 4rem 1.25rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.wrap {
  width: 100%;
  max-width: 61.25rem;
  margin: 0 auto;
}

.wrap-wide {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
}

.prose {
  max-width: 65ch;
}

@media (min-width: 768px) {
  section { padding: 6rem 1.5rem; }
}

/* ---------- SHARED COMPONENTS ---------- */
.script-heading,
.section-script {
  font-family: var(--script);
  font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
  line-height: 1.15;
}

.label-caps {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
  min-height: 3rem;
  padding: 0.875rem 2rem;
  border: 1px solid var(--tan);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: var(--tan);
  color: var(--green-deep);
}

footer {
  text-align: center;
  padding: 3rem 1.25rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
  background: var(--green-darker);
  border-top: 1px solid rgba(185, 168, 138, 0.12);
}

footer .names {
  font-family: var(--script);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
  color: var(--sage);
}

footer .tagline {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.65;
}

footer a {
  color: var(--tan);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

footer a:hover { text-decoration: underline; }
