.site-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 3rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.site-nav a {
  color: #a9b9d2;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a:hover { color: #f2f6ff; }

.site-mark {
  color: #f2f6ff !important;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.06em;
}

.site-nav nav {
  display: flex;
  gap: 1.6rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:not(.landing-page) {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  color: #14243b;
}

body:not(.landing-page) .site-nav {
  position: absolute;
  background: transparent;
}

.blog-page #title-block-header,
.post-page #title-block-header { display: none; }

.blog-hero,
.post-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 22rem;
  padding: 9rem max(2rem, calc((100vw - 1180px) / 2)) 4rem;
  background:
    radial-gradient(circle at 78% 32%, rgba(24, 97, 179, .38), transparent 38%),
    linear-gradient(125deg, #06101e 0%, #091a30 58%, #071426 100%);
  color: #f2f6ff;
}

.post-hero { min-height: 26rem; }

.blog-hero::after,
.post-hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(126, 183, 239, .35) 1.5px, transparent 1.8px);
  background-position: 74% 45%;
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
  content: "";
  opacity: .5;
}

.blog-hero > *, .post-hero > * { position: relative; z-index: 1; }

.hero-kicker {
  margin: 0 0 1rem;
  color: #62a8ff;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blog-hero h1, .post-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 200;
  letter-spacing: -.05em;
  line-height: .98;
}

.blog-hero p:last-child, .post-hero .description {
  max-width: 660px;
  margin: 1.5rem 0 0;
  color: #a9b9d2;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

.blog-content,
.post-content {
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
}

.blog-content .listing-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.blog-content .quarto-listing-sort,
.blog-content .quarto-listing-filter {
  width: min(100%, 15rem);
}

.blog-content .input-group-text,
.blog-content .form-select,
.blog-content .form-control {
  min-height: 2.65rem;
  border-color: #dce5ef;
  border-radius: 0;
  background-color: #fff;
  color: #14243b;
  box-shadow: none;
}

.blog-content .input-group-text {
  border-right: 0;
  color: #64748b;
}

.blog-content .quarto-grid-item {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: transform .2s ease, border-color .2s ease;
}

.blog-content .quarto-grid-item:hover {
  transform: translateY(-3px);
  border-color: #9db9d8;
}

.blog-content .listing-category {
  border: 0;
  border-radius: 0;
  background: #edf5ff;
  color: #18568f;
  font-size: .7rem;
  letter-spacing: .05em;
}

.post-content { width: min(760px, calc(100% - 4rem)); }

.post-toc {
  width: min(760px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 2.5rem 0 0;
  border-bottom: 1px solid #dce5ef;
}

.post-toc-title {
  margin: 0 0 .65rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.post-toc ul { margin: 0; padding: 0 0 1.5rem; list-style: none; }
.post-toc a { color: #0c3769; text-decoration: none; }
.post-toc a:hover { color: #1861b3; text-decoration: underline; }

.post-content p { font-size: 1.08rem; line-height: 1.75; }
.post-content h2 { margin-top: 3rem; color: #0c3769; font-weight: 400; }

@media (max-width: 700px) {
  .site-nav { height: 5rem; padding: 0 1.4rem; }
  .site-nav nav { gap: 1rem; font-size: .7rem; }
  .site-nav nav a:first-child { display: none; }
  .blog-hero, .post-hero { padding: 8rem 1.4rem 3rem; min-height: 20rem; }
  .blog-content, .post-content, .post-toc { width: calc(100% - 2.8rem); }
  .blog-content, .post-content { padding-top: 2.5rem; }
  .blog-content .listing-actions-group { align-items: stretch; flex-direction: column; }
  .blog-content .quarto-listing-sort,
  .blog-content .quarto-listing-filter { width: 100%; }
}
