/* Chapter III: the cathedral square. A wax-sealed calling card for contact. */

.scene--catedral {
  --scene-bg: #2d22a8;
  --accent: #d8b06a;
}

.scene--catedral .scene__backdrop::before {
  background-image: url("../../assets/catedral/cielo-s.webp");
}

.scene--catedral .scene__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: end;
}

.calling-card {
  position: relative;
  width: min(100%, 26rem);
  padding: var(--space-4);
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.04), transparent 40%),
    #1a0f17;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: -8px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.6);
}

.calling-card h2 {
  margin-block: var(--space-1) var(--space-2);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  color: var(--accent);
}

.calling-card__links {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.calling-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.25rem;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.3em;
  transition: color 0.2s;
}

.calling-card__links a:hover,
.calling-card__links a:focus-visible {
  color: var(--accent);
}

.calling-card__links svg {
  width: 1.25rem;
  fill: currentColor;
}

.calling-card__seal {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  display: grid;
  place-items: center;
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #c2333f, #7a0f1d 70%);
  box-shadow:
    inset 0 0 0 6px rgb(0 0 0 / 0.18),
    0 6px 14px rgb(0 0 0 / 0.5);
  color: rgb(0 0 0 / 0.35);
  font-family: var(--font-display);
  font-size: 1.8rem;
  rotate: -12deg;
}

/* Keep the seal inside the viewport on narrow screens (no horizontal scroll). */
@media (max-width: 40rem) {
  .calling-card__seal {
    right: -0.25rem;
  }
}

@media (max-aspect-ratio: 1 / 1) {
  .scene--catedral {
    --focus-x: 30%;
  }

  .scene--catedral .scene__content {
    align-items: end;
    justify-items: center;
    padding-bottom: 6rem;
  }
}

@media (forced-colors: active) {
  .calling-card__seal {
    border: 2px solid CanvasText;
  }
}
