/* Shared styles for /blog and /blog/<slug>. Matches the marketing site. */
:root {
  --navy-900: #0C1A31;
  --navy-line: #24395E;
  --gold: #E3A72F;
  --gold-soft: #F0C25E;
  --ink: #0C1A31;
  --slate: #4B5768;
  --slate-light: #8794A6;
  --line: #E4E7EC;
  --white: #FFFFFF;
  --off: #F8F9FB;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.nav-outer { background: var(--navy-900); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-mark svg { width: 21px; height: 21px; }
.logo-text { line-height: 1.15; }
.logo-text .l1 { color: #fff; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.logo-text .l2 { color: var(--slate-light); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: #D5DBE4; font-size: 14px; font-weight: 500; transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-mobile { display: none; }
.btn-gold {
  background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: 14.5px;
  padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .15s; display: inline-block; text-align: center;
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-gold.lg { padding: 14px 26px; font-size: 15.5px; }

.page-hero {
  background: var(--navy-900); color: #fff; position: relative; overflow: hidden;
  padding: 64px 0 56px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #FFFFFF12 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.page-hero .wrap { position: relative; }
.eyebrow {
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.02em; max-width: 16ch;
}
.page-hero .lede {
  color: #C2CBD8; font-size: 18px; line-height: 1.6;
  max-width: 38rem; margin-top: 18px;
}

.post-list { padding: 56px 0 88px; background: var(--off); }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 28px 24px; max-width: 760px;
}
.post-card + .post-card { margin-top: 16px; }
.post-card time {
  display: block; font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px; color: var(--slate-light); letter-spacing: 0.02em; margin-bottom: 8px;
}
.post-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 10px; }
.post-card h2 a:hover { color: #8A6410; }
.post-card p { color: var(--slate); font-size: 16px; line-height: 1.65; }
.post-card .more {
  display: inline-block; margin-top: 16px; color: var(--navy-900);
  font-weight: 700; font-size: 14.5px; border-bottom: 2px solid var(--gold); padding-bottom: 1px;
}
.post-card .more:hover { color: #8A6410; }

.post-hero { padding: 48px 0 36px; }
.post-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; max-width: 18ch; text-transform: none;
}
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin-top: 18px; color: #C2CBD8; font-size: 14.5px;
}
.byline a { color: var(--gold); font-weight: 600; }
.byline a:hover { color: var(--gold-soft); }

.article-wrap { max-width: 740px; margin: 0 auto; padding: 8px 32px 80px; }
.prose p { color: var(--slate); font-size: 17.5px; line-height: 1.75; margin: 0 0 18px; }
.prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.2; margin: 42px 0 14px;
}
.prose h3 { font-size: 18.5px; font-weight: 700; color: var(--ink); margin: 26px 0 8px; line-height: 1.35; }
.prose a { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; font-weight: 600; }
.prose a:hover { color: #8A6410; }
.prose ul, .prose ol { margin: 0 0 18px 1.25rem; color: var(--slate); font-size: 17.5px; line-height: 1.7; }
.prose li { margin-bottom: 10px; }
.prose li strong { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
table.example caption { caption-side: bottom; text-align: left; padding-top: 8px; }

.prose p.example-label {
  display: inline-block; background: var(--gold); color: var(--navy-900);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.2; padding: 4px 10px; border-radius: 999px; margin: 8px 0 10px;
}
.table-wrap { overflow-x: auto; margin: 8px 0 18px; -webkit-overflow-scrolling: touch; }
table.example {
  width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 280px;
}
table.example th, table.example td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.example th { color: var(--slate-light); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
table.example td:last-child, table.example th:last-child {
  text-align: right; font-family: 'IBM Plex Mono', monospace; color: var(--ink); white-space: nowrap;
}
table.example tr.pass td { background: #F8F4EA; }
.table-note, table.example caption.table-note {
  color: var(--slate-light); font-size: 13.5px; font-weight: 400; letter-spacing: 0;
  text-transform: none; text-align: left; margin: 8px 0 18px; padding-top: 8px;
}

.cta {
  background: var(--navy-900); color: #fff; border-radius: 14px;
  padding: 28px 28px 26px; margin: 28px 0 8px; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #FFFFFF12 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.cta .cta-in { position: relative; }
.cta .kicker {
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 8px;
}
.cta h2 { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 28px; margin: 0 0 10px; letter-spacing: -0.02em; }
.cta p { color: #C2CBD8; font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.cta .fine { color: #A9B5C6; font-size: 14.5px; margin: 14px 0 0; }
.cta .fine a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.author {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  margin-top: 36px; background: var(--off);
}
.author img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  box-shadow: inset 0 0 0 2px var(--gold); border: 2px solid var(--gold);
}
.author h2 { font-family: 'Inter', sans-serif; font-size: 18px; margin: 0 0 2px; letter-spacing: 0; }
.author .role { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.author p { color: var(--slate); font-size: 15px; line-height: 1.55; margin: 0; }

.prose p.disclaimer {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--slate-light); font-size: 13.5px; line-height: 1.6;
}

footer { background: var(--navy-900); color: #8C9AAD; padding: 40px 0; font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: underline; }

@media (max-width: 940px) {
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-mobile { display: flex; gap: 16px; width: 100%; }
  .nav-mobile a { color: #D5DBE4; font-size: 14px; font-weight: 600; }
  .nav-mobile a[aria-current="page"], .nav-mobile a:hover { color: var(--gold); }
}
@media (max-width: 560px) {
  .wrap, .article-wrap { padding-left: 20px; padding-right: 20px; }
  .post-card, .cta, .author { padding: 20px; }
  .author { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 40px; }
  .post-hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
