/* ==========================================================================
   Pole Position Pro - poleposition.pro blog, post and 404 pages.  v1 (2026-10-20)
   The menu (#hn) and footer (#hf) live in pp-nav.css; this file only styles the page content between them.
   ========================================================================== */
:root {
  --navy: #0B132B; --navy-2: #131c3d; --navy-3: #1a2550; --cream: #F8F5EE; --muted: #C7C2B4; --dim: #8E96AE;
  --gold: #C9A66B; --gold-light: #ddbb86; --line: rgba(248,245,238,0.08); --line-strong: rgba(248,245,238,0.18);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--navy); color: var(--cream); font-family: 'Inter', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--cream); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', Arial, sans-serif; }

.pp-main { display: block; min-height: 60vh; padding: 0 0 72px; }
.pp-wrap { max-width: 800px; margin: 0 auto; padding: 56px 24px 0; }
.pp-wrap-wide { max-width: 1100px; }

/* ---- page head (blog index, 404) */
.pp-head { text-align: center; margin-bottom: 44px; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.pp-head h1 { font-size: 34px; line-height: 1.22; margin: 0 0 14px; font-weight: 700; }
.lead { font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 640px; margin: 0 auto; }

/* ---- post cards */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--navy-2); border: 1px solid var(--line-strong); border-radius: 8px;
  overflow: hidden; color: var(--cream); text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--gold); color: var(--cream); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--navy-3); overflow: hidden; }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.post-category { color: var(--gold-light); font-weight: 600; }
.post-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.post-card-title { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.post-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.post-arrow { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---- breadcrumb bar */
.crumbbar { background: var(--navy-2); border-bottom: 1px solid var(--line); }
.crumbbar-inner { max-width: 1100px; margin: 0 auto; padding: 12px 24px; font-size: 12px; color: var(--dim); font-family: 'Space Grotesk', Arial, sans-serif; }
.crumbbar-inner a { color: var(--muted); }
.crumbbar-inner a:hover { color: var(--gold); }
.crumbbar .sep { margin: 0 8px; color: var(--line-strong); }
.crumbbar .current { color: var(--gold); }

/* ---- article */
.pp-article .post-meta-row { font-size: 12px; margin-bottom: 14px; color: var(--gold); font-family: 'Space Grotesk', Arial, sans-serif; }
.pp-article .post-meta-row time { color: var(--dim); }
.post-title { font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.18; margin: 0 0 18px; }
.post-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.post-hero { margin: 0 0 36px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--navy-3); }
.post-hero img { display: block; width: 100%; height: auto; }
.post-body { font-size: 16.5px; line-height: 1.75; color: var(--cream); overflow-wrap: break-word; }
.post-body h2 { font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--gold); margin: 44px 0 16px; }
.post-body h3 { font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--cream); margin: 32px 0 12px; }
.post-body h4 { font-weight: 600; font-size: 16.5px; margin: 24px 0 10px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--cream); }
.post-body strong, .post-body b { font-weight: 600; color: #fff; }
.post-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.post-body th { color: var(--gold); font-weight: 600; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; border-radius: 8px; overflow: hidden; background: var(--navy-3); border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- author */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 48px 0 0; padding: 24px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 8px; }
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--navy-3); }
.author-name { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.author-bio { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.author-link { font-size: 13px; font-weight: 600; color: var(--gold); }

/* ---- CTA box */
.cta-box { margin: 28px 0 0; padding: 26px 28px; background: var(--navy-3); border: 1px solid var(--line); border-radius: 8px; }
.cta-box-title { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 15px; margin: 0 0 14px; }
.cta-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-grid-center { justify-content: center; }
.cta-grid a { flex: 1 1 200px; text-align: center; padding: 11px 16px; font-size: 13px; font-weight: 600; font-family: 'Space Grotesk', Arial, sans-serif;
  border-radius: 2px; border: 1px solid var(--gold); color: var(--gold); }
.cta-grid a.primary { background: var(--gold); color: var(--navy); }
.cta-grid a:hover { background: rgba(201,166,107,.14); color: var(--gold); }
.cta-grid a.primary:hover { background: var(--gold-light); color: var(--navy); }

/* ---- more posts */
.pp-more { padding-top: 64px; }
.more-title { font-size: 22px; margin: 0 0 20px; }

@media (max-width: 900px) {
  .post-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pp-wrap { padding: 36px 20px 0; }
  .pp-head h1 { font-size: 26px; }
  .post-grid, .post-grid-3 { grid-template-columns: 1fr; }
  .post-body { font-size: 15.5px; }
  .post-body h2 { font-size: 21px; margin-top: 36px; }
  .post-lead { font-size: 16.5px; }
  .author-box { flex-direction: column; }
  .cta-box { padding: 20px 18px; }
  .crumbbar-inner { padding: 12px 20px; }
}
