/* =================================================================
   reasoning.json — The Agentic Reasoning Protocol
   style.css — Purist technical authority (W3C/RFC aesthetic)
   ================================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --text: #24292f;
  --text-muted: #57606a;
  --text-dim: #8b949e;
  --link: #0969da;
  --link-hover: #0550ae;
  --border: #d0d7de;
  --border-light: #e8e8e8;
  --code-bg: #f6f8fa;
  --code-text: #24292f;
  --inline-code-bg: rgba(175, 184, 193, 0.2);
  --accent: #0969da;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --max-width: 780px;
  --line-height: 1.6;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; color: var(--text); }

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover { color: var(--text); }

/* --- Header --- */
.header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.header-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.header-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Sections --- */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.section p {
  margin-bottom: 16px;
  line-height: var(--line-height);
}

.section ul, .section ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.section li {
  margin-bottom: 6px;
  line-height: var(--line-height);
}

/* --- Inline Code --- */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--inline-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* --- Code Blocks --- */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 16px 0 24px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.code-copy {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.code-copy:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--code-text);
  margin: 0;
  background: transparent;
}

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

/* --- Syntax Highlighting (subtle) --- */
.hl-key { color: #0550ae; }
.hl-str { color: #0a3069; }
.hl-comment { color: #6e7781; font-style: italic; }
.py-kw { color: #cf222e; }
.py-fn { color: #8250df; }
.py-str { color: #0a3069; }
.py-comment { color: #6e7781; font-style: italic; }

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--code-bg);
  font-weight: 600;
  font-size: 13px;
}

td code {
  font-size: 12px;
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--border);
  padding: 4px 16px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* --- HR --- */
hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 24px;
  margin: 24px 0;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 16px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}

.timeline-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.timeline-label {
  font-weight: 600;
  font-size: 15px;
}

.timeline-label code {
  font-size: 13px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Note/Caution Boxes --- */
.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  background: var(--code-bg);
}

.note-label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}

.caution {
  border-left-color: #bf8700;
}

.caution .note-label {
  color: #bf8700;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col-title {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .header h1 { font-size: 22px; }
  .header-meta { flex-direction: column; gap: 4px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 13px; }
  pre { font-size: 12px; padding: 12px; }
}

/* --- VibeTags sr-only --- */
.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;
}

/* --- Print --- */
@media print {
  .nav, .code-copy { display: none; }
  .section { border-bottom: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
}
