*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #ffffff;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: #111111;
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.3;
  padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
}

body.prompt-open {
  overflow: hidden;
}

main {
  width: min(100%, 36rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand {
  flex: 0 0 auto;
  width: min(100%, 36rem);
  margin: 0;
  font-family: "Playfair Display SC", "Times New Roman", Times, serif;
  font-size: clamp(1.7rem, 7.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #111111;
}

.portrait {
  display: block;
  width: min(58vw, 15rem);
  margin: 0 0 0.7rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 405 / 500;
}

.headline {
  margin: 0 0 1.35rem;
  font-size: clamp(2rem, 9.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #111111;
  max-width: 100%;
}

.action,
.prompt__choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.25rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: #c1121f;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.05rem, 4.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
}

.action:hover,
.action:focus-visible,
.prompt__choice:hover,
.prompt__choice:focus-visible {
  background: #9b0e18;
}

.action:focus-visible,
.prompt__choice:focus-visible,
.prompt__cancel:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 4px;
}

.action:active,
.prompt__choice:active {
  background: #7a0b13;
}

.prompt[hidden] {
  display: none;
}

.prompt {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.prompt__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(17, 17, 17, 0.45);
  cursor: pointer;
}

.prompt__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-height: min(90svh, 90dvh, 90vh);
  overflow: auto;
  background: #ffffff;
  color: #111111;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem 1.25rem max(1.25rem, calc(0.75rem + env(safe-area-inset-bottom, 0px)));
  text-align: center;
}

.prompt__sheet h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.prompt__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.prompt__cancel:hover,
.prompt__cancel:focus-visible {
  background: #f2f2f2;
}

@media (min-width: 600px) {
  .prompt__sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(22.5rem, calc(100% - 2rem));
    border-radius: 1.25rem;
    padding: 1.5rem;
  }
}
