/* ==========================================================================
   Rehearse — landing page styles.
   Sibling of specscore.md's editorial register: paper and ink, hairlines,
   ~5 colours, no gradients, no rounded boxes, no decorative icons, no dark mode.
   Palette and type tokens are shared with specscore.md so the pages read as
   a family; Rehearse takes mark-red as its own accent (the prompter's ink).
   ========================================================================== */

:root {
  /* --- Palette (shared with specscore.md) --- */
  --cream: #f6efdc;
  --cream-2: #f1e8d0;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --mid-ink: #4a4a4a;
  --pale-ink: #767676;
  --hairline: rgba(26, 26, 26, 0.12);
  --validator-green: #0f8a4e;
  --mark-red: #c41e3a;   /* Rehearse's accent — the correction ink */
  --ink-blue: #1e54c4;

  /* --- Type (shared with specscore.md) --- */
  --font-display: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-content: 46rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--mark-red); color: var(--cream); }

a { color: var(--ink-blue); text-underline-offset: 2px; }
a:hover { color: var(--mark-red); }

.wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark__mark { color: var(--mark-red); }
.site-header__nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid-ink);
  text-decoration: none;
  margin-left: 1rem;
}
.site-header__nav a:hover { color: var(--mark-red); }

/* === HERO === */
.hero { padding: 4rem 0 2.5rem; }
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pale-ink);
  margin-bottom: 1rem;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--mid-ink);
  max-width: 40ch;
  text-wrap: pretty;
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

/* === STATUS NOTE === */
.status {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.25rem 0;
  margin: 1rem 0 0;
}
.status__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--mid-ink);
}
.status__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mark-red);
  border: 1px solid var(--mark-red);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

/* === SECTIONS === */
.section { padding: 2.75rem 0; border-bottom: 1px solid var(--hairline); }
.section__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pale-ink);
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 0.75rem;
}
.section__body { color: var(--mid-ink); }
.section__body p + p { margin-top: 0.85rem; }
.section__body strong { color: var(--ink); font-weight: 600; }
.section__body code {
  font-family: var(--font-code);
  font-size: 0.85em;
  background: var(--cream-2);
  padding: 0.05em 0.3em;
}

/* === CODE SAMPLE === */
.sample {
  margin-top: 1.25rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.sample__caption {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--pale-ink);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.sample pre {
  font-family: var(--font-code);
  font-size: 0.82rem;
  line-height: 1.6;
  padding: 1rem;
  overflow-x: auto;
  color: var(--ink);
}
.sample pre code {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
}
.sample .c-key { color: var(--mark-red); font-weight: 600; }
.sample .c-com { color: var(--pale-ink); }

/* === HOOK + PAYOFF === */
.section--hook .section__body p { font-size: 1.05rem; color: var(--ink); }
.section--payoff { border-bottom: none; }
.payoff {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  border-left: 2px solid var(--mark-red);
  padding-left: 1.25rem;
}

/* === FOOTER === */
.site-footer { padding: 2.5rem 0 3rem; }
.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--pale-ink);
}
.site-footer__links {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer__copyright { font-size: 0.8rem; }

@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .status__inner { flex-direction: column; gap: 0.5rem; }
}

/* Pointer from the payoff to the full SpecScore artifact-tree example. */
.payoff-note {
  margin-top: var(--space-3, 1rem);
  font-size: 0.9rem;
  color: var(--mid-ink, #555);
}
