/* BrainSTEM Without Borders — clean nonprofit static styles */
:root {
  --ink: #1a2332;
  --muted: #5a6575;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --accent: #0b5f8a;
  --accent-hover: #094a6c;
  --border: #dbe1e8;
  --focus: #e8a317;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 35, 50, 0.06), 0 8px 24px rgba(26, 35, 50, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 960px;
  --wide: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--max));
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  background: linear-gradient(180deg, #eef5f9 0%, var(--bg) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.legal-name {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-secondary {
  background: transparent;
  color: var(--accent) !important;
}

.button-secondary:hover {
  background: #e3eef4;
}

.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.55rem;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--bg);
}

.note,
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.small {
  font-size: 0.85rem;
}

.impact-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.impact-list li {
  margin-bottom: 0.5rem;
}

.callout {
  background: #eef5f9;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer {
  background: var(--ink);
  color: #d7dde5;
  padding: 2rem 0;
  margin-top: 0;
}

.site-footer a {
  color: #9fd0ea;
}

.footer-inner p {
  margin: 0 0 0.5rem;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .hero {
    padding-top: 2.25rem;
  }
}
