.thema-opening {
  --thema-opening-paper: #ffffff;
  --thema-opening-ink: #00546D;
  --thema-opening-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --thema-opening-text: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --thema-opening-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  background: var(--thema-opening-paper);
  color: var(--thema-opening-ink);
}

.thema-opening__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.thema-opening[data-fallback="true"] .thema-opening__canvas {
  display: none;
}

.thema-opening__wordmark {
  position: absolute;
  top: var(--thema-opening-wordmark-top, 63.5%);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: var(--thema-opening-wordmark-opacity, 1);
  pointer-events: none;
}

.thema-opening[data-fallback="true"] .thema-opening__wordmark {
  top: 50%;
  transform: translateY(-50%);
}

.thema-opening__spoken {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.thema-opening__letters {
  color: #0081A7;
  display: flex;
  font-family: var(--thema-opening-display);
  font-size: clamp(2.25rem, 7.5cqh, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.thema-opening__letter-mask {
  display: inline-block;
  margin: -0.14em -0.03em -0.2em;
  padding: 0.14em 0.03em 0.2em;
  overflow: hidden;
}

.thema-opening__letter {
  display: inline-block;
  transform-origin: 0 100%;
  will-change: transform, opacity;
}

.thema-opening__rule {
  display: none;
  width: clamp(2rem, 5cqh, 3.25rem);
  height: 1px;
  margin-top: clamp(0.4rem, 1.3cqh, 0.9rem);
  background: currentColor;
  opacity: 0.35;
}

.thema-opening__descriptor {
  margin-top: clamp(0.4rem, 1.2cqh, 0.8rem);
  padding-left: 0.34em;
  font-family: var(--thema-opening-text);
  font-size: clamp(0.62rem, 1.4cqh, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.72;
}

.thema-opening__skip {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid rgb(0 84 109 / 0.24);
  border-radius: 999px;
  background: rgb(0 84 109 / 0.04);
  color: rgb(0 84 109 / 0.82);
  font-family: var(--thema-opening-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--thema-opening-ease-out);
}

.thema-opening__skip:active {
  transform: scale(0.97);
}

.thema-opening__skip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .thema-opening__skip:hover {
    background: rgb(0 84 109 / 0.1);
  }
}
