/* 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;
}
/* Hero backdrop is flat true black in dark mode (OLED pixels-off). */
html.dark-mode .hero {
  background: #000000;
}
.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%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  color: var(--text-soft);
  cursor: pointer;
  padding: 6px;
}
.scroll-cue:hover { color: var(--text-strong); }
/* What the chevron is pointing at is one press away. Set in the mono the
   site labels in, and quiet enough to be read once and then ignored — the
   chevron is the thing that moves, and this stays still under it. */
.scroll-cue-key {
  font-family: "Roboto Mono", ui-monospace, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.scroll-cue:hover .scroll-cue-key { opacity: 1; }
/* No space bar to press. */
@media (hover: none) {
  .scroll-cue-key { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-key { transition: none; }
}

/* Subtle bob to draw the eye downward. Applied to the inner chevron (the
   button itself carries the translateX centering); research-page.css reuses
   the keyframes for its "findings" cue. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-bob 2s ease-in-out infinite; }
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

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

/* ---- Schools ---- */
/* Serif fallback for pages that do not load the deck sheet, which overrides
   this to the deck's monospace face (see .dw-landing in deck-wireframe.css). */
.schools h2,
.supporters h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.14;
  text-wrap: balance;
  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); }
}
/* On phones the 32-item list is a wall of scrolling — the map alone carries
   the point, so drop the list entirely. 700px matches the supporters-band
   phone breakpoint below. */
@media (max-width: 700px) {
  .schools-grid { display: none; }
}
.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 (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: var(--surface-raised);
  padding: 36px 40px 44px;
}
html.light-mode .supporters-band {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
/* 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); }
}
