/* The site root.
 *
 * Tokens and the accessibility base come from /landing/shared/, like every
 * other module. What is here is only this page's own layout and identity.
 *
 * It is deliberately quiet: it is a signpost, and its whole job is to get
 * someone into a course or the explorer in one click. The featured photo
 * sits beside the title so the page has a face; the rest of the group's
 * photos collect under it. Neither must outrank the cards.
 */

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -20%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    var(--paper);
  font-family: var(--font-sans);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-head {
  padding: 28px clamp(20px, 6vw, 72px) 0;
}
.wordmark {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.institution {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

main {
  flex: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) clamp(20px, 6vw, 72px) 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 34ch; }
.hero h1 {
  margin: 0;
  /* Fluid rather than fixed: this is the one line that has to land on a phone
     and on a lecture-hall projector. */
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero p {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
}
.hero-figure {
  margin: 0;
  width: min(380px, 46vw);
}
.hero-figure.is-disc { width: min(300px, 38vw); }
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), var(--soft-shadow);
}
.hero-figure.is-disc img {
  border-radius: 50%;
  aspect-ratio: 1;
}
.hero-figure figcaption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.section-title {
  margin: clamp(44px, 7vw, 72px) 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.photos-section[hidden] { display: none; }
.photos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.photo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo figcaption {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  /* auto-fit rather than a fixed three, because the list comes from the
     registry: a fourth module must not break the row. */
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* The whole card is the target, but the link is still the only focusable thing
   in it -- so the focus ring has to appear on the card, not on a text run
   somewhere inside it. */
.card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.card:focus-within h3 a:focus-visible { outline: none; }

.card .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.card h3 a {
  color: inherit;
  text-decoration: none;
}
/* Stretched so the pointer target is the card, while the accessible name and
   the tab stop stay on the link itself. */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card { position: relative; }
.card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.cards-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.cards-status:empty { display: none; }

.site-foot {
  padding: 24px clamp(20px, 6vw, 72px) 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
}
.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure,
  .hero-figure.is-disc { width: min(220px, 56vw); }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
}
