/* OPEN UP! — street-stencil look: concrete wall, sprayed stencil headline, hi-vis yellow paint. */

@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("/assets/fonts/big-shoulders-stencil-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --wall: #E6E4DF;
  --paper: #FBFAF7;
  --ink: #000000;
  --muted: #4A4F55;
  --slate: #3C5971;
  --yellow: #FFCC00;
  --alarm: #C8281E;
  --link: #2C4A63;
  --line: #000000;
  --field: #FFFFFF;
  --focus: #3C5971;
  --button-bg: #000000;
  --button-ink: #FFCC00;
  --stencil: "Big Shoulders Stencil", Impact, "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1B1D1F;
    --paper: #26292C;
    --ink: #F2F0EA;
    --muted: #B3B8BD;
    --link: #A9C7DF;
    --line: #F2F0EA;
    --field: #1B1D1F;
    --alarm: #FF8A7A;
    --focus: #FFCC00;
    --button-bg: #FFCC00;
    --button-ink: #000000;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall) url("/assets/grain.svg");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Masthead: slate band, yellow paint stripe with drips. */
.masthead { position: relative; background: var(--slate); padding: 14px 0 16px; margin-bottom: 26px; }
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 34px;
  background: url("/assets/drips.svg") repeat-x left top / 320px 34px;
  pointer-events: none;
}
.brand { display: inline-block; }
.brand img { width: clamp(140px, 30vw, 200px); }

/* The one loud thing: a sprayed stencil headline with a little overspray. */
.stencil {
  font-family: var(--stencil);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
}
h1.stencil {
  font-size: clamp(2.9rem, 11vw, 5.6rem);
  margin: 0 0 14px;
  text-wrap: balance;
  text-shadow: 0 0 1px currentColor, 0 0 14px color-mix(in srgb, currentColor 22%, transparent);
}
.slogan .verbs { display: block; }
.slogan .tag { display: block; margin-top: 10px; font-size: 0.42em; line-height: 1; }
@media (min-width: 900px) {
  .slogan .verbs > span { display: block; }
}
h2 { font-family: var(--body); font-weight: 800; font-size: 1.45rem; line-height: 1.15; margin: 0 0 14px; }
.lede { font-size: 1.15rem; max-width: 34ch; margin: 0; }

/* Layout: on phones the form follows one sentence; on desktop it sits beside the headline. */
.home { display: grid; gap: 28px; padding-top: 26px; padding-bottom: 56px; }
@media (min-width: 900px) {
  .home { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; padding-top: 40px; }
  .pitch { position: sticky; top: 32px; }
}

/* Form card: a pasted-up poster. */
.card { position: relative; background: var(--paper); border: 3px solid var(--line); padding: 26px 16px 22px; }
@media (min-width: 480px) { .card { padding: 30px 28px 26px; } }

/* The drawing, slapped on like a sticker. */
.sticker {
  width: fit-content;
  max-width: 19rem;
  margin: -46px -8px 16px auto;
  padding: 10px 14px;
  background: var(--yellow);
  color: #000000;
  border: 2px solid #000000;
  font-size: 0.92rem;
  line-height: 1.35;
  transform: rotate(-2.5deg);
  box-shadow: 3px 4px 0 rgb(0 0 0 / 0.25);
}
.sticker strong { display: block; font-family: var(--stencil); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1; margin-bottom: 2px; }
.sticker a { color: #000000; font-weight: 700; }
.sticker :focus-visible { outline-color: #000000; }
[data-drawing="closed"] [data-drawing-only] { display: none; }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 700; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.9em; }
input[type="email"], input[type="text"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 12px;
  min-height: 48px;
}
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--alarm); box-shadow: 0 0 0 2px var(--alarm); }
.error, .form-error { color: var(--alarm); font-weight: 700; margin: 0; font-size: 0.95rem; }
.error:empty, .form-error:empty { display: none; }
.hint { color: var(--muted); margin: 0; font-size: 0.95rem; }
.hint:empty { display: none; }
.notice { border: 2px solid var(--line); padding: 12px; }
.fine { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* School type-ahead and pills */
.combo { position: relative; }
.school-list {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 17rem;
  overflow-y: auto;
  background: var(--field);
  border: 2px solid var(--line);
  border-top: 0;
  box-shadow: 0 10px 18px rgb(0 0 0 / 0.18);
}
.school-list[hidden] { display: none; }
.school-option { padding: 11px 12px; min-height: 44px; cursor: pointer; }
.school-option + .school-option { border-top: 1px solid color-mix(in srgb, var(--line) 12%, transparent); }
.school-option:hover { background: color-mix(in srgb, var(--yellow) 30%, transparent); }
.school-option[aria-selected="true"] { background: var(--yellow); color: #000000; font-weight: 700; }
.school-empty { padding: 12px; color: var(--muted); }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--yellow);
  color: #000000;
  border: 2px solid #000000;
  border-radius: 999px;
  padding: 5px 10px 5px 14px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-align: left;
}
.chip::after { content: "×"; font-size: 1.25em; line-height: 1; }
.chip:hover { background: #000000; color: var(--yellow); }

/* Consent, Turnstile, button */
.consent { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--slate); }
.consent label { font-weight: 400; }
.consent .error { grid-column: 1 / -1; }
.turnstile { min-height: 65px; max-width: 100%; }
.button {
  font-size: 1.9rem;
  background: var(--button-bg);
  color: var(--button-ink);
  border: 0;
  padding: 14px 24px 12px;
  min-height: 60px;
  width: 100%;
  cursor: pointer;
}
.button:hover { background: var(--yellow); color: #000000; }
.button:disabled { opacity: 0.6; cursor: progress; }
.success h2 { font-size: clamp(2.6rem, 9vw, 3.6rem); }
.success:focus { outline: none; }

/* Footer */
.site-footer { background: var(--slate); color: #F2F0EA; padding: 28px 0 36px; font-size: 0.95rem; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #F2F0EA; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* Legal pages */
.legal { padding-top: 26px; padding-bottom: 56px; }
.legal > * { max-width: 46rem; }
.legal h1 { font-family: var(--stencil); font-weight: 800; text-transform: uppercase; line-height: 0.95; font-size: clamp(2.6rem, 8vw, 3.8rem); margin: 0 0 10px; }
.legal h2 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.legal .effective { color: var(--muted); font-weight: 700; }
.legal li { margin-bottom: 0.4em; }
.legal .summary { background: var(--paper); border: 3px solid var(--line); padding: 4px 20px; }

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