:root {
  --paper: #f3ead2;
  --paper-light: #fff9e9;
  --cobalt: #1727a4;
  --cobalt-dark: #101a70;
  --orange: #f05a24;
  --orange-ink: #a7330c;
  --ink: #171710;
  --muted: #645e50;
  --rule: 4px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cobalt);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 5%) 0 1px, transparent 1px 18px),
    var(--cobalt);
}

button {
  font: inherit;
}

.page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 7vh, 72px) 0 24px;
}

.handoff {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(23 39 164 / 5%) 31px 32px),
    var(--paper);
  border: var(--rule) solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}

.handoff::before,
.handoff::after {
  position: absolute;
  right: -18px;
  width: 32px;
  height: 32px;
  border: var(--rule) solid var(--ink);
  border-radius: 50%;
  background: var(--cobalt);
  content: "";
}

.handoff::before {
  top: 31%;
}

.handoff::after {
  bottom: 23%;
}

.route-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--paper-light);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-mark {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: var(--rule) solid var(--cobalt);
  background: var(--orange);
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

.kicker,
.step-label,
.choice-number,
.return-label,
.status,
.page-credit,
.cut-line,
.privacy-strip {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 3px;
  color: var(--cobalt);
  font-size: 0.69rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.route-note {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.35;
  text-align: right;
}

.cut-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 26px;
  color: var(--cobalt);
  font-size: 0.62rem;
}

.cut-line::before,
.cut-line::after {
  flex: 1;
  border-top: 2px dashed var(--cobalt);
  content: "";
}

.app {
  min-height: 430px;
  padding: clamp(24px, 6vw, 48px);
}

.message-card {
  max-width: 620px;
}

.step-label {
  margin-bottom: 13px;
  color: var(--orange-ink);
  font-size: 0.75rem;
}

.question {
  max-width: 18ch;
  margin-bottom: clamp(28px, 6vw, 44px);
  color: var(--cobalt-dark);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.99;
  overflow-wrap: anywhere;
}

.choices {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-button {
  display: grid;
  width: 100%;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--cobalt);
  cursor: pointer;
  text-align: left;
  transition: transform 110ms ease, box-shadow 110ms ease, background 110ms ease;
}

.choice-number {
  color: var(--orange-ink);
  font-size: 0.78rem;
}

.choice-label {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.choice-arrow {
  color: var(--cobalt);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  text-align: right;
}

.choice-button:hover {
  background: #ffd9bc;
  box-shadow: 2px 2px 0 var(--cobalt);
  transform: translate(3px, 3px);
}

.choice-button:focus-visible,
.action-button:focus-visible,
.change-button:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 4px;
}

.answer-stamp {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 12px 5px;
  border: 4px solid var(--orange);
  color: var(--orange);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.answer-choice {
  max-width: 17ch;
  margin-bottom: 18px;
  color: var(--cobalt-dark);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(2.35rem, 9vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.answer-context {
  max-width: 52ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.return-slip {
  margin: 0 0 20px;
  padding: 16px;
  border: 2px dashed var(--cobalt);
  background: rgb(255 249 233 / 65%);
}

.return-label {
  display: block;
  margin-bottom: 7px;
  color: var(--orange-ink);
  font-size: 0.65rem;
}

.return-copy {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  user-select: all;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.action-button,
.change-button {
  min-height: 50px;
  border: 3px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-weight: 900;
}

.action-button {
  padding: 12px 20px;
  background: var(--orange);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
}

.action-button:hover {
  background: #ff7841;
}

.change-button {
  padding: 10px 15px;
  background: transparent;
  color: var(--cobalt);
}

.status {
  min-height: 1.2em;
  margin: 18px 0 0;
  color: var(--cobalt);
  font-size: 0.7rem;
}

.error-title {
  max-width: 14ch;
  margin-bottom: 18px;
  color: var(--cobalt-dark);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(2.3rem, 8vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.error-detail {
  max-width: 42ch;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-top: var(--rule) solid var(--ink);
  background: var(--cobalt);
  color: var(--paper-light);
  font-size: 0.64rem;
  line-height: 1.4;
}

.privacy-strip span {
  color: var(--orange);
  font-size: 1.6rem;
}

.privacy-strip p {
  margin: 0;
}

.page-credit {
  margin: 24px 0 0;
  color: var(--paper-light);
  font-size: 0.62rem;
  text-align: center;
}

@media (max-width: 540px) {
  .page-shell {
    width: min(100% - 22px, 760px);
    padding-top: 16px;
  }

  .handoff {
    box-shadow: 8px 8px 0 var(--ink);
  }

  .handoff::before,
  .handoff::after {
    display: none;
  }

  .route-strip {
    align-items: flex-start;
    padding: 18px;
  }

  .brand-mark {
    width: 48px;
    font-size: 1.4rem;
  }

  .route-note {
    display: none;
  }

  .cut-line {
    padding-inline: 18px;
  }

  .cut-line span {
    max-width: 130px;
    text-align: center;
  }

  .app {
    min-height: 470px;
    padding: 28px 20px 34px;
  }

  .choice-button {
    grid-template-columns: 34px 1fr 24px;
    gap: 8px;
    padding: 15px 12px;
  }

  .privacy-strip {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
