/* Блог — в стила на AK Brand Guidelines */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --olive: #3a4d1e; --olive-mid: #4f6828; --gold: #a89050; --gold-lt: #c8b97a;
  --cream: #f5f0e8; --cream-dk: #ede6d6; --ink: #2c2c2c;
  --gold-text: #746437; --sage-text: #5d6a45; --paper: #fffdf8;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--cream); color: var(--ink); font-family: 'EB Garamond', Georgia, serif; font-size: 19px; line-height: 1.75; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--olive); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 6vw; border-bottom: 1px solid var(--gold-lt); }
.brand svg { width: 42px; height: 42px; display: block; }
.top-nav { display: flex; gap: 1.6rem; }
.top-nav a { font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 6vw 72px; }
.eyebrow { font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
h1 { font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.15; color: var(--olive); margin-bottom: 14px; text-wrap: balance; }
.lead { font-size: 1.12rem; font-style: italic; color: #4a4a4a; }
.meta { font-size: 0.9rem; color: var(--sage-text); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }

/* ── Списък ── */
.list .lead { margin-bottom: 36px; }
.cards { display: flex; flex-direction: column; gap: 18px; }
.card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--cream-dk); border-left: 3px solid var(--gold); padding: 24px 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(58,77,30,.12); color: var(--ink); }
.card h2 { font-family: 'Cinzel', serif; font-size: 1.25rem; line-height: 1.3; color: var(--olive); margin-bottom: 8px; }
.card p { font-size: 1rem; opacity: .9; }
.card .more { margin-left: auto; font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.empty { font-style: italic; color: var(--sage-text); }

/* ── Статия ── */
.crumb { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; margin-bottom: 26px; }
.post-head { border-bottom: 1px solid var(--gold-lt); padding-bottom: 26px; margin-bottom: 30px; }
.toc { background: var(--paper); border: 1px solid var(--cream-dk); padding: 16px 22px; margin-bottom: 30px; font-size: 0.98rem; }
.toc-title { font-family: 'Cinzel', serif; font-size: 0.64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.toc ol { margin-left: 1.2em; }
.toc li { margin: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { font-family: 'Cinzel', serif; font-size: 1.3rem; line-height: 1.3; color: var(--olive); margin: 40px 0 12px; }
.prose h3 { font-family: 'Cinzel', serif; font-size: 1.02rem; color: var(--olive); margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 1.3em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--olive); }
.prose blockquote { border-left: 3px solid var(--gold); background: var(--paper); padding: 14px 20px; margin: 22px 0; font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; background: var(--cream-dk); padding: 1px 6px; border-radius: 3px; }
.prose pre { background: #2c2c2c; color: #f5f0e8; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 0.82rem; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.prose th { font-family: 'Cinzel', serif; font-size: 0.66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-text); text-align: left; border-bottom: 1px solid var(--gold); padding: 8px 10px; }
.prose td { border-bottom: 1px solid var(--cream-dk); padding: 9px 10px; vertical-align: top; }

.post-cta { margin-top: 48px; background: var(--olive); color: var(--cream); padding: 30px 32px; position: relative; }
.post-cta::before { content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 3px; background: var(--gold); }
.post-cta h2 { font-family: 'Cinzel', serif; font-size: 1.15rem; color: var(--gold-lt); margin-bottom: 6px; }
.post-cta p { opacity: .9; margin-bottom: 18px; }
.btn { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: var(--gold-lt); color: var(--olive); padding: 11px 22px; }
.btn:hover { background: var(--cream); color: var(--olive); }

.foot { background: var(--olive); border-top: 2px solid var(--gold); padding: 18px 6vw; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: 'Cinzel', serif; font-size: 0.64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-lt); }
.foot a { color: var(--gold-lt); }
.foot a:hover { color: var(--cream); }

/* ── Компютър: закачено съдържание отляво + текст с оптимална ширина ── */
@media (min-width: 1100px) {
  main.list { max-width: 1100px; }
  .list .lead { max-width: 720px; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  main.post { max-width: 1120px; }
  .post-top { max-width: 820px; }
  .post.has-toc .post-top { margin-left: 304px; }
  .post.has-toc .post-body { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; align-items: start; }
  .post:not(.has-toc) .post-body, .post:not(.has-toc) .post-top { max-width: 720px; margin-left: auto; margin-right: auto; }
  .toc {
    position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto;
    background: none; border: 0; border-left: 1px solid var(--gold-lt); padding: 2px 0 2px 18px; margin: 0; font-size: 0.92rem; line-height: 1.45;
  }
  .toc ol { list-style: none; margin: 0; }
  .toc li { margin: 0 0 10px; }
  .toc a { color: var(--sage-text); display: block; padding-left: 10px; margin-left: -11px; border-left: 2px solid transparent; }
  .toc a:hover { color: var(--olive); text-decoration: none; }
  .toc a.active { color: var(--olive); border-left-color: var(--gold); font-weight: 600; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  main { padding-top: 34px; }
  .card { padding: 20px; }
  .top-nav { gap: 1rem; }
}
