/* Attention Foundation: shared stylesheet. Self-hosted fonts only; no external requests. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/nunito-latin-900-normal.woff2") format("woff2"); }

/* Color tokens: B Blue, light */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --panel: #E3EEFF;
  --panel2: #DCEBFF;
  --card: #FFFFFF;
  --ink: #2A2540;
  --ink2: #403A57;
  --ink3: #57506E;
  --line: #D3DCEE;
  --accent: #3A64B8;
  --on-accent: #FFFFFF;
  --accent-hi: #2D509A;
  --link: #2F5BB0;
  --link-hi: #23468A;
  --sun: #FFC94D;
  --on-sun: #2A2540;
  --foot: #2A2540;
  --on-foot: #E9E5F5;
  --foot-mute: #BDB6D6;
  --foot-line: #443D5E;
  --focus: #2A2540;
  --mark: #2F5BB0;
  --mark-dot: #F59E0B;
  --word2: #57506E;
  --shadow: rgba(42, 60, 110, 0.28);
  --t1: #FFEFC2;
  --t2: #DCEBFF;
  --t3: #FFE3D6;
  --t4: #DDF3E8;
  --t5: #E3EEFF;
  --ill-filter: none;
}

/* B Blue, dark */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1A2E;
    --panel: #232B4A;
    --panel2: #24304F;
    --card: #2A3150;
    --ink: #F5F2FF;
    --ink2: #DCD6F2;
    --ink3: #BCB4DA;
    --line: #3B4470;
    --accent: #8FB0FF;
    --on-accent: #1C1A2E;
    --accent-hi: #ADC5FF;
    --link: #9EBBFF;
    --link-hi: #C9D9FF;
    --sun: #3B3215;
    --on-sun: #F5F2FF;
    --foot: #14122A;
    --on-foot: #E9E5F5;
    --foot-mute: #BDB6D6;
    --foot-line: #2E2A4A;
    --focus: #FFC94D;
    --mark: #9EBBFF;
    --mark-dot: #FFC94D;
    --word2: #BCB4DA;
    --shadow: rgba(0, 0, 0, 0.55);
    --t1: #3B3215;
    --t2: #22305A;
    --t3: #43271F;
    --t4: #1E3A30;
    --t5: #263A66;
    --ill-filter: brightness(0.82) saturate(0.92);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hi); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.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;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 32px);
}
.wrap--tight { padding-inline: clamp(12px, 3vw, 32px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 6px 22px;
  border: 2px solid transparent; border-radius: 14px;
  font: inherit; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn--lg { min-height: 52px; padding: 10px 30px; border-radius: 16px; font-size: 1.125rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--panel2); }

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; width: 32px; height: 32px; color: var(--mark); }
.brand__mark .dot { fill: var(--mark-dot); }
.brand__word {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 1.4375rem; line-height: 1; letter-spacing: -0.02em;
}
.brand__word b { font-weight: 900; }
.brand__word span { font-weight: 600; font-size: 0.9375rem; letter-spacing: 0; color: var(--word2); }

/* Header & navigation */
.site-header { position: relative; z-index: 20; }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 700; font-size: 1.0625rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--link); text-decoration: underline; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--ink); border-radius: 14px;
  background: transparent; color: var(--ink); cursor: pointer;
}

/* Without JavaScript the links sit in a row under the bar on small screens. */
@media (max-width: 859px) {
  html:not(.js) .header__bar { flex-wrap: wrap; }
  html:not(.js) .nav { display: contents; }
  html:not(.js) .nav-links { order: 3; width: 100%; }
}

@media (max-width: 859px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav-links {
    display: none;
    position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; gap: 0;
    padding: 10px 20px;
    background: var(--card); border-radius: 20px;
    box-shadow: 0 16px 40px var(--shadow);
    font-weight: 800; font-size: 1.25rem;
  }
  .js .site-header.is-open .nav-links { display: flex; }
}
@media (max-width: 359px) {
  .brand__word { font-size: 1.3125rem; }
  .brand__mark { width: 28px; height: 28px; }
}
@media (min-width: 860px) {
  .header__bar { padding-block: 22px; }
  .nav { gap: 30px; }
  .nav-links { gap: 30px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__word { flex-direction: row; align-items: baseline; gap: 7px; font-size: 1.8125rem; }
  .brand__word span { font-size: inherit; letter-spacing: inherit; }
}

/* Type */
.h1 {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  text-wrap: balance;
}
.h2 {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.125rem);
}

/* Home: hero */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding-top: clamp(36px, 6vw, 64px);
  text-align: center;
}
.hero .h1 { max-width: 15em; }
.hero__lead { max-width: 32em; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--ink3); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__tiles {
  width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(12px, 3vw, 36px);
}
.tile { aspect-ratio: 1 / 1; border-radius: clamp(20px, 2.4vw, 28px); overflow: hidden; }
.tile svg, .program__pic svg { display: block; width: 100%; height: 100%; filter: var(--ill-filter); }
.tile--1 { background: var(--t1); }
.tile--2 { background: var(--t4); }
.tile--3 { background: var(--t2); }
.tile--4 { background: var(--t3); }
@media (max-width: 559px) {
  .hero__actions { flex-direction: column; align-self: stretch; }
}
@media (min-width: 720px) {
  .hero__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* Rounded panels */
.panel {
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(44px, 5.5vw, 72px) clamp(20px, 5vw, 72px);
}
.need { padding-top: clamp(64px, 9vw, 112px); }
.need .panel {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 64px;
  background: var(--panel);
}
.need .h2 { flex: 1 1 260px; }
.need p { flex: 2 1 520px; min-width: 0; font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.625rem); line-height: 1.5; color: var(--ink2); text-wrap: pretty; }

/* Programs */
.section { padding-block: clamp(64px, 9vw, 112px); }
.programs .h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.program-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.program { display: flex; align-items: center; gap: 16px; }
.program__pic { flex: none; width: 96px; height: 96px; border-radius: 18px; overflow: hidden; }
.program__text { display: flex; flex-direction: column; gap: 6px; }
.program h3 { font-size: 1.3125rem; font-weight: 800; line-height: 1.25; }
.program p { font-size: 1.03125rem; line-height: 1.5; color: var(--ink3); }
.program:nth-child(1) .program__pic { background: var(--t2); }
.program:nth-child(2) .program__pic { background: var(--t3); }
.program:nth-child(3) .program__pic { background: var(--t4); }
.program:nth-child(4) .program__pic { background: var(--t1); }
.program:nth-child(5) .program__pic { background: var(--t5); }
@media (min-width: 640px) {
  .program-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 20px; }
  .program { flex-direction: column; align-items: stretch; gap: 12px; }
  .program__pic { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 28px; }
  .program__text { padding: 6px 4px 0; }
}
@media (min-width: 1024px) {
  .program-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Get involved */
.involve .panel {
  display: flex; flex-direction: column; gap: 40px;
  background: var(--panel2); color: var(--ink);
}
.involve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 48px; }
.involve-item { max-width: 42rem; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.involve-item h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.5625rem); font-weight: 800; line-height: 1.2; }
.involve-link { color: var(--ink); font-weight: 800; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.involve-link:hover { color: var(--ink); text-decoration-thickness: 3px; }
.involve-note { color: var(--ink2); font-size: 0.9375rem; }
.involve-mail {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px;
  color: var(--ink); font-weight: 800; font-size: 1.1875rem;
  text-decoration-thickness: 2px; overflow-wrap: anywhere;
}
.involve-mail:hover { color: var(--ink); text-decoration-thickness: 3px; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 64px; }
.about .h2 { flex: 1 1 260px; }
.about__body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; color: var(--ink2); }
.about__mission { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); line-height: 1.45; font-weight: 700; color: var(--ink); }

/* Footer */
.site-footer { --focus: #FFC94D; background: var(--foot); color: var(--on-foot); }
.footer__inner { display: flex; flex-direction: column; gap: 30px; padding-block: 60px 44px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand__mark { color: #FFFFFF; }
.site-footer .brand__mark .dot { fill: #FFC94D; }
.site-footer .brand__word span { color: var(--foot-mute); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 1.0625rem; font-weight: 700; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-foot); }
.footer__links a:hover { color: #FFFFFF; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px;
  padding-top: 22px; border-top: 1px solid var(--foot-line);
  font-size: 0.9375rem; color: var(--foot-mute);
}
.footer__legal p:first-child { max-width: 48em; }

[hidden] { display: none !important; }

/* Policy pages */
.prose { max-width: 42rem; margin-inline: auto; padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.prose h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.prose h2 { margin-top: 2em; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.prose p { margin-top: 0.9em; line-height: 1.7; color: var(--ink2); }
.prose .updated { margin-top: 0.75em; color: var(--ink3); }
.prose strong { color: var(--ink); font-weight: 800; }

/* 404 */
.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: clamp(64px, 12vw, 160px); }
.notfound p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--ink2); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav-links a, .footer__links a { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}
