/* Жив? — zhiv.space — shared styles for doc pages */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;600;800&family=Manrope:wght@400;500;600&display=swap');

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

:root {
  --forest: #0a1f14;
  --green: #34d399;
  --green-bright: #6ee7b7;
  --green-dim: #065f46;
  --cream: #f0fdf4;
  --cream-alt: #e8f8ee;
  --text-dark: #0f2417;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --max-w: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Geologica', sans-serif;
  line-height: 1.2;
  color: var(--text-dark);
}

/* ========== DOC PAGES ========== */
.doc {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dim);
  text-decoration: none;
  margin-bottom: 32px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.doc-back:hover {
  color: var(--forest);
}

.doc h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.doc-meta {
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.doc-meta p {
  margin-bottom: 2px;
}

.doc h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.doc ul, .doc ol {
  margin-bottom: 14px;
  padding-left: 24px;
  font-size: 0.95rem;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  color: var(--green-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.doc a:hover {
  color: var(--forest);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.88rem;
  border-radius: 8px;
  overflow: hidden;
}

.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.doc th {
  background: var(--cream-alt);
  font-weight: 600;
  color: var(--text-dark);
}

.doc strong {
  font-weight: 600;
  color: var(--text-dark);
}

/* ========== FOOTER (doc pages) ========== */
footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

footer a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--green-bright);
}

.footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
