/* PM Media — Insights / blog · self-contained · obsidian executive premium.
   Reuses the site design tokens; does not depend on the 20 site stylesheets. */
:root {
  --cyan: #00d4ee;
  --magenta: #e8328a;
  --bg: #06060c;
  --bg-elevated: #101018;
  --bg-card: rgba(16, 16, 24, 0.72);
  --text: #f4f4fa;
  --text-soft: rgba(244, 244, 250, 0.68);
  --text-faint: rgba(244, 244, 250, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 238, 0.35);
  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --heavy: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 238, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(232, 50, 138, 0.06), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--gradient); color: #06060c; font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.blog-container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

/* ---------------------------------------------------------------- header */
.blog-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 12, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.blog-header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.blog-logo img { width: auto; height: 44px; }
.blog-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); flex-wrap: wrap; }
.blog-nav a { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; }
.blog-nav a:hover { color: var(--text); text-decoration: none; }
.blog-nav a.nav-active { color: var(--cyan); }
.blog-nav-cta {
  background: var(--gradient); color: #06060c !important; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 999px;
}
.blog-nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------------------------------------------------------------- hub */
.hub-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.hub-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.01em;
  max-width: 16ch;
}
.hub-lead {
  margin-top: 1.5rem; max-width: 60ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-soft);
}

.hub-list { padding-bottom: clamp(4rem, 9vw, 7rem); }
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 238, 0.12);
}
.card-link { display: block; padding: 1.75rem; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 0.85rem;
}
.card-title {
  font-family: var(--heavy); font-weight: 700; font-size: 1.3rem; line-height: 1.25;
  color: var(--text); margin-bottom: 0.75rem;
}
.card-desc { color: var(--text-soft); font-size: 0.96rem; margin-bottom: 1.25rem; }
.card-meta { color: var(--text-faint); font-size: 0.82rem; }

/* ---------------------------------------------------------------- article */
.post { max-width: var(--measure); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 2rem) clamp(4rem, 9vw, 6rem); }

.crumbs { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 2.5rem; }
.crumbs a { color: var(--text-soft); }
.crumbs span[aria-hidden] { margin: 0 0.4rem; }

.post-head { margin-bottom: 2.75rem; }
.post-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.post-meta { color: var(--text-faint); font-size: 0.88rem; }
.post-meta span[aria-hidden] { margin: 0 0.35rem; }

.post-body { font-size: 1.12rem; }
.post-body h2 {
  font-family: var(--heavy); font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -0.01em;
  margin: 3.25rem 0 1rem;
}
.post-body h3 {
  font-family: var(--heavy); font-weight: 600;
  font-size: 1.28rem; margin: 2.25rem 0 0.75rem; color: var(--text);
}
.post-body p { margin-bottom: 1.4rem; color: rgba(244, 244, 250, 0.86); }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 1.6rem 1.35rem; }
.post-body li { margin-bottom: 0.6rem; color: rgba(244, 244, 250, 0.86); }
.post-body ul li::marker { color: var(--cyan); }
.post-body ol li::marker { color: var(--magenta); font-weight: 700; }

/* ---------------------------------------------------------------- faq */
.faq { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.faq h2 {
  font-family: var(--heavy); font-weight: 700; font-size: 1.7rem; margin-bottom: 1.5rem;
}
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.75rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.35rem;
  font-weight: 600; font-size: 1.02rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--cyan); font-size: 1.4rem; font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cyan); }
.faq-answer { padding: 0 1.35rem 1.25rem; }
.faq-answer p { color: var(--text-soft); }

/* ---------------------------------------------------------------- author */
.author-card {
  display: flex; align-items: center; gap: 1.25rem;
  margin-top: 3rem; padding: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.author-mark {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient); color: #06060c; font-family: var(--heavy); font-weight: 800;
}
.author-name { font-weight: 700; color: var(--text); }
.author-bio { font-size: 0.92rem; color: var(--text-soft); margin-top: 0.2rem; }

/* ---------------------------------------------------------------- cta */
.cta-block {
  margin-top: 3rem; padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(0, 212, 238, 0.22); border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(0, 212, 238, 0.1), transparent 60%),
    radial-gradient(ellipse 70% 100% at 100% 100%, rgba(232, 50, 138, 0.1), transparent 60%),
    var(--bg-elevated);
  text-align: center;
}
.cta-block h2 { font-family: var(--heavy); font-weight: 700; font-size: 1.7rem; margin-bottom: 0.75rem; }
.cta-block p { color: var(--text-soft); max-width: 48ch; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #06060c; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--border-hover); color: var(--cyan); }

/* ---------------------------------------------------------------- related */
.related { margin-top: 3.5rem; }
.related h2 { font-family: var(--heavy); font-weight: 700; font-size: 1.5rem; margin-bottom: 1.25rem; }
.related-list { list-style: none; display: grid; gap: 0.75rem; }
.related-list a {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.related-list a:hover { text-decoration: none; border-color: var(--border-hover); transform: translateX(4px); }
.rel-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); }
.rel-title { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.blog-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 12, 0.6);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  margin-top: 2rem;
}
.blog-footer-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2rem;
}
.blog-footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.75rem; }
.blog-footer p { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0.35rem; }
.blog-footer a { color: var(--text-soft); }
.blog-footer a:hover { color: var(--cyan); }
.blog-footer-bottom { font-size: 0.82rem; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 768px) {
  .blog-header-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .blog-nav { gap: 0.85rem 1.1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
