/* Shared chrome for Teach Tom pages: /teachtom, /teachtom/apply.
 * Page-specific layouts (episode cards, hero variants, lesson lists)
 * stay inline in each page's <style> block. */

:root {
  --background: hsl(40 33% 96%);
  --foreground: hsl(220 20% 12%);
  --muted-foreground: hsl(220 10% 46%);
  --accent: hsl(38 60% 50%);
  --card: hsl(40 25% 93%);
  --border: hsl(40 15% 85%);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.confidential-banner,
.shoutout-banner {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.625rem 1.25rem;
}
.confidential-banner strong,
.shoutout-banner strong { font-weight: 700; }

.confidential-banner {
  background: hsl(38 60% 50%);
  color: hsl(40 33% 98%);
}

.shoutout-banner {
  background: hsl(220 60% 45%);
  color: hsl(210 33% 98%);
}

.nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
  font-family: var(--sans);
  font-size: 0.875rem;
}
.nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
@media (min-width: 768px) {
  main { padding: 4rem 1.5rem 5rem; }
}

/* Top-right floater anchored to .hero — used by the AgentCribs badge
 * on /teachtom and the host headshot on /teachtom/apply. Page-specific
 * sizing and decoration (rotation, circle, blend-mode, etc.) stay in
 * each page's inline styles. */
.hero { position: relative; }
.hero-affix {
  position: absolute;
  top: 0.5rem;
  right: -1rem;
  display: block;
}
.hero-affix:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.25rem;
}
@media (max-width: 640px) {
  .hero-affix { right: -0.5rem; top: 0.25rem; }
}

/* Hero typography. Default sizes are shared; pages override the
 * desktop `.hero h1` font-size where they differ (5rem vs 4.5rem). */
.hero h1 {
  font-family: var(--serif);
  font-size: 3.25rem;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}
.hero .premise {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--foreground);
  margin: 0 0 3.5rem;
  max-width: 58ch;
}
@media (min-width: 768px) {
  .hero .tagline { font-size: 1.375rem; }
}

/* Responsive 16:9 video embed — sits above the fold on both Teach Tom
 * pages (the trailer on /teachtom, the show explainer on /teachtom/apply). */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 3.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--card);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Centered wrapper for the primary CTA at the end of the page. */
.cta-section {
  text-align: center;
  margin: 4rem 0 1rem;
}

/* Compact centered CTA placed flush below preceding content (under the
 * trailer, or above the apply-page copy) — tighter than .cta-section,
 * whose 4rem top margin is meant for the end-of-page CTA. */
.cta-compact {
  text-align: center;
  margin: 0 0 3.5rem;
}

.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--background);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.cta-primary:hover { filter: brightness(0.95); }
.cta-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: hsla(220, 10%, 46%, 0.6);
  border-top: 1px solid var(--border);
}
