/* Pathways to Betterment — shared stylesheet (content-review draft) */

:root{
  --ink:#16181A;
  --paper:#FAFAF8;
  --paper-2:#F1F0EA;
  --line:#DBD9D2;
  --route:#D9272B;
  --route-ink:#A81D20;
  --muted:#63665F;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#F2F1EC;
    --paper:#17191B;
    --paper-2:#1F2224;
    --line:#34373A;
    --route:#FF6259;
    --route-ink:#FF847D;
    --muted:#A4A69E;
  }
}
:root[data-theme="dark"]{
  --ink:#F2F1EC;
  --paper:#17191B;
  --paper-2:#1F2224;
  --line:#34373A;
  --route:#FF6259;
  --route-ink:#FF847D;
  --muted:#A4A69E;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;}
[hidden]{display:none !important;}

h1,h2,h3{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:560;
  line-height:1.12;
  margin:0;
  text-wrap:balance;
  color:var(--ink);
}
h1{font-size:clamp(2.1rem, 1.6rem + 2vw, 3rem);}
h2{font-size:clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); margin-bottom:.9rem;}
h3{font-size:1.05rem; font-weight:600; font-family:'IBM Plex Sans', sans-serif;}

p{margin:0 0 1.1rem 0; max-width:66ch;}
p:last-child{margin-bottom:0;}
a{color:var(--route);}
a:hover{color:var(--ink);}

.eyebrow{
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--route);
}
.muted{color:var(--muted);}

.wrap{
  max-width:880px;
  margin:0 auto;
  padding-inline:24px;
}

/* ---------- Header: single row (logo + nav together) ---------- */
.site-header{
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:880px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.header-inner a.brand{display:inline-flex; align-items:center; line-height:0;}
.brand-logo{
  height:56px;
  width:auto;
  display:block;
}
@media (max-width:680px){
  .brand-logo{height:42px;}
  .header-inner{padding:14px 24px;}
}
.nav-links{
  display:flex;
  gap:1.5rem;
  flex-wrap:wrap;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color:var(--ink);
  text-decoration:none;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav-links a:hover{color:var(--route);}
.nav-links a[aria-current="page"]{color:var(--route); border-bottom:1.5px solid var(--route); padding-bottom:2px;}

/* ---------- Hero ---------- */
.hero{padding:64px 0 40px;}
.hero .eyebrow{margin-bottom:14px; display:block;}
.hero h1{margin-bottom:18px;}
.hero .lede{font-size:1.15rem; color:var(--muted); max-width:56ch;}
.cta-row{display:flex; gap:14px; flex-wrap:wrap; margin-top:26px;}

/* ---------- Page-level route map background ---------- */
/* Each page sits inside a .page-frame; a full page-height/width route-map
   image lives behind the header/main/footer (route follows the real Hudson
   River corridor, kept within the open right-hand margin so it never
   competes with the text column). header/main/footer are re-stacked above
   it with position:relative + a z-index.
   The image itself is wrapped in a plain (non-replaced) div positioned
   top:0/bottom:0/left:0/right:0 -- a <img> given those same offsets directly
   would NOT stretch to fill an auto-height ancestor (CSS replaced-element
   sizing keeps its height derived from the intrinsic aspect ratio), so the
   div does the stretching and the img just fills the div at 100%/100%. */
.page-frame{position:relative;}
.page-vignette-wrap{
  position:absolute;
  top:0; bottom:0; left:0; right:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.page-vignette-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  /* The red route sits in the rightmost ~15% of every route-*.png (by
     design, clear of the text column). object-fit:cover on a page much
     taller than the image's native aspect ratio has to zoom in and crop
     horizontally to cover the height -- center-cropping chews into that
     right-hand margin and can crop the route out of frame entirely on a
     tall page.  Anchoring right keeps the crop window pinned to the edge
     the route actually lives on, at any page height. */
  object-position:right top;
  display:block;
}
.page-frame > .site-header,
.page-frame > main,
.page-frame > .site-footer{
  position:relative;
  z-index:1;
}
@media (max-width:640px){
  .page-vignette-wrap{display:none;}
}
/* The route images are baked light-mode assets -- dim and mute them in dark
   mode so they read as a subtle backdrop rather than a bright mismatched box. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .page-vignette-wrap img{opacity:.32; filter:brightness(.6) contrast(1.05);}
}
:root[data-theme="dark"] .page-vignette-wrap img{opacity:.32; filter:brightness(.6) contrast(1.05);}

.btn{
  display:inline-block;
  font-family:'IBM Plex Sans', sans-serif;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  text-decoration:none;
  padding:13px 22px;
  border:1.5px solid var(--ink);
  color:var(--ink);
}
.btn:hover{background:var(--ink); color:var(--paper);}
.btn.solid{background:var(--ink); color:var(--paper);}
.btn.solid:hover{background:transparent; color:var(--ink);}

/* ---------- Sections ---------- */
main{padding-bottom:80px;}
.section{padding:44px 0;}
.section + .section{border-top:1px solid var(--line);}
.section-head{margin-bottom:1.4rem;}

/* ---------- Card grid (three segments / value props) ---------- */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
  margin-top:8px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:20px;
  margin-top:8px;
}
@media (max-width:680px){
  .grid-3, .grid-2{grid-template-columns:1fr;}
}
.card{
  border:1px solid var(--line);
  padding:22px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:var(--paper-2);
}
.card h3{margin:0;}
.card p{font-size:.94rem; color:var(--muted); flex-grow:1;}
.card .go{
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  text-decoration:none;
}

/* ---------- Watch lists (How We Help) ---------- */
.watchlist h3{
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:.7rem;
}
.watchlist ul{margin:0; padding-left:1.1rem;}
.watchlist li{margin-bottom:.4rem; font-size:.96rem;}

/* ---------- 6C list ---------- */
.six-c{margin:1.2rem 0; padding:0; list-style:none; border-top:1px solid var(--line);}
.six-c li{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  align-items:baseline;
}
.six-c strong{font-family:'Fraunces', serif; font-weight:560; font-size:1.02rem;}
.six-c span{color:var(--muted); font-size:.95rem;}
@media (max-width:600px){
  .six-c li{grid-template-columns:1fr;}
}

/* ---------- Stage list (Pilot/Initial/Enduring) ---------- */
.stages{list-style:none; margin:1.2rem 0 0; padding:0; display:flex; flex-direction:column; gap:0;}
.stages li{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:18px;
  padding:20px 0;
  border-top:1px solid var(--line);
}
.stages li:last-child{border-bottom:1px solid var(--line);}
.stage-num{
  font-family:'IBM Plex Mono', 'Courier New', monospace;
  font-size:.78rem;
  color:var(--route);
  padding-top:.2rem;
}
.stages h3{margin-bottom:.35rem;}
.stages p{font-size:.95rem; color:var(--muted); margin:0;}

/* ---------- Value cards (Giving) ---------- */
.value-list{display:flex; flex-direction:column; gap:0; margin-top:1rem;}
.value-list > div{padding:18px 0; border-top:1px solid var(--line);}
.value-list > div:last-child{border-bottom:1px solid var(--line);}
.value-list h3{margin-bottom:.3rem;}
.value-list p{font-size:.95rem; color:var(--muted); margin:0;}

/* ---------- Pull quote ---------- */
blockquote{
  margin:1.6rem 0;
  padding-left:1.2rem;
  border-left:2px solid var(--route);
  font-family:'Fraunces', serif;
  font-size:1.2rem;
  font-style:italic;
  color:var(--ink);
}
blockquote cite{
  display:block;
  margin-top:.6rem;
  font-family:'IBM Plex Sans', sans-serif;
  font-size:.82rem;
  font-style:normal;
  color:var(--muted);
}

/* ---------- Contact block ---------- */
.contact-block{margin-top:1.2rem; display:flex; flex-direction:column; gap:.3rem;}
.contact-block a{color:var(--ink); text-decoration:none; font-weight:600;}
.contact-block a:hover{color:var(--route);}
.address{margin-top:1.2rem; color:var(--muted); font-size:.95rem;}

/* ---------- Transparency docs ---------- */
.doc-list{list-style:none; margin:1.2rem 0 0; padding:0; display:flex; flex-direction:column; gap:12px;}
.doc-list li{
  border:1px solid var(--line);
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:.95rem;
  font-weight:600;
}
.doc-list a{text-decoration:none;}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--line);
  padding:28px 0 60px;
}
.footer-inner{
  max-width:880px;
  margin:0 auto;
  padding-inline:24px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  flex-wrap:wrap;
  font-size:.82rem;
  color:var(--muted);
}
.footer-inner a{color:var(--muted); text-decoration:underline;}
.footer-inner a:hover{color:var(--route);}
.footer-links{display:flex; gap:20px; flex-wrap:wrap;}

/* ---------- Diagram: Innovation/Need -> Initiative -> stage chain ---------- */
.flow-diagram{margin:1.8rem 0 .6rem;}
.flow-sources{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:14px;
  align-items:stretch;
  max-width:560px;
  margin:0 auto;
}
.flow-sources .plus{
  align-self:center;
  font-family:'Fraunces', serif;
  font-size:1.3rem;
  color:var(--muted);
}
.flow-box{
  border:1px solid var(--line);
  background:var(--paper-2);
  padding:14px 16px;
  text-align:center;
  font-size:.85rem;
  font-weight:600;
}
.flow-arrow-down{
  text-align:center;
  color:var(--muted);
  font-size:1.3rem;
  margin:8px 0;
  line-height:1;
}
.flow-initiative{
  max-width:280px;
  margin:0 auto 8px;
  border:1.5px solid var(--route);
  background:var(--paper);
  padding:16px 18px;
  text-align:center;
}
.flow-initiative strong{
  font-family:'Fraunces', serif;
  font-weight:560;
  font-size:1.05rem;
  color:var(--route-ink);
}
.flow-chain{
  display:flex;
  align-items:stretch;
  flex-wrap:wrap;
  justify-content:center;
  gap:0;
  margin-top:22px;
}
.flow-step{
  border:1px solid var(--line);
  padding:12px 14px;
  font-size:.82rem;
  font-weight:600;
  text-align:center;
  min-width:118px;
  flex:1 1 118px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.flow-chain .chevron{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:1rem;
  flex:0 0 auto;
  padding:0 4px;
}
@media (max-width:680px){
  .flow-sources{grid-template-columns:1fr; max-width:320px;}
  .flow-sources .plus{transform:rotate(90deg);}
  .flow-chain{flex-direction:column; align-items:stretch;}
  .flow-chain .chevron{transform:rotate(90deg); padding:2px 0;}
  .flow-step{flex:none;}
}

/* ---------- Loop note (small callout under the loop-8 diagram) ---------- */
.loop-note{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-size:.82rem;
  color:var(--muted);
}
.loop-note .icon{color:var(--route); font-size:1rem;}

/* ---------- Loop-8 figure-eight diagram (Identification -> Validation & Commitment) ---------- */
.loop8-breakout{
  width:100vw;
  position:relative;
  left:50%;
  margin-left:-50vw;
  display:flex;
  justify-content:center;
  margin-top:1.6rem;
}
.loop8-wrap{
  max-width:1180px;
  width:100%;
  padding-inline:24px;
}
.loop8-hint{display:none; font-size:.78rem; color:var(--muted); margin:0 0 .6rem; text-align:center;}
.loop8-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch;}
.loop8-svg{width:100%; max-width:1160px; height:auto; display:block; margin:0 auto; overflow:visible;}
.loop8-label{font-family:'IBM Plex Sans', sans-serif; padding:0 2px; text-align:left;}
.loop8-tag{display:inline-block; font-size:.66rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--route-ink); margin-bottom:2px;}
.loop8-label-title{font-family:'Fraunces', serif; font-weight:560; font-size:16px; color:var(--ink); margin:0 0 4px;}
.loop8-label ul{margin:0; padding-left:1.05em; font-size:12.3px; color:var(--muted); line-height:1.4; text-align:left;}
.loop8-label li{margin-bottom:3px;}
.loop8-hub{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; background:var(--paper); border:1.5px solid var(--route); border-radius:10px;
  padding:8px 16px; font-family:'IBM Plex Sans', sans-serif; box-shadow:0 0 0 6px var(--paper);
}
.loop8-hub-tag{font-size:.66rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--route-ink);}
.loop8-hub-title{font-family:'Fraunces', serif; font-weight:560; font-size:16px; color:var(--ink); margin:2px 0 4px; line-height:1.14;}
.loop8-hub ul{margin:0; padding-left:1.1em; font-size:12px; color:var(--muted); line-height:1.26; text-align:left;}
.loop8-hub li{margin-bottom:1px;}
@media (max-width:820px){
  .loop8-hint{display:block;}
  .loop8-scroll{margin-inline:-24px; padding-inline:24px;}
  .loop8-svg{width:1160px; max-width:none;}
}

/* ---------- Leadership featured card (photo + bio) ---------- */
.leader-featured{
  display:flex;
  gap:24px;
  border:1px solid var(--line);
  background:var(--paper-2);
  padding:24px;
  margin:1.3rem 0 1.6rem;
}
.leader-featured img{
  width:140px;
  height:175px;
  object-fit:cover;
  flex-shrink:0;
  border:1px solid var(--line);
}
.leader-featured .leader-info h3{margin-bottom:2px;}
.leader-featured .leader-info .role{
  color:var(--muted);
  font-size:.85rem;
  display:block;
  margin-bottom:10px;
}
.leader-featured .bio{font-size:.94rem; color:var(--ink); margin:0;}
@media (max-width:600px){
  .leader-featured{flex-direction:column;}
  .leader-featured img{width:120px; height:150px;}
}
