/* Agent Engineering — FCD Publication Theme
   Combines scottfrees.com professional styling with slide theme callouts */

@font-face {
  font-family: 'Roboto';
  font-weight: 100 900;
  src: url('../fonts/roboto-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-weight: 100 900;
  src: url('../fonts/roboto-slab-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --slate: #334155;
  --accent: #3b82f6;
  --accent-light: #93c5fd;
  --accent-bg: #eff6ff;
  --warm: #f59e0b;
  --warm-bg: #fffbeb;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --fcd-navy: #053e6e;
}

body {
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--text);
  font-weight: 300;
}

h1 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--navy);
}

h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--slate);
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: var(--fcd-navy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #e2e8f0;
  padding: 2rem 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-logo {
  height: 80px;
  border-radius: 6px;
  flex-shrink: 0;
}
.hero-text h1 {
  color: #ffffff;
  font-size: 2.5em;
  margin: 0 0 0.1em;
}
.hero .subtitle {
  color: var(--accent-light);
  font-size: 1.15em;
  font-weight: 300;
  margin: 0;
}

/* Section navigation */
.section-nav {
  background: var(--navy-mid);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.section-nav .page_content {
  padding: 0.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
}
.section-nav a {
  color: #94a3b8;
  padding: 0.45rem 0.6rem;
  font-size: 0.78em;
  font-weight: 400;
  line-height: 1.3;
  border-radius: 3px;
  transition: background-color 0.15s, color 0.15s;
}
.section-nav a:hover {
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
}
.section-nav a:hover .nav-num {
  color: #ffffff;
}
.nav-num {
  font-weight: 700;
  color: var(--accent-light);
  margin-right: 0.15em;
}

/* Page sections */
.page_content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-block {
  padding: 2rem 0;
  scroll-margin-top: 8rem;
}
.section-block:nth-child(even) {
  background-color: #f8fafc;
}

/* Callout boxes from slide theme */
.callout, .info, .warning {
  display: block;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95em;
}
.callout {
  background-color: var(--warm-bg);
  border-left: 4px solid var(--warm);
}
.info {
  background-color: var(--accent-bg);
  border-left: 4px solid var(--accent);
}
.warning {
  background-color: var(--red-bg);
  border-left: 4px solid var(--red);
}

/* Module cards */
.module-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
}
.module-card h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

/* Lecture list */
.lecture-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.lecture-item:last-child {
  border-bottom: none;
}
.lecture-title {
  font-weight: 500;
  color: var(--navy);
}
.lecture-duration {
  color: var(--text-light);
  font-size: 0.85em;
}
.lecture-summary {
  color: var(--text-light);
  font-size: 0.9em;
  margin-top: 0.3rem;
}

/* Sub-page top navigation */
.topnav {
  background: var(--navy-mid);
  border-bottom: 2px solid var(--accent);
}
.topnav .page_content {
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.topnav a {
  color: #cbd5e1;
  font-size: 0.88em;
  font-weight: 400;
}
.topnav a:hover {
  color: #ffffff;
  text-decoration: none;
}
.topnav .sep {
  margin: 0 0.5em;
  color: #64748b;
}
.topnav-logo {
  height: 28px;
  border-radius: 3px;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Lecture video */
.lecture-video {
  width: 40%;
  display: block;
  margin: 1rem 0;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .section-nav .page_content {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-block { scroll-margin-top: 12rem; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-text h1 { font-size: 1.8em; }
  .hero-logo { height: 50px; }
  .page_content { padding: 1rem; }
  .section-nav .page_content {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.4rem 0.5rem;
  }
  .section-nav a { padding: 0.35rem 0.5rem; font-size: 0.72em; }
  .section-block { scroll-margin-top: 18rem; }
  .lecture-video { width: 92%; }
  .topnav .page_content { padding: 0.5rem 1rem; }
  .topnav a { font-size: 0.82em; }
  .topnav-logo { height: 22px; }
}
