@font-face {
  font-family: Manrope;
  src: url('./assets/manrope-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('./assets/inter-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f7fafa;
  color: #122629;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Two surfaces: the message sits on the light page; the illustration sits on a
   dark, inset stage, where its glow reads best.

   The banner's font-size is the headline size and everything inside is set in
   em, so the type and the illustration keep their proportions on every screen.

   Portrait (default): stage on top, copy centred beneath it. */
.banner {
  --edge: clamp(0.75rem, 1.6vw, 1.5rem);

  /* The headline's longer line, "experience is coming.", is 9.8em wide. Dividing
     the available width by 10.3 leaves room for it, so the headline always sets
     on exactly two lines. */
  font-size: clamp(1.625rem, (100vw - 3rem) / 10.3, 3.5rem);

  min-height: 100vh;
  min-height: 100svh;
  max-width: 120rem;
  margin: 0 auto;
  padding: var(--edge);
  display: grid;
  /* The copy takes 42% of the height, or more if it needs it; the stage takes the rest. */
  grid-template-rows: minmax(11rem, 1fr) minmax(min-content, 42%);
}

.banner-stage {
  order: -1;
  display: grid;
  place-items: center;
  border-radius: clamp(1.5rem, 3.2vw, 2.5rem);
  /* The headline's ink, lit softly from the centre as if by the emblem itself. */
  background:
    radial-gradient(circle closest-side, rgba(4, 156, 204, 0.24), rgba(4, 212, 172, 0.08) 55%, rgba(4, 212, 172, 0)),
    #122629;
}

.banner-art {
  display: block;
  width: min(82%, 43vh, 38rem);
  width: min(82%, 43svh, 38rem);
  height: auto;
}

.banner-copy {
  align-self: center;
  justify-self: center;
  max-width: 10.4em;
  padding-block: 1.5rem;
  text-align: center;
}

h1 {
  margin: 0 0 max(1rem, 0.42em);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-spacing: 0.04em;
  text-wrap: balance;
}

p {
  margin: 0;
  color: #5d7071;
  font-size: clamp(1rem, 0.75rem + 0.14em, 1.375rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Landscape: copy on the left, the stage filling the right-hand side. */
@media (orientation: landscape) and (min-width: 30rem) {
  .banner {
    font-size: clamp(1.5rem, min(4.2vw, 11vh), 4.5rem);
    grid-template-rows: none;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .banner-copy {
    width: 10.4em;
    margin: 0 1em 0 1.5em;
    padding-block: 0;
    text-align: left;
  }
  .banner-stage {
    order: 0;
    height: min(100vh - 2 * var(--edge), 64rem);
    height: min(100svh - 2 * var(--edge), 64rem);
  }
  .banner-art {
    width: min(78%, 72vh, 38rem);
    width: min(78%, 72svh, 38rem);
  }
}
