/* OXO charter: tokens and components shared by slides, handout, notes and indexes. */
:root {
  --oxo-red: #B82E1A;
  --oxo-yellow: #FAC81E;
  --oxo-grey: #676767;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-border: #E2E8F0;
  --color-code-bg: #F1F5F9;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 6px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1, h2 { color: var(--oxo-red); }
a { color: var(--oxo-red); }
code, pre { font-family: var(--font-code); }
/* Code blocks render as blocks: the stock highlight.js and reveal.js themes are not loaded. */
pre { line-height: 1.45; }
pre code { display: block; overflow-x: auto; white-space: pre; word-wrap: normal; }

.oxo-page { max-width: 60rem; margin: 0 auto; padding: 2rem 1rem 4rem; }

.oxo-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--oxo-red);
}
.oxo-header .oxo-logo { height: 4rem; width: auto; }
.oxo-header h1 { margin: 0; font-size: 1.75rem; }

.oxo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.oxo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--oxo-yellow);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.oxo-card h2 { font-size: 1.25rem; margin: 0.25rem 0 0.5rem; }
.oxo-card-type {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oxo-grey);
}
.oxo-card-summary { margin: 0 0 0.75rem; }
.oxo-empty, .oxo-meta { color: var(--oxo-grey); }

.callout-pitfall {
  border-left: 4px solid var(--oxo-red);
  background: var(--color-surface);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout-pitfall > strong:first-child {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  color: var(--oxo-red);
}

/* Placeholder for a screenshot the trainer still has to take; the caption says what to capture. */
.capture-todo {
  border: 3px dashed var(--oxo-yellow);
  background: #FFFBEB;
  color: var(--color-text);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--radius);
}
.capture-todo figcaption strong { font-family: var(--font-heading); }

.oxo-demo-view {
  font-family: var(--font-code);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1em;
  min-height: 4em;
}
.oxo-demo-controls { display: flex; gap: 0.5em; align-items: center; margin-top: 0.5em; }
.oxo-demo-controls button {
  font: inherit;
  padding: 0.2em 0.8em;
  border: 2px solid var(--oxo-red);
  background: var(--color-surface);
  color: var(--oxo-red);
  border-radius: var(--radius);
  cursor: pointer;
}
.oxo-demo-controls button:disabled { opacity: 0.4; cursor: default; }
.oxo-demo-controls button[aria-pressed="true"] { background: var(--oxo-red); color: #FFFFFF; }

/* highlight.js theme tuned to the charter (all colors AA on --color-code-bg). */
.hljs { background: var(--color-code-bg); color: var(--color-text); }
.hljs-keyword, .hljs-built_in, .hljs-selector-tag { color: var(--oxo-red); font-weight: 600; }
.hljs-title, .hljs-type { color: #1E3A8A; }
.hljs-string { color: #166534; }
.hljs-number, .hljs-literal { color: #9A3412; }
.hljs-comment { color: var(--oxo-grey); font-style: italic; }
.hljs-attr, .hljs-meta { color: #6B21A8; }
