:root {
  --navy: #1a2b4c;
  --navy-light: #243a63;
  --navy-dark: #111d33;
  --bronze: #d49a6a;
  --bronze-hover: #b8865d;
  --bronze-light: #e8c4a0;
  --pearl: #fdfbf7;
  --pearl-alt: #f5f1eb;
  --surface: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e1db;
  --max-width: 1200px;
  --content-width: 720px;
  --nav-height: 72px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 43, 76, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(26, 43, 76, 0.07), 0 2px 4px -1px rgba(26, 43, 76, 0.04);
}
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  background: var(--pearl);
  color: var(--text-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text-primary);
  line-height: 1.25;
}
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.post-hero {
  background: var(--navy);
  color: #fff;
  padding: calc(var(--nav-height) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2rem, 4vw, 3rem);
}
.post-hero-inner { max-width: var(--content-width); }
.post-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.post-breadcrumb a { color: rgba(255,255,255,0.65); }
.post-breadcrumb a:hover { color: var(--bronze); }
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}
.post-sep { color: var(--bronze); }
.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.post-lede {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 600px;
}
.post-hero-image {
  position: relative;
  max-width: 860px;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.post-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.post-hero-image.img-loaded img {
  opacity: 1;
}
@keyframes be-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.post-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: 0 clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--pearl-alt) 0%, #ede9e2 40%, #e3dfd8 50%, #ede9e2 60%, var(--pearl-alt) 100%);
  background-size: 200% 100%;
  animation: be-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.post-hero-image.img-loaded::after {
  opacity: 0;
}
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content-width)) 1fr;
  gap: 3rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { order: -1; }
}
.post-body { min-width: 0; }
.post-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  margin: 2.25rem 0 0.75rem;
}
.post-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 1.75rem 0 0.6rem;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.4rem;
}
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  border-left: 3px solid var(--bronze);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--pearl-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.post-body a {
  color: var(--navy-light, #243a63);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--bronze-hover, #b8865d); }
.post-body pre, .post-body code {
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.9em;
}
.post-body pre {
  background: #f3f4f6;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.post-sidebar { position: sticky; top: calc(var(--nav-height) + 1.5rem); }
.post-cta-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
}
.post-cta-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}
.post-cta-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.post-cta-btn {
  display: inline-block;
  background: var(--bronze);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}
.post-cta-btn:hover { background: var(--bronze-hover); color: #fff; }
.post-back-wrap {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.post-back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.post-back-link:hover { color: var(--navy); }
