/* mdcloud — вид страницы предпросмотра.
   Правила простые: тёмная тема, крупный текст, никаких визуальных
   подсказок, которые не читаются скринридером. */

:root {
  color-scheme: dark;
  --bg: #14161a;
  --panel: #1c1f26;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --accent: #7cc4ff;
  --border: #2b3038;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 4rem;
  background: var(--bg);
  color: var(--text);
  font: 1.05rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

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

.who {
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.status:empty {
  display: none;
}

.status {
  border-left: 3px solid var(--accent);
  padding: 0.35rem 0 0.35rem 0.75rem;
  margin: 0 0 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 32rem;
  margin: 1rem 0;
}

label {
  font-weight: 600;
}

input,
textarea {
  padding: 0.5rem 0.6rem;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

button {
  align-self: start;
  padding: 0.5rem 0.9rem;
  font: inherit;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.doclist,
.comments {
  padding-left: 1.4rem;
}

.doclist li,
.comments li {
  margin-bottom: 0.6rem;
}

.markdown {
  margin-top: 1rem;
}

.markdown pre {
  overflow-x: auto;
  padding: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.markdown code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.markdown blockquote {
  margin-left: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.markdown img {
  max-width: 100%;
}
