/* Styles for individual sections (templates/sections/). */

/* Hero: name, logo, team number, location. Fills the screen and scales
   with both the width and the height of the viewport. */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--gutter);
  text-align: center;
  color: var(--color-brand);
}
.hero > * { margin: 0; }

.hero__name,
.hero__number {
  font-family: var(--font-display);
  line-height: 0.9;
}
/* min() keeps the type in proportion on short screens (phones held sideways). */
.hero__name { font-size: min(var(--text-3xl), 24svh); }
.hero__number {
  font-size: min(var(--text-2xl), 16svh);
  /* The font has empty descender space below its capitals and almost none
     above. This evens out the gaps on either side of the logo. */
  margin-top: 0.2em;
}

.hero__logo {
  width: auto;
  max-width: min(100%, 26rem);
  max-height: 40svh;
}

.hero__location {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
}
