/* DRV.club Blog — Public CSS */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #0c0c10;
    --surface: #15151c;
    --text: #f0f0f5;
    --text-muted: #9a9aa8;
    --text-dim: #6c6c78;
    --accent: #c9a96e;
    --border: rgba(255,255,255,0.08);
    --max-width: 1200px;
    --narrow-width: 760px;
}
body { background: var(--bg); color: var(--text); font: 400 17px/1.65 Inter, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--narrow-width); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: Georgia, "Iowan Old Style", "Source Serif Pro", serif; font-weight: 700; line-height: 1.2; color: var(--text); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 2.4em 0 0.6em; }
h3 { font-size: 1.4rem; margin: 2em 0 0.5em; }
p, ul, ol, blockquote, table { margin: 0 0 1.2em; }
code { font-family: "JetBrains Mono", Menlo, monospace; font-size: 0.9em; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 3px; }
pre { background: rgba(255,255,255,0.04); padding: 16px; border-radius: 6px; overflow-x: auto; }

/* HEADER */
.blog-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); background: rgba(21,21,28,0.85); }
.blog-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.blog-header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.blog-header nav a { color: var(--text-muted); }
.blog-header nav a:hover { color: var(--text); text-decoration: none; }

/* PAGE */
.page-title { margin-top: 50px; margin-bottom: 8px; }
.page-lead { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }

/* HERO POST */
.hero-post { margin-bottom: 50px; }
.hero-link { display: block; color: var(--text); }
.hero-link:hover { text-decoration: none; }
.hero-img { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 10px; margin-bottom: 20px; }
.hero-meta h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.card-post a { display: block; color: var(--text); }
.card-post a:hover { text-decoration: none; }
.card-img { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 8px; margin-bottom: 14px; }
.card-body h3, .card-body h4 { font-size: 1.25rem; margin: 0 0 8px; }
.card-body h4 { font-size: 1.1rem; }
.excerpt { color: var(--text-muted); font-size: 14px; }
.byline-sm { color: var(--text-dim); font-size: 13px; margin-top: 8px; }

/* CAT PILL */
.cat-pill { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
a.cat-pill { text-decoration: none; }

.subtitle { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 18px; line-height: 1.5; }

/* BREADCRUMBS */
.breadcrumbs { padding: 24px 20px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }

/* POST HERO */
.post-hero { margin-bottom: 30px; }
.post-hero-img { width: 100%; aspect-ratio: 21/9; background-size: cover; background-position: center; }
.post-hero h1 { margin-top: 28px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline .meta { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* TL;DR */
.tldr { background: linear-gradient(180deg, rgba(201,169,110,0.1), rgba(201,169,110,0.04)); border-left: 3px solid var(--accent); padding: 20px 26px; margin: 28px 0; border-radius: 4px; }
.tldr h2 { margin: 0 0 8px; font-family: Inter, sans-serif; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.tldr p { margin: 0; font-size: 1.05rem; }

/* TOC */
.toc { background: var(--surface); padding: 18px 24px; border-radius: 8px; border: 1px solid var(--border); margin: 30px 0; }
.toc h3 { font-family: Inter, sans-serif; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; font-weight: 600; }
.toc ol { list-style: none; counter-reset: toc; padding-left: 0; margin: 0; }
.toc li { counter-increment: toc; padding: 4px 0; font-size: 14px; }
.toc li::before { content: counter(toc) "."; color: var(--text-dim); margin-right: 8px; }
.toc-h3 { padding-left: 24px; font-size: 13px; }

/* POST BODY */
.post-body { padding: 20px 0 50px; }
.post-body h2, .post-body h3 { scroll-margin-top: 80px; }
.post-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 18px 0; }
.post-body blockquote { padding: 8px 24px; border-left: 3px solid var(--accent); color: var(--text-muted); font-style: italic; }
.post-body table { border-collapse: collapse; width: 100%; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }

/* FAQ */
.faq { margin: 40px auto; }
.faq h2 { font-size: 1.6rem; margin-bottom: 16px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--text); padding-right: 30px; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 10px; color: var(--text-muted); }

/* CITATIONS */
.citations { margin: 40px auto; }
.citations h3 { font-size: 1.2rem; margin-bottom: 14px; }
.citations ol { padding-left: 24px; color: var(--text-muted); }
.citations li { padding: 6px 0; font-size: 14px; }
.citations .domain { color: var(--text-dim); font-size: 12px; }

/* AUTHOR CARD */
.author-card { display: flex; gap: 24px; padding: 28px; background: var(--surface); border-radius: 10px; margin: 50px auto; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.author-card h3 { font-family: Georgia, serif; margin: 0 0 4px; }
.author-card .muted { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.author-card a { font-size: 14px; }

/* AUTHOR PROFILE PAGE */
.author-profile { display: flex; align-items: flex-start; gap: 30px; padding: 50px 0 30px; }
.author-profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-profile-info { flex: 1; }
.author-role { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.author-socials { display: flex; gap: 16px; margin-top: 14px; }
.author-socials a { font-size: 14px; color: var(--text-muted); }
.section-heading { font-size: 1.4rem; margin: 30px 0 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* RELATED */
.related { margin: 50px auto 80px; }
.related h3 { margin-bottom: 24px; font-size: 1.6rem; }

/* PAGINATION */
.pagination { text-align: center; margin: 40px 0; display: flex; gap: 24px; align-items: center; justify-content: center; color: var(--text-muted); }
.pagination a { color: var(--text-muted); }
.pagination a:hover { color: var(--text); }

/* FOOTER */
.blog-footer { background: var(--surface); margin-top: 100px; padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-cta { text-align: center; max-width: 560px; margin: 0 auto 50px; }
.footer-cta h3 { font-size: 1.8rem; }
.footer-cta p { color: var(--text-muted); margin-bottom: 24px; }
.cta-btn { display: inline-block; background: var(--accent); color: #1a1a1f; padding: 14px 28px; border-radius: 6px; font-weight: 600; }
.cta-btn:hover { text-decoration: none; transform: translateY(-1px); }
.footer-bottom { text-align: center; color: var(--text-dim); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom a { color: var(--text-muted); margin: 0 6px; }

/* MOBILE */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .post-hero-img { aspect-ratio: 4/3; }
    .author-card { flex-direction: column; text-align: center; }
    .avatar-lg { margin: 0 auto; }
    .author-profile { flex-direction: column; align-items: center; text-align: center; padding: 30px 0 20px; }
    .author-socials { justify-content: center; }
}
