/* ============================================================
   JOURNEY TO POST-TRAUMATIC STRENGTH — field manual design system
   Olive drab canvas · stencil display · cream paper panels
   ============================================================ */
:root {
  --olive: #4f5038;
  --olive-deep: #3a3b29;
  --olive-dark: #2c2d20;
  --cream: #eae3cc;
  --cream-dim: #ded5b8;
  --ink: #16150f;
  --ink-soft: #2e2c22;
  --line: #16150f;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--olive);
  background-image: var(--noise);
  color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.stencil, h1, h2.stencil-head, .fm-code, .motif {
  font-family: "Saira Stencil One", "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: var(--cream);
  text-transform: uppercase;
}

h2.stencil-head {
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 0.6rem;
}

.tracked {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 700;
  font-size: 0.8rem;
}

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* thin black rules — the cover's signature divider */
.rule {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 1.6rem 0;
}
.rule.light { border-top-color: var(--cream); opacity: 0.35; }
.rule.thin { border-top-width: 1px; }

/* ============ header / nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--olive-dark);
  background-image: var(--noise);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 1.25rem; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: "Saira Stencil One", sans-serif;
  font-size: 1.05rem; letter-spacing: 0.06em; color: var(--cream);
  text-transform: uppercase; line-height: 1.1;
}
.brand-name small { display: block; font-family: "Inter", sans-serif; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--cream-dim); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a.nav-link {
  text-decoration: none; color: var(--cream); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
}
.main-nav a.nav-link:hover { border-color: var(--cream); }
.main-nav a.nav-link.active { background: var(--cream); color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
  padding: 0.85rem 1.6rem; border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream);
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }

.nav-toggle { display: none; background: none; border: 2px solid var(--cream); color: var(--cream);
  font-size: 1.2rem; padding: 0.3rem 0.7rem; cursor: pointer; }

/* ============ hero ============ */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; position: relative; }
.hero .fm-code { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .subtitle { margin-bottom: 2rem; color: var(--cream-dim); }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-strap {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(234,227,204,0.3);
  font-style: italic; color: var(--cream-dim); max-width: 640px; margin-left: auto; margin-right: auto;
}

/* field-manual code badge */
.fm-code {
  display: inline-block; border: 2px solid var(--cream); color: var(--cream);
  padding: 0.35rem 0.9rem; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.fm-code.on-cream { border-color: var(--ink); color: var(--ink); }

/* ============ cream paper panels ============ */
.panel {
  background-color: var(--cream);
  background-image: var(--noise);
  color: var(--ink);
  padding: 2.6rem clamp(1.4rem, 5vw, 3.4rem);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}
.panel h2, .panel h3 { color: var(--ink); }
.panel .rule { border-top-color: var(--line); }

.section { padding: 3.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head .tracked { color: var(--cream-dim); display: block; margin-bottom: 0.5rem; }

/* ============ cards ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.card {
  background-color: var(--cream); background-image: var(--noise); color: var(--ink);
  border: 2px solid var(--line); padding: 1.6rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.12s ease;
}
.card:hover { transform: translateY(-3px); }
.card .fm-code { align-self: flex-start; font-size: 0.72rem; padding: 0.25rem 0.6rem; }
.card h3 { font-size: 1.25rem; line-height: 1.3; }
.card p { font-size: 0.95rem; color: var(--ink-soft); flex: 1; }
.card .go { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }

/* ============ session / article typography ============ */
.article { max-width: 760px; margin: 0 auto; }
.article .lead { font-size: 1.2rem; font-weight: 600; }
.article p { margin-bottom: 1.15rem; }
.article h2 {
  font-family: "Saira Stencil One", sans-serif; text-transform: uppercase;
  font-size: 1.5rem; margin: 2.2rem 0 0.9rem; padding-top: 1.4rem;
  border-top: 2px solid var(--line);
}
.article h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.article ul, .article ol { margin: 0 0 1.2rem 1.4rem; }
.article li { margin-bottom: 0.5rem; }

blockquote.pull {
  border-left: 5px solid var(--ink);
  margin: 1.8rem 0; padding: 1rem 1.4rem;
  font-size: 1.25rem; font-weight: 700; line-height: 1.45;
  background: rgba(22,21,15,0.06);
}

.looking-ahead {
  border: 2px dashed var(--ink); padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.looking-ahead h3 { margin-top: 0 !important; }

.session-pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--line);
}
.session-pager a { text-decoration: none; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.85rem; }
.session-pager a:hover { text-decoration: underline; }

/* ============ book / about layout ============ */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 2.6rem; align-items: start; }
.split img.cover {
  width: 100%; border: 3px solid var(--line);
  box-shadow: 8px 8px 0 rgba(22,21,15,0.35);
}
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.photo-row img { width: 100%; height: 300px; object-fit: cover; border: 2px solid var(--line); }

.stat-band { display: flex; gap: 2.4rem; flex-wrap: wrap; margin: 2rem 0; }
.stat .num { font-family: "Saira Stencil One", sans-serif; font-size: 2.4rem; color: var(--cream); }
.stat .lbl { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--cream-dim); }

/* ============ CTA bands ============ */
.cta-band {
  background-color: var(--olive-deep); background-image: var(--noise);
  border-top: 3px solid var(--line); border-bottom: 3px solid var(--line);
  padding: 3.2rem 0; text-align: center;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--cream-dim); max-width: 620px; margin: 0 auto 1.6rem; }

/* ============ footer ============ */
.site-footer {
  background-color: var(--olive-dark); background-image: var(--noise);
  border-top: 3px solid var(--line); padding: 3rem 0 2rem; margin-top: 0;
}
.motif {
  text-align: center; font-size: clamp(1.1rem, 3vw, 1.7rem); text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--cream); margin-bottom: 1.8rem;
}
.motif span { margin: 0 0.6rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; margin-bottom: 2rem; }
.footer-grid h4 { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; color: var(--cream-dim); margin-bottom: 0.8rem; }
.footer-grid a { display: block; color: var(--cream); text-decoration: none; font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer-grid a:hover { text-decoration: underline; }
.footer-base {
  border-top: 1px solid rgba(234,227,204,0.3); padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--cream-dim);
}
.disclaimer { font-size: 0.78rem; color: var(--cream-dim); max-width: 720px; margin: 0 auto 1.6rem; text-align: center; }

/* ============ responsive ============ */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split img.cover { max-width: 300px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--olive-dark); border-bottom: 2px solid var(--line); padding: 0.6rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 0.8rem 1rem; border-bottom: 1px solid rgba(234,227,204,0.15); }
}

/* ============ join gate modal (group page disclaimer) ============ */
.join-modal[hidden] { display: none; }
.join-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.join-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 9, 0.74); }
.join-modal-card { position: relative; width: 100%; max-width: 580px; max-height: 90vh; overflow: auto;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); padding: 1.8rem; }
.join-modal-card .fm-code { color: var(--olive-deep); }
.join-modal-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.join-modal-card .zoom-details { font-size: 0.85rem; color: var(--ink-soft); }

/* inline text link styled button (patient link) */
.textlink { background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.textlink:hover { opacity: 0.75; }

/* ============ follow bar (top strip) ============ */
.follow-bar {
  background: var(--olive-dark);
  background-image: var(--noise);
  border-bottom: 1px solid rgba(234,227,204,.18);
}
.follow-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: .4rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .35rem 1.1rem;
}
.follow-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(234,227,204,.55);
}
.follow-bar a {
  display: inline-flex; align-items: center; gap: .42rem;
  color: var(--cream); text-decoration: none;
  font-size: .78rem; font-weight: 600;
  padding: .15rem .1rem;
}
.follow-bar a:hover { color: #fff; text-decoration: underline; }
.follow-bar svg { width: 15px; height: 15px; flex: none; }
