/* ─── COMMUNITY PAGE ────────────────────────────────────────────
   Page-specific layout only. All tokens come from styles.css.
   Never redefines :root, never sets border-radius.
   ──────────────────────────────────────────────────────────── */

/* ─── HERO ───────────────────────────────────────────────────── */

.comm-hero {
  padding: 128px 0 96px;
  border-bottom: 1px solid var(--line);
}

.comm-hero__h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 14ch;
}

.comm-hero__sub {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

/* ─── DISCORD CTA (focal point) ──────────────────────────────── */

.discord-cta {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.discord-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  /* Accent top bar in amber to signal importance */
  border-top: 3px solid var(--amber);
  padding: 48px;
  position: relative;
}

.discord-panel__eyebrow {
  color: var(--amber);
  margin-bottom: -16px;
}

.discord-panel__headline {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 12ch;
}

.discord-panel__body {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.05rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}

.discord-panel__btn {
  font-size: 1rem;
  padding: 18px 40px;
  letter-spacing: 0.12em;
}

.discord-panel__note {
  color: var(--muted);
  margin-top: -16px;
}

/* ─── CHANNELS GRID ──────────────────────────────────────────── */

.channels {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.channels__h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 40px;
  line-height: 0.95;
}

.channels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.channel-item {
  padding: 40px 32px;
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
}

.channel-item:last-child {
  border-right: none;
}

.channel-item .eyebrow {
  margin-bottom: 16px;
}

.channel-item h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.channel-item p {
  font-family: 'Archivo', sans-serif;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── WHO IT IS FOR ──────────────────────────────────────────── */

.who {
  padding: 96px 0;
}

.who__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 62ch;
}

.who__text {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
}

.who__email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.who__email:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .comm-hero {
    padding: 80px 0 64px;
  }

  .discord-panel {
    padding: 40px 32px;
    gap: 28px;
  }

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

  .channel-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .channel-item:last-child {
    border-bottom: none;
  }

  .channels,
  .discord-cta,
  .who {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .comm-hero {
    padding: 56px 0 48px;
  }

  .comm-hero__h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .discord-panel {
    padding: 32px 20px;
    gap: 24px;
  }

  .discord-panel__btn {
    width: 100%;
    text-align: center;
    padding: 18px 24px;
  }

  .channel-item {
    padding: 32px 20px;
  }

  .channels,
  .discord-cta,
  .who {
    padding: 56px 0;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .who__email {
    transition: none;
  }
}
