:root {
  --page-bg: #ffffff;
  --page-text: #101010;
  --muted: #5f5f5f;
  --card-border: #e8e8e8;
  --card-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  --twitch: #9146ff;
  --youtube: #ff0000;
  --bluesky: #1185fe;
  --discord: #5865f2;
  --subscribestar: #009688;
  --kofi: #29abe0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  background: #fff;
}

.hero-band {
  width: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  width: min(100%, 1280px);
  aspect-ratio: 16 / 5;
  min-height: 220px;
  max-height: 420px;
  overflow: hidden;
  background: #000;
  background-image: url("HOWZ_Banner.png");
  position: relative;
  background-size: contain;
  background-position-x: center;
  background-repeat: no-repeat;
}

.banner-placeholder,
.twitch-embed-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.24), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 28% 50%, rgba(255, 255, 255, 0.18), transparent 30%),
    #111;
  text-align: center;
  padding: 32px;
}

.banner-placeholder h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.banner-placeholder p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
}

.twitch-embed-wrap {
  display: none;
  background: #000;
}

.twitch-embed-wrap.is-visible {
  display: block;
}

.twitch-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.intro {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.intro p {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.social-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  /* Optional: justify-self: center; // Use only if you want it small and centered, not stretched */
}

.social-card {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.social-card.card-twitch {
  color: var(--twitch);
}

.social-card.card-youtube {
  color: var(--youtube);
}

.social-card.card-discord {
  color: var(--discord);
}

.social-card.card-bluesky {
  color: var(--bluesky);
}

.social-card.card-subscribestar {
  color: var(--subscribestar);
}

.social-card--tip {
  grid-column: 1 / -1;
  width: min(540px, 100%);
  justify-self: center;
  text-align: center;
}

.brand-button {
  --brand: #111;
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: 700 1.02rem/1 Helvetica, Arial, sans-serif;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.brand-button:hover,
.brand-button:focus-visible {
  background: #fff;
  color: var(--brand);
  outline: none;
  transform: translateY(-1px);
}

.button-icon {
  grid-column: 1;
  justify-self: end;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease, width 180ms ease, margin 180ms ease;
}

.button-text {
  grid-column: 2;
  justify-self: center;
  transition: transform 180ms ease;
  white-space: nowrap;
}

.brand-button:hover .button-icon,
.brand-button:focus-visible .button-icon {
  opacity: 0;
  transform: scale(0);
  width: 0;
  margin-right: 0;
}

.brand-button svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: white;
}

.brand-button--twitch {
  --brand: var(--twitch);
}

.brand-button--youtube {
  --brand: var(--youtube);
}

.brand-button--bluesky {
  --brand: var(--bluesky);
}

.brand-button--discord {
  --brand: var(--discord);
}

.brand-button--subscribestar {
  --brand: var(--subscribestar);
}

.brand-button--kofi {
  --brand: var(--kofi);
}

.brand-button--kofi .heart {
  fill: #ff5f5f;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand-button--kofi:hover .button-icon,
.brand-button--kofi:focus-visible .button-icon {
  width: 24px;
  margin-right: 10px;
  opacity: 1;
  transform: scale(1);
}

.brand-button--kofi:hover .cup,
.brand-button--kofi:focus-visible .cup {
  opacity: 0;
}

.brand-button--kofi:hover .heart,
.brand-button--kofi:focus-visible .heart {
  transform: scale(1.18);
}

.blurb {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
  text-transform: math-auto;
}

.adult-warning {
  color: red;
  font-weight: 700;
}

@media (max-width: 760px) {
  .hero-inner {
    aspect-ratio: 16 / 8;
    min-height: 210px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card--tip {
    grid-column: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
