:root {
  --background: #f5f8fc;
  --surface: #ffffff;
  --surface-muted: #eef4fb;
  --text: #24364d;
  --text-soft: #5f728c;
  --border: #d9e2ee;
  --primary: #0a2b63;
  --primary-dark: #081f49;
  --accent: #66a9fb;
  --accent-strong: #1d71f2;
  --accent-soft: #e8f2ff;
  --shadow: 0 18px 44px rgba(10, 43, 99, 0.12);
  --shadow-soft: 0 10px 25px rgba(10, 43, 99, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(102, 169, 251, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--background) 45%, #ffffff 100%);
  color: var(--text);
  font-family:
    "Segoe UI",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.65;
}

body,
.lede,
.section-heading p,
.hero-panel p,
.post-card p,
.backlink-card span,
.breadcrumbs,
.meta-row,
.post-card__meta,
.article-content {
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--primary);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(10, 43, 99, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand img {
  width: auto;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  color: var(--text-soft);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent-strong);
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.call-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.call-button,
.button--primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 14px 28px rgba(29, 113, 242, 0.24);
}

.call-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(10, 43, 99, 0.14);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 52px 0 24px;
}

.hero-grid,
.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.article-card,
.sidebar-card,
.post-card,
.cover-frame,
.empty-state {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 43, 99, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(102, 169, 251, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(10, 43, 99, 0.03), rgba(102, 169, 251, 0.03)),
    rgba(255, 255, 255, 0.94);
}

.hero-panel,
.sidebar-card {
  padding: 28px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 43, 99, 0.98), rgba(8, 31, 73, 0.98));
  color: #fff;
}

.hero-panel strong {
  color: #fff;
  font-size: 1.35rem;
}

.hero-panel p,
.sidebar-card p {
  margin: 0;
  color: inherit;
}

.hero-panel__label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel__label {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  color: var(--accent-strong);
  margin: 0 0 14px;
}

.hero h1,
.empty-state h1,
.empty-state h2,
.section-heading h2 {
  margin: 0;
  color: var(--primary);
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  max-width: 12ch;
}

.lede {
  margin: 18px 0 0;
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions--compact {
  margin-top: 20px;
}

.section {
  padding: 28px 0 68px;
}

.content-stack {
  display: grid;
  gap: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading p {
  margin: 0;
  max-width: 46ch;
  color: var(--text-soft);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 43, 99, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.featured-post__media {
  min-height: 100%;
  background: linear-gradient(135deg, rgba(10, 43, 99, 0.08), rgba(102, 169, 251, 0.08));
}

.featured-post__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.featured-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.featured-post__body h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  color: var(--primary);
}

.featured-post__body p {
  margin: 0;
  color: var(--text-soft);
}

.post-card {
  overflow: hidden;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 43, 99, 0.08), rgba(102, 169, 251, 0.08));
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  padding: 24px;
}

.post-card__meta,
.meta-row,
.breadcrumbs,
.post-card__footer,
.tag-list,
.pagination,
.footer-meta,
.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.post-card__meta,
.meta-row,
.breadcrumbs,
.pagination,
.footer-meta {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.eyebrow-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow-chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag-chip {
  background: rgba(10, 43, 99, 0.06);
  color: var(--primary);
}

.post-card h2 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--primary);
}

.post-card p {
  margin: 0;
  color: var(--text-soft);
}

.post-card__footer {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.text-link {
  font-weight: 700;
  color: var(--accent-strong);
}

.text-link:hover {
  text-decoration: underline;
}

.backlink-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.backlink-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 43, 99, 0.1);
  background:
    radial-gradient(circle at top right, rgba(102, 169, 251, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.backlink-card strong {
  font-size: 1.05rem;
}

.backlink-card span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.backlink-card:hover {
  border-color: rgba(29, 113, 242, 0.26);
}

.pagination {
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.article-hero {
  display: grid;
  gap: 24px;
}

.breadcrumbs {
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--accent-strong);
}

.cover-frame {
  overflow: hidden;
}

.cover-frame img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.article-card {
  padding: 38px;
}

.article-content {
  font-size: 1.05rem;
  color: var(--text);
  word-break: break-word;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--primary);
  line-height: 1.18;
  margin: 1.8em 0 0.7em;
}

.article-content h2 {
  font-size: 1.9rem;
}

.article-content h3 {
  font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content pre {
  margin: 0 0 1.1em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35em;
}

.article-content li + li {
  margin-top: 0.45em;
}

.article-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.article-content blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--primary);
}

.article-content figure {
  margin: 1.6em 0;
}

.article-figure {
  display: grid;
  gap: 10px;
  margin: 1.7em 0;
}

.article-inline-image,
.article-content picture {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.article-figcaption {
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
  max-width: 62ch;
  margin: 0 auto;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.article-content pre,
.article-content code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
}

.article-content pre {
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #091a35;
  color: #f5f8fc;
}

.article-content :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 8px;
  background: rgba(10, 43, 99, 0.08);
  color: var(--primary);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.4em 0 1.6em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 43, 99, 0.08);
  box-shadow: var(--shadow-soft);
}

.table-scroll table {
  margin: 0;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--surface-muted);
  color: var(--primary);
}

.article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.toc-list,
.backlink-list {
  display: grid;
  gap: 10px;
}

.toc-link {
  color: var(--text-soft);
  font-weight: 600;
}

.toc-link--level-3 {
  padding-left: 14px;
  font-size: 0.94rem;
}

.toc-link:hover {
  color: var(--accent-strong);
}

.sidebar-card__label {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.sidebar-actions {
  flex-direction: column;
}

.article-tail {
  padding-bottom: 36px;
}

.empty-state {
  padding: 40px;
  text-align: center;
}

.empty-state--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.empty-state p {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 44px 0 112px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(102, 169, 251, 0.18), transparent 24%),
    linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.footer-grid p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: #fff;
}

.footer-call {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: #fff;
}

.footer-meta {
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.footer-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.floating-call,
.mobile-callbar {
  position: fixed;
  z-index: 45;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 20px 40px rgba(29, 113, 242, 0.28);
  font-weight: 800;
}

.floating-call {
  right: 22px;
  bottom: 22px;
  padding: 15px 20px;
}

.mobile-callbar {
  display: none;
}

@media (max-width: 1040px) {
  .hero-grid,
  .article-hero__grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-post,
  .backlink-strip {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .featured-post__media img {
    min-height: 240px;
  }

  .hero-copy,
  .article-card,
  .hero-panel,
  .sidebar-card,
  .empty-state {
    padding: 26px;
  }

  .hero h1 {
    max-width: none;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .floating-call {
    display: none;
  }

  .mobile-callbar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
  }

  .site-footer {
    padding-bottom: 128px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .brand img {
    height: 34px;
  }

  .call-button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 1rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 8px 4px;
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    padding: 28px 0 18px;
  }

  .hero-copy,
  .hero-panel,
  .article-card,
  .sidebar-card,
  .empty-state {
    padding: 20px;
    border-radius: 22px;
  }

  .featured-post__body,
  .post-card__body {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
    line-height: 1.02;
  }

  .lede {
    font-size: 1rem;
  }

  .hero-panel strong {
    font-size: 1.15rem;
  }

  .featured-post__body h3 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .post-card h2 {
    font-size: clamp(1.25rem, 6.5vw, 1.55rem);
  }

  .breadcrumbs,
  .post-card__meta,
  .meta-row,
  .pagination,
  .footer-meta {
    gap: 8px 10px;
    font-size: 0.88rem;
  }

  .article-layout {
    gap: 18px;
    padding-bottom: 48px;
  }

  .article-card {
    padding: 22px 18px;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: clamp(1.4rem, 7vw, 1.7rem);
  }

  .article-content h3 {
    font-size: clamp(1.15rem, 6vw, 1.35rem);
  }

  .article-sidebar {
    gap: 14px;
  }

  .cover-frame img {
    max-height: 280px;
  }

  .table-scroll {
    margin: 1.2em 0 1.4em;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .brand img {
    height: 32px;
  }

  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .site-nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
  }

  .call-button {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .article-card,
  .sidebar-card,
  .empty-state {
    padding: 18px;
  }

  .featured-post__body,
  .post-card__body {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 11vw, 2.35rem);
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .featured-post__media img {
    min-height: 200px;
  }

  .cover-frame img {
    max-height: 220px;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .article-content h3 {
    font-size: 1.12rem;
  }

  .article-content th,
  .article-content td {
    padding: 10px 12px;
  }

  .backlink-card {
    padding: 16px;
  }

  .hero-actions,
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .call-button {
    width: 100%;
  }
}
