/* Jiu-jitsu page: the quiet one. Small ring, one lit sentence, plain facts. */

.bjj-open { padding-bottom: clamp(1rem, 4vh, 2.5rem); }
.bjj-open .opening__figure { margin-right: 0; }
.bjj-fig { display: grid; place-items: center; }

/* Open ring, smaller than on any other page */
.bjj-ring {
  position: relative; width: min(100%, 19rem); aspect-ratio: 1;
  margin: 0 auto 2.5rem;
}
.bjj-ring .dotring { position: absolute; inset: 0; }
.bjj-ring__photo {
  position: absolute; inset: 11%;
  box-shadow: 0 0 0 0.13rem var(--gourd);
}
.bjj-ring .ring__seat { bottom: 2%; max-width: calc(100vw - 2rem); white-space: normal; text-align: center; padding-block: 0.4rem; }

/* The sentence that lights as it is read */
.lit { padding-block: clamp(4rem, 16vh, 9rem); }
.lit__text {
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 4.5vw, 5rem);
  line-height: 1.2;
  max-width: 24ch;
  text-wrap: balance;
}
.lit__w { transition: opacity .6s var(--settle), color .6s var(--settle); }
.js .lit__w:not(.is-lit) { opacity: .72; }
.lit__w--sun.is-lit { color: var(--sun); }

/* Plain facts */
.bjj-body { display: grid; gap: 0; }
.bjj-body > * { min-width: 0; }
.bjj-where { max-width: 44rem; }
.bjj-where h2, .bjj-arrange h2, .prose h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); }
.bjj-where h2 { margin-bottom: 1rem; }
.bjj-arrange { display: grid; gap: 1.25rem; justify-items: start; }
.bjj-arrange .pill { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.bjj-close { padding-top: clamp(1rem, 4vh, 2rem); }
.bjj-body .dot-rule { margin-inline: 0; width: min(100%, 26rem); }

@media (min-width: 60rem) {
  .bjj-open .opening__text { grid-column: 1 / span 7; }
  .bjj-open .opening__figure { grid-column: 9 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .lit__w:not(.is-lit) { opacity: 1; }
  .lit__w--sun { color: var(--sun); }
}
