/* Блог insaga.net (quick 261117-blg). Поверх site.css: те же токены, та же левая линия, без плашек и коробок.
   Статья — колонка чтения; картинки и ролики шире текста не бывают, кроме обложки. */

.post-head { padding: 64px 0 40px; }
.post-head h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; max-width: 20ch; }
.post-head .lead { margin-top: 22px; }
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.crumbs a { color: var(--lavender); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.byline a { color: var(--white); text-decoration: none; }
.byline a:hover { color: var(--lavender); }
.byline .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-cover { margin-top: 40px; }
.post-cover img { width: 100%; border-radius: 12px; }
.post-cover figcaption, .post figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.draft-banner { margin: 0; padding: 10px var(--gutter); background: #3a2a00; color: #ffd98a; font: 600 14px/1.4 var(--f-body); text-align: center; }

.post-toc { padding-bottom: 8px; }
.post-toc h2 { font: 600 13px/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.post-toc ol { margin: 14px 0 0; padding: 0 0 0 1.2em; }
.post-toc li { margin: 6px 0; }
.post-toc a { color: var(--text); text-decoration: none; }
.post-toc a:hover { color: var(--white); text-decoration: underline; }

.post-section { padding: 56px 0 0; }
.post h2 { font-size: clamp(26px, 2.8vw, 36px); max-width: 26ch; }
.post h3 { margin-top: 32px; }
.post > p, .post > ul, .post > ol { margin-top: 18px; }
.post h2 + p { margin-top: 22px; }
.post ul, .post ol { padding-left: 1.3em; }
.post li + li { margin-top: 8px; }
.post figure { margin: 32px 0 0; }
.post figure img { width: 100%; border-radius: 10px; }
.post .video video { width: 100%; height: auto; border-radius: 10px; background: #000; display: block; }
.post .video.tall { max-width: 380px; }
/* вертикальный ролик (Shorts): до загрузки метаданных браузер берёт размер видео по умолчанию — держим 9:16 сами */
.post .video.tall video { aspect-ratio: 9 / 16; object-fit: cover; }
.post-shots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.post-shots figure { margin: 0; }
.post-shots figcaption { font-size: 13px; }
.post .table { margin-top: 28px; overflow-x: auto; }
.post table { border-collapse: collapse; width: 100%; font-size: 15px; }
.post th, .post td { text-align: left; padding: 12px 14px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.post thead th { color: var(--muted); font-weight: 500; border-top: 0; }

.prompt { margin: 28px 0 0; }
.prompt figcaption { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
.prompt pre { margin: 0; padding: 18px 20px; border-left: 2px solid var(--violet); background: var(--ink-2); overflow-x: auto; white-space: pre-wrap; }
.prompt code { font: 400 14.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--white); }

.callout { margin-top: 28px; padding: 4px 0 4px 20px; border-left: 2px solid var(--lavender); }
.callout p { color: var(--white); }

.post-section .steps, .block .steps { margin-top: 40px; }

.post-recipe { padding: 72px 0 0; }
.post-recipe h2 { font-size: clamp(26px, 2.8vw, 36px); }
.post-recipe p { margin-top: 16px; }
.post-recipe .actions { margin-top: 24px; }

.post-author { padding: 72px 0 96px; }
.post-author h2 { font: 600 13px/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.post-author .who { display: flex; gap: 20px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--rule); }
.post-author .avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.post-author .name a { font: 600 19px/1.3 var(--f-display); color: var(--white); text-decoration: none; }
.post-author .role { color: var(--muted); font-size: 15px; margin: 2px 0 10px; }

.blog-hero h1 { max-width: 18ch; }
.blog-hero .avatar-xl { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; }
.blog-hero .links { display: flex; gap: 18px; margin-top: 20px; }

.postlist { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.postlist .pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.postlist .meta { display: flex; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.postlist h3 { margin-top: 8px; font-size: 21px; }
.postlist h3 a { color: var(--white); text-decoration: none; }
.postlist h3 a:hover { color: var(--lavender); }
.postlist li > p:last-child { margin-top: 8px; font-size: 15px; color: var(--muted); }

@media (max-width: 960px) {
  .postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .post-head { padding: 40px 0 24px; }
  .postlist { grid-template-columns: minmax(0, 1fr); }
  .post-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-author .who { flex-direction: column; }
}

/* «Как сделано» — короткая справка перед кнопкой; строже раздела, без коробки */
.post-made { padding: 56px 0 0; }
.post-made h2 { font: 600 13px/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.post-made p { margin-top: 12px; color: var(--text); font-size: 15px; max-width: 64ch; }
.post-made .more a { font-size: 15px; }

/* портрет автора и подпись стиля */
.blog-hero .portrait { margin: 0 0 28px; }
.blog-hero .portrait .avatar-xl { margin-bottom: 0; }
.blog-hero .portrait figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.blog-hero .portrait figcaption a { color: var(--muted); }
.blog-hero .portrait figcaption a:hover { color: var(--white); }
.byline span:has(> a[rel="author"]) { color: var(--muted); }
