/* ---------------------------------------------------
   Michelle Cook for Royal Oak School Board
   Design tokens: banner coral #E96852, ink navy #1B2A4A,
   slate #435463, sky blue #6FA8DC, warm card bg #FBF3EF
   Type: Crimson Pro (display), DM Sans (body)

   Palette note: pure white text only reaches ~3.2:1
   contrast against #E96852 (enough for large/bold
   headlines, not for smaller text), while deep navy
   reaches ~4.4:1. So navy carries the smaller text on
   coral backgrounds; white is reserved for the big
   hero headline. Rocket red was dropped since it sat
   too close to coral in hue and started to clash.
   Slate (#435463) is used per request for the eyebrow/
   hero-sub text and solid buttons/badges; note it only
   reaches ~2.4:1 against the coral banner (below AA),
   sized up and bolded here to help legibility.
--------------------------------------------------- */

:root {
  --color-banner: #e96852;
  --color-ink: #1b2a4a;
  --color-slate: #435463;
  --color-on-banner-muted: #3a2e2a;
  --color-blue: #6fa8dc;
  --color-blue-text: #0c447c;
  --color-card-bg: #fbf3ef;
  --color-body-text: #2c2c2a;
  --font-display: "Crimson Pro", georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body-text);
  background: #fff;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid #ededea;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-ink);
}

.logo-accent {
  color: var(--color-banner);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
}

.site-nav a {
  text-decoration: none;
  color: #3a3f4b;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-ink);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.5rem;
  background: var(--color-ink);
}

/* Hero */

.hero {
  background: var(--color-banner);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--color-slate);
  margin: 0 0 0.875rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.accent-rule {
  width: 3rem;
  height: 3px;
  background: #fff;
  margin: 0.875rem auto 1.125rem;
}

.hero-sub {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-slate);
  margin: 0 0 1.375rem;
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  padding: 0.625rem 1.375rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-slate);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--color-blue);
}

.btn-placeholder {
  opacity: 0.75;
  cursor: default;
}

/* About */

.about {
  padding: 3.5rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.about-photo img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-ink);
  margin: 0 0 1rem;
}

.about-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-ink);
  margin: 1.75rem 0 0.75rem;
}

.about-copy p {
  font-size: 1.0625rem;
  margin: 0 0 1rem;
}

.credentials-box {
  background: #fbeae6;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.credentials-list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.credentials-list li {
  margin-bottom: 0.625rem;
}

.credentials-list li:last-child {
  margin-bottom: 0;
}

/* Section title shared */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-ink);
  text-align: center;
  margin: 0 0 1.125rem;
}

.section-intro {
  text-align: center;
  font-size: 0.9375rem;
  color: #3a3f4b;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

/* Priorities */

.priorities {
  padding: 3.5rem 0;
}

.priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.priority-card {
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 12.5rem;
  max-width: 18rem;
}

.priority-badge {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--color-slate);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1875rem;
}

.priority-text {
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Running together */

.running-together {
  padding: 3.5rem 0;
}

.slate-card {
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 20rem;
  margin: 0 auto;
}

.slate-photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.875rem;
}

.slate-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-ink);
}

.slate-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
}

/* stylelint-disable-next-line no-descending-specificity -- different parent scope than .footer-nav a, no real conflict */
.slate-contact a {
  color: var(--color-blue-text);
  text-decoration: underline;
}

.slate-contact a:hover,
.slate-contact a:focus-visible {
  color: var(--color-ink);
}

/* Get involved */

.get-involved {
  background: var(--color-card-bg);
  padding: 3.5rem 0;
}

.get-involved-inner {
  text-align: center;
}

.involved-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.get-involved .btn-secondary {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.social-links {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #e3e7ee;
  color: #8790a0;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  background: var(--color-banner);
  border-top: 2px solid var(--color-ink);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 1.125rem;
  font-size: 0.75rem;
}

.disclaimer {
  font-size: 0.6875rem;
  color: var(--color-on-banner-muted);
  margin: 0;
}

/* Mobile */

@media (width <= 40rem) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ededea;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f2f1ec;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 14rem;
    margin: 0 auto;
  }

  .btn-primary {
    display: block;
    text-align: center;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
