/* c3rb3rus.ai — one stylesheet, no external fonts, no JavaScript. */
:root {
  --bg: #0a0a0b;
  --surface: #151517;
  --surface-2: #1f1f23;
  --line: #2e2e33;
  --text: #e8e8ea;
  --muted: #a1a1a8;
  --orange: #ff8a00;
  --orange-soft: #ffa733;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --max: 68rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--orange-soft); text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--orange); color: #000; padding: 0.5rem 0.75rem; z-index: 10; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(10, 10, 11, 0.92); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font: 700 1.1rem var(--mono); letter-spacing: 0.02em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.brand-name span { color: var(--orange); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font: 0.95rem var(--mono); }
.nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }

main { flex: 1; }

/* Hero */
.hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(60rem 24rem at 85% -10%, rgba(255, 138, 0, 0.16), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero-mark { width: clamp(10rem, 28vw, 20rem); height: auto; border-radius: 50%; filter: drop-shadow(0 0 2.5rem rgba(255, 138, 0, 0.22)); }
.eyebrow { font: 0.85rem var(--mono); color: var(--orange); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--orange); }
h2 { font-size: 1.6rem; margin-top: 0.5rem; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.7rem 1.1rem; border-radius: 6px; font: 600 0.95rem var(--mono); text-decoration: none; border: 1px solid var(--orange); }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-soft); color: #000; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--orange); }

/* Sections and cards */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; }
.card:hover { border-color: #46464d; }
.card p { color: var(--muted); margin: 0 0 1rem; }
.card .more { margin-top: auto; font: 0.95rem var(--mono); }
.tag { display: inline-block; font: 0.75rem var(--mono); color: var(--orange); border: 1px solid rgba(255, 138, 0, 0.45); border-radius: 999px; padding: 0.1rem 0.6rem; margin: 0 0.4rem 0.75rem 0; }
.tag.grey { color: var(--muted); border-color: var(--line); }

/* Prose pages */
.page { padding: 3.5rem 0 4rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: #d2d2d6; }
.prose h2 { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--orange); }
code { font: 0.92em var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.35rem; }

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 0.85rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
td code { white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.callout { border-left: 3px solid var(--orange); background: var(--surface); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.callout p { margin: 0; }

.status { font: 0.85rem var(--mono); color: var(--muted); }
.status strong { color: var(--orange); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font: 0.85rem var(--mono); color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--orange); }

@media (max-width: 40rem) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid picture { order: -1; }
  .hero-mark { width: 8rem; }
  .nav { gap: 0.9rem; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn, .card { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}
