/* School That Rules website: pop-punk flyer look, same tokens as app/src/styles.css (DESIGN.md). */
:root {
  --surface: #FBF8F1; --surface-2: #FFFFFF; --surface-3: #F1ECE1; --line: #1A1A1A; --line-soft: #D9D2C3; --ink: #141414; --muted: #55504A;
  --accent: #FF2E88; --accent-ink: #141414; --accent-text: #B0105A; --brand-2: #B0105A; --marigold: #FFE14D; --tomato: #D2381F;
  --good: #23784A; --warn: #8A5E00; --bad: #B3261E;
  --r-s: 6px; --r-m: 8px; --r-l: 12px;
  --shadow-soft: 4px 4px 0 var(--line);
  --font-display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #111111; --surface-2: #1C1C1C; --surface-3: #262626; --line: #F4F1EA; --line-soft: #3A3A3A; --ink: #F4F1EA; --muted: #B9B3A8;
    --accent: #FF4F9A; --accent-ink: #111111; --accent-text: #FF8CBF; --brand-2: #FF8CBF; --marigold: #FFE14D; --tomato: #FF7A5C;
    --good: #7CD39F; --warn: #FFD25C; --bad: #FF8A80;
    --shadow-soft: 4px 4px 0 #FF4F9A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #111111; --surface-2: #1C1C1C; --surface-3: #262626; --line: #F4F1EA; --line-soft: #3A3A3A; --ink: #F4F1EA; --muted: #B9B3A8;
  --accent: #FF4F9A; --accent-ink: #111111; --accent-text: #FF8CBF; --brand-2: #FF8CBF; --marigold: #FFE14D; --tomato: #FF7A5C;
  --good: #7CD39F; --warn: #FFD25C; --bad: #FF8A80;
  --shadow-soft: 4px 4px 0 #FF4F9A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.55 var(--font-body); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-2); padding: 8px 12px; z-index: 9; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { font: 700 26px/1 var(--font-display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--ink); }
nav a.button { color: var(--accent-ink); padding: 9px 18px; min-height: 0; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 7.5vw, 62px); letter-spacing: -0.5px; }
h2 { font-size: clamp(27px, 4.5vw, 36px); }
h3 { font-size: 22px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 50ch; }
.muted { color: var(--muted); }
.mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--marigold) 55%, transparent) 62%); padding: 0 2px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--marigold) 25%, var(--surface-2)); color: var(--ink); margin-bottom: 14px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; min-height: 48px; border: 0; font-size: 17px; cursor: pointer; font-family: inherit; }
.button.quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.button[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.note { font-size: 15px; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 36px 0 60px; }
.hero-art { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow-soft); }
.hero-art figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 26px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; box-shadow: var(--shadow-soft); }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card .eyebrow { font-size: 13px; font-weight: 700; color: var(--brand-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: block; }
.week { border-top: 5px solid var(--marigold); }
.week .social { margin-top: 10px; font-size: 15px; color: var(--ink); }
.week .social::before { content: "Together: "; font-weight: 700; color: var(--accent); }
.emoji { font-size: 28px; line-height: 1; margin-bottom: 10px; display: block; }
.examples { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.examples li::before { content: "· "; color: var(--brand-2); font-weight: 700; }

.dial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.dial div { border-radius: var(--r-s); padding: 14px; background: var(--surface-3); font-weight: 600; text-align: center; }
.dial div small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--good) 18%, var(--surface-2)); color: var(--good); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: 16px; }

.teach { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-soft); }
.teach .grid { margin-top: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; background: var(--surface-2); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 32px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 24px/1 var(--font-display); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 68ch; }

.cta-band { text-align: center; padding: 64px 0; }
.cta-band .lede { margin: 0 auto 8px; }
.cta-band .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 6px; }

/* Forms */
.form-page { padding: 20px 0 64px; }
form fieldset { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); padding: 20px; margin: 0 0 18px; box-shadow: var(--shadow-soft); }
form legend { font: 700 21px/1.2 var(--font-display); padding: 0 6px; }
.field { margin: 0 0 20px; }
.field:last-child { margin-bottom: 0; }
.two-col > .field:last-child { margin-bottom: 20px; }
fieldset > .two-col:last-child > .field { margin-bottom: 0; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }
.req { color: var(--tomato); font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 11px 14px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices label { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; min-height: 44px; cursor: pointer; background: var(--surface); font-size: 16px; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); font-weight: 600; }
.choices label:has(input:checked)::before { content: "✓"; color: var(--accent); font-weight: 800; }
.choices label:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.choices.stack { flex-direction: column; align-items: stretch; }
.choices.stack label { border-radius: var(--r-s); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.optional-intro { margin: 26px 0 14px; padding: 14px 18px; border-left: 4px solid var(--marigold); background: var(--surface-3); border-radius: 0 var(--r-s) var(--r-s) 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-s); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--good) 14%, var(--surface-2)); border: 1.5px solid var(--good); }
.form-status.err { background: color-mix(in srgb, var(--bad) 10%, var(--surface-2)); border: 1.5px solid var(--bad); }
.done { text-align: center; padding: 40px 20px; }
.done .emoji { font-size: 48px; }
.field.invalid input, .field.invalid select, .field.invalid .choices label { border-color: var(--bad); }
.field .error-text { color: var(--bad); font-size: 15px; margin-top: 6px; display: none; }
.field.invalid .error-text { display: block; }

/* Legal pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin-top: 32px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .g5 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .g2, .g3, .g5, .two-col { grid-template-columns: 1fr; }
  .dial { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  nav .wide { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .15s ease, box-shadow .15s ease; }
  .button:hover { transform: translateY(-1px); }
  .seat { transition: transform .2s ease-out; }
}

/* ---- Pop-punk overrides (kept together so the look is easy to tune) ---- */
a { color: var(--accent-text); text-decoration-thickness: 2px; }
:focus-visible { outline-color: var(--accent); }
body > header, header.top { border-bottom: 0; }
.site-head, header.top { position: relative; }
.brand { font: 400 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.brand img { transform: rotate(-6deg); }
h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h1 { text-transform: uppercase; }
h2 { text-transform: uppercase; }
.mark { background: linear-gradient(transparent 10%, var(--marigold) 10%, var(--marigold) 90%, transparent 90%); color: #141414; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tag { font: 400 16px/1.2 var(--font-marker); background: none; padding: 0; border-radius: 0; color: var(--accent-text); transform: rotate(-1.5deg); }
.button { border: 2px solid var(--line); border-radius: var(--r-s); box-shadow: 3px 3px 0 var(--line); text-transform: uppercase; letter-spacing: .02em; font-weight: 800; color: var(--accent-ink); }
.button.quiet { background: var(--surface-2); color: var(--ink); box-shadow: 3px 3px 0 var(--line); }
nav a.button { color: var(--accent-ink); }
.card, .teach, .hero-art, form fieldset { border: 2px solid var(--line); }
.card .eyebrow { font: 400 15px/1.2 var(--font-marker); text-transform: none; letter-spacing: .02em; color: var(--accent-text); }
.week { border-top: 10px solid var(--marigold); }
.week .social::before { color: var(--accent-text); }
section { border-top: 2px dashed var(--line-soft); }
.pill { border: 2px solid var(--line); border-radius: 4px; font-weight: 700; }
.pill-row .pill:nth-child(3n+1) { transform: rotate(-1.5deg); }
.pill-row .pill:nth-child(3n+2) { transform: rotate(1deg); }
.dial div { border: 2px solid var(--line); }
.checklist li::before { border-radius: 4px; background: var(--marigold); color: #141414; border: 2px solid var(--line); }
summary::after { color: var(--accent-text); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea { background: var(--surface-2); border: 2px solid var(--line); }
input:focus, select:focus, textarea:focus { box-shadow: 3px 3px 0 var(--accent); }
.choices label { border: 2px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); }
.choices label:has(input:checked) { background: var(--marigold); color: #141414; border-color: var(--line); font-weight: 800; }
.choices label:has(input:checked)::before { color: #141414; }
.choices label:has(input:focus-visible) { outline-color: var(--accent); }
.optional-intro { border-left-color: var(--accent); }
.t-line { stroke: var(--accent) !important; }
footer { border-top: 3px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
  .button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); }
}
