:root {
  --blog-night: #020939;
  --blog-night-soft: #1f3083;
  --blog-blue: #455cd4;
  --blog-line: #2739b1;
  --blog-bg: #f7f6f3;
  --blog-surface: #fafcf7;
  --blog-ink: #111412;
  --blog-muted: #666d68;
  --blog-border: #dfe2dc;
  --blog-chip: #dce7aa;
  --blog-container: 1218px;
  --blog-font: Inter, "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.blog-home,
.blog-page {
  color-scheme: light;
  color: var(--blog-ink);
  font-family: var(--blog-font);
  -webkit-font-smoothing: antialiased;
}

.blog-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--blog-bg);
}

.blog-page a,
.blog-home a {
  color: inherit;
  text-decoration: none;
}

.blog-page button,
.blog-page input {
  font: inherit;
}

.blog-container,
.home-blog-container {
  width: min(calc(100% - 48px), var(--blog-container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--blog-night);
  transform: translateY(-160%);
}

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

.blog-site-header {
  position: relative;
  z-index: 20;
  display: grid;
  width: 100%;
  min-height: 80px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--blog-container)) / 2));
  background: var(--blog-night);
  color: #fff;
}

.blog-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.blog-logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  transform: rotate(-2deg);
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 570;
}

.blog-nav a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

.blog-nav a:hover,
.blog-nav a[aria-current="page"] {
  color: #fff;
}

.blog-header-cta {
  justify-self: end;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--blog-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.blog-masthead {
  border-bottom: 1px solid var(--blog-border);
  background: var(--blog-surface);
}

.blog-masthead__inner {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 72px;
  padding-top: 92px;
  padding-bottom: 64px;
}

.section-label {
  margin: 0 0 18px;
  color: var(--blog-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-masthead h1,
.article-header h1,
.not-found h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(54px, 5.2vw, 80px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.blog-masthead__inner > p {
  max-width: 380px;
  margin: 0 0 8px;
  color: var(--blog-muted);
  font-size: 19px;
  line-height: 1.55;
}

.blog-content {
  padding-top: 52px;
  padding-bottom: 120px;
}

.blog-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--blog-border);
}

.blog-search label {
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 620;
}

.blog-search > div {
  display: flex;
  width: min(100%, 520px);
  gap: 8px;
}

.blog-search input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #cdd1ca;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--blog-ink);
  font-size: 15px;
}

.blog-search input:focus {
  border-color: var(--blog-blue);
  box-shadow: 0 0 0 3px rgba(69, 92, 212, 0.16);
}

.blog-search button {
  min-width: 88px;
  border: 0;
  border-radius: 9px;
  background: var(--blog-night);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.topic-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 0 4px;
  scrollbar-width: none;
}

.topic-filter::-webkit-scrollbar {
  display: none;
}

.topic-filter a {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #424844;
  font-size: 13px;
  font-weight: 620;
}

.topic-filter a span {
  color: var(--blog-muted);
  font-size: 11px;
}

.topic-filter a:hover,
.topic-filter a.is-active {
  border-color: var(--blog-chip);
  background: var(--blog-chip);
  color: var(--blog-night-soft);
}

.result-count {
  margin: 18px 0 34px;
  color: var(--blog-muted);
  font-size: 13px;
}

.featured-story {
  display: grid;
  min-height: 410px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background: var(--blog-surface);
}

.featured-story__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 46px 48px 38px;
}

.featured-story__category {
  color: var(--blog-blue);
  font-size: 12px;
  font-weight: 700;
}

.featured-story h2 {
  max-width: 520px;
  margin: auto 0 16px;
  font-size: clamp(38px, 3vw, 49px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1;
}

.featured-story h2 a:hover {
  color: var(--blog-blue);
}

.featured-story__copy > p {
  max-width: 510px;
  margin: 0;
  color: var(--blog-muted);
  font-size: 16px;
  line-height: 1.55;
}

.featured-story__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  color: var(--blog-muted);
  font-size: 12px;
}

.circle-arrow {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-border);
  border-radius: 50%;
  color: var(--blog-night);
  transition: transform 180ms ease, background 180ms ease;
}

.circle-arrow svg,
.story-card__meta svg {
  width: 18px;
  height: 18px;
}

.circle-arrow:hover {
  background: #fff;
  transform: translateX(3px);
}

.featured-story__media {
  min-height: 410px;
}

.atlas-cover {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-1 {
  background-image: url("/assets/blog-cover-1.webp");
}

.cover-2 {
  background-image: url("/assets/blog-cover-2.webp");
}

.cover-3 {
  background-image: url("/assets/blog-cover-3.webp");
}

.cover-4 {
  background-image: url("/assets/blog-cover-4.webp");
}

.cover-5 {
  background-image: url("/assets/blog-cover-5.webp");
}

.cover-6 {
  background-image: url("/assets/blog-cover-6.webp");
}

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

.story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 10px;
  background: #fff;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover {
  box-shadow: 0 12px 32px rgba(2, 9, 57, 0.08);
  transform: translateY(-3px);
}

.story-card__link {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  color: #fff;
}

.blog-page .story-card__link,
.blog-home .story-card__link {
  color: #fff;
}

.story-card__cover,
.story-card__shade {
  position: absolute;
  inset: 0;
  transition: transform 320ms ease;
}

.story-card__shade {
  background: linear-gradient(180deg, rgba(2, 9, 57, 0.08) 0%, rgba(2, 9, 57, 0.16) 30%, rgba(2, 9, 57, 0.88) 100%);
}

.story-card:hover .story-card__cover {
  transform: scale(1.025);
}

.story-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 22px;
}

.story-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-card strong {
  display: block;
  max-width: 330px;
  margin-top: auto;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.story-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.story-card__meta svg {
  transition: transform 180ms ease;
}

.story-card:hover .story-card__meta svg {
  transform: translateX(4px);
}

.empty-state {
  padding: 92px 32px;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.empty-state h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.empty-state p {
  color: var(--blog-muted);
}

.empty-state a,
.text-link {
  color: var(--blog-blue);
  font-weight: 650;
}

.blog-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--blog-border);
  color: var(--blog-muted);
  font-size: 13px;
}

.blog-pagination a:last-child {
  justify-self: end;
}

.blog-pagination a {
  color: var(--blog-night-soft);
  font-weight: 650;
}

.article-shell {
  padding: 94px 0 120px;
}

.article-header {
  text-align: center;
}

.article-back {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--blog-muted);
  font-size: 13px;
  font-weight: 620;
}

.article-header .section-label {
  margin-bottom: 22px;
}

.article-header h1 {
  max-width: 1030px;
  margin: 0 auto;
  font-size: clamp(48px, 5.6vw, 82px);
}

.article-deck {
  max-width: 740px;
  margin: 28px auto 0;
  color: var(--blog-muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
  color: var(--blog-muted);
  font-size: 12px;
}

.article-cover {
  width: min(calc(100% - 48px), var(--blog-container));
  height: clamp(430px, 45vw, 650px);
  margin: 70px auto 0;
  border-radius: 14px;
}

.article-body {
  width: min(calc(100% - 48px), 760px);
  margin: 74px auto 0;
  color: #252a27;
  font-size: 19px;
  line-height: 1.76;
}

.article-body p,
.article-body ul {
  margin: 0 0 28px;
}

.article-body h2 {
  margin: 62px 0 18px;
  color: var(--blog-ink);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 710;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.article-body ul {
  padding-left: 24px;
}

.article-body li {
  margin: 10px 0;
  padding-left: 6px;
}

.article-body blockquote {
  margin: 52px 0;
  padding: 10px 0 10px 28px;
  border-left: 4px solid var(--blog-blue);
  color: var(--blog-night-soft);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.article-note {
  margin-top: 48px;
  padding: 20px 22px;
  border: 1px solid #d8dcc7;
  border-radius: 10px;
  background: #f0f4dd;
  color: #43493d;
  font-size: 14px;
  line-height: 1.55;
}

.related-stories {
  padding: 0 0 120px;
}

.section-heading,
.home-blog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2,
.home-blog-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading > a,
.home-blog-heading > a {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--blog-night-soft);
  font-size: 13px;
  font-weight: 650;
}

.blog-footer {
  display: grid;
  min-height: 220px;
  grid-template-columns: 1fr auto;
  align-content: center;
  align-items: center;
  gap: 20px 64px;
  padding: 48px max(24px, calc((100vw - var(--blog-container)) / 2));
  border-top: 3px solid var(--blog-line);
  background: var(--blog-night);
  color: #fff;
}

.blog-brand--footer {
  grid-row: span 2;
}

.blog-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
  font-size: 14px;
}

.blog-footer__notice {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 11px !important;
}

.not-found {
  min-height: calc(100vh - 80px);
  padding: 130px 0;
}

.not-found h1 {
  max-width: 820px;
}

.not-found > p:not(.section-label) {
  max-width: 620px;
  margin: 28px 0;
  color: var(--blog-muted);
  font-size: 19px;
  line-height: 1.55;
}

/* Home section */
.blog-home {
  position: relative;
  padding: 112px 0 128px;
  background: var(--blog-bg);
}

.blog-home .section-label {
  margin-bottom: 16px;
}

.blog-home .featured-story {
  margin-top: 0;
}

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

.blog-home .story-card__link,
.blog-home .story-card__content {
  min-height: 270px;
}

.blog-home .home-blog-heading {
  margin-bottom: 38px;
}

.home-blog-kicker {
  margin: 0 0 14px;
  color: var(--blog-muted);
  font-size: 17px;
}

.blog-home .featured-story + .story-grid {
  margin-top: 16px;
}

.blog-page a:focus-visible,
.blog-page button:focus-visible,
.blog-page input:focus-visible,
.blog-home a:focus-visible {
  outline: 3px solid var(--blog-blue);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .blog-masthead__inner {
    min-height: 350px;
    gap: 38px;
  }

  .featured-story__copy {
    padding: 38px 36px 32px;
  }

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

  .blog-home .story-grid .story-card:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .blog-container,
  .home-blog-container {
    width: min(calc(100% - 32px), var(--blog-container));
  }

  .blog-site-header {
    min-height: 68px;
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .blog-logo-mark {
    width: 31px;
    height: 31px;
  }

  .blog-nav {
    display: none;
  }

  .blog-header-cta {
    padding: 10px 13px;
  }

  .blog-masthead__inner {
    min-height: 350px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 30px;
    padding-top: 72px;
    padding-bottom: 42px;
  }

  .blog-masthead h1,
  .article-header h1,
  .not-found h1 {
    font-size: clamp(46px, 14vw, 58px);
  }

  .blog-masthead__inner > p {
    font-size: 17px;
  }

  .blog-content {
    padding-top: 36px;
    padding-bottom: 82px;
  }

  .blog-search {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .blog-search > div {
    width: 100%;
  }

  .featured-story {
    grid-template-columns: 1fr;
  }

  .featured-story__copy {
    min-height: 390px;
    padding: 30px 24px 26px;
  }

  .featured-story h2 {
    font-size: 39px;
  }

  .featured-story__media {
    min-height: 330px;
    order: -1;
  }

  .story-grid,
  .blog-home .story-grid {
    grid-template-columns: 1fr;
  }

  .blog-home .story-grid .story-card:last-child {
    display: block;
  }

  .story-card__link,
  .story-card__content,
  .blog-home .story-card__link,
  .blog-home .story-card__content {
    min-height: 330px;
  }

  .story-card strong {
    max-width: 100%;
    font-size: 28px;
  }

  .article-shell {
    padding: 62px 0 86px;
  }

  .article-back {
    margin-bottom: 44px;
  }

  .article-meta {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .article-cover {
    width: calc(100% - 32px);
    height: 360px;
    margin-top: 48px;
    border-radius: 11px;
  }

  .article-body {
    width: calc(100% - 40px);
    margin-top: 52px;
    font-size: 17px;
    line-height: 1.72;
  }

  .related-stories {
    padding-bottom: 82px;
  }

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

  .blog-footer {
    min-height: 250px;
    grid-template-columns: 1fr;
    padding: 44px 20px;
    text-align: left;
  }

  .blog-brand--footer {
    grid-row: auto;
  }

  .blog-footer p {
    text-align: left;
  }

  .blog-home {
    padding: 76px 0 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card,
  .story-card__cover,
  .story-card__meta svg,
  .circle-arrow {
    transition: none;
  }
}
