.blog-page {
  background: #07111f;
}

body.blog-page main.blog-main,
body.blog-page main.blog-note-main {
  display: block;
  min-height: 100vh;
  margin-top: 0;
  padding: 0;
}

.blog-page main::before,
.blog-page main::after {
  content: none;
}

.blog-hero {
  min-height: clamp(31rem, 78svh, 45rem);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 14vw, 10rem) clamp(1rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
  color: #f6faff;
  background:
    radial-gradient(circle at 82% 18%, rgb(106 138 255 / 23%), transparent 27rem),
    radial-gradient(circle at 18% 82%, rgb(123 211 214 / 16%), transparent 31rem),
    #07111f;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background: radial-gradient(circle at 1rem 1rem, rgb(178 251 255 / 14%) 0 1px, transparent 1.5px) 0 0 / 3.5rem 3.5rem;
  mask-image: linear-gradient(135deg, transparent 8%, black 58%, transparent 96%);
}

.blog-hero__inner,
.blog-index__inner,
.blog-note {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-kicker {
  margin: 0 0 1rem;
  color: #7bd3d6;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
}

.blog-hero h1,
.blog-note__header h1 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 7.2vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .96;
  text-wrap: balance;
}

.blog-title-gradient {
  color: transparent;
  background: var(--fixed-brand-gradient);
  background-clip: text;
  font-weight: inherit;
}

.blog-hero__lead,
.blog-note__summary {
  max-width: 42rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  color: rgb(246 250 255 / 72%);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.blog-feed-link {
  gap: .55rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.blog-index {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 6vw, 5rem) clamp(5rem, 12vw, 9rem);
  color: #142033;
  background: #f7fafc;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.blog-index__heading {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.blog-index__heading h2 {
  margin: 0;
  font-size: var(--section-heading-size);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.blog-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(20 32 51 / 20%);
  list-style: none;
}

.blog-language-panel {
  display: none;
}

html:not([lang="fr"]) .blog-language-panel[data-blog-language-panel="en"],
html[lang="fr"] .blog-language-panel[data-blog-language-panel="fr"] {
  display: block;
}

.blog-list__item,
.blog-empty {
  border-bottom: 1px solid rgb(20 32 51 / 20%);
}

.blog-card {
  row-gap: 0;
  padding: clamp(1.8rem, 4.5vw, 3.25rem) 0;
}

.blog-card__thumbnail {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  overflow: hidden;
}

.blog-card__thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__meta {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  color: #526173;
  font-size: .7rem;
  font-weight: 600;
}

.blog-card__category {
  padding: .22rem .5rem;
  border: 1px solid rgb(8 123 134 / 24%);
  border-radius: 999px;
  color: #087b86;
}

.blog-card h2 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.blog-card h2 a {
  color: #142033;
  text-decoration: none;
  transition: color 180ms ease;
}

.blog-card h2 a::after {
  content: " →";
  color: #087b86;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible,
.blog-note a {
  color: #087b86;
}

.blog-card h2 a:focus-visible,
.blog-note a:focus-visible {
  outline: 2px solid #087b86;
  outline-offset: .3rem;
}

.blog-card__description {
  grid-column: 2;
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #526173;
  line-height: 1.65;
}

.blog-empty {
  max-width: 42rem;
  padding: 2rem 0;
  color: #526173;
}

.blog-empty p {
  margin: .4rem 0;
}

.blog-note-main {
  --blog-note-hero-height: clamp(28rem, 42vw, 34rem);
  --blog-note-top-space: clamp(8rem, 14vw, 11rem);
  --blog-note-cover-height: calc(var(--blog-note-top-space) + var(--blog-note-hero-height));
  padding: clamp(8rem, 14vw, 11rem) clamp(1rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem) !important;
  padding-top: 0 !important;
  overflow-x: clip;
  color: #142033;
  background: #f7fafc;
}

.blog-note__header {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: var(--blog-note-cover-height);
  margin-inline: calc(50% - 50vw);
  padding: var(--blog-note-top-space) clamp(1rem, 6vw, 5rem) 2rem;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background: #07111f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.blog-note__header h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.blog-note__headline {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  width: min(100%, 48rem);
  min-width: 0;
}

.blog-note__cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
}

.blog-note__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(7 17 31 / 68%), rgb(7 17 31 / 82%));
}

.blog-note__cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-note__byline,
.blog-note__modified {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem 0 0;
  color: rgb(246 250 255 / 68%);
  font-size: .82rem;
}

.blog-note__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-note__tags li {
  padding: .25rem .55rem;
  border: 1px solid rgb(123 211 214 / 35%);
  border-radius: 999px;
  color: #7bd3d6;
  font-size: .72rem;
}

.blog-note__body,
.blog-note__translation {
  margin-top: clamp(5rem, 10vw, 8rem);
}

.blog-note__body {
  min-width: 0;
  max-width: 40rem;
  margin-inline: auto;
  color: #142033;
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-note__body h1,
.blog-note__body h2,
.blog-note__body h3,
.blog-note__body h4,
.blog-note__body h5,
.blog-note__body h6 {
  margin: 1.8em 0 .65em;
  color: #142033;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.blog-note__body h1 { font-size: clamp(2rem, 4vw, 48px); }
.blog-note__body h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.blog-note__body h3 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
.blog-note__body h4 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.blog-note__body h5 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.blog-note__body h6 { font-size: 1rem; }

.blog-note__body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border-radius: .75rem;
  color: #e8f0fb;
  background: #101c2b;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.blog-note__body pre:focus-visible {
  outline: 2px solid #087b86;
  outline-offset: .2rem;
}

.blog-note__body img {
  max-width: 100%;
  height: auto;
}

.blog-table-wrapper {
  overflow-x: auto;
}

.blog-note__body table {
  width: 100%;
  border-collapse: collapse;
}

.blog-note__body th,
.blog-note__body td {
  padding: .7rem;
  border-bottom: 1px solid rgb(20 32 51 / 20%);
  text-align: left;
}

.blog-note__body .align-center { text-align: left; }
.blog-note__body .align-right { text-align: left; }

.blog-note__translation {
  max-width: 48rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(20 32 51 / 20%);
  font-weight: 700;
}

@media (width <= 720px) {
  .blog-hero { min-height: 36rem; padding-inline: 1rem; }
  .blog-index { padding-inline: 1rem; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__thumbnail,
  .blog-card__meta,
  .blog-card h2,
  .blog-card__description { grid-column: 1; grid-row: auto; }
  .blog-card__thumbnail {
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
  }
  .blog-card__meta { flex-flow: row wrap; align-items: center; }
  .blog-note-main {
    --blog-note-top-space: 7rem;
    --blog-note-cover-height: 66.667vh;
    --blog-note-cover-height: 66.667svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card h2 a { transition: none; }
}


body.blog-page > header {
  transition: transform 200ms ease-out, opacity 160ms ease-out, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  body.has-scroll-header > header,
  body.blog-page > header {
    transition: none;
  }}