/**
 * Banly's bench wordmark — grounded white (active default).
 * Frost experiment: banlys-bench.frost.css (archived in git history).
 * PNG test: ?logo=png on flip-map.html
 * Revert file: banlys-bench.grounded-white.css
 */

.banlys-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  padding: 0.5rem 0 0;
  border: 0;
  font: inherit;
  color: inherit;
  isolation: isolate;
}

.banlys-mark-presence {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(22rem, 88vw);
  height: min(9rem, 38vw);
  transform: translate(-50%, -52%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 72% 68% at 50% 48%,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.18) 42%,
    transparent 72%
  );
  opacity: 0.9;
}

.banlys-mark-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  font-family: "Instrument Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(3.85rem, 14.5vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.018em;
  font-feature-settings: "liga" 1, "kern" 1;
  transform: translateZ(0);
}

.banlys-mark-b {
  font-weight: 600;
  font-variation-settings: "opsz" 56;
  color: #f4f6f8;
  margin-right: 0.015em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(0, 0, 0, 0.25);
}

.banlys-mark-rest {
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  letter-spacing: 0.012em;
  color: #eceef1;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(0, 0, 0, 0.22);
}

.banlys-mark-apo {
  font-weight: 400;
  font-size: 0.58em;
  margin: 0 0.04em 0 -0.05em;
  align-self: flex-start;
  margin-top: 0.12em;
  color: #d8dce2;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
}

/* PNG wordmark — same stage, baked depth in asset */
.banlys-mark-img {
  position: relative;
  z-index: 1;
  display: none;
  width: min(28rem, 86vw);
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.85))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}

.banlys-mark.is-png .banlys-mark-inner {
  display: none;
}

.banlys-mark.is-png .banlys-mark-img {
  display: block;
}

.banlys-mark-contact {
  position: relative;
  z-index: 0;
  display: block;
  width: min(11rem, 52vw);
  height: 6px;
  margin-top: 0.45rem;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.22) 45%,
    transparent 78%
  );
  filter: blur(3px);
  opacity: 0.85;
}

.banlys-mark.is-png .banlys-mark-contact {
  width: min(13rem, 58vw);
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .banlys-mark-inner {
    font-size: clamp(3.35rem, 13.5vw, 4.75rem);
  }

  .banlys-mark-presence {
    width: min(19rem, 92vw);
    height: min(7.5rem, 34vw);
  }

  .banlys-mark-img {
    width: min(24rem, 90vw);
  }
}
