:where(a, button, input, textarea):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

html.preview-open {
  overflow: hidden;
}

.application-preview {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 42px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #f2f1ed;
  background: #0b0a09;
  border: 1px solid #f2f1ed55;
  font-family: 'GT Standard L', Arial, sans-serif;
}

.application-preview::backdrop {
  background: #0009;
  backdrop-filter: blur(8px);
}

.application-preview .preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  cursor: pointer;
}

.application-preview .preview-label {
  margin-bottom: 24px;
  font-family: 'GT Standard Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
}

.application-preview h2 {
  margin-bottom: 20px;
  font-family: 'Flecha M', Georgia, serif;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 300;
  line-height: 1.05;
}

.application-preview p {
  font-size: 15px;
  line-height: 1.5;
}

.application-preview .preview-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid #f2f1ed80;
  font-family: 'GT Standard Mono', monospace;
  font-size: 12px;
  cursor: pointer;
}

.preview-download:hover {
  color: #0b0a09;
  background: #f2f1ed;
}

.application-preview .preview-status {
  margin-top: 14px;
  font-size: 12px;
}

.preview-status:empty {
  display: none;
}

.cf-in [aria-invalid='true'] {
  outline: 2px solid #ffb9a9;
  outline-offset: 3px;
}

.no-script {
  min-height: 100svh;
  padding: 15vh 8vw;
  color: #fff;
  background: #015186;
}

.no-script h1 {
  margin-bottom: 24px;
  font: 300 clamp(42px, 7vw, 96px)/1.05 'Flecha M', Georgia, serif;
}

.no-script p {
  max-width: 40rem;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .application-preview { padding: 36px 24px 28px; }
}
