:root {
  --paper: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-soft: #ffffff;
  --soft: #f7f9f6;
  --code: #f7f9f6;
  --ink: #243027;
  --text: #465148;
  --muted: #6d776f;
  --accent: #496a60;
  --accent-ink: #263b34;
  --accent-soft: #e7eee9;
  --green: #496a60;
  --blue: #27313a;
  --line: #dfe6dd;
  --line-strong: #cfd9d0;
  --radius: 8px;
  --content: 1120px;
  --shadow: none;
}

html,
body {
  background: #ffffff !important;
}

body {
  color: var(--text) !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0;
}

.topbar,
body > .page > header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.topbar {
  backdrop-filter: blur(12px);
}

.nav-shell,
.nav,
main,
.page {
  width: min(var(--content), calc(100% - 40px));
}

body > .page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body > .page > header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100% !important;
  min-height: 70px;
  margin: 0 !important;
  padding: 0 max(20px, calc((100vw - var(--content)) / 2)) !important;
}

body > .page > main,
body > .page > footer {
  width: min(var(--content), calc(100% - 40px)) !important;
  margin: 0 auto !important;
}

.brand {
  color: var(--ink) !important;
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  max-width: 140px;
  height: auto;
}

.brand:has(img) img {
  display: none !important;
}

.brand:has(img)::before {
  content: "Mparanza";
  color: var(--ink);
  font-weight: 650;
}

.nav-links a,
.nav-right a,
nav a {
  border-radius: 6px;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-right a:hover,
nav a:hover,
.nav-links a:focus-visible,
.nav-right a:focus-visible,
nav a:focus-visible {
  color: var(--ink) !important;
  background: var(--soft);
}

.lang-switch,
.lang {
  border-color: var(--line) !important;
  background: var(--surface) !important;
}

.lang-switch button,
.lang button {
  border-radius: 6px !important;
}

.lang-switch button.is-active,
.lang button[aria-pressed="true"] {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.eyebrow,
.kicker,
.label {
  color: var(--accent) !important;
  letter-spacing: 0.08em !important;
}

h1,
h2,
h3 {
  color: var(--ink) !important;
  letter-spacing: 0 !important;
}

.button,
.download,
a.download,
button {
  border-radius: 8px !important;
  box-shadow: none !important;
  transition:
    transform 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.button:hover,
.download:hover,
a.download:hover,
button:hover {
  transform: translateY(-1px);
}

.button.secondary,
.download.secondary {
  background: #ffffff !important;
  color: var(--accent-ink) !important;
  border-color: var(--line-strong) !important;
}

.hero-card,
.summary,
.scope-panel,
.download-panel,
.card,
.engine,
.item,
.principle,
.example,
.method,
.output,
.step,
.feature,
.tile,
.panel,
.prompt-card,
.output-card,
.workflow-card,
.plugin-card,
.evidence-card {
  background: #ffffff !important;
  border-color: var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.card,
.engine,
.item,
.principle,
.example,
.method,
.output,
.step,
.feature,
.tile,
.prompt-card,
.output-card,
.workflow-card,
.plugin-card,
.evidence-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.card:hover,
.engine:hover,
.item:hover,
.principle:hover,
.example:hover,
.method:hover,
.output:hover,
.step:hover,
.feature:hover,
.tile:hover,
.prompt-card:hover,
.output-card:hover,
.workflow-card:hover,
.plugin-card:hover,
.evidence-card:hover {
  border-color: var(--line-strong) !important;
  transform: translateY(-1px);
}

pre,
.code,
.command,
.prompt,
.terminal,
.snippet {
  background: #f7f9f6 !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

code {
  background: #f7f9f6;
  color: var(--ink);
  border-radius: 5px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .download:hover,
  a.download:hover,
  button:hover,
  .card:hover,
  .engine:hover,
  .item:hover,
  .principle:hover,
  .example:hover,
  .method:hover,
  .output:hover,
  .step:hover,
  .feature:hover,
  .tile:hover,
  .prompt-card:hover,
  .output-card:hover,
  .workflow-card:hover,
  .plugin-card:hover,
  .evidence-card:hover {
    transform: none;
  }
}
