/* Discord page. One job: get somebody to the invite.

   The page head, crumb and kicker come from crosslinks.css, and the section
   and card typography from styles2.css. Everything here is the Discord
   page's own furniture: the join button, the server art, the four cards and
   the closing block. Prefix is dc- so nothing leaks onto another page. */

/* ---------- the join button ----------
   .btn-discord in styles2.css is sized for the header icon button, so this
   is the large text twin of it. Size only, colors stay in styles2.css. */

.btn-join {
  padding: 16px 34px;
  font-size: 17px;
  border: 1px solid rgba(79, 156, 247, 0.9);
}

.dc-cta {
  margin-top: 28px;
}

.dc-cta-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

/* The head's own paragraph rule sets a color, so the note has to come after
   it in specificity terms. It does, being a child of .dc-cta. */

.dc-head {
  padding-bottom: clamp(16px, 2vw, 28px);
}

/* ---------- server art ----------
   Capped rather than full bleed: the image is roughly square, and a square
   run to the full width of a desktop window pushes the cards off screen. */

.dc-art {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px clamp(20px, 6vw, 90px) 8px;
}

.dc-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dc-art a:hover img {
  border-color: var(--accent);
}

/* ---------- the four cards ---------- */

.dc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.dc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.dc-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.dc-card p {
  color: var(--text-mid);
  font-size: 15px;
}

.dc-card a { color: var(--accent); text-decoration: none; }
.dc-card a:hover { text-decoration: underline; }

/* ---------- closing block ---------- */

.dc-foot {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 24px clamp(56px, 7vw, 88px);
}

.dc-foot h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

.dc-foot p {
  color: var(--text-mid);
}

.dc-foot-links {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.dc-foot-links a { color: var(--accent); text-decoration: none; }
.dc-foot-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .dc-grid { grid-template-columns: 1fr; }
  .dc-art { padding-left: 20px; padding-right: 20px; }
}
