:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #171819;
  background: #f7f7f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
.home {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
}
.hero {
  display: grid;
  grid-template-columns: clamp(1.5rem, 6vw, 8rem) minmax(0, 1fr) 1.5rem;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding-block: clamp(1.25rem, 5svh, 3.5rem);
  color: #fff;
  background-color: #171819;
  background-image: linear-gradient(90deg, #101112f5 0%, #101112cb 29%, #101112a8 42%, #10111226 64%, #10111200 85%), url("bancada-pk-games.webp");
  background-position: center, right center;
  background-size: cover, contain;
  background-repeat: no-repeat;
}
.hero > .wrap {
  grid-area: 1 / 2;
  max-width: 24vw;
}
.instagram-panel {
  grid-area: 3 / 2;
  justify-self: start;
  max-width: min(19rem, 24vw);
  padding-top: .85rem;
  border-top: 1px solid #465564;
}
.home-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #465564;
  background: #171b20;
  text-align: center;
}
.status {
  margin: 0;
  color: #b8d2e6;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .025em;
  text-shadow: 0 1px 6px #101112;
}
@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap { animation: intro-reveal 520ms ease-out both; }
  .status { animation: status-reveal 650ms ease-out both; }
  .instagram-link { transition: background-color 180ms ease-out; }
}
@keyframes intro-reveal {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes status-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.teaser { margin: 1rem 0 0; color: #b8d2e6; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h1 { margin: 0; font-size: clamp(2.65rem, 4.7vw, 5.5rem); line-height: 1.06; letter-spacing: -.045em; }
.intro { max-width: 23rem; margin: 1rem 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; color: #f1f1f1; }
.instagram-invite {
  margin: 0 0 .75rem;
  color: #e4e8eb;
  line-height: 1.5;
  text-shadow: 0 1px 4px #101112;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-align: start;
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: 4px;
  background: #dceaf4;
  color: #171819;
  font-weight: 650;
  text-decoration: none;
}
.instagram-link:hover { background: #f0f7fc; }
.instagram-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    row-gap: 1rem;
    justify-items: center;
    padding: 0;
    background: #171819;
    text-align: center;
  }
  .hero::before {
    content: "";
    grid-area: 2 / 1;
    width: 100%;
    aspect-ratio: 1050 / 591;
    background:
      linear-gradient(180deg, #171819 0%, transparent 12%, transparent 80%, #171819),
      url("bancada-pk-games-mobile.webp") center / contain no-repeat;
  }
  .hero > .wrap {
    grid-area: 1 / 1;
    max-width: min(34rem, calc(100% - 2rem));
    padding-top: clamp(1.25rem, 5vw, 2.5rem);
  }
  .intro { margin-inline: auto; }
  .instagram-panel {
    grid-area: 3 / 1;
    justify-self: center;
    width: min(26rem, calc(100% - 2rem));
    max-width: none;
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
    padding: 1rem 0 0;
  }
  .instagram-link {
    display: flex;
    justify-content: center;
    min-height: 48px;
    text-align: center;
  }
  .instagram-link svg { flex: none; }
  h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); }
}

@media (max-width: 900px) and (max-height: 740px) {
  .hero { row-gap: .75rem; }
  .hero::before { max-height: 36svh; }
  .hero > .wrap { padding-top: 1rem; }
  .teaser, .intro { margin-top: .65rem; }
  .instagram-panel {
    margin-bottom: 1rem;
    padding-top: .65rem;
  }
  .home-footer { padding-block: .75rem; }
}
