/* Shared stylesheet for Voice Agent Pipeline course */

:root {
  --bg: #fdfcf9;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c44d34;
  --border: #e0dcd5;
  --code-bg: #f4f1ea;
  --highlight: #fef3e4;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  font-size: 1.05rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border); }
a:hover { border-bottom-color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.88rem;
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.55;
  border: 1px solid var(--border);
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background: var(--highlight);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--muted);
}

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pipeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.pipeline .box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  min-width: 70px;
}

.pipeline .box.highlight {
  background: var(--highlight);
  border-color: var(--accent);
}

.pipeline .arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.note {
  background: var(--highlight);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.note strong { color: var(--accent); }

.callout {
  background: #fef8f6;
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p { margin-bottom: 0.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  body { padding: 1.5rem 1rem 3rem; font-size: 1rem; }
  h1 { font-size: 1.6rem; }
}
