:root {
  --blog-ink: #17363b;
  --blog-muted: #5f7477;
  --blog-sea: #0f7f89;
  --blog-sea-dark: #075f68;
  --blog-coral: #ef6f61;
  --blog-line: #cfe3e5;
  --blog-surface: #ffffff;
  --blog-tint: #e9f8fb;
  --blog-paper: #f7fbfa;
  --blog-shadow: 0 18px 55px rgba(23, 79, 86, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.blog-page {
  min-width: 320px;
  margin: 0;
  color: var(--blog-ink);
  background:
    radial-gradient(circle at 12% 3%, rgba(109, 199, 210, 0.25), transparent 30rem),
    linear-gradient(180deg, var(--blog-tint) 0, var(--blog-paper) 32rem, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.blog-page a {
  color: inherit;
}

.blog-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--blog-sea-dark);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.blog-skip-link:focus {
  transform: translateY(0);
}

.blog-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(35, 102, 109, 0.16);
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--blog-ink);
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.blog-brand img {
  display: block;
  width: 34px;
  height: 34px;
}

.blog-hero {
  width: min(980px, calc(100% - 48px));
  padding: 96px 0 82px;
  margin: 0 auto;
  text-align: center;
}

.blog-eyebrow {
  margin: 0 0 12px;
  color: var(--blog-sea-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  color: #12363a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.blog-hero h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.02;
}

.blog-hero > p:not(.blog-eyebrow) {
  max-width: 690px;
  margin: 28px auto 0;
  color: var(--blog-muted);
  font-size: 18px;
  line-height: 1.7;
}

.blog-primary-link {
  min-height: 48px;
  margin-top: 30px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--blog-sea-dark);
  border: 1px solid var(--blog-sea-dark);
  border-radius: 999px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(7, 95, 104, 0.18);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.blog-primary-link:hover {
  background: #064f57;
  box-shadow: 0 12px 28px rgba(7, 95, 104, 0.22);
  transform: translateY(-1px);
}

.blog-primary-link:focus-visible,
.blog-page a:focus-visible {
  outline: 3px solid #f4a79e;
  outline-offset: 3px;
}

.blog-library {
  padding: 74px max(24px, calc((100% - 1180px) / 2)) 104px;
  background: rgba(255, 255, 255, 0.84);
  border-top: 1px solid var(--blog-line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

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

.blog-card {
  min-width: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--blog-surface);
  border: 1px solid var(--blog-line);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(28, 81, 87, 0.07);
}

.blog-card:first-child {
  grid-column: 1 / -1;
  padding: 44px;
}

.blog-card__meta,
.article-meta {
  margin: 0 0 16px;
  color: var(--blog-muted);
  font-size: 13px;
  font-weight: 650;
}

.blog-card h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.blog-card h2 a {
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--blog-sea-dark);
}

.blog-card > p:not(.blog-card__meta) {
  max-width: 720px;
  margin: 18px 0 22px;
  color: var(--blog-muted);
}

.text-link {
  margin-top: auto;
  color: var(--blog-sea-dark) !important;
  font-size: 14px;
  font-weight: 780;
  text-underline-offset: 4px;
}

.blog-footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 160px;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--blog-line);
}

.blog-footer p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 14px;
}

.blog-footer > a:last-child {
  color: var(--blog-sea-dark);
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.blog-brand--footer {
  font-size: 18px;
}

.article-shell {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 30px 0 96px;
}

.breadcrumbs {
  max-width: 760px;
  margin: 0 auto 44px;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  color: var(--blog-muted);
  font-size: 13px;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 7px;
  content: "/";
  color: #96aaad;
}

.breadcrumbs a {
  text-underline-offset: 3px;
}

.article-header,
.article-summary,
.article-body,
.article-faq,
.article-sources,
.related-articles {
  max-width: 760px;
  margin-inline: auto;
}

.article-header {
  padding: 20px 0 42px;
}

.article-header h1 {
  font-size: clamp(40px, 6.5vw, 70px);
  line-height: 1.03;
}

.article-intro {
  margin: 28px 0 22px;
  color: #435e62;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.55;
}

.article-meta {
  margin: 0;
}

.article-summary {
  padding: 26px 30px;
  background: rgba(224, 246, 248, 0.72);
  border: 1px solid #bfdee1;
  border-radius: 20px;
}

.article-summary h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
}

.article-summary ul,
.article-body ul {
  padding-left: 22px;
}

.article-summary li + li,
.article-body li + li {
  margin-top: 7px;
}

.article-body {
  padding-top: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.76;
}

.article-body section {
  padding-top: 35px;
}

.article-body h2,
.article-cta h2,
.article-sources h2,
.related-articles h2,
.article-faq h2 {
  margin: 0 0 18px;
  color: #12363a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.8vw, 39px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body ul {
  margin: 0 0 24px;
}

.article-callout {
  margin: 30px 0;
  padding: 24px 26px;
  background: #fff8f3;
  border-left: 4px solid var(--blog-coral);
  border-radius: 0 16px 16px 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.article-callout strong {
  display: block;
  margin-bottom: 5px;
  color: #8e3f36;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-callout p {
  margin: 0;
}

.article-cta {
  max-width: 880px;
  margin: 76px auto;
  padding: 48px 56px;
  background: linear-gradient(135deg, #dff5f7, #f7fbf7);
  border: 1px solid #bfdee1;
  border-radius: 28px;
  box-shadow: var(--blog-shadow);
}

.article-cta p:not(.blog-eyebrow) {
  max-width: 690px;
  margin: 0;
  color: var(--blog-muted);
}

.article-sources,
.related-articles {
  padding-top: 36px;
  border-top: 1px solid var(--blog-line);
}

.article-sources h2,
.related-articles h2,
.article-faq h2 {
  font-size: 29px;
}

.article-sources ol,
.related-articles ul {
  padding-left: 22px;
}

.article-sources li,
.related-articles li {
  margin-bottom: 12px;
}

.article-sources a,
.related-articles a {
  color: var(--blog-sea-dark);
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.article-source-date {
  color: var(--blog-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.article-faq {
  margin-top: 54px;
  padding-top: 36px;
  border-top: 1px solid var(--blog-line);
}

.article-faq details {
  padding: 17px 0;
  border-bottom: 1px solid var(--blog-line);
}

.article-faq summary {
  cursor: pointer;
  color: #12363a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.article-faq p {
  margin: 14px 0 0;
  color: #435e62;
}

.related-articles {
  margin-top: 42px;
}

@media (max-width: 760px) {
  .blog-header,
  .blog-footer,
  .blog-hero,
  .article-shell {
    width: min(100% - 32px, 100%);
  }

  .blog-header {
    min-height: 70px;
    gap: 12px;
  }

  .blog-hero {
    padding: 68px 0 62px;
  }

  .blog-library {
    padding: 56px 16px 72px;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-card:first-child {
    grid-column: auto;
  }

  .blog-card,
  .blog-card:first-child {
    padding: 28px;
  }

  .blog-footer {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-shell {
    padding-top: 22px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .article-header {
    padding-top: 12px;
  }

  .article-cta {
    margin: 58px 0;
    padding: 34px 30px;
  }
}

@media (max-width: 390px) {
  .blog-header,
  .blog-hero,
  .blog-footer,
  .article-shell {
    width: calc(100% - 24px);
  }

  .blog-brand {
    gap: 7px;
    font-size: 18px;
  }

  .blog-brand img {
    width: 30px;
    height: 30px;
  }

  .blog-hero {
    padding-top: 52px;
    text-align: left;
  }

  .blog-hero h1 {
    font-size: 39px;
  }

  .blog-hero > p:not(.blog-eyebrow) {
    font-size: 16px;
  }

  .blog-card,
  .blog-card:first-child,
  .article-summary {
    padding: 24px;
    border-radius: 18px;
  }

  .article-header h1 {
    font-size: 38px;
  }

  .article-intro,
  .article-body {
    font-size: 18px;
  }

  .article-cta {
    padding: 28px 24px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blog-skip-link,
  .blog-primary-link {
    transition: none;
  }
}
