:root {
  color-scheme: light;
  --canvas: #f7eddf;
  --surface: #fffaf2;
  --ink: #2e1b13;
  --muted: #6d5142;
  --line: #e6d5c0;
  --gold: #f6c987;
  --green: #1e6240;
  --green-light: #e5f1e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0, #fff9ee 0%, transparent 65%), var(--canvas);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page {
  width: min(calc(100% - 48px), 56rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 6vw, 4.25rem) 1.5rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .8fr);
  align-items: center;
  gap: 1.75rem;
  overflow: hidden;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #71492e;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 83% 47%, #97602f 0%, transparent 55%),
    linear-gradient(112deg, #2b170f 5%, #4f2b1c 64%, #6c3f25 100%);
  color: #fff5e4;
  box-shadow: 0 18px 42px #502a162c, inset 0 1px #fae4bc26;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .93;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 11rem);
  aspect-ratio: 1;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  inset: -8%;
  border: 1px solid #f8cb825c;
  border-radius: 50%;
  content: "";
}

.hero-art::after {
  inset: -17%;
  border-color: #f8cb8230;
}

.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px #24120ab0);
}

.hero-sparks {
  position: absolute;
  z-index: 2;
  inset: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
}

.groups {
  margin-top: 2rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .26rem .75rem;
  margin-bottom: .85rem;
}

.section-description {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.28rem, 3.3vw, 1.62rem);
  font-weight: 750;
  letter-spacing: -.045em;
}

.channel-label {
  display: inline-flex;
  align-items: center;
  gap: .43rem;
  color: var(--green);
  font-size: .77rem;
  font-weight: 690;
}

.channel-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #3f8c5c;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: start;
  gap: .92rem;
  padding: 1.18rem 2.3rem 1.18rem 1.18rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: 0 7px 22px #4d28130c;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card:has(.join[href])::after {
  position: absolute;
  top: 50%;
  right: 1.18rem;
  width: .44rem;
  height: .44rem;
  border-block-start: 2px solid #97633d;
  border-inline-end: 2px solid #97633d;
  content: "";
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) {
  .link-card:has(.join[href]):hover {
    transform: translateY(-2px);
    border-color: #bf9b76;
    box-shadow: 0 12px 25px #4d28131a;
  }
}

.link-card:focus-within {
  outline: 3px solid #a4683d;
  outline-offset: 3px;
}

.link-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.link-content h3 {
  margin: .03rem 0 .18rem;
  font-size: clamp(1rem, 2.6vw, 1.17rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.24;
}

.link-content p {
  margin: 0 0 .64rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
}

.join {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2rem;
  padding: .32rem .67rem;
  border-radius: 2rem;
  background: var(--green-light);
  color: var(--green);
  font-size: .77rem;
  font-weight: 720;
  line-height: 1.3;
  text-decoration: none;
}

.join[href]::before {
  flex: none;
  width: .94rem;
  height: .94rem;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 11.5a8.5 8.5 0 0 1-12.6 7.4L4 20l1.1-3.8A8.5 8.5 0 1 1 20.5 11.5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9.2 7.8c.4-.4 1-.2 1.2.2l.7 1.5c.1.3.1.5-.1.8l-.4.5c.5 1 1.3 1.7 2.2 2.2l.5-.4c.3-.2.5-.2.8-.1l1.5.7c.4.2.6.8.2 1.2l-.5.6c-.7.8-2.7.2-4.5-1.7s-2.5-3.8-1.7-4.5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.join[href]::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.join:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.join.disabled {
  background: #f0e6da;
  color: var(--muted);
  cursor: not-allowed;
}

.footer {
  margin-top: 1.55rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}

@media (max-width: 660px) {
  .page {
    width: calc(100% - 32px);
    padding-top: 1rem;
  }

  .hero {
    grid-template-columns: clamp(2.6rem, 11vw, 3.5rem) minmax(0, 1fr);
    grid-template-areas: "emblem title";
    gap: clamp(.65rem, 2.7vw, 1rem);
    padding: .55rem .85rem;
    border-radius: .95rem;
    background:
      radial-gradient(ellipse at 12% 48%, #8a542c 0%, transparent 64%),
      linear-gradient(120deg, #59311e, #2b170f 90%);
  }

  .hero-copy {
    grid-area: title;
  }

  .hero-art {
    grid-area: emblem;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.22rem, 5.3vw, 1.9rem);
    letter-spacing: -.055em;
    line-height: 1.1;
    white-space: nowrap;
  }

  .groups {
    margin-top: 1.28rem;
  }

  .section-heading {
    margin-bottom: .65rem;
  }

  .links {
    grid-template-columns: minmax(0, 1fr);
    gap: .63rem;
  }

  .link-card {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: .75rem;
    padding: .88rem 1.95rem .88rem .88rem;
    border-radius: 1.13rem;
  }

  .link-card:has(.join[href])::after {
    right: .9rem;
  }

  .footer {
    margin-top: 1.18rem;
  }
}

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

  .link-card:has(.join[href]):hover {
    transform: none;
  }
}

/* Cabeçalho compacto: nome em linha única e sem ornamentos extras. */
@media (max-width: 660px) {
  .hero h1 span { display: inline; }
  .hero h1 span::before { content: ' '; white-space: pre; }
  .hero-art::before, .hero-art::after, .hero-sparks { display: none; }
}

/* Identidade neutra para os dois perfis. */
.hero-neutral-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
}
@media (max-width: 660px) {
  .hero-neutral-icon { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* Botões de escolha entre WhatsApp e Telegram. */
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.join-actions .join {
  position: relative;
  z-index: 1;
  justify-content: center;
  min-height: 2.25rem;
  padding: .42rem .7rem;
  white-space: nowrap;
}
.join-actions .join-telegram {
  background: #e3f2fc;
  color: #176b9c;
}
.join-actions .join-telegram::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.6 3.4 2.8 10.7c-1.3.5-1.3 1.2-.2 1.5l4.8 1.5 1.9 5.9c.2.7.1 1 1 .9.7 0 1-.3 1.4-.7l2.3-2.2 4.8 3.5c.9.5 1.5.3 1.7-.8L23.5 5c.3-1.4-.5-2.1-1.9-1.6ZM8.2 13.4l10.9-6.9c.5-.3 1-.1.6.3l-9 8.1-.4 4.1-2.1-5.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 660px) {
  .join-actions { gap: .4rem; }
  .join-actions .join { font-size: .75rem; }
}
