/* =========================================
   RESTORING STEHEKIN — Stylesheet
   Editorial / Long-form journalism aesthetic
   Forest tones, serif typography, documentary
   ========================================= */

:root {
  --forest:      #1A4731;
  --forest-dark: #0D2A1E;
  --forest-mid:  #2D6A4F;
  --gold:        #B8860B;
  --gold-light:  #D4A017;
  --cream:       #F5F0E8;
  --cream-dark:  #EDE5D5;
  --ink:         #1A1A1A;
  --ink-mid:     #3A3A3A;
  --ink-light:   #6B6B6B;
  --rule:        #C8BDA8;
  --white:       #FEFCF8;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- NAV ---- */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--forest-dark);
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 2rem;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: #fff; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  color: #B8C4B0;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--forest-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0 1rem;
}
.nav-mobile a {
  color: #B8C4B0;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  padding: 0.6rem 2rem;
  letter-spacing: 0.05em;
}
.nav-mobile a:hover { color: #fff; }
.nav-mobile.open { display: flex; }

/* ---- PAGES ---- */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 56px;
  animation: fadeIn 0.3s ease;
}
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(45,106,79,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184,134,11,0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%230D2A1E'/%3E%3Crect width='1' height='1' fill='%23162F22' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #7A9B8A;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero-intro {
  font-size: 1.05rem;
  color: #C8D5C0;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-cta button {
  background: var(--gold);
  color: var(--forest-dark);
  border: none;
  padding: 0.8rem 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.hero-cta button:hover { background: var(--gold-light); transform: translateY(-1px); }

.hero-map-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.5rem 2rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #5A7A6A;
  text-transform: uppercase;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- HOME PART CARDS ---- */
.home-parts {
  background: var(--white);
  padding: 4rem 2rem;
  border-top: 1px solid var(--rule);
}

.home-parts-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.part-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.part-card:hover { background: var(--cream); }

.part-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest-mid);
  line-height: 1;
  opacity: 0.3;
}

.part-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.part-card-body p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

.part-card-cta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--forest-mid);
  border-top: 1px solid var(--rule);
}

/* ---- HOME QUOTE ---- */
.home-quote {
  background: var(--forest);
  padding: 4rem 2rem;
  text-align: center;
}
.home-quote blockquote {
  max-width: 640px;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
}
.home-quote cite {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

/* ---- ARTICLE HEADER ---- */
.article-header {
  background: var(--forest-dark);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.article-part-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto;
}

.article-sub {
  margin-top: 0.75rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-style: italic;
  color: #7A9B8A;
}

/* ---- ARTICLE BODY ---- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rule);
  line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-mid);
  margin: 0 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.4rem;
  font-size: 1.0rem;
  color: var(--ink-mid);
  line-height: 1.85;
}

/* ---- CALLOUT STAT ---- */
.callout-stat {
  background: var(--forest-dark);
  color: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 2px 2px 0;
}
.stat-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout-stat p {
  color: #C8D5C0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- PULLQUOTE ---- */
.pullquote {
  border-left: 4px solid var(--forest-mid);
  margin: 2.5rem 0 2.5rem -1.5rem;
  padding: 0.5rem 0 0.5rem 1.75rem;
}
@media (max-width: 640px) { .pullquote { margin-left: 0; } }

.pullquote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.pullquote cite {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

/* ---- LEGAL SUBSECTIONS ---- */
.legal-subsection {
  background: var(--cream-dark);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.75rem 1rem;
  margin: 2rem 0;
  border-radius: 2px;
}
.legal-subsection.highlight-legal {
  background: #EBF0E6;
  border-color: var(--forest-mid);
  border-left-width: 4px;
}

/* ---- DOC QUOTE ---- */
.doc-quote {
  background: var(--forest-dark);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.25rem;
  border-radius: 2px;
}
.doc-quote-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.doc-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.0rem;
  color: var(--cream);
  line-height: 1.7;
  margin: 0;
}

/* ---- ON RECORD BOX ---- */
.on-record-box {
  background: var(--cream-dark);
  border: 2px solid var(--forest);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  position: relative;
}
.on-record-label {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  background: var(--cream);
  padding: 0 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--forest);
  text-transform: uppercase;
}
.on-record-box p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

/* ---- TIMELINE BOX ---- */
.timeline-box {
  background: var(--ink);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 2px;
}
.timeline-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: start;
}
.tl-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.4;
}
.tl-text {
  font-size: 0.875rem;
  color: #B8C4B0;
  line-height: 1.7;
}

/* ---- STAT COMPARISON ---- */
.stat-comparison {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--forest);
  color: var(--cream);
  padding: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #8AAA98;
  text-transform: uppercase;
  margin-top: 0.25rem;
  max-width: 140px;
  line-height: 1.5;
}
.stat-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.fade-stat .stat-number { opacity: 0.5; }
.stat-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--forest-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---- SERIES GRID ---- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0 3rem;
}
.series-card {
  background: var(--white);
  padding: 2rem 1.75rem;
}
.series-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.series-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.25rem;
}
.series-subtitle {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.series-card p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin: 0;
}

/* ---- CLOSING QUOTE ---- */
.closing-quote {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--rule);
}
.closing-quote blockquote {
  max-width: 580px;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}
.closing-quote cite {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

/* ---- NAV BETWEEN ---- */
.nav-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-prev, .nav-next {
  background: none;
  border: 1px solid var(--rule);
  color: var(--forest-mid);
  padding: 0.6rem 1.2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nav-prev:hover, .nav-next:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .hero-title { font-size: 3.2rem; }
  .article-body { padding: 2.5rem 1.25rem 3rem; }
  .article-header { padding: 3rem 1.25rem 2.5rem; }

  .pullquote { margin-left: 0; }
  .stat-comparison { flex-direction: column; gap: 1rem; }
  .home-parts { padding: 3rem 1.25rem; }

  .nav-between {
    flex-direction: column;
    text-align: center;
  }
  .nav-prev, .nav-next { width: 100%; }
}
