:root {
  color: #111827;
  background: #fffdf9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: #111827; background: #fffdf9; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #e8e1d8;
  background: rgb(255 253 249 / 94%);
  backdrop-filter: blur(14px);
}

.blog-brand { text-decoration: none; font-size: 30px; font-weight: 800; letter-spacing: -1.6px; }
.blog-brand span, .blog-card-placeholder span { color: #ff650f; }
.blog-header nav { display: flex; align-items: center; gap: 22px; }
.blog-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 650; }
.blog-header-cta { padding: 0 20px; border-radius: 14px; color: white; background: #ff650f; box-shadow: 0 10px 24px rgb(255 101 15 / 20%); }

.blog-page, .blog-article { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.blog-hero { max-width: 780px; padding: 88px 0 54px; }
.blog-eyebrow { color: #e95608; font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.blog-hero h1, .blog-article h1 { margin: 12px 0 18px; color: #07142f; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; }
.blog-hero p { margin: 0; max-width: 660px; color: #5d687b; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 96px; }
.blog-card { overflow: hidden; border: 1px solid #e8e1d8; border-radius: 24px; background: white; box-shadow: 0 16px 40px rgb(25 32 48 / 6%); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgb(25 32 48 / 11%); }
.blog-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f4eee7; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.025); }
.blog-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #07142f; font-size: 28px; font-weight: 800; }
.blog-card-body { padding: 22px 22px 26px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: #7a8494; font-size: 13px; }
.blog-card h2 { margin: 14px 0 10px; color: #07142f; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.blog-card h2 a { text-decoration: none; }
.blog-card p { margin: 0; color: #5d687b; line-height: 1.6; }
.blog-empty { padding: 40px 0 100px; color: #5d687b; font-size: 18px; }

.blog-article { max-width: 820px; padding: 48px 0 96px; }
.blog-back { display: inline-flex; min-height: 44px; align-items: center; color: #d64e05; font-weight: 750; text-decoration: none; }
.blog-article article > header { padding: 44px 0 36px; }
.blog-article h1 { max-width: 900px; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; }
.blog-lead { margin: 0; color: #536075; font-size: clamp(19px, 2.5vw, 24px); line-height: 1.55; }
.blog-cover { overflow: hidden; margin: 0 0 48px; border-radius: 26px; background: #f4eee7; box-shadow: 0 20px 60px rgb(25 32 48 / 10%); }
.blog-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-prose { color: #273247; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.78; }
.blog-prose h2, .blog-prose h3, .blog-prose h4 { color: #07142f; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.2; letter-spacing: -.025em; }
.blog-prose h2 { margin: 54px 0 18px; font-size: 34px; }
.blog-prose h3 { margin: 40px 0 15px; font-size: 26px; }
.blog-prose h4 { margin: 32px 0 12px; font-size: 21px; }
.blog-prose p { margin: 0 0 24px; }
.blog-prose li { margin: 8px 0; padding-left: 5px; }
.blog-prose code { padding: 2px 6px; border-radius: 6px; background: #f2ede6; font-size: .88em; }
.blog-cta { margin-top: 48px; padding: 30px; border-radius: 24px; color: white; background: #07142f; }
.blog-cta h2 { margin: 0 0 20px; font-size: 27px; }
.blog-cta a { display: inline-flex; min-height: 46px; align-items: center; padding: 0 20px; border-radius: 13px; color: white; background: #ff650f; font-weight: 750; text-decoration: none; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .blog-header { min-height: 64px; padding-inline: 18px; }
  .blog-brand { font-size: 26px; }
  .blog-header nav > a:first-child { display: none; }
  .blog-header-cta { padding-inline: 14px; font-size: 14px; }
  .blog-page, .blog-article { width: min(100% - 28px, 820px); }
  .blog-hero { padding: 58px 0 36px; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 64px; }
  .blog-card { border-radius: 20px; }
  .blog-article { padding-top: 26px; }
  .blog-article article > header { padding-top: 28px; }
  .blog-cover { margin-bottom: 34px; border-radius: 18px; }
  .blog-prose { font-size: 18px; line-height: 1.7; }
  .blog-prose h2 { margin-top: 42px; font-size: 28px; }
  .blog-cta { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
