:root {
  --ink: #11100f;
  --paper: #f4dfb8;
  --paper-soft: #fff4df;
  --lime: #c8ff00;
  --blue: #08699e;
  --peach: #ff9e78;
  --purple: #724aa3;
  --white: #fffdf8;
  --danger: #c72d2d;
  --radius: 1.35rem;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Trebuchet MS", Verdana, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-soft);
  font-family: var(--body);
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  z-index: 20;
  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='.45'/%3E%3C/svg%3E");
}

button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  background: var(--white);
  border: var(--line);
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 4px solid var(--peach);
  outline-offset: 4px;
}

.site-header {
  height: 76px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--line);
  background: var(--lime);
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 900; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: var(--line); border-radius: 50%; background: var(--paper); font-family: var(--display); font-size: 1.35rem; transform: rotate(-8deg); }
.x-link { font-weight: 900; }
.x-link--small { font-family: var(--mono); font-size: .82rem; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  border-bottom: var(--line);
}
.hero-copy { padding: clamp(3rem, 8vw, 8rem) clamp(1.25rem, 5vw, 6rem); align-self: center; }
.eyebrow { font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; line-height: .9; letter-spacing: -.025em; }
h1 { max-width: 900px; margin-bottom: 2rem; font-size: clamp(4rem, 9vw, 9.5rem); }
h1 span { display: inline; color: var(--blue); text-shadow: 3px 3px 0 var(--ink); }
.hero-intro { max-width: 42rem; margin-bottom: 2rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; }
.primary-jump, .task-action, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.35rem;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary-jump:hover, .task-action:hover, .submit-button:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.hero-art { background: var(--blue); display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 4rem); position: relative; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 4px dashed var(--lime); border-radius: 50%; animation: orbit 22s linear infinite; }
.art-frame { width: min(100%, 620px); position: relative; z-index: 1; transform: rotate(1.5deg); }
.art-frame img { aspect-ratio: 1; width: 100%; object-fit: cover; border: var(--line); border-radius: 44% 44% 18% 18%; box-shadow: 12px 12px 0 var(--ink); background: var(--paper); transition: opacity .2s ease, transform .25s ease; }
.art-frame img.is-changing { opacity: .25; transform: scale(.98) rotate(-1deg); }
.speech-tag { position: absolute; right: -1rem; bottom: -1.25rem; margin: 0; max-width: 75%; padding: .85rem 1rem; border: var(--line); background: var(--white); box-shadow: 4px 4px 0 var(--ink); font-family: var(--mono); font-weight: 700; transform: rotate(-2deg); }
.approval-stamp { position: absolute; right: 4%; top: 5%; border: 4px solid var(--lime); border-radius: 50%; color: var(--lime); padding: 1.2rem .85rem; font: 900 1rem/1 var(--mono); text-align: center; transform: rotate(13deg); }

.requirements { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); background: var(--paper); border-bottom: var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 1; font-size: clamp(3rem, 6vw, 6rem); margin-bottom: 0; }
.section-heading > p:last-child { grid-column: 2; grid-row: 2; max-width: 34rem; font-weight: 700; }
.task-list { max-width: 1180px; margin: 0 auto; }
.task-card {
  display: grid;
  grid-template-columns: 78px minmax(240px, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 1.2rem;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: background .2s ease, transform .2s ease;
}
.task-card:nth-child(even) { transform: translateX(1.5rem) rotate(.3deg); }
.task-card.is-complete { background: var(--lime); }
.task-card.is-complete .task-number { background: var(--ink); color: var(--lime); }
.task-number { display: grid; place-items: center; width: 62px; height: 62px; border: var(--line); border-radius: 50%; font: 900 1.2rem var(--mono); background: var(--peach); }
.task-copy h3 { margin-bottom: .25rem; font-size: 1.2rem; }
.task-copy p { margin-bottom: 0; }
.task-action { padding: .72rem 1rem; font-size: .85rem; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); }
.confirm-control { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.confirm-control input { appearance: none; width: 26px; height: 26px; margin: 0; border: var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.confirm-control input:checked::after { content: "✓"; font-weight: 900; font-size: 1.2rem; }
.confirm-control input:disabled { opacity: .4; cursor: not-allowed; }
.code-box { display: flex; align-items: stretch; width: fit-content; margin-top: .75rem; border: var(--line); background: var(--ink); color: var(--lime); }
.code-box output { padding: .55rem .75rem; font: 900 1rem var(--mono); letter-spacing: .05em; }
.copy-button { border: 0; border-left: var(--line); background: var(--lime); padding: .55rem .75rem; font-weight: 900; cursor: pointer; }
.progress-rail { max-width: 1180px; margin: 2.5rem auto 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; font: 900 .82rem var(--mono); }
.progress-track { height: 18px; border: var(--line); background: var(--white); }
#progress-bar { display: block; height: 100%; width: 0; background: var(--blue); transition: width .35s ease; }

.application { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); min-height: 900px; background: var(--peach); border-bottom: var(--line); }
.application-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; background: var(--purple); border-right: var(--line); }
.application-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9); }
.application-art p { position: absolute; top: 8%; left: 8%; max-width: 70%; padding: .8rem 1rem; border: var(--line); background: var(--lime); box-shadow: var(--shadow); font: 900 1rem var(--mono); transform: rotate(-5deg); }
.form-panel { width: min(100%, 800px); padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 7vw, 6rem); align-self: center; }
.form-panel h2 { font-size: clamp(4rem, 8vw, 8rem); margin-bottom: 1rem; }
.form-gate { border: var(--line); background: var(--paper); padding: 1rem; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }
.form-gate.is-unlocked { background: var(--lime); }
form[inert] { opacity: .48; filter: grayscale(.6); }
.field { margin: 1.5rem 0; }
.field > label, .label-row label { display: block; margin-bottom: .45rem; font-weight: 900; }
.label-row { display: flex; justify-content: space-between; gap: 1rem; }
.label-row span { font: 700 .75rem var(--mono); }
.input-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; border: var(--line); background: var(--white); }
.input-wrap span { padding-left: 1rem; font-weight: 900; }
input, textarea { width: 100%; border: var(--line); border-radius: 0; background: var(--white); padding: .95rem 1rem; color: var(--ink); }
.input-wrap input { border: 0; }
textarea { resize: vertical; min-height: 140px; }
.field-hint { margin: .45rem 0 0; font-size: .78rem; font-weight: 700; }
.field-error { min-height: 1.2em; margin: .3rem 0 0; color: var(--danger); font-weight: 900; font-size: .8rem; }
.submit-button { width: 100%; min-height: 62px; background: var(--ink); font-size: 1rem; }
.submit-wait { display: none; }
.submit-button.is-waiting .submit-label { display: none; }
.submit-button.is-waiting .submit-wait { display: inline; }
.dots { animation: blink 1s steps(2, end) infinite; }
.privacy-note { margin: .9rem 0 0; font-size: .76rem; font-weight: 700; }
.form-status { display: none; margin-top: 1.2rem; border: var(--line); padding: 1rem; background: var(--white); font-weight: 900; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--lime); }
.form-status.is-error { background: #ffd1c4; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1rem, 4vw, 4rem); background: var(--ink); color: var(--white); font: 700 .75rem var(--mono); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 72vw; }
  .task-card { grid-template-columns: 64px 1fr auto; }
  .confirm-control { grid-column: 2 / -1; }
  .task-card:nth-child(even) { transform: none; }
  .application { grid-template-columns: .75fr 1.25fr; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; padding-inline: 1rem; }
  .x-link--small { font-size: .68rem; }
  .hero { min-height: auto; }
  .hero-copy { padding-block: 4rem; }
  .hero-art { min-height: 110vw; }
  .approval-stamp { font-size: .75rem; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 1rem; }
  .task-card { grid-template-columns: 54px 1fr; padding: 1rem; }
  .task-number { width: 46px; height: 46px; font-size: .9rem; }
  .task-action, .confirm-control { grid-column: 2; width: 100%; }
  .code-box { width: 100%; justify-content: space-between; }
  .progress-rail { grid-template-columns: 1fr; }
  .application { grid-template-columns: 1fr; }
  .application-art { min-height: 105vw; border-right: 0; border-bottom: var(--line); }
  .form-panel { padding-block: 4rem; }
  footer { flex-direction: column; }
}

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