:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #d4cfc1;
  --bg: #faf8f3;
  --highlight: #f3eee0;
  --orange: #c84a1e;
  --link: #2455a3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 32px 24px 96px; }

/* Eyebrow + header */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 12px;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
h1 .hostname {
  display: block;
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}
h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }

/* Lead block */
.lead {
  font-size: 15px;
  color: var(--ink);
  background: var(--highlight);
  border-left: 3px solid var(--orange);
  padding: 16px 20px;
  margin: 20px 0 32px;
  border-radius: 0 4px 4px 0;
}

/* Ontology */
.ontology { margin: 16px 0 32px; }
.ontology .topic {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.ontology .topic:last-child { border-bottom: 1px solid var(--line); }
.ontology .topic .num {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  margin-right: 12px;
  vertical-align: top;
}
.ontology .topic .body { display: inline-block; width: calc(100% - 30px); vertical-align: top; }
.ontology .topic .title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.ontology .topic .text { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 24px;
}
th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--highlight);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td.code, td.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}
tr.self td { background: var(--highlight); font-weight: 600; }

/* Frameworks */
.frameworks {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin: 12px 0 28px;
}

/* Machine surfaces */
.surfaces {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: #1a1a1a;
  color: #f3eee0;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 12px 0 24px;
  line-height: 1.8;
  overflow-x: auto;
}
.surfaces .path { color: #f3eee0; }
.surfaces .note { color: #8b8378; }

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
footer a { color: var(--link); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .row { margin-bottom: 6px; }
footer .row strong { color: var(--ink); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1a1a1a;
  color: #f3eee0;
  padding: 14px 20px;
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 100;
}
.cookie-banner.show { display: flex; }
.cookie-banner .text { flex: 1; }
.cookie-banner button {
  background: var(--orange);
  color: white;
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
}
.cookie-banner button:hover { background: #b3401a; }

@media (max-width: 640px) {
  .container { padding: 24px 16px 96px; }
  h1 { font-size: 24px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }
}
