:root {
  --bg: #f4f0e8;
  --ink: #0f2135;
  --muted: #5d6a79;
  --line: rgba(15, 33, 53, 0.16);
  --card: #ffffff;
  --mint: #bfe7d4;
  --amber: #f1c98f;
  --sky: #d7e8f6;
  --anchor-offset: 96px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 420px at 8% -10%, rgba(191, 231, 212, 0.58), transparent 60%),
    radial-gradient(980px 440px at 90% -8%, rgba(241, 201, 143, 0.36), transparent 62%),
    var(--bg);
}

main {
  flex: 1 0 auto;
}

body.blog-hub main {
  padding-bottom: 1.2rem;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background-image: radial-gradient(rgba(15, 33, 53, 0.09) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

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

a {
  color: #123b63;
}

a:hover {
  color: #0e2f4d;
}

.container {
  width: min(1120px, calc(100vw - 2.2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(244, 240, 232, 0.7);
  border-bottom: 1px solid rgba(15, 33, 53, 0.08);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Newsreader', serif;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 1.58rem;
  height: 1.58rem;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 0.34rem;
  transform: translateY(-0.11em);
}

.brand-full {
  display: inline;
}

.brand-short {
  display: none;
  white-space: nowrap;
}

.brand-beta {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 33, 53, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #173451;
  background: rgba(215, 232, 246, 0.65);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px -30px rgba(15, 33, 53, 0.7);
}

.nav a {
  display: inline-flex;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.88rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
  font-size: 0.91rem;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
  background: rgba(15, 33, 53, 0.08);
}

.page-hero {
  padding: 3.3rem 0 1.45rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.38rem 0.72rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Newsreader', serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.05;
  margin-top: 0.85rem;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-metadata {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.76rem;
  padding: 0.34rem 0.62rem;
}

.blog-grid {
  margin-top: 1.4rem;
  padding-bottom: 4.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  row-gap: 0.66rem;
  box-shadow: 0 24px 46px -42px rgba(15, 33, 53, 0.8);
}

.blog-card h2 {
  font-size: 1.58rem;
  line-height: 1.12;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.keyword-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.keyword-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(215, 232, 246, 0.34);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.45rem 0.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: #102741;
  color: #ffffff;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 18px 32px -28px rgba(15, 33, 53, 0.82);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.75rem 0.95rem;
}

.blog-layout {
  padding-bottom: 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}

.article-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(1rem, 2.7vw, 1.8rem);
  box-shadow: 0 24px 52px -42px rgba(15, 33, 53, 0.7);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.article-intro {
  margin-top: 1rem;
  color: #334455;
  font-size: 1.01rem;
}

.article-section {
  margin-top: 2rem;
}

.article-section h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  margin-bottom: 0.72rem;
  line-height: 1.15;
}

.article-section h3 {
  font-size: 1.32rem;
  margin-top: 1rem;
}

.article-section p {
  margin: 0.72rem 0 0;
}

.article-section ul,
.article-section ol {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.article-section li {
  margin-top: 0.44rem;
}

.pull-quote {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 59, 99, 0.24);
  background: rgba(215, 232, 246, 0.4);
  color: #1f3f5f;
}

.checklist {
  margin-top: 0.92rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0.82rem;
  background: rgba(255, 255, 255, 0.85);
}

.checklist h3 {
  margin-top: 0;
}

.checklist ul {
  margin-top: 0.45rem;
}

.example-box {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(191, 231, 212, 0.28);
  padding: 0.88rem;
}

.example-box strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #224c37;
}

.example-box p {
  margin-top: 0.35rem;
}

.cta-inline,
.cta-end {
  margin-top: 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 360px at 14% -42%, rgba(191, 231, 212, 0.58), transparent 60%),
    #ffffff;
  padding: 1rem;
}

.cta-inline h3,
.cta-end h2 {
  font-size: 1.52rem;
}

.cta-inline p,
.cta-end p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.cta-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.faq-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.83);
  padding: 0.7rem 0.8rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.related {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.05rem;
}

.related h3 {
  font-size: 1.35rem;
}

.related-grid {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.75rem;
}

.related-card a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.related-card a:hover {
  text-decoration: underline;
}

.related-card p {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.toc {
  position: sticky;
  top: calc(var(--anchor-offset) + 0.5rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.82rem;
  box-shadow: 0 20px 36px -34px rgba(15, 33, 53, 0.75);
}

.toc h2 {
  font-size: 1.2rem;
}

.toc ol {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

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

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hub-callout {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background:
    radial-gradient(980px 400px at 82% -42%, rgba(241, 201, 143, 0.48), transparent 58%),
    rgba(255, 255, 255, 0.9);
}

.hub-callout p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid rgba(15, 33, 53, 0.14);
  padding: 0.9rem 0;
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.92rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 440ms ease, transform 440ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 720px) {
  :root {
    --anchor-offset: 82px;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .brand {
    font-size: 1.52rem;
  }

  .brand-icon {
    width: 1.32rem;
    height: 1.32rem;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .brand-beta {
    font-size: 0.56rem;
    padding: 0.17rem 0.38rem;
  }

  .page-hero {
    padding-top: 2.4rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

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

  .cta-actions .button {
    width: 100%;
  }

  .footer-inner {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }
}

