/* ===========================================================
   EA Michigan — shared stylesheet
   Palette: Michigan blue + maize, warm paper background
   Display: Fraunces | Body: Inter | Utility: IBM Plex Mono
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --blue-950: #00274c;
  --blue-800: #123a63;
  --blue-700: #1f4d7a;
  --maize-500: #ffcb05;
  --maize-600: #e6b400;
  --cream-50: #faf7ef;
  --cream-100: #f2ecdc;
  --ink-900: #1c1a16;
  --ink-700: #3a372f;
  --slate-500: #6d7686;
  --line: rgba(28, 26, 22, 0.12);

  --display: 'Fraunces', ui-serif, Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink-700);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--maize-500);
  display: inline-block;
}

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: var(--display);
  color: var(--blue-950);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }

.btn-primary {
  background: var(--maize-500);
  color: var(--blue-950);
}
.btn-primary:hover { background: var(--maize-600); }

.btn-ghost {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(250, 247, 239, 0.4);
}
.btn-ghost:hover { border-color: var(--cream-50); }

.btn-outline {
  background: transparent;
  color: var(--blue-950);
  border-color: var(--blue-950);
}
.btn-outline:hover { background: var(--blue-950); color: var(--cream-50); }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--blue-950);
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .mark {
  width: 11px; height: 11px;
  background: var(--maize-500);
  border: 1.5px solid var(--blue-950);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--blue-950);
  border-color: var(--maize-500);
}
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--blue-950);
  border-radius: 3px;
  width: 38px; height: 34px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--blue-950);
}
.nav-toggle span { top: 16px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (min-width: 760px) {
  .nav-cta { display: inline-flex; }
}
@media (max-width: 759px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--blue-950);
  color: var(--cream-50);
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero-paths {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero .eyebrow { color: var(--maize-500); }
.hero .eyebrow::before { background: var(--cream-50); }
.hero h1 { color: var(--cream-50); margin: 18px 0 20px; }
.hero p.lead {
  font-size: 1.13rem;
  color: rgba(250, 247, 239, 0.82);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: var(--blue-950);
  color: var(--cream-50);
  padding: 62px 0 58px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { color: var(--maize-500); }
.page-hero .eyebrow::before { background: var(--cream-50); }
.page-hero h1 { color: var(--cream-50); margin-top: 14px; max-width: 640px; }
.page-hero p { color: rgba(250, 247, 239, 0.78); max-width: 560px; margin-top: 14px; font-size: 1.05rem; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--slate-500); font-size: 1.02rem; }

.band-blue {
  background: var(--blue-950);
  color: var(--cream-50);
}
.band-blue .quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.42;
  max-width: 780px;
  color: var(--cream-50);
}
.band-blue .quote span { color: var(--maize-500); }

.band-maize {
  background: var(--maize-500);
  color: var(--blue-950);
}
.band-maize-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band-maize h2 { color: var(--blue-950); max-width: 480px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
}
.card .num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate-500);
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: 0.96rem; }

/* ---------- event rows ---------- */
.event-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-700);
  line-height: 1.5;
}
.event-date strong { display: block; color: var(--blue-950); font-size: 15px; }
.event-body h3 { margin-bottom: 6px; }
.event-body p { color: var(--slate-500); font-size: 0.95rem; }
.event-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cream-100);
  color: var(--blue-700);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: start;
}
@media (max-width: 640px) {
  .event-row { grid-template-columns: 1fr; gap: 8px; }
  .event-tag { justify-self: start; }
}

/* ---------- footer ---------- */
footer {
  background: var(--blue-950);
  color: rgba(250, 247, 239, 0.75);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 239, 0.14);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maize-500);
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: rgba(250, 247, 239, 0.78); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--cream-50); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(250, 247, 239, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- about page specifics ---------- */
.cause-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .cause-grid { grid-template-columns: 1fr; } }
.cause {
  border-left: 3px solid var(--maize-500);
  padding: 6px 0 6px 20px;
}
.cause h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cause p { color: var(--slate-500); font-size: 0.93rem; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }
.person-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--blue-700);
}
.person h3 { font-size: 1rem; margin-bottom: 2px; }
.person .role { font-family: var(--mono); font-size: 12px; color: var(--slate-500); }

/* ---------- contact page specifics ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}
.info-row .value a { color: var(--blue-950); text-decoration: none; border-bottom: 1px solid var(--line); }
.info-row .value a:hover { border-color: var(--blue-950); }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-950);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink-700);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 14px;
}
