/* Community — Studio-aligned Google minimal (B/W) */

.comm-page {
  background: var(--bg);
  color: var(--ink);
}

.comm-main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.comm-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.comm-headline {
  margin: 0 0 14px;
  max-width: 18em;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.comm-lead {
  margin: 0 0 28px;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.comm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.comm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.comm-github-icon {
  flex-shrink: 0;
  display: block;
}

.comm-btn-email {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.comm-btn-primary {
  background: var(--ink);
  color: #fff;
}

.comm-btn-primary:hover {
  background: #000;
  color: #fff;
}

.comm-btn-secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-strong);
}

.comm-btn-secondary:hover {
  background: var(--hover);
  border-color: var(--ink);
  color: var(--ink);
}

.comm-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.comm-section h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.comm-sec-lead {
  margin: 0 0 28px;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.comm-ent-body {
  margin: -12px 0 28px;
  max-width: 42em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.comm-btn-primary .comm-btn-email {
  color: rgba(255, 255, 255, 0.72);
}

.comm-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.comm-roles .comm-idx {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.comm-roles h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.comm-roles p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.comm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 40em;
}

.comm-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 14px;
  align-items: start;
}

.comm-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.comm-steps h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.comm-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.comm-promise {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comm-promise li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.comm-promise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.comm-join {
  border-bottom: none;
}

.comm-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.comm-footer a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.comm-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .comm-roles {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comm-hero {
    padding: 36px 0 32px;
  }

  .comm-section {
    padding: 36px 0;
  }
}

@media (max-width: 720px) {
  .comm-main {
    padding: 0 max(16px, env(safe-area-inset-right)) 0
      max(16px, env(safe-area-inset-left));
  }

  .comm-hero {
    padding: 32px 0 28px;
  }

  .comm-section {
    padding: 32px 0;
  }

  .comm-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .comm-cta .comm-btn {
    text-align: center;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .comm-footer {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}
