:root {
  --bg: #f6f8f7;
  --card: #ffffff;
  --text: #1a2e24;
  --muted: #5a6f62;
  --accent: #2d7a4f;
  --accent-hover: #246840;
  --border: #d4e3da;
  --shadow: 0 8px 30px rgba(26, 46, 36, 0.08);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

h1.doc-index-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  text-align: center;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.doc-list a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.doc-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 36px rgba(45, 122, 79, 0.12);
}

.doc-list .doc-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.doc-list .doc-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-meta {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.back {
  display: inline-block;
  margin: 1.25rem 1.25rem 0;
  font-size: 0.95rem;
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.prose h1 {
  font-size: 1.65rem;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.prose p,
.prose li {
  margin: 0.5rem 0;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.35rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: start;
}

.prose th {
  background: rgba(45, 122, 79, 0.08);
}

.site-footer {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 0 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

[dir='rtl'] .back {
  unicode-bidi: plaintext;
}
