/* =====================================================================
   Blog: index cards, article layout, table of contents, YouTube embed
   ===================================================================== */

.vm-content h2 { scroll-margin-top: 90px; }
.vm-content h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: .03em; color: #fff; margin: 22px 0 8px; }
.vm-content a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }
.vm-content a:hover { color: var(--accent); }
.vm-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.vm-content th, .vm-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted2); line-height: 1.6; }
.vm-content th { color: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.vm-content ol { margin-left: 22px; }
.vm-content li { margin-bottom: 6px; }

.vm-article-head { margin-bottom: 22px; }
.vm-article-head .vm-post-meta a { color: var(--accent2); text-decoration: none; }
.vm-lead { font-size: 18px; color: var(--text); }

.vm-toc { margin: 22px 0 30px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.vm-toc p { margin: 0 0 8px; color: #fff; font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.vm-toc ul { margin-left: 18px; }
.vm-toc li { margin-bottom: 4px; }
.vm-toc a { color: var(--muted2); text-decoration: none; }
.vm-toc a:hover { color: var(--accent2); }

.vm-yt { margin: 26px 0 30px; }
.vm-yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); background: #000; }
.vm-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-yt-cap { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.vm-blog-head p { color: var(--muted2); }
.vm-blog-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.vm-blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.vm-blog-card:hover { border-color: rgba(255, 70, 85, .45); transform: translateY(-2px); }
.vm-blog-card h2 { margin: 8px 0; font-size: 22px; }
.vm-blog-card h2 a { color: inherit; text-decoration: none; }
.vm-blog-card p { font-size: 15px; }
.vm-blog-more { color: var(--accent2); text-decoration: none; font-weight: 600; font-size: 14px; }

/* Cover image: featured image shown above the article and on blog cards */
.vm-cover { margin: 0 0 24px; }
.vm-cover img, .vm-blog-thumb img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--border); aspect-ratio: 16 / 9; object-fit: cover; }
.vm-blog-thumb { display: block; margin-bottom: 14px; }

/* Homepage blog section */
.vm-blog-home { padding: 36px 16px 8px; max-width: 1100px; margin: 0 auto; }
.vm-blog-home-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.vm-blog-home h2 { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; margin: 0; }
.vm-blog-home-all { color: var(--accent2); font-weight: 600; font-size: 14px; text-decoration: none; }
.vm-blog-home .vm-blog-list { margin-top: 18px; }
.vm-blog-home .vm-blog-card h3 { margin: 8px 0; font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.vm-blog-home .vm-blog-card h3 a { color: inherit; text-decoration: none; }
