:root {
  --ink: #0b1724;
  --ink-soft: #2e4054;
  --muted: #617084;
  --line: #dbe4ee;
  --paper: #f8fbfd;
  --white: #ffffff;
  --blue: #1f6feb;
  --teal: #0fa6a0;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(31, 111, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 235, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(31, 111, 235, 0.16);
  background: rgba(248, 251, 253, 0.92);
  box-shadow: 0 12px 30px rgba(10, 29, 48, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: clamp(160px, 18vw, 232px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.blog-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--white);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  border: 1px solid rgba(31, 111, 235, 0.22);
  background: var(--white);
}

.blog-post {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.blog-home {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.blog-home h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.95;
}

.blog-home-intro {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-post h1 {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
}

.blog-post-meta {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.blog-post-excerpt {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
}

.blog-post-content {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content figure {
  margin: 0;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  margin: 16px 0 0;
  color: var(--ink);
  line-height: 1.12;
}

.blog-post-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.blog-post-content h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.4rem;
}

.blog-post-content blockquote {
  margin: 8px 0;
  padding: 18px 20px;
  color: var(--ink);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(15, 166, 160, 0.08);
  font-size: 1.14rem;
  font-weight: 800;
}

.blog-post-content a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(10, 29, 48, 0.12);
}

.blog-post-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: italic;
}

.public-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-article-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(31, 111, 235, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(71, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 215, 255, 0.045) 1px, transparent 1px),
    var(--white);
  background-size: 24px 24px;
  box-shadow: 0 14px 36px rgba(10, 29, 48, 0.07);
}

.public-article-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.article-category {
  justify-self: start;
  padding: 6px 9px;
  color: var(--ink);
  border: 1px solid rgba(71, 215, 255, 0.38);
  border-radius: 7px;
  background: linear-gradient(135deg, #dff8ff, #e8f5f4);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-article-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.14;
}

.public-article-card p {
  margin: 0;
  color: var(--ink-soft);
}

.public-article-meta {
  display: flex;
  gap: 12px;
  align-self: end;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted);
  font-weight: 800;
}

.public-article-meta a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.empty-state {
  max-width: 680px;
  padding: 28px;
  border: 1px solid rgba(31, 111, 235, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(10, 29, 48, 0.07);
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #c8d5e2;
  background: #071421;
  font-size: 0.92rem;
}

.blog-footer img {
  width: 214px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-info span {
  display: block;
}

.footer-info a {
  color: #47d7ff;
  font-weight: 900;
  text-decoration: none;
}

.footer-social {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: flex-end;
}

.blog-footer .footer-social a {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.blog-footer .footer-social a:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.blog-footer .footer-social img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.footer-info a:hover {
  color: var(--white);
}

@media (max-width: 720px) {
  .blog-header {
    display: grid;
  }

  .blog-header-actions {
    justify-content: start;
  }

  .public-article-grid {
    grid-template-columns: 1fr;
  }

  .blog-footer {
    flex-direction: column;
  }

  .footer-info {
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
