:root {
  --ink: #151512;
  --paper: #eee8d8;
  --paper-dark: #d8cfb9;
  --muted: #4c4a42;
  --line: #aaa18d;
  --red: #b3382c;
  --red-dark: #76281f;
  --yellow: #f3c640;
  --green: #286348;
  --blue: #276b77;
  --white: #fffdf5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button, input, textarea { font: inherit; }

.hero {
  min-height: min(86vh, 780px);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; object-position: 64% center; }

.hero-shade {
  background: rgba(12, 12, 9, .62);
}

.hero-content {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 72px 32px 64px;
  color: var(--white);
}

.caught-stamp {
  position: absolute;
  z-index: 2;
  top: 9%;
  right: clamp(22px, 7vw, 110px);
  margin: 0;
  border: 5px double var(--yellow);
  padding: 12px 15px 9px;
  color: var(--yellow);
  font-size: clamp(.82rem, 1.6vw, 1.15rem);
  font-weight: 900;
  line-height: .92;
  text-align: center;
  transform: rotate(8deg);
  opacity: .9;
}

.pilot-mark,
.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: "Courier New", ui-monospace, monospace;
}

.pilot-mark { font-size: .95rem; letter-spacing: .05em; }
.eyebrow { color: var(--red-dark); font-size: .875rem; }
.rules .eyebrow { color: var(--yellow); }
.eyebrow #tag-id { font-size: 1.1rem; user-select: all; }

h1, h2, p { letter-spacing: 0; }

h1 {
  margin: 0;
  max-width: 680px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5rem, 16vw, 11.5rem);
  font-weight: 900;
  line-height: .78;
  text-transform: uppercase;
  transform: rotate(-2deg);
  text-shadow: 7px 7px 0 var(--red);
}

.tagline {
  display: inline-block;
  margin: 34px 0 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 10px;
  font-size: clamp(1.55rem, 3.4vw, 2.7rem);
  font-weight: 900;
  transform: rotate(1deg);
}

.turn { max-width: 590px; margin: 18px 0 8px; font-size: 1.05rem; font-weight: 700; white-space: pre-line; }
.hero-object { max-width: 590px; margin: 0 0 28px; color: #f2ecdf; font-size: .98rem; }
.whisper { margin: 16px 0 0; color: #e7e0d2; font-family: "Courier New", ui-monospace, monospace; font-size: .88rem; text-transform: uppercase; }
.pilot-note { max-width: 620px; margin: 16px 0 0; border-left: 5px solid var(--yellow); padding-left: 12px; color: #f2ecdf; font-size: .92rem; }

.primary-link,
.submit-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-link { padding: 0 22px; }
.primary-link:hover, .primary-link:focus-visible,
.submit-button:hover, .submit-button:focus-visible { background: var(--white); box-shadow: 5px 5px 0 var(--red); }

.band { border-bottom: 2px solid var(--ink); }

.section-inner {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-inner.narrow { width: min(760px, calc(100% - 40px)); }

h2 {
  margin: 0 0 18px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.intro p:not(.eyebrow) { max-width: 680px; font-size: 1.08rem; }
.intro h2 { margin-bottom: 10px; }
.welcome-line { margin-bottom: 18px; }
.intro-lede { font-weight: 900; }
.intro { position: relative; overflow: hidden; }
.intro::after {
  content: "PASS IT ON";
  position: absolute;
  right: -24px;
  bottom: 20px;
  color: rgba(179, 56, 44, .09);
  font-family: Impact, sans-serif;
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: 1;
  transform: rotate(-4deg);
  z-index: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { position: relative; border-top: 6px solid var(--red); padding: 14px 8px 0 0; }
.steps li:nth-child(2) { border-color: var(--blue); transform: translateY(9px) rotate(-1deg); }
.steps li:nth-child(3) { border-color: var(--green); transform: translateY(-5px) rotate(1deg); }
.steps strong, .steps span { display: block; }
.steps strong { margin-bottom: 6px; }
.steps span { color: var(--muted); }

.check-in {
  background-color: var(--paper-dark);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(52, 72, 92, .12) 32px);
}

.check-in-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.quiet, .privacy-note { color: var(--muted); font-size: 1rem; }

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--red-dark);
  cursor: pointer;
  padding: 10px 0;
  font-weight: 800;
}

.tag-lookup {
  margin: 0 0 30px;
  border: 2px dashed var(--ink);
  background: rgba(255, 253, 245, .88);
  padding: 16px;
}

.tag-lookup label { display: block; margin-bottom: 10px; font-weight: 800; }
.tag-lookup-row { display: flex; gap: 8px; }
.tag-lookup-row input { min-width: 0; flex: 1; }
.tag-lookup-row button { border: 2px solid var(--ink); background: var(--yellow); padding: 0 16px; font-weight: 900; }

fieldset { margin: 0 0 32px; padding: 0; border: 0; }

legend, .note-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.note-label span { color: var(--muted); font-weight: 500; }

.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.outcome,
.event-list label {
  display: flex;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: rgba(255, 253, 245, .86);
  cursor: pointer;
}

.outcome {
  min-height: 150px;
  flex-direction: column;
  padding: 18px;
}

.outcome:nth-child(1) { transform: rotate(-.5deg); }
.outcome:nth-child(2) { transform: translateY(5px) rotate(.7deg); }
.outcome:nth-child(3) { transform: rotate(-.3deg); }

.outcome input { align-self: flex-start; accent-color: var(--green); }
.outcome-title { font-size: 1.18rem; font-weight: 800; }
.outcome span:last-child { color: var(--muted); font-size: 1rem; }
.outcome:has(input:checked), .event-list label:has(input:checked) { background: var(--yellow); outline: 4px solid var(--green); outline-offset: -6px; }

.event-list { display: grid; gap: 10px; }
.event-list label { align-items: flex-start; padding: 16px; }
.event-list input { margin-top: 5px; accent-color: var(--green); }
.event-list span, .event-list strong { display: block; }
.event-list strong { margin-bottom: 3px; }

textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  padding: 14px;
}

input[type="text"], input[type="date"], .tag-lookup input {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  padding: 10px 12px;
  font: inherit;
}

.other-show-fields {
  margin-top: 12px;
  border-left: 6px solid var(--blue);
  background: rgba(255, 253, 245, .88);
  padding: 16px;
}

.other-show-fields label { display: block; margin: 12px 0 5px; font-weight: 800; }
.other-show-fields input { width: 100%; }
.other-show-fields p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

.disclosure,
.before-you-pass,
.signal-note,
.confirmation,
.noscript-message {
  background: rgba(255, 253, 245, .9);
  border: 2px solid var(--ink);
  padding: 16px;
}

.disclosure { margin: 10px 0 14px; }
.disclosure p { margin: 0; }
.disclosure p + p { margin-top: 8px; }
.before-you-pass { margin: 0 0 14px; border-color: var(--red-dark); }
.before-you-pass p { margin: 6px 0 0; }
.signal-note { margin: 0 0 18px; border-style: dashed; font-weight: 700; }
.confirmation { border-width: 4px; box-shadow: 8px 8px 0 var(--green); }
.confirmation h3 { margin: 0 0 8px; font-family: Impact, sans-serif; font-size: 2.4rem; text-transform: uppercase; }
.confirmation p { margin: 8px 0; }
.noscript-message { margin-bottom: 28px; border-color: var(--red-dark); }
.noscript-message p { margin: 6px 0 0; }
.revocation-code code { display: block; margin-top: 8px; overflow-wrap: anywhere; background: var(--paper-dark); padding: 8px; user-select: all; }
.confirmation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.secondary-button { min-height: 46px; border: 2px solid var(--ink); background: var(--yellow); padding: 8px 14px; cursor: pointer; font-weight: 900; }

.privacy-note { margin: 8px 0 20px; }
.submit-button { width: 100%; padding: 0 20px; }
.form-status { min-height: 24px; margin: 12px 0 0; font-weight: 700; }

.journey { background: var(--paper); }
.journey-list { margin-top: 30px; border-left: 4px dashed var(--blue); }

.journey-entry { position: relative; padding: 0 0 28px 28px; }
.journey-entry::before { content: ""; position: absolute; left: -9px; top: 4px; width: 14px; height: 14px; border: 3px solid var(--paper); border-radius: 50%; background: var(--red); }
.journey-entry:last-child { padding-bottom: 0; }
.journey-entry time { color: var(--muted); font-size: 1rem; }
.journey-entry strong, .journey-entry span { display: block; }
.journey-entry strong { margin: 4px 0; }
.journey-empty { border: 2px dashed var(--blue); padding: 18px; }
.journey-empty strong { display: block; margin-bottom: 6px; }
.follow-button { margin-top: 28px; border: 2px solid var(--ink); background: var(--yellow); padding: 12px 16px; cursor: pointer; font-weight: 900; }

.rules { background: var(--ink); color: var(--white); }
.rules h2 { color: var(--yellow); transform: rotate(-1deg); }
.rules ul { margin: 28px 0 0; padding-left: 22px; }
.rules li { margin-bottom: 14px; }

footer { background: var(--yellow); color: var(--ink); padding: 26px 20px; text-align: center; font-size: .9rem; font-weight: 900; }
footer p { margin: 5px 0; }
footer a { color: var(--ink); }

.outcome:has(input:focus-visible),
.event-list label:has(input:focus-visible),
textarea:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .hero { min-height: 72vh; }
  .hero-image { object-position: 65% center; }
  .hero-shade { background: rgba(12, 12, 9, .69); }
  .hero-content { padding: 92px 20px 42px; }
  .caught-stamp {
    top: 16px;
    right: 14px;
    border-width: 3px;
    font-size: .68rem;
    transform: rotate(6deg) scale(.82);
    transform-origin: top right;
  }
  h1 { font-size: clamp(4.6rem, 25vw, 7rem); text-shadow: 5px 5px 0 var(--red); }
  .section-inner, .section-inner.narrow { width: min(100% - 32px, 760px); padding: 48px 0; }
  .steps, .outcome-grid { grid-template-columns: 1fr; }
  .outcome { min-height: 0; }
  .outcome:nth-child(n) { transform: none; }
  .check-in-heading { display: block; }
  .quiet { margin-top: 8px; }
  .tag-lookup-row { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
