:root {
  color-scheme: light;
  --desk: #14233c;
  --paper: #f7f2e7;
  --paper-deep: #eee6d5;
  --ink: #14233c;
  --ink-soft: #46536a;
  --rule: #cfdae5;
  --red: #bf2c19;
  --gutter-left: clamp(20px, 8vw, 104px);
  --gutter-right: clamp(20px, 5vw, 64px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}
h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
section[id], #top { scroll-margin-top: 16px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 5;
  padding: 10px 16px;
  background: var(--paper);
}
.skip:focus { top: 12px; }

.sheet {
  position: relative;
  max-width: 1200px;
  margin: clamp(0px, 2.4vw, 32px) auto;
  background: var(--paper);
  overflow: clip;
}
.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter-left) - 22px);
  width: 1.5px;
  background: var(--red);
  opacity: .5;
}

.paper-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter-right) 18px var(--gutter-left);
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.paper-head p span { margin-left: 12px; color: var(--ink-soft); }
.logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.head-link { margin-left: auto; font-weight: 700; }

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) var(--gutter-right) clamp(48px, 6vw, 76px) var(--gutter-left);
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px);
}
.eyebrow, .total-label, .ticket-tag, .marks {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.eyebrow { color: var(--red); font-weight: 700; }
h1 { margin-top: 10px; font-weight: 400; line-height: .98; }
.name {
  display: block;
  font-size: clamp(2.3rem, 9.1vw, 7.3rem);
  letter-spacing: -.035em;
}
.tlds {
  display: block;
  margin-top: 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 3.2vw, 2.3rem);
  letter-spacing: -.02em;
}
.tlds i { color: var(--ink); font-style: normal; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 48px);
}
.lede { max-width: 33em; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; }

.mcq { margin-top: 32px; }
.mcq-q b { font-family: var(--mono); margin-right: 6px; }
.options { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 14px; font-size: 1.25rem; }
.options li { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 4px; }
.bubble {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .75rem;
}
.correct { font-weight: 700; }
.correct .bubble { background: var(--ink); color: var(--paper); }
.ring {
  position: absolute;
  inset: -9px -18px;
  width: calc(100% + 36px);
  height: calc(100% + 18px);
  overflow: visible;
  pointer-events: none;
}
.ring path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .9s .35s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.total {
  padding: 20px 22px 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.total-price { font-size: 3.5rem; line-height: 1.05; letter-spacing: -.03em; margin-top: 4px; }
.total-note { color: var(--ink-soft); margin-bottom: 18px; }

.button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.button:hover { background: #9c2212; }

.block {
  position: relative;
  padding: clamp(44px, 6vw, 72px) var(--gutter-right) clamp(44px, 6vw, 72px) var(--gutter-left);
  border-top: 1.5px solid var(--ink);
}
.q-head { position: relative; display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.q-no {
  position: absolute;
  right: 100%;
  margin-right: 38px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
}
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.marks { margin-left: auto; color: var(--ink-soft); white-space: nowrap; }
h3 { font-size: 1.25rem; line-height: 1.25; }

.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ticket { position: relative; padding: 22px 24px 12px; border: 1.5px solid var(--ink); background: var(--paper-deep); }
.ticket-tag { color: var(--ink-soft); }
.ticket h3 { margin: 8px 0 14px; font-size: clamp(1.3rem, 2.7vw, 2rem); font-weight: 400; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ticket h3 b { color: var(--red); font-weight: 400; }
.ticket dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(20, 35, 60, .25); font-size: 1rem; }
.ticket dt { color: var(--ink-soft); }
.here {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.reasons p, .steps p { margin-top: 6px; color: var(--ink-soft); font-size: 1.03rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(30px, 4vw, 44px);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.stats div { display: flex; flex-direction: column; padding: 18px 16px 18px 0; }
.stats div + div { padding-left: 18px; border-left: 1px solid rgba(20, 35, 60, .25); }
.stats dd { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.03em; }
.stats dt { margin-top: 4px; color: var(--ink-soft); font-size: .98rem; line-height: 1.3; }
.source { margin-top: 12px; color: var(--ink-soft); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); counter-reset: step; }
.steps li { padding-top: 14px; border-top: 3px solid var(--ink); counter-increment: step; }
.steps li::before { content: "Step " counter(step); display: block; margin-bottom: 8px; color: var(--red); font-family: var(--mono); font-size: .76rem; font-weight: 700; text-transform: uppercase; }

.caution { max-width: 50em; padding: clamp(20px, 3vw, 30px); border: 2px solid var(--red); }
.caution p + p { margin-top: 12px; }

.answer { background: var(--paper-deep); }
form { max-width: 720px; }
.choice { display: grid; gap: 10px; margin-bottom: 26px; }
.choice legend { margin-bottom: 10px; font-weight: 700; }
.choice label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.choice input {
  appearance: none;
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.choice input:checked { background: radial-gradient(circle, var(--red) 0 7px, var(--paper) 7.5px); border-color: var(--red); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 1rem; font-weight: 700; }
.field label span { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom: 3px solid var(--red); padding-bottom: 7.5px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--red); }
form .button { width: auto; min-width: 300px; }
.form-error { margin-bottom: 14px; color: var(--red); font-weight: 700; }
.fine { margin-top: 12px; color: var(--ink-soft); font-size: .92rem; }

.sent { max-width: 720px; margin-top: 28px; padding: 20px 22px; border: 2px solid var(--ink); background: var(--paper); }
.sent p { margin: 6px 0 12px; }
.text-button { padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#copy-status { margin-left: 10px; color: var(--ink-soft); font-size: .95rem; }

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--gutter-right) 26px var(--gutter-left);
  border-top: 1.5px solid var(--ink);
  color: var(--ink-soft);
  font-size: .92rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .total { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter-left: 16px; --gutter-right: 16px; }
  body { font-size: 1.0625rem; }
  .sheet::before { display: none; }
  .paper-head p { display: none; }
  .name { font-size: 10.4vw; }
  .q-no { position: static; margin: 0; color: var(--red); }
  .q-head { gap: 10px; flex-wrap: wrap; }
  .marks { margin-left: 0; width: 100%; }
  .options { gap: 10px 24px; font-size: 1.12rem; }
  .tickets, .field-row, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div { flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 0; }
  .stats dd { flex: 0 0 128px; font-size: 1.85rem; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(20, 35, 60, .25); }
  .total { max-width: none; }
  form .button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring path { animation: none; stroke-dashoffset: 0; }
  .button { transition: none; }
}
