/* public/CSS/PAGES/_HOME_/External_CSS/hero.css
   The first screen of the home page: the promise of the game over the
   picture of the king above his islands (decision 153), darkened behind the
   text so it stays readable, and the sign-in box beside it on large screens.
   On screens of 1440 pixels and wider the king keeps the right side free of text and box.
   Loaded by views/PAGES/_HOME_/Sections/hero.ejs. */
.hero {
  border-bottom: 3px solid var(--wood-dark);
  background-color: #1a0f08; /* the dark evening sky, until the picture loads */
  background-image:
    linear-gradient(rgba(26, 15, 8, 0.72), rgba(26, 15, 8, 0.72)),
    url("/Images/PAGES/_HOME_/king-over-the-islands-small.webp");
  background-position: 72% center;
  background-size: cover;
}

.hero-inner {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 16px 32px;
}

.hero-name {
  color: var(--brand-text);
  font-family: 'Pirata One', 'Times New Roman', serif;
  font-size: clamp(3.6rem, 16vw, 6rem);
  line-height: 0.9;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
}

.hero h1 {
  max-width: 18ch;
  margin-top: 10px;
  color: var(--frame-text);
  font-size: clamp(1.8rem, 6.5vw, 2.8rem);
}

.hero-lead {
  max-width: 44ch;
  margin-top: 12px;
  color: var(--frame-text);
  font-size: 1.15rem;
}

.hero-actions {
  margin-top: 20px;
}

.hero-play {
  min-height: 52px;
  padding: 10px 28px;
  font-size: 1.25rem;
}

.hero-sign-in {
  align-self: start;
  margin: 0;
}

/* On phones the sign-in box is left out to keep the first screen short:
   the "Sign in" button above leads to the sign-in page instead. */
@media (max-width: 899px) {
  .hero-sign-in {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(26, 15, 8, 0.9) 0%, rgba(26, 15, 8, 0.7) 45%, rgba(26, 15, 8, 0.15) 80%),
      url("/Images/PAGES/_HOME_/king-over-the-islands-large.webp");
  }

  .hero-inner {
    grid-template-columns: 1fr 360px;
    align-items: center;
    padding: 48px 24px 56px;
  }

  .hero-sign-in-link {
    display: none;
  }
}

/* Wide screens: text, sign-in box, then the king's own space on the right
   (the picture spans the whole width, so the king starts at 57% of it). */
@media (min-width: 1440px) {
  .hero {
    background-position: center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 420px) 320px 1fr;
    max-width: 1400px;
    min-height: 560px;
    padding: 56px 32px 64px;
  }
}
