:root {
  --paper: #fbfaf7;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e6e0d7;
  --accent: #126d72;
  --accent-2: #b54b2a;
  --panel: #ffffff;
  --soft: #eef6f4;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Noto Sans", sans-serif; line-height: 1.65; }
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-2); }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 54px); background: rgba(251, 250, 247, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 240px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 20px Georgia, serif; }
.brand strong { display: block; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.25; margin-top: 3px; }
.language-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nav-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: #fff; font-size: 13px; line-height: 1; }
.nav-pill.active, .nav-pill:hover { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.page-shell { width: min(1120px, calc(100% - 36px)); margin: 42px auto 72px; }
.hero { padding: clamp(34px, 6vw, 72px) 0 34px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.18; color: #17212b; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.02em; max-width: 980px; }
.hero p { max-width: 680px; color: var(--muted); font-size: 18px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.post-card { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.post-card h2 { margin: 8px 0 12px; font-size: 24px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { margin: 0; color: var(--muted); }
.post-card-meta, .page-meta { color: var(--muted); font-size: 13px; }
.article-shell { width: min(920px, calc(100% - 36px)); }
.article-card { padding: clamp(26px, 5vw, 54px); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.article-card h1 { font-size: clamp(34px, 5vw, 58px); }
.page-meta { margin: 16px 0 32px; }
.article-content { font-size: 18px; }
.article-content h2 { margin-top: 2em; font-size: 31px; }
.article-content h3 { margin-top: 1.6em; font-size: 24px; }
.article-content p, .article-content ul, .article-content ol { margin: 1em 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.article-content figure { margin: 28px 0; }
.article-content figcaption { color: var(--muted); font-size: 14px; text-align: center; }
.article-content blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); color: #384451; }
.article-content pre, .article-content code { font-family: Consolas, "Liberation Mono", monospace; }
.article-content pre, .crayon-syntax, .article-content .urvanov-syntax-highlighter-syntax { overflow: auto; padding: 18px; background: #17212b; color: #eef6f4; border-radius: 6px; }
.article-content .urvanov-syntax-highlighter-syntax { max-width: 100% !important; margin: 22px 0 !important; padding: 0; border: 1px solid #263645; }
.article-content .urvanov-syntax-highlighter-syntax table { display: table; width: 100%; margin: 0; border-collapse: collapse; }
.article-content .urvanov-syntax-highlighter-syntax td { border: 0; padding: 0; vertical-align: top; }
.article-content .urvanov-syntax-highlighter-nums { width: 1%; user-select: none; border-right: 1px solid #314453; background: #111a22; color: #91a4b3; }
.article-content .urvanov-syntax-highlighter-nums-content { padding: 12px 10px; text-align: right; }
.article-content .urvanov-syntax-highlighter-code .crayon-pre { padding: 12px 16px; min-width: 680px; }
.article-content .crayon-line { min-height: 1.4em; }
.article-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; }
.sitemap-panel { margin-top: 28px; padding: clamp(22px, 4vw, 38px); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.sitemap-list { columns: 2 320px; column-gap: 34px; margin: 0; padding-left: 20px; }
.sitemap-list li { break-inside: avoid; margin: 0 0 10px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.sitemap-list a { overflow-wrap: anywhere; word-break: break-word; }
.empty-state { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 28px clamp(18px, 4vw, 54px); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 4px 0; }
@media (max-width: 860px) { .site-header { position: static; align-items: flex-start; flex-direction: column; } .language-nav { justify-content: flex-start; } .post-grid { grid-template-columns: 1fr; } .article-card { padding: 24px 18px; } }
