:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0a1828;
  --text: #e8eef3;
  --muted: #a7b5bf;
  --line: rgba(148, 180, 195, 0.35);
  --accent: #67d4e7;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--accent); }

a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.back-link { font-weight: 700; text-underline-offset: 4px; }

.language-control {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

main { padding-block: 64px 80px; }

.manifesto-heading,
.manifesto-body,
.responsibility,
.epistemic {
  max-width: 68ch;
  margin-inline: auto;
}

.manifesto-heading { margin-bottom: 56px; }

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 { line-height: 1.2; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.025em;
}

.subtitle {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.55;
}

.manifesto-body p {
  margin: 0 0 24px;
  white-space: pre-line;
}

.manifesto-body p:nth-last-child(2),
.manifesto-body p:last-child { font-weight: 700; }

.responsibility,
.epistemic {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

h2 { margin: 0 0 20px; font-size: clamp(1.35rem, 3vw, 1.8rem); }

.responsibility-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.responsibility-chain li {
  position: relative;
  padding: 12px 8px;
  border-top: 2px solid var(--accent);
  color: var(--text);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 750;
}

.responsibility-chain li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 1;
  color: var(--accent);
  content: "→";
  transform: translate(50%, -50%);
}

.responsibility > p:last-child { color: var(--muted); }

.epistemic dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 24px;
  margin: 0;
}

.epistemic dt { color: var(--muted); }
.epistemic dd { margin: 0; font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p { margin: 0; }

@media (max-width: 720px) {
  .site-header,
  main,
  footer { width: min(100% - 24px, 1040px); }

  .site-header,
  footer { align-items: flex-start; flex-direction: column; }
  main { padding-block: 40px 56px; }
  .manifesto-heading { margin-bottom: 40px; }
  .responsibility,
  .epistemic { margin-top: 48px; }

  .responsibility-chain { grid-template-columns: 1fr; }
  .responsibility-chain li { min-height: 44px; }
  .responsibility-chain li:not(:last-child)::after {
    top: auto;
    right: 12px;
    bottom: -11px;
    transform: rotate(90deg);
  }

  .epistemic dl { grid-template-columns: 1fr; gap: 4px; }
  .epistemic dd { margin-bottom: 12px; }
}
