/* GrowKnown | Rooted Signal design system, Pine & Ember palette | site.css
   Reference with cache param: /css/site.css?v=2026-08-08d
   Bump the param in the SAME commit as any change to this file.
   Accent discipline: ember carries action (CTAs, eyebrows on pine,
   stage labels, the grade line); green stays structural (pine bands,
   wordmark, links on light, diagram frames). New Growth lime survives
   only in the footer wordmark. */

/* ---------- Forced light mode, layer 2 of 3 (layer 1 = meta tag, layer 3 = media query below) ---------- */
:root { color-scheme: only light; }

/* ---------- Tokens ---------- */
:root {
  --pine:        #12291C;
  --pine-90:     rgba(18,41,28,.92);
  --field:       #2E6B4E;
  --growth:      #A6D954;
  --growth-700:  #4E7A1F;
  --ember:       #D96C2F;
  --ember-hov:   #E5813F;
  --ember-700:   #A64E1E;
  --ember-light: #E8955C;
  --paper:       #FAFAF6;
  --paper-2:     #F2F1EA;
  --stone:       #7B7266;
  --light-stone: #CFC9BF;
  --on-pine:     #EAF2E4;   /* body text on pine bands */
  --on-pine-dim: #BFD2C2;   /* secondary text on pine bands */
  --rule:        #E2DFD5;
  --max:         1080px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--pine);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.65;
}
main, section, footer { background: var(--paper); } /* explicit backgrounds: forced-dark lesson */
img, svg { max-width: 100%; height: auto; display: block; }

/* Layer 3 of 3: if a browser force-darkens anyway, pin the light values */
@media (prefers-color-scheme: dark) {
  body, main, section { background: var(--paper); color: var(--pine); }
}

/* ---------- Type ---------- */
h1, h2, h3, .mark, .eyebrow, .btn, nav {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}
h1 { font-weight: 800; font-size: 2.6rem; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .55em; }
h2 { font-weight: 800; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h3 { font-weight: 700; font-size: 1.15rem; margin: 0 0 .45em; }
p  { margin: 0 0 1.05em; }
.lede { font-size: 1.22rem; line-height: 1.6; }
.fine { font-size: .9rem; color: var(--stone); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--field);
  margin-bottom: 1rem;
}
.pine .eyebrow { color: var(--ember-light); }

a { color: var(--growth-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--field); }
:focus-visible { outline: 3px solid var(--ember-700); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.pine { background: var(--pine); color: var(--on-pine); }
.pine h1, .pine h2, .pine h3 { color: #fff; }
.pine p { color: var(--on-pine); }
.pine .dim { color: var(--on-pine-dim); }
.pine a { color: var(--ember-light); }
.alt { background: var(--paper-2); }
section.alt { background: var(--paper-2); }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) {
  .g4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .g2, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 26px 26px 20px;
}
.pine .card { background: var(--pine-90); border-color: rgba(255,255,255,.18); }
.pine .card p { color: var(--on-pine); }

/* ---------- Buttons (a.btn out-specifies .pine a: specificity lesson) ---------- */
a.btn, button.btn {
  display: inline-block; border-radius: 8px; padding: 14px 26px;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; line-height: 1.2;
}
a.btn-primary, button.btn-primary { background: var(--ember); color: var(--pine); border-color: var(--ember); }
a.btn-primary:hover, button.btn-primary:hover { background: var(--ember-hov); color: var(--pine); }
a.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
a.btn-ghost:hover { background: var(--pine); color: #fff; }
.pine a.btn-ghost { color: #fff; border-color: var(--on-pine-dim); }
.pine a.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.cta-micro { font-size: .92rem; color: var(--on-pine-dim); margin-top: .8rem; }

/* ---------- Header + CSS-only nav ---------- */
header.site {
  background: var(--paper); color: var(--pine);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(18,41,28,.05);
}
header.site .bar {
  max-width: var(--max); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.mark {
  font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em;
  color: var(--pine); text-decoration: none;
}
.mark .known { color: var(--field); }
.mark:hover { color: var(--pine); }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a {
  color: var(--pine); text-decoration: none; font-weight: 700; font-size: .95rem;
}
nav.main a:hover { color: var(--field); }
nav.main a.btn { padding: 10px 18px; }
/* Specificity guard: nav.main a (0,1,2) outranks a.btn-primary (0,1,1),
   the same cascade class as RDU's .pine a lesson. Keep the button's dark
   text explicit at nav scope. */
nav.main a.btn-primary { color: var(--pine); }
nav.main a.btn-primary:hover { color: var(--pine); }
.navtoggle, .navtoggle-label { display: none; }

@media (max-width: 760px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 10px 22px 20px; gap: 16px; border-bottom: 1px solid var(--rule);
    box-shadow: 0 10px 18px rgba(18,41,28,.08);
  }
  .navtoggle:checked ~ nav.main { display: flex; }
  .navtoggle-label {
    display: block; cursor: pointer; padding: 6px 4px;
  }
  .navtoggle-label span {
    display: block; width: 26px; height: 3px; background: var(--pine);
    margin: 5px 0; border-radius: 2px;
  }
  h1 { font-size: 2rem; }
  .lede { font-size: 1.1rem; }
  section { padding: 48px 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; }
.hero .canon { font-size: 1.05rem; line-height: 1.6; color: var(--on-pine); }
@media (max-width: 760px) {
  .hero { padding: 48px 0 44px; }
  .hero .canon { font-size: .98rem; }
}

/* ---------- Grade line figure ---------- */
.gradefig { margin: 2rem 0 0; }
.g1-desktop { display: block; }
.g1-mobile  { display: none; }
@media (max-width: 760px) {
  .g1-desktop { display: none; }
  .g1-mobile  { display: block; }
}

/* ---------- Two camps ---------- */
.camps .card h3 { color: var(--field); }
.pine .camps-first h3 { color: var(--ember-light); }

/* ---------- Steps ---------- */
.step-num {
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: .9rem;
  color: var(--ember-700); letter-spacing: .1em;
}

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--rule); padding: 14px 0;
}
details.faq summary {
  font-family: "Manrope", sans-serif; font-weight: 700; cursor: pointer;
  font-size: 1.05rem; list-style-position: outside;
}
details.faq[open] summary { color: var(--field); }
details.faq p { margin: .8em 0 0; }

/* ---------- Forms ---------- */
form.audit { max-width: 560px; }
form.audit label {
  display: block; font-family: "Manrope", sans-serif; font-weight: 700;
  font-size: .92rem; margin: 18px 0 6px;
}
form.audit input, form.audit select, form.audit textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--light-stone); border-radius: 8px;
  background: #fff; color: var(--pine);
}
form.audit input:focus, form.audit select:focus, form.audit textarea:focus {
  border-color: var(--field); outline: none;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 1.8em; }
.article img { margin: 1.4em 0; border-radius: 8px; }
.byline { color: var(--stone); font-size: .95rem; margin-bottom: 2rem; }
.post-card {
  display: block; text-decoration: none; color: var(--pine);
  border: 1px solid var(--rule); border-radius: 10px; padding: 24px;
  background: #fff;
}
.post-card:hover { border-color: var(--field); color: var(--pine); }
.post-card h3 { color: var(--field); }

/* ---------- Footer ---------- */
footer.site { background: var(--pine); color: var(--on-pine-dim); padding: 44px 0; font-size: .95rem; }
footer.site a { color: var(--on-pine); }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site .mark { font-size: 1.3rem; color: #fff; }
footer.site .mark:hover { color: #fff; }
footer.site .mark .known { color: var(--growth); }
