@font-face {
  font-family: Switzer;
  src: url("./fonts/Switzer-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("./fonts/Switzer-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Reddit Mono";
  src: url("./fonts/reddit-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

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

html {
  font-family: Switzer, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

.page {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: #fffef2;
  color: #2e2c28;
}

.header {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 3.5vw, 48px) 24px clamp(18px, 3vw, 36px);
}

.logo {
  display: block;
  width: clamp(126px, 12vw, 156px);
  height: auto;
}

.question-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 16px 24px clamp(36px, 5vw, 68px);
}

.verification-card {
  width: min(100%, 790px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid #e5e2d8;
  border-radius: 16px;
  background: #fffef2;
  box-shadow: 0 20px 65px rgb(46 44 40 / 4%);
  text-align: center;
}

.verification-card-declined {
  width: min(100%, 650px);
}

.eyebrow,
.footer {
  font-family: "Reddit Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 20px;
  color: #575049;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.06;
  text-wrap: balance;
}

.description {
  max-width: 610px;
  margin: 24px auto 0;
  color: #575049;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.verification-form {
  display: grid;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 44px);
}

.confirmation-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid #dcdad1;
  border-radius: 8px;
  background: #fffef2;
  cursor: pointer;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.48;
  text-align: center;
  transition: border-color 220ms ease;
}

.confirmation-option:hover {
  border-color: #938f86;
}

.confirmation-option:has(input:focus-visible) {
  outline: 2px solid #2e2c28;
  outline-offset: 3px;
}

.confirmation-option input {
  flex: none;
  width: 23px;
  height: 23px;
  margin: 0;
  accent-color: #2e2c28;
  cursor: pointer;
}

.confirmation-option strong {
  font-weight: 500;
}

.confirmation-option span {
  max-width: 480px;
}

.security {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 8px;
}

.security[hidden] {
  display: none;
}

.security-label {
  margin: 0;
  color: #777168;
  font-family: "Reddit Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#turnstile {
  min-height: 65px;
}

.status {
  margin: 4px 0 0;
  color: #575049;
  font-size: 14px;
  line-height: 1.5;
}

.status.is-success {
  color: #2f5d3a;
}

.status.is-error {
  color: #9b2c1f;
}

.action {
  display: inline-flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 24px;
  border: 1px solid #1c1a17;
  border-radius: 2px;
  color: #fffef2;
  cursor: pointer;
  font: 500 16px Switzer, Arial, sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

.action-primary {
  background: #1c1a17;
}

.action-primary:not(:disabled):hover {
  border-color: #39342d;
  background: #39342d;
}

.action:disabled {
  border-color: #d9dbd3;
  background: #d9dbd3;
  color: #777a73;
  cursor: not-allowed;
}

.action:focus-visible,
.decline-link:focus-visible {
  outline: 2px solid #2e2c28;
  outline-offset: 4px;
}

.decline-link {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  color: #575049;
  font-size: 14px;
  text-align: center;
  text-decoration-color: #a49f95;
  text-underline-offset: 4px;
}

.decline-link:hover {
  color: #1c1a17;
  text-decoration-color: currentColor;
}

.disclaimer {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid #e5e2d8;
  color: #777168;
  font-size: 13px;
  line-height: 1.65;
}

.footer {
  padding: 0 24px clamp(24px, 3vw, 42px);
  color: #575049;
  letter-spacing: 0.08em;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .header {
    padding: 27px 20px 26px;
  }

  .logo {
    width: 134px;
  }

  .question-panel {
    align-items: flex-start;
    padding: 0 16px 40px;
  }

  .verification-card {
    padding: 30px 22px;
    border-radius: 12px;
  }

  h1 {
    font-size: clamp(37px, 9vw, 48px);
  }

  .description {
    margin-top: 20px;
    font-size: 17px;
  }

  .verification-form {
    margin-top: 30px;
  }

  .confirmation-option {
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
    font-size: 16px;
  }

  .confirmation-option input {
    width: 22px;
    height: 22px;
  }

  .action {
    min-height: 58px;
  }

  .disclaimer {
    margin-top: 34px;
  }

  .footer {
    padding: 0 20px max(26px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .question-panel {
    padding-inline: 12px;
  }

  .verification-card {
    padding-inline: 18px;
  }

  .confirmation-option {
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action,
  .confirmation-option {
    transition: none;
  }
}
