:root {
  --bg: #0c6c3e;
  --bg-alt: #0a5a32;
  --ink: #e8e8e8;
  --muted: #c8d8cc;
  --muted-light: #a0b8a6;
  --navy: #0c6c3e;
  --navy-light: #60ad45;
  --gold: #fadb24;
  --gold-light: #ffe44d;
  --gold-soft: #2a3a0a;
  --rust: #0c6c3e;
  --rust-light: #60ad45;
  --line: #1a7a4e;
  --line-light: #2a8a5e;
  --card-bg: #1a7a4e;
  --page-bg: #1a7a4e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── DOC LAYOUT ─── */
.doc-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.doc-section {
  background: var(--page-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.2);
  padding: 48px 44px 40px;
  margin: 28px 0;
  border-radius: 4px;
}
.section-body { max-width: 640px; margin: 0 auto; }
.section-body p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
}
.section-body p strong { color: var(--gold); }
.section-title {
  font: 700 1.55rem/1.2 'Playfair Display', serif;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  color: #eee;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rust);
}
.highlight-title { border-bottom-color: var(--gold); }
/* ─── COVER ─── */
.cover-section { text-align: center; padding: 64px 44px 56px; }
.cover-content { position: relative; }
.cover-logo {
  width: clamp(100px, 12vw, 160px);
  height: auto;
  display: block;
  margin: 0 auto 20px;
}
.cover-decoration {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
}
.cover-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.cover-content h1 {
  font: 800 clamp(2rem, 4vw, 3.6rem)/1 'Playfair Display', serif;
  letter-spacing: -.05em;
  margin: 0 0 16px;
  color: #eee;
}
.cover-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 30px;
}
.cover-meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.cover-meta span {
  padding: 8px 16px;
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
}
.cover-footer {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ─── TOC ─── */
.toc-list { margin-top: 8px; }
.toc-entry {
  padding: 6px 0;
  font-size: .84rem;
  color: var(--muted);
  border-bottom: 1px dotted var(--line-light);
}
.toc-entry.l1 { font-weight: 700; font-size: .9rem; padding-top: 10px; }
.toc-entry.l2 { padding-left: 20px; font-size: .8rem; }
.toc-entry span { color: var(--gold); margin-right: 6px; font-weight: 700; }

/* ─── GLOSSARY ─── */
.glossary-list p { font-size: .82rem; margin-bottom: 8px; line-height: 1.5; }
.glossary-list p strong { color: var(--navy); display: inline; }

/* ─── HIGHLIGHT SECTION ─── */
.highlight-section {
  border-left: 4px solid var(--gold);
  background: #1a3a1a;
}

/* ─── HYBRID SECTIONS ─── */
.hybrid-section { padding: 60px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}
.section-head p { max-width: 380px; color: var(--muted); margin: 0; font-size: .88rem; }
.wrap { width: min(1000px, calc(100% - 44px)); margin: 0 auto; }
h2 { font: 700 clamp(1.8rem, 3.5vw, 3rem)/.95 'Playfair Display', serif; letter-spacing: -.05em; margin: 0; color: #eee; }

/* ─── CONCEPTS ─── */
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.concept-card {
  padding: 28px 22px;
  background: var(--card-bg);
  border-top: 4px solid var(--gold);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.concept-card:nth-child(2) { border-top-color: var(--rust); }
.concept-card:nth-child(3) { border-top-color: var(--gold); }
.concept-num { font: 700 2.4rem/1 'Playfair Display', serif; color: var(--muted-light); letter-spacing: -.05em; }
.concept-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-light);
  margin: 6px 0 12px;
}
.concept-card h3 {
  font: 700 1.2rem/1.05 'Playfair Display', serif;
  letter-spacing: -.03em;
  margin: 0 0 10px;
}
.concept-card p { color: var(--muted); margin: 0; font-size: .84rem; }

/* ─── REFLECTION ─── */
.reflection { margin-top: 60px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reflection h2 { margin-bottom: 30px; }
.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reflection-item {
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
}
.reflection-item .q-num { font: 700 1.1rem 'Playfair Display', serif; color: var(--gold); display: block; margin-bottom: 10px; }
.reflection-item p { margin: 0; font-weight: 600; font-size: .9rem; }

/* ─── FOOTER ─── */
footer { padding: 56px 0 60px; background: var(--card-bg); border-top: 1px solid var(--line); }
footer h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.bibliography { display: grid; gap: 10px; max-width: 860px; }
.bibliography p { margin: 0; padding-left: 22px; text-indent: -22px; font-size: .82rem; color: var(--muted); }
.bibliography em { font-style: italic; }
.bibliography a { color: var(--gold); text-decoration: underline; }
.credit { margin-top: 28px; color: var(--muted); font-size: .74rem; }
.label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .65rem;
  font-weight: 500;
}

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

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 200;
}
.scroll-progress-bar { height: 100%; background: var(--gold); width: 0%; transition: width .1s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .doc-section { padding: 32px 20px 28px; margin: 16px 0; }
  .cover-section { padding: 48px 20px 40px; }
  .concept-grid { grid-template-columns: 1fr; }
  .reflection-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .doc-main { padding: 0 12px; }
  .doc-section { padding: 24px 14px 20px; margin: 12px 0; }
  .cover-section { padding: 36px 14px 32px; }
  .section-head { flex-direction: column; align-items: start; gap: 10px; }
  .section-head p { max-width: 100%; }
}
