/**
 * academy.css
 * Base tokens, layout, and typography for the Get Ahead Academy.
 * Colors and fonts are pulled from the existing DocTayo brand system
 * (see /assets/article.css) so the Academy feels native to the site.
 */

:root {
  /* Brand tokens, matched to the main DocTayo site */
  --navy-950: #081326;
  --navy-900: #0B1F3A;
  --navy-800: #14335C;
  --navy-100: #E7ECF3;
  --white: #FFFFFF;
  --paper: #F7F9F7;
  --emerald-700: #0A5C3F;
  --emerald-600: #0E6E4E;
  --emerald-100: #E1F1EA;
  --gold-600: #B08D2B;
  --gold-500: #C9A227;
  --gold-100: #F4ECD3;
  --ink-muted: #5B697D;
  --line: rgba(11, 31, 58, 0.12);
  --danger: #A3312A;
  --danger-100: #FBEAE9;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --container: 1100px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-950);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 600; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--navy-950); }
.muted { color: var(--ink-muted); }

a { color: var(--emerald-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.academy-main { padding: 2rem 0 4rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Disclaimers used across many pages */
.disclaimer {
  background: var(--navy-100);
  border-left: 4px solid var(--navy-800);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--navy-950);
  margin: 1.5rem 0;
}
.disclaimer strong { color: var(--navy-900); }

.disclaimer.warning {
  background: var(--gold-100);
  border-left-color: var(--gold-600);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--emerald-700);
  font-weight: 600;
}

.page-header {
  margin-bottom: 2rem;
}
.page-header .eyebrow { margin-bottom: 0.5rem; display: block; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.center-narrow {
  max-width: 640px;
  margin: 0 auto;
}
