:root {
  --ink: #0f172a;
  --muted: #526176;
  --line: #dfe7f1;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --navy: #071426;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(15, 23, 42, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 231, 241, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.site-header .nav { position: relative; }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; font-family: Inter, Arial, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.brand-wordmark .brand-flight { color: #111827; }
.brand-wordmark .brand-park { color: var(--blue); }
.brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; color: #334155; font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.button--light { background: white; color: var(--blue); box-shadow: none; }
.mobile-menu-toggle, .mobile-menu-panel { display: none; }
.back-to-blog { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px; color: var(--blue-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.back-to-blog:hover { text-decoration: underline; text-underline-offset: 3px; }

.blog-hero {
  overflow: hidden;
  padding: 92px 0 82px;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, .38), transparent 28%),
    radial-gradient(circle at 12% 90%, rgba(34, 197, 94, .18), transparent 30%),
    linear-gradient(135deg, #071426 0%, #10284a 58%, #123b76 100%);
}
.eyebrow { margin: 0 0 16px; color: #93c5fd; font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.blog-hero h1, .article-hero h1 { margin: 0; max-width: 880px; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.blog-hero .lead { max-width: 720px; margin: 24px 0 0; color: #d6e3f4; font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-facts span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); color: #eef6ff; font-size: 13px; font-weight: 700; }

.posts { padding: 76px 0 96px; background: var(--soft); }
.section-head { max-width: 740px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: #b7cdfa; box-shadow: var(--shadow); }
.post-card .tag { width: fit-content; padding: 7px 10px; border-radius: 999px; background: #eff6ff; color: var(--blue); font-size: 12px; font-weight: 850; }
.post-card h2 { margin: 20px 0 12px; font-size: 26px; line-height: 1.18; letter-spacing: -.03em; }
.post-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.post-card .read { margin-top: auto; padding-top: 24px; color: var(--blue); font-weight: 850; }

.article-hero { padding: 70px 0 64px; background: linear-gradient(180deg, #f2f7ff 0%, #fff 100%); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #64748b; font-size: 13px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.article-hero h1 { max-width: 980px; font-size: clamp(38px, 6vw, 64px); }
.article-hero .dek { max-width: 820px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.65; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 26px; color: #64748b; font-size: 14px; font-weight: 650; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: space-between; gap: 64px; padding: 62px 0 90px; }
.article { min-width: 0; font-size: 18px; line-height: 1.82; }
.article > p:first-child { margin-top: 0; color: #334155; font-size: 21px; line-height: 1.7; }
.article h2 { scroll-margin-top: 100px; margin: 58px 0 18px; font-size: 34px; line-height: 1.18; letter-spacing: -.035em; }
.article h3 { scroll-margin-top: 100px; margin: 34px 0 12px; font-size: 23px; line-height: 1.3; }
.article p { margin: 0 0 22px; }
.article ul, .article ol { margin: 18px 0 26px; padding-left: 26px; }
.article li { margin: 10px 0; padding-left: 5px; }
.article a:not(.button) { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article strong { color: #071426; }
.toc { position: sticky; top: 104px; height: fit-content; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: #526176; font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.callout { margin: 34px 0; padding: 24px 26px; border-left: 4px solid var(--blue); border-radius: 0 18px 18px 0; background: #eff6ff; }
.callout strong { display: block; margin-bottom: 5px; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.table-wrap { overflow-x: auto; margin: 30px 0; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; background: white; font-size: 16px; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.inline-cta { margin: 42px 0; padding: 30px; border-radius: 24px; color: white; background: linear-gradient(135deg, #0f2b52, #1d4ed8); box-shadow: var(--shadow); }
.inline-cta h2, .inline-cta h3 { margin: 0 0 10px; color: white; }
.inline-cta p { margin: 0 0 20px; color: #dbeafe; }
.faq { margin-top: 46px; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; font-size: 20px; }
.faq-item p { margin: 0; color: var(--muted); }

.related { padding: 72px 0; background: var(--soft); }
.related h2 { margin: 0 0 26px; font-size: 34px; letter-spacing: -.035em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; font-weight: 800; line-height: 1.35; text-decoration: none; }
.related a:hover { color: var(--blue); border-color: #b7cdfa; }

@media (max-width: 900px) {
  .nav-links { display: flex; gap: 12px; font-size: 12px; }
  .nav-links a:not(:nth-child(3)) { display: none; }
  .nav-links a { white-space: nowrap; }
  .post-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; grid-row: 1; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav { min-height: 68px; }
  .nav .button { display: none; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
  .mobile-menu-toggle svg { width: 22px; height: 22px; }
  .mobile-menu-toggle .menu-close { display: none; }
  .mobile-menu-toggle[aria-expanded="true"] .menu-open { display: none; }
  .mobile-menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .mobile-menu-panel { position: absolute; top: 68px; left: 0; right: 0; padding: 12px 14px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 16px 28px rgba(15,23,42,.12); }
  .mobile-menu-panel.is-open { display: grid; gap: 4px; }
  .mobile-menu-panel a { display: block; padding: 13px 10px; border-radius: 10px; color: #334155; font-size: 16px; font-weight: 700; text-decoration: none; }
  .mobile-menu-panel a:hover, .mobile-menu-panel a:focus-visible { background: #eff6ff; color: var(--blue); }
  .mobile-menu-panel .mobile-menu-cta { margin-top: 8px; background: var(--blue); color: white; text-align: center; }
  .brand-wordmark { font-size: 23px; }
  .blog-hero { padding: 64px 0 58px; }
  .posts { padding: 54px 0 70px; }
  .post-card { min-height: 0; padding: 24px; }
  .article-hero { padding: 48px 0 44px; }
  .article-layout { padding: 42px 0 68px; }
  .article { font-size: 17px; line-height: 1.75; }
  .article h2 { margin-top: 46px; font-size: 29px; }
  .inline-cta { padding: 24px; }
  th, td { padding: 13px 14px; }
}

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