/* ============================================================
   VIBE Afterschool — Design System
   Built on a major-third (1.25) typographic scale.
   All pages import this file. Page-specific overrides follow.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* palette */
  --ink:    #0b0c0e;
  --ink2:   #2a2d33;
  --muted:  #5a5f67;
  --line:   #d9d4c8;
  --bg:     #f5f2ec;
  --paper:  #fbf8f2;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --warm:   #b94a1a;
  --dim:    #767165;
  --green:  #0f766e;
  --red:    #dc2626;
  --violet: #6d28d9;
  --gold:   #a16207;

  /* footer palette */
  --footer-bg:    #0f1114;
  --footer-text:  #cfd3db;
  --footer-muted: #5a5f67;
  --footer-link:  #e6e8ec;
  --footer-hover: #93c5fd;
  --footer-rule:  #1f232a;
  --footer-attr:  #9298a1;
  --footer-blurb: #a8adb5;

  /* typography — major-third scale (1.25) from 17px base
     17 → 21 → 27 → 33 → 42 → 52  */
  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Lora", "Georgia", serif;
  --text-xs:    11px;
  --text-sm:    14px;
  --text-base:  17px;
  --text-lg:    21px;
  --text-xl:    27px;
  --text-2xl:   clamp(27px, 3.5vw, 33px);
  --text-3xl:   clamp(33px, 4.5vw, 42px);
  --text-4xl:   clamp(42px, 5.5vw, 52px);

  /* spacing */
  --page-max:    1100px;
  --page-narrow: 892px;
  --page-gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(48px, 7vh, 88px);

  /* radii */
  --radius:  6px;
  --radius-sm: 4px;
  --radius-pill: 100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem; font-size: var(--text-sm); font-weight: 600;
  z-index: 999; transition: top .1s;
}
.skip-link:focus { top: 0; }

/* ── LAYOUT ── */
.wrap    { max-width: var(--page-max);    margin: 0 auto; padding: 0 var(--page-gutter); }
.narrow  { max-width: var(--page-narrow); margin: 0 auto; padding: 0 var(--page-gutter); }

/* ── NAVIGATION ── */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.site-nav .inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--page-gutter);
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: none; }
.site-nav .brand { display: flex; align-items: center; }
.site-nav .brand img { height: 44px; width: auto; }
.site-nav .links {
  display: flex; align-items: center; gap: 24px;
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 500;
}
.site-nav .links a { color: var(--ink2); }
.site-nav .links a:hover,
.site-nav .links a[aria-current] { color: var(--accent); }

/* hamburger toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 10px; color: var(--ink2);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { display: block; pointer-events: none; }

@media (max-width: 720px) {
  .site-nav .links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px var(--page-gutter); gap: 16px;
  }
  .site-nav .links.open { display: flex; }
  .site-nav .links a { display: flex; align-items: center; min-height: 44px; }
  .nav-toggle { display: inline-flex; }
  .site-nav .brand img { height: 34px; }
}

/* ── PAGE HEADER ── */
.page-header {
  padding: clamp(48px, 8vh, 88px) 0 clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow {
  font-family: var(--font-sans);
  letter-spacing: .24em; text-transform: uppercase;
  font-size: var(--text-xs); color: var(--muted);
  margin-bottom: 18px; font-weight: 600;
}
.page-header h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-4xl);
  line-height: 1.06; letter-spacing: -.022em;
  margin: 0 0 14px;
}
.page-header .dek {
  font-size: var(--text-base); line-height: 1.65;
  color: var(--ink2); margin: 0;
}

/* ── SECTIONS ── */
.section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.secnum {
  font-family: var(--font-sans);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .24em; color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px; display: block;
}

/* ── TYPOGRAPHY ── */
h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 16px; color: var(--ink);
}
h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-xl); letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 10px; color: var(--ink);
}
h4 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-lg); letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 6px; color: var(--ink);
}
.lead {
  font-size: var(--text-base); line-height: 1.65;
  color: var(--ink2); margin: 0 0 28px;
}
.pull {
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--text-2xl);
  line-height: 1.35; color: var(--ink); margin: 0 0 20px;
  letter-spacing: -.01em;
}
.pull::before {
  content: ""; display: block;
  width: 40px; height: 2px; background: var(--accent);
  margin-bottom: 20px;
}
.eyebrow {
  font-family: var(--font-sans);
  letter-spacing: .24em; text-transform: uppercase;
  font-size: var(--text-xs); color: var(--muted);
  margin-bottom: 18px; font-weight: 600;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; min-height: 44px;
  font-family: var(--font-sans);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1px solid var(--accent); color: var(--accent);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover {
  background: var(--accent); color: #fff; text-decoration: none;
}
.btn-filled { background: var(--accent); color: #fff; }
.btn-filled:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover); color: #fff;
}
.btn-ghost { border-color: var(--line); color: var(--ink2); }
.btn-ghost:hover {
  border-color: var(--ink2); background: transparent; color: var(--ink);
}

/* ── ROLE PILLS (audience quick-nav) ── */
.role-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.role-pill {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.role-pill:hover {
  background: var(--paper); border-color: var(--accent);
  text-decoration: none;
}

/* ── STATUS BADGE ── */
.badge-warm {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--warm);
  border: 1.5px solid var(--warm);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* ── INFO BOX ── */
.info-box {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 32px;
  margin-top: 28px;
}
.info-box .label {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 10px;
}
.info-box p {
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.65; color: var(--ink2); margin: 0 0 12px;
}
.info-box p:last-child { margin-bottom: 0; }

/* ── NOTE (muted callout) ── */
.note {
  font-family: var(--font-sans); font-size: 12.5px;
  color: var(--muted); margin: 0;
}
.note b { color: var(--ink2); font-weight: 600; }

/* ── CTA ACTIONS ROW ── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── CARDS ── */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 28px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card .ico { font-size: 22px; color: var(--accent); margin-bottom: 12px; }
.card h4 { margin: 0 0 8px; }
.card p {
  font-family: var(--font-sans); font-size: var(--text-sm);
  line-height: 1.6; color: var(--ink2); margin: 0;
}

/* ── RESOURCE CARDS ── */
.res-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 28px;
}
@media (max-width: 680px) { .res-grid { grid-template-columns: 1fr; } }
.res {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}
.res:hover { border-color: var(--accent); text-decoration: none; }
.res .kicker {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .22em;
  color: var(--muted); font-weight: 700;
  text-transform: uppercase; margin-bottom: 10px;
}
.res .ico { font-size: 20px; color: var(--accent); margin-bottom: 12px; }
.res h3 {
  font-size: 20px; line-height: 1.2;
  margin: 0 0 8px;
}
.res p {
  font-family: var(--font-sans); font-size: var(--text-sm);
  line-height: 1.55; color: var(--ink2);
  margin: 0 0 16px; flex: 1;
}
.res .link {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; color: var(--accent);
}

/* ── STEPS (numbered) ── */
.steps { margin: 32px 0; counter-reset: step; }
.step {
  padding: 24px 0; border-top: 1px solid var(--line);
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr;
  gap: 24px; align-items: baseline;
}
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 6px; } }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; color: var(--accent);
}
.step h4 { margin: 0 0 6px; }
.step p {
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.6; color: var(--ink2);
  margin: 0;
}

/* ── FAQ ── */
.faq { margin: 28px 0; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-item h4 { margin: 0 0 6px; }
.faq-item p {
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.65; color: var(--ink2);
  margin: 0;
}
.faq-item ul {
  list-style: none; padding: 0; margin: 0;
}
.faq-item ul li {
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.65; color: var(--ink2);
  padding: 3px 0 3px 20px; position: relative;
}
.faq-item ul li::before {
  content: "—"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ── AUDIENCE CARDS ── */
.audience {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 28px;
}
@media (max-width: 680px) { .audience { grid-template-columns: 1fr; } }
.aud-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.aud-card .role {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 8px;
}
.aud-card h3 { margin: 0 0 8px; }
.aud-card p {
  font-family: var(--font-sans); font-size: 14.5px;
  line-height: 1.6; color: var(--ink2);
  margin: 0 0 16px; flex: 1;
}
.aud-card .link {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; color: var(--accent);
}

/* ── GLANCE TABLE ── */
.glance { margin: 28px 0; }
.glance dl {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 6px 20px; font-size: 15px; line-height: 1.55;
}
@media (max-width: 600px) { .glance dl { grid-template-columns: 1fr; } }
.glance dt {
  color: var(--muted); font-weight: 600;
  text-transform: uppercase; font-size: var(--text-xs);
  letter-spacing: .08em; padding-top: 3px;
}
.glance dd { margin: 0; color: var(--ink2); }
.glance dd b { color: var(--ink); font-weight: 600; }

/* ── TIMELINE ── */
.timeline { margin: 28px 0; }
.tl-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 20px; padding: 20px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }
.tl-item .tl-time {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: .06em;
  text-transform: uppercase; padding-top: 3px;
}
.tl-item h4 { margin: 0 0 4px; }
.tl-item p {
  font-family: var(--font-sans); font-size: 14.5px;
  line-height: 1.6; color: var(--ink2);
  margin: 0;
}

/* ── INVITE BOX ── */
.invite-box {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 28px 32px; margin-top: 28px;
}
.invite-box .label {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 10px;
}
.invite-box p {
  font-family: var(--font-serif); font-size: 16px;
  line-height: 1.6; color: var(--ink2); margin: 0 0 12px;
}
.invite-box p:last-child { margin: 0; }
.invite-box b { color: var(--ink); font-weight: 500; }

/* ── DO / DON'T COLUMNS ── */
.do-dont {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 24px;
}
@media (max-width: 680px) { .do-dont { grid-template-columns: 1fr; } }
.do-dont .col {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.do-dont .col h3 { margin: 0 0 14px; font-size: 18px; }
.do-dont .col h3.do-head  { color: var(--green); }
.do-dont .col h3.dont-head { color: var(--red); }
.do-dont .col ul {
  font-family: var(--font-sans); font-size: 14.5px;
  line-height: 1.65; color: var(--ink2);
  padding-left: 18px; margin: 0;
}
.do-dont .col ul li { margin-bottom: 8px; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1),
              transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
footer h5 {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--footer-muted); font-weight: 700;
  margin: 0 0 14px;
}
footer a { color: var(--footer-link); text-decoration: none; }
footer a:hover { color: var(--footer-hover); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li {
  margin-bottom: 8px;
  font-family: var(--font-sans); font-size: 13.5px;
}
.footer-blurb {
  font-family: var(--font-sans); font-size: 13.5px;
  line-height: 1.6; color: var(--footer-blurb);
  max-width: 300px; margin: 0 0 14px;
}
.footer-legal {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--footer-rule);
  font-family: var(--font-sans); font-size: 12px;
  color: var(--footer-muted);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.cc {
  display: inline-block; padding: 2px 7px;
  border: 1px solid #3a3f47; border-radius: 3px;
  font-size: 11px; letter-spacing: .08em;
  color: var(--footer-attr); margin-right: 6px; font-weight: 600;
}
.footer-initiative {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--footer-muted); margin: 14px 0 0; line-height: 1.6;
}
.footer-initiative a { color: var(--footer-attr); }

/* ── DATA TABLE ── */
.data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .data-table { overflow-x: auto; border-radius: 0; }
}
.data-table table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-sans); font-size: var(--text-sm);
}
.data-table thead tr { background: var(--paper); }
.data-table th {
  text-align: left; padding: 12px 16px;
  font-size: var(--text-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .col-muted { color: var(--muted); }
.data-table .col-accent { color: var(--accent); }

.table-label {
  font-size: 16px; font-family: var(--font-sans);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-weight: 600;
}
.table-label.muted { color: var(--muted); margin-top: 28px; }

/* ── UTILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.serif { font-family: var(--font-serif); }
.mt-0 { margin-top: 0; }

/* ── PRINT ── */
@media print {
  .site-nav, footer, .cta-row, .skip-link, .nav-toggle { display: none !important; }
  body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  h1, h2, h3, h4 { page-break-after: avoid; color: #000; }
  .section { border-bottom: none; padding: 16pt 0; }
  .page-header { border-bottom: 1px solid #ccc; padding: 16pt 0; }
  .wrap, .narrow { max-width: 100%; padding: 0; }
  .card-grid, .res-grid, .audience, .do-dont { grid-template-columns: 1fr; }
  .footer-grid { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .data-table { overflow: visible; }
}
