/* Mobile first: base styles are the phone layout. Desktop overrides at the end. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: #000000;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.35;
}

/* One column that fills the phone screen. If content is taller (short
   screen, enlarged text), main grows and the page scrolls. */
main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Edge-to-edge photo. Zero flex basis (a length, not a percentage, so it
   works with main's indefinite height) means the photo takes whatever
   height is left after the phrase, button, and 18+ line, but never below
   256px so the face stays visible. Pixels, not rem, so enlarged text
   gets the space instead of the photo growing with it. */
.banner {
  display: block;
  width: 100%;
  flex: 1 1 0px;
  min-height: 256px;
  /* The source is the untouched 576x1024 original. The crop happens here:
     cover fills the box, and 80% vertical alignment trims the empty car
     roof above the hat while keeping hat, face, and badge in frame. */
  object-fit: cover;
  object-position: center 80%;
  background: #111111;
}

.phrase {
  margin: 1rem 1.25rem 0;
  font-size: clamp(1.25rem, 6.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2.5rem);
  min-height: 56px;
  margin: 1.25rem 1.25rem 0;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #000000;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.age {
  margin: 0.75rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  font-size: 0.75rem;
  color: #c9c4ba;
  text-align: center;
}

/* Desktop and tablets: same content, shown as a compact centered
   phone-sized column instead of stretching across the screen. */
@media (min-width: 48rem) {
  body {
    display: grid;
    place-items: center;
    min-height: 100dvh;
  }

  main {
    width: 27rem;
    min-height: 0;
  }

  .banner {
    flex: none;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 32rem;
  }
}
