/* ============================================================
   Component: hero (BEM)
   The one big teal moment — a contained gradient band with white
   text. Two columns on desktop (copy + logo), stacked on mobile.
   ============================================================ */

.hero {
  position: relative;
  padding-block: var(--space-3xl);
  color: var(--on-teal);
  /* Teal → light-blue, top to bottom. A long, gradual fade (starting under
     the headline and running past the base) so it reads as a smooth gradient,
     not a hard band — while staying teal-dominant where the white text sits. */
  background: linear-gradient(180deg,
    var(--brand-teal) 0%,
    var(--brand-teal) 42%,
    var(--brand-blue) 120%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-2xl);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.hero__title {
  font-size: var(--text-4xl);
  text-transform: uppercase;
  line-height: 1.02;
  color: #fff;
  /* Shrink-wrap to the widest line ("Menn eitt") so "Spæl" can match it exactly */
  width: fit-content;
}

/* Deliberate two-line break: "Menn eitt" / "Spæl" */
.hero__title-lead { display: block; }

/* "Spæl" — the statement word, distributed edge-to-edge across the line above.
   Alata has no bold, so the extra weight comes from a letter stroke. */
.hero__title-accent {
  /* Size hierarchy, no distortion: "Menn eitt" measures 5.199× its font-size,
     "Spæl" only 2.232× — so setting Spæl 2.329× larger makes the two lines the
     same width naturally. Letterforms stay exactly as the type designer drew
     them, and the fit holds at every breakpoint since both scale together. */
  position: relative;
  display: block;
  margin-top: 0.04em;
  font-size: 2.329em;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero__subtitle {
  font-size: var(--text-lg);
  max-width: 46ch;
  color: var(--on-teal);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* On the teal hero, the secondary button switches to a light outline */
.hero .button--secondary { color: #fff; border-color: rgba(244, 244, 244, 0.6); }
.hero .button--secondary:hover { background: rgba(244, 244, 244, 0.14); border-color: #fff; color: #fff; }

/* --- Logo / mascot slot -------------------------------------
   Holds the GameJam logo art. Until the file is wired in, a
   dashed placeholder keeps the layout honest. */
.hero__mascot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl);
  color: var(--on-teal-muted);
  background: rgba(244, 244, 244, 0.08);
  border: 2px dashed var(--on-teal-border);
}
.hero__mascot img { width: 100%; height: auto; }         /* logo art fills the slot */
.hero__mascot--filled {
  background: none;
  border: 0;
  padding: 0;
}

@media (max-width: 820px) {
  /* Stacked layout: flow teal → light-blue top-to-bottom instead, keeping all
     the text on teal and letting the base blend into the light body below. */
  .hero {
    background: linear-gradient(180deg,
      var(--brand-teal) 0%,
      var(--brand-teal) 58%,
      var(--brand-blue) 120%);
  }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { align-items: stretch; }
  /* the title shrink-wraps, so re-centre it in the stacked layout */
  .hero__title { margin-inline: auto; }
  .hero__subtitle { max-width: 100%; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__mascot { max-width: 340px; margin-inline: auto; order: -1; }
}
