/* =========================================================
   Youth Drug Protection Alliance — shared stylesheet
   Tokens: see :root. Display face: Fraunces. Body: IBM Plex
   Sans. Utility/data face: IBM Plex Mono.

   Palette: sand / purple / deep purple (new) / rust / footer brown
   ========================================================= */

:root{
  --ink:#241507;
  --sub:#775332;
  --bg:#EDE0D4;
  --card:#FFFFFF;
  --line:#E1D2C0;

  --fern:#806490;
  --fern-dark:#5B4763;
  --fern-tint:#EAE1EE;

  --berry:#775332;
  --berry-tint:#F1E6DA;

  --footer-bg:#3A1D09;
  --footer-tan:#C9B8A8;
  --footer-label:#A9927E;
  --footer-link:#D9CCC0;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;

  --container:1120px;
  --shadow: 0 1px 2px rgba(36,21,7,0.05), 0 8px 24px rgba(36,21,7,0.08);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size:16.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }

h1,h2,h3,h4{
  font-family:'Fraunces', Georgia, serif;
  font-weight:600;
  line-height:1.12;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
  color:var(--ink);
}
h1{ font-size:clamp(2.4rem, 5vw, 3.7rem); font-weight:560; }
h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size:1.28rem; font-weight:600; }
p{ margin:0 0 1em; color:var(--ink); }
p.lede{ font-size:1.15rem; color:var(--sub); }

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--fern-dark);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:16px; height:1.5px;
  background:var(--fern);
  display:inline-block;
}
.eyebrow.berry{ color:var(--berry); }
.eyebrow.berry::before{ background:var(--berry); }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:76px 0; }
.section.tight{ padding:48px 0; }
.section.tint{ background:var(--fern-tint); }
.section.ink{ background:var(--footer-bg); color:#F4F1E8; }
.section.ink h2, .section.ink h3{ color:#F4F1E8; }
.section.ink p{ color:#CFC3B8; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:100px;
  font-family:'IBM Plex Sans', sans-serif;
  font-weight:500;
  font-size:15px;
  text-decoration:none;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:focus-visible{ outline:2.5px solid var(--fern); outline-offset:3px; }
.btn-primary{ background:var(--fern); color:#fff; }
.btn-primary:hover{ background:var(--fern-dark); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-on-dark{ background:#F4F1E8; color:var(--ink); }
.btn-on-dark:hover{ background:#fff; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(237,224,212,0.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--ink);
}
.brand-mark{ width:32px; height:32px; flex:0 0 auto; }
.brand-name{
  font-family:'Fraunces', serif; font-weight:600; font-size:17px; line-height:1.05;
}
.brand-name small{
  display:block; font-family:'IBM Plex Mono', monospace; font-weight:500;
  font-size:10.5px; letter-spacing:0.09em; color:var(--sub); text-transform:uppercase; margin-top:2px;
}
.nav-links{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.nav-links a{
  text-decoration:none; font-size:15px; font-weight:500; color:var(--ink);
  padding:6px 2px; border-bottom:2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ border-bottom-color:var(--fern); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; background:none; border:1.5px solid var(--line); border-radius:8px;
  width:40px; height:40px; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; width:18px; height:1.5px; background:var(--ink); margin:4px auto; transition:transform .2s ease, opacity .2s ease; }

@media (max-width: 860px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0; padding:8px 24px 18px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; padding:12px 0; border-bottom:1px solid var(--line); }
  .nav-toggle{ display:block; }
  .nav-cta .btn-ghost{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ padding:64px 0 40px; }
.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:start;
}
.hero-copy p.lede{ max-width:46ch; }
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }

/* Signature element: the index card */
.index-card{
  background:var(--card);
  border:1.5px solid var(--ink);
  border-radius:var(--radius-md);
  padding:26px 26px 24px;
  box-shadow:var(--shadow);
  transform:rotate(-2.6deg);
  margin-top:18px;
  max-width:360px;
}
.index-card .eyebrow{ margin-bottom:10px; }
.index-card .big-stat{
  font-family:'Fraunces', serif; font-weight:560; font-size:3.6rem; line-height:1;
  color:var(--berry); margin:0 0 8px;
}
.index-card p{ font-size:14.5px; color:var(--sub); margin:0 0 6px; }
.index-card .source{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--sub);
  border-top:1px dashed var(--line); margin-top:14px; padding-top:10px;
}
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .index-card{ transform:rotate(0); max-width:420px; }
}

/* ---------- Stat band ---------- */
.stat-band{
  background:var(--footer-bg); color:#F4F1E8;
  padding:52px 0;
}
.stat-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:100px;
}
.stat-grid.two-col{
  grid-template-columns:repeat(1, 1fr); max-width:620px; margin:0 auto; gap:64px;
}
.stat-item .big-stat{
  font-family:'Fraunces', serif; font-size:2.8rem; font-weight:560; color:#fff; margin:0 0 6px;
}
.stat-item p{ color:#D8CCC0; font-size:14px; margin:0; }
.stat-band .source{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:#B3A395;
  margin-top:30px; padding-top:16px; border-top:1px solid rgba(255,255,255,0.12);
  text-align:center;
}
@media (max-width:760px){ .stat-grid, .stat-grid.two-col{ grid-template-columns:1fr; gap:28px; } }

/* ---------- Cards / grids ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2, 1fr); gap:24px; }
@media (max-width:860px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:28px; transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.tag{
  display:inline-block; font-family:'IBM Plex Mono', monospace; font-size:10.5px;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--fern-dark);
  background:var(--fern-tint); border-radius:100px; padding:4px 10px; margin-bottom:14px;
}
.tag.dev{ color:var(--berry); background:var(--berry-tint); }
.card ul{ padding-left:20px; margin:0; color:var(--sub); }
.card li{ margin-bottom:6px; }

/* ---------- Reveal (kept as a hook, not used to hide content) ---------- */
.reveal{ opacity:1; }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--fern); color:#fff; border-radius:var(--radius-lg);
  padding:52px 40px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:6px; }
.cta-band p{ color:#EAE0EE; margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--footer-bg); padding:52px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; margin-bottom:32px; }
.footer-grid h4{ font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.07em; text-transform:uppercase; color:var(--footer-label); margin-bottom:12px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; color:var(--footer-link); }
.footer-grid li{ margin-bottom:8px; }
.footer-grid a{ text-decoration:none; color:var(--footer-link); font-size:14.5px; }
.footer-grid a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding-top:24px; border-top:1px solid rgba(255,255,255,0.14);
  font-size:13px; color:var(--footer-tan);
}
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- Page header (non-home pages) ---------- */
.page-header{ padding:56px 0 20px; }
.page-header .eyebrow{ margin-bottom:16px; }
.page-header p.lede{ max-width:60ch; }

/* ---------- Misc ---------- */
.divider{ height:1px; background:var(--line); border:none; margin:0; }
.status-pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--fern-dark);
  background:var(--fern-tint); border-radius:100px; padding:6px 14px; margin-bottom:20px;
}
.status-pill .dot{ width:7px; height:7px; border-radius:50%; background:var(--fern); }

.founder-note{
  display:grid; grid-template-columns:auto 1fr; gap:22px; align-items:flex-start;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:28px;
}
.founder-note .avatar{
  width:56px; height:56px; border-radius:50%; background:var(--berry-tint);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif; font-weight:600; color:var(--berry); font-size:20px;
}
@media (max-width:560px){ .founder-note{ grid-template-columns:1fr; } }

.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-line{ display:flex; align-items:baseline; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.contact-line .label{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--sub); width:110px; flex:0 0 auto; text-transform:uppercase; letter-spacing:0.06em; }
.contact-line a{ text-decoration:none; font-weight:500; }
.contact-line a:hover{ color:var(--fern-dark); }
