/* Landing page — mirrors the Google Sites /home layout.
   Quote-card styles are carried over from the legacy hero_quote.html embed. */

/* Two content widths, measured from the live Google Sites /home:
   hero + video sit in a ~73% column, schools/map/supporters in ~90%. */
.container-narrow {
  width: min(73%, 1270px);
  margin: 0 auto;
}
.container-wide {
  width: min(90%, 1560px);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .container-narrow, .container-wide { width: calc(100% - 40px); }
}

/* ---- Hero: fills the first viewport, content vertically centered ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--banner-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 72px;
}
/* The dark textured hero backdrop belongs to dark mode only */
html.dark-mode .hero {
  background: url("/assets/images/header-background.jpg") center / cover no-repeat #000;
}
.hero h1 {
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  /* Cap sized so the title stays on one line down to ~1366px — a 14" MacBook
     in a normal (non-maximized) window. A larger cap wraps on narrower windows
     (3.287rem needed near-fullscreen); see the type lab's one-line fit check. */
  font-size: clamp(2.4rem, 5vw, 3rem);
  line-height: 1.38;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  margin: 0 0 0.35em;
}
.hero-intro {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 1.083rem;  /* ~21px on a 14" laptop via the fluid root */
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 3rem;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: var(--text-soft);
  cursor: pointer;
  padding: 6px;
}
.scroll-cue:hover { color: var(--text-strong); }

/* ---- Rotating student quote ----
   Shared .pull-quote styles live in site.css; here only hero placement. */
.hero .quotes-container { margin-bottom: 2.5rem; }

/* ---- Video ---- */
.video-section { padding: 4rem 0 4rem; }

/* ---- Schools ---- */
.schools h2,
.supporters h2 {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--text-strong);
  margin: 2.5rem 0 2rem;
}
.schools-grid {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, auto);
  grid-auto-flow: column;
  gap: 14px 24px;
}
.schools-grid li {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
}
@media (max-width: 900px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(16, auto); }
}
@media (max-width: 480px) {
  .schools-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
.schools-map {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}
/* Theme-matched map variants (base.njk guarantees one of the two classes) */
html.light-mode .schools-map--dark { display: none; }
html.dark-mode .schools-map--light { display: none; }

/* ---- Supporters band (white, full-bleed) ----
   Per-logo heights tuned to match the old Google Sites band, where the
   logos were large with tight rows (CMU noticeably bigger than the rest). */
.supporters h2 { margin-bottom: 2rem; }
.supporters-band {
  background: #ffffff;
  padding: 36px 40px 44px;
}
html.light-mode .supporters-band {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
/* Equal-width columns with width-driven images — the same model Google
   Sites used, which is what gave each logo its familiar relative size
   (squarish CMU renders tall, wide AVD renders short). */
.supporters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: clamp(24px, 3vw, 56px);
  max-width: 1560px;
  margin: 0 auto;
}
.supporters-row + .supporters-row {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin-top: 22px;
}
.supporters-band img {
  width: min(84%, 400px);
  height: auto;
}
@media (max-width: 700px) {
  .supporters-row, .supporters-row + .supporters-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .supporters-band img { width: min(88%, 300px); }
}
