/* AI 20/20 - brand-guide.md sections 5-7. Eye chart: ink on paper, one signal. */
:root {
  --ink: #111214;
  --paper: #F7F5F0;
  --accent: #FF4A1C;
  --muted: #6B6F76;
  --line: #DDD8CE;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-6); }
.reading { max-width: 680px; }
.section { padding: var(--s-24) 0; border-top: 1px solid var(--line); }
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); display: block; margin-bottom: var(--s-4); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; }
/* The eye-chart jump: enormous, then straight to body. No middle sizes. */
h1 { font-weight: 900; font-size: clamp(3rem, 9vw, 7.5rem); letter-spacing: -0.03em; }
h2 { font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; margin-bottom: var(--s-8); }
h3 { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }
p + p { margin-top: var(--s-4); }
a { color: var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark .slash { color: var(--accent); }
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s-3) var(--s-6);
  border-radius: 2px;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.rule { border: 0; border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
@media (max-width: 640px) {
  .section { padding: var(--s-16) 0; }
}

/* header + hero */
header.container { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--s-8); padding-bottom: var(--s-8); }
header nav a { text-decoration: none; margin-left: var(--s-6); color: var(--ink); }
#hero { padding: var(--s-24) var(--s-6) var(--s-32); }
.hero-sub { margin-top: var(--s-8); font-size: 1.25rem; }
.hero-ctas { margin-top: var(--s-12); display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* program rows */
.program-list { list-style: none; }
.program-row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-8); align-items: baseline; padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.program-row:last-child { border-bottom: 1px solid var(--line); }
.program-num, .program-status { color: var(--muted); }
.program-row p { margin-top: var(--s-2); max-width: 560px; }

/* events */
.events-list { list-style: none; }
.event { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.event-meta { color: var(--muted); display: block; margin-bottom: var(--s-2); }
.event-name a { text-decoration: none; }
.event-desc { margin-top: var(--s-2); max-width: 560px; }
.event-row { margin-top: var(--s-6); display: flex; gap: var(--s-6); align-items: center; }
.event-price { color: var(--ink); }
.event-tag, .events-subscribe { color: var(--muted); }
.events-subscribe { margin-top: var(--s-8); display: block; }
.events-note { max-width: 560px; }

/* forms */
.lead-form { margin-top: var(--s-8); display: grid; gap: var(--s-6); max-width: 480px; }
.lead-form label { display: grid; gap: var(--s-2); font-weight: 600; font-size: 0.9375rem; }
.lead-form input, .lead-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-radius: 2px;
  padding: var(--s-3) var(--s-4);
}
.lead-form .hp { position: absolute; left: -9999px; height: 0; width: 0; border: 0; padding: 0; }
.form-note { min-height: 1.2em; color: var(--muted); }
.form-note.err { color: var(--accent); }

/* footer */
footer .container { display: grid; gap: var(--s-4); }
footer nav a { margin-right: var(--s-6); color: var(--ink); }

@media (max-width: 640px) {
  .program-row { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* baseline rhythm: snap line-heights to the 4px grid (17px x 1.6 = 27.2px is off-grid) */
body { line-height: 28px; }
.mono { line-height: 20px; }
h3 { line-height: 24px; }
h1, h2 { line-height: round(1.02em, 4px); }

/* The single signature motion (brand-guide.md §7): the optical correction
   made literal. Hero headline only. Nothing else on the page moves. */
@media (prefers-reduced-motion: no-preference) {
  #hero-headline {
    animation: focus 900ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  @keyframes focus {
    from { filter: blur(14px); opacity: 0; }
    to   { filter: blur(0);    opacity: 1; }
  }
}

/* Smooth anchor scroll is motion too: stilled with the rest. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* copy upgrade: hero status, format strip, FAQ */
.hero-status { margin-top: var(--s-6); color: var(--muted); display: block; }
.fmt-row { grid-template-columns: 256px 1fr; }
.fmt-lead { color: var(--muted); }
.faq h3 { margin-top: var(--s-8); }
.faq p { margin-top: var(--s-2); max-width: 560px; }
@media (max-width: 640px) {
  .fmt-row { grid-template-columns: 1fr; }
}
