@font-face {
  font-family: "Hanken Grotesk Local";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/hanken-grotesk-400-700-latin.woff2") format("woff2");
}

:root {
  --bg: #ececee;
  --surface: #fbfcff;
  --text: #3f4352;
  --muted: #474854;
  --brand: #2a56c7;
  --brand-strong: #244cb2;
  --border: rgba(24, 28, 43, 0.08);
  --shadow: 0 2px 2px rgba(0, 0, 0, 0.03), 0 4px 15px rgba(0, 0, 0, 0.07);
  --card-shadow: 0 12px 24px rgba(33, 43, 79, 0.09);
  --focus-ring: #2a56c7;
  --focus-ring-dark: #a9c4ff;
  --font-post-ui: "Hanken Grotesk Local", "Segoe UI", -apple-system, sans-serif;
  --type-kicker-size: 14px;
  --type-page-title-size: clamp(34px, 3.05vw, 48px);
  --type-section-title-size: clamp(29px, 2.3vw, 37px);
  --type-card-title-size: clamp(23px, 1.9vw, 30px);
  --type-body-subtitle-size: 17px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Hanken Grotesk Local", "Segoe UI", -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.promo-strip {
  padding: 18px 16px;
  text-align: center;
  background: linear-gradient(90deg, #2f63d8 0%, #214ba8 54%, #2f63d8 100%);
}

.promo-strip--empty {
  padding: 0;
  min-height: 54px;
}

.promo-strip p {
  margin: 0;
  color: #eef4ff;
  font-size: 14px;
  line-height: 1.3;
}

.promo-strip a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-area {
  width: 100%;
  background: var(--surface);
  padding-bottom: 68px;
}

.page-shell {
  max-width: none;
  margin: 0 auto;
  padding: 16px 16px 8px;
}

.header {
  --dynamic-col: clamp(12.5rem, 3.125rem + 15.63vw, 18.75rem);
  display: grid;
  grid-template-columns: var(--dynamic-col) 1fr var(--dynamic-col);
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(32, 53, 112, 0.2);
  box-shadow: 0 6px 14px rgba(33, 55, 128, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--brand);
}

.brand-role {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
  color: #494f63;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.main-nav a {
  display: block;
  position: relative;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  color: #2f3444;
  border-radius: 8px;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(42, 86, 199, 0.12);
  color: #233e8f;
}

.main-nav a.active {
  color: var(--brand);
  font-weight: 600;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 1rem;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 50px;
  background: var(--brand);
}

.theme-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f3f3f4;
  color: #6b6f7e;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    color 0.2s ease-out, transform 0.15s ease-out;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: #e9edf7;
  border-color: rgba(24, 28, 43, 0.22);
  color: #415079;
}

.theme-toggle:active {
  transform: translateY(1px);
}

.hero {
  width: min(1120px, 100%);
  margin-top: 96px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 528px) minmax(0, 528px);
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
}

.hero-copy h1 {
  margin: 0 0 32px;
  max-width: 528px;
  font-size: clamp(32px, 2.72vw, 38px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: normal;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy h1 strong {
  color: var(--brand);
  font-weight: 700;
}

.hero-copy p {
  max-width: 528px;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--muted);
}

.hero-copy p + p {
  margin-top: 16px;
}

.cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--brand);
  color: #f5f7ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 0.2s ease-out, transform 0.15s ease-out;
}

.cta:hover,
.cta:focus-visible {
  background: var(--brand-strong);
}

.cta:active {
  transform: translateY(1px);
}

.hero-media {
  position: relative;
  max-width: 528px;
}

.media-card {
  position: relative;
  min-height: 357px;
  border-radius: 20px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(130deg, #7fb0ed 0%, #5c93de 44%, #2f5ea5 100%);
  box-shadow: var(--card-shadow);
}

.media-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 16px 0;
}

.home-page .content-shell {
  max-width: 1100px;
  padding-top: 52px;
}

.hero-area--compact {
  padding-bottom: 20px;
}

.home-page .hero-area {
  padding-bottom: 56px;
}

.home-page .hero {
  margin-top: 82px;
  gap: 44px;
}

.home-page .hero-copy h1 {
  max-width: 15ch;
  line-height: 1.16;
}

.home-page .hero-copy p {
  max-width: 56ch;
  line-height: 1.35;
}

.page-shell--compact {
  padding-bottom: 0;
}

.content-shell--subpage {
  padding-top: 36px;
}

.error-page {
  background:
    radial-gradient(circle at 20% -8%, rgba(67, 116, 238, 0.16) 0%, transparent 52%),
    radial-gradient(circle at 82% -9%, rgba(214, 140, 73, 0.16) 0%, transparent 46%),
    var(--surface);
}

.error-page .hero-area {
  background: transparent;
  padding-bottom: 22px;
}

.error-shell {
  padding-top: 28px;
  padding-bottom: 76px;
}

.section-404 {
  margin-bottom: 0;
}

.error-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(33, 53, 108, 0.2);
  background: linear-gradient(142deg, #f8faff 0%, #edf2ff 52%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(17, 34, 78, 0.14);
}

.error-card__halo {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.65;
  animation: errorHaloDrift 13s ease-in-out infinite;
}

.error-card__halo--one {
  width: 210px;
  height: 210px;
  top: -85px;
  right: -45px;
  background: radial-gradient(circle at 36% 33%, rgba(90, 130, 235, 0.68) 0%, rgba(90, 130, 235, 0.06) 66%);
}

.error-card__halo--two {
  width: 260px;
  height: 260px;
  bottom: -128px;
  left: -92px;
  animation-delay: 0.9s;
  background: radial-gradient(circle at 65% 60%, rgba(224, 153, 90, 0.56) 0%, rgba(224, 153, 90, 0.08) 68%);
}

.error-code {
  margin: 8px 0 4px;
  font-size: clamp(76px, 15vw, 148px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #2f5dcc;
  text-shadow: 0 7px 20px rgba(26, 52, 119, 0.24);
}

.error-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.08;
  color: #1d2a4a;
}

.error-copy {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.55;
  color: #495778;
}

.error-path-label {
  margin: 24px 0 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #425278;
}

.error-path {
  display: inline-block;
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(36, 52, 106, 0.26);
  background: rgba(42, 86, 199, 0.1);
  color: #1f3369;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.error-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions a {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 15px;
  line-height: 1.25;
}

.error-cta {
  margin-top: 0;
  font-weight: 600;
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffffd1;
}

@keyframes errorHaloDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 8px, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-card__halo {
    animation: none;
  }
}

.page-title {
  margin: 0;
  font-size: var(--type-page-title-size);
  line-height: 1.1;
  color: #17203a;
}

.page-intro {
  margin: 14px 0 0;
  max-width: 70ch;
  font-size: var(--type-body-subtitle-size);
  line-height: 1.55;
  color: #455175;
}

.section-projects-intro .page-intro {
  max-width: none;
}

.section {
  margin-bottom: 84px;
}

.home-page .section {
  margin-bottom: 74px;
}

.home-page .section + .section {
  border-top: 1px solid rgba(33, 46, 84, 0.11);
  padding-top: 50px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: var(--type-kicker-size);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2 {
  margin: 0;
  font-size: var(--type-section-title-size);
  line-height: 1.15;
  color: #1c2338;
}

.home-page .section-head h2.blog-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2c57c9;
  font-size: var(--type-section-title-size);
  letter-spacing: -0.015em;
}

.blog-title-icon {
  width: 26px;
  height: 26px;
  color: #8b5cf6;
  fill: currentColor;
  flex-shrink: 0;
  transform: translateY(1px);
}

.section-head :is(h1, h2).section-title-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f5dcf;
  font-size: var(--type-section-title-size);
  letter-spacing: -0.012em;
}

.section-title-accent__icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex-shrink: 0;
  transform: translateY(1px);
}

.section-title-accent--featured .section-title-accent__icon {
  color: #8a5af0;
}

.section-title-accent--archive .section-title-accent__icon {
  color: #8a5af0;
}

.section-caption {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: #5a6589;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(48, 65, 120, 0.2);
  background: #f7f8fb;
  color: #233052;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    color 0.2s ease-out;
}

.section-link:hover,
.section-link:focus-visible {
  background: #eef2fb;
  border-color: rgba(48, 65, 120, 0.3);
  color: #1d2a4a;
}

.post-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-list > li {
  min-width: 0;
}

.post-card {
  height: 100%;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  background: #f8f9fd;
}

.post-card,
.post-archive-item {
  font-family: var(--font-post-ui);
}

.post-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #556082;
}

.post-card h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #17203a;
}

.post-card h3 a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease-out;
}

.post-card h3 a:hover,
.post-card h3 a:focus-visible {
  text-decoration-color: currentColor;
}

.post-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #485270;
}

.home-post-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 0;
}

.home-post-list--single {
  grid-template-columns: 1fr;
}

.home-post-list .post-card {
  padding: 18px 0 16px;
  border: 0;
  border-top: 1px solid rgba(33, 46, 84, 0.14);
  border-radius: 0;
  background: transparent;
}

.home-page .home-post-list .post-card {
  padding: 18px 0 16px;
}

.home-post-list li:first-child .post-card {
  padding-top: 18px;
}

.home-post-list .post-card h3 {
  margin: 8px 0;
  font-size: clamp(24px, 2.05vw, 31px);
  line-height: 1.18;
}

.home-page .home-post-list .post-card h3 {
  font-size: clamp(24px, 1.95vw, 30px);
}

.home-post-list .post-card h3 a {
  color: #2f5dcf;
}

.home-post-list .post-card p:not(.post-meta) {
  display: none;
}

.home-post-list .post-card p {
  color: #465378;
}

.home-post-list .post-meta {
  color: #566487;
}

.section-featured-posts .post-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.section-featured-posts .post-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.featured-post-media {
  margin: 0;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  border: 1px solid rgba(33, 46, 84, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: #d7e0f1;
  box-shadow: 0 6px 14px rgba(26, 42, 86, 0.09);
}

.featured-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  transition: transform 0.3s ease-out;
}

.section-featured-posts .post-card[data-featured-slug="books-wishlist"] .featured-post-media img {
  object-position: 50% 62%;
}

.section-featured-posts .post-card[data-featured-slug="what-is-technical-debt"] .featured-post-media img {
  object-position: 50% 56%;
}

.section-featured-posts .post-card:hover .featured-post-media img,
.section-featured-posts .post-card:focus-within .featured-post-media img {
  transform: scale(1.02);
}

.section-featured-posts .post-card h3 {
  margin: 14px 0 0;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.section-featured-posts .post-card h3 a {
  color: #2f5dcf;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease-out;
}

.section-featured-posts .post-card h3 a:hover,
.section-featured-posts .post-card h3 a:focus-visible {
  text-decoration-color: currentColor;
}

.section-featured-posts .post-card p {
  display: none;
}

.post-entries {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-entries > * {
  min-width: 0;
}

.post-entry {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(33, 46, 84, 0.14);
  background: #f4f7ff;
  scroll-margin-top: 24px;
}

.post-entry h3 {
  margin: 8px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  color: #17203a;
}

.post-entry p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #445071;
}

.post-list--compact .post-card {
  padding: 18px;
}

.post-list--compact .post-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.post-list--compact .post-card p {
  margin: 0;
}

.section-related-posts {
  margin-top: 46px;
}

.section-related-posts .section-kicker {
  color: #7a45d3;
}

.section-related-posts #related-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f5dcf;
  font-size: clamp(24px, 2vw, 31px);
  letter-spacing: -0.012em;
}

.section-related-posts #related-title::before {
  content: "✦";
  color: #8a5af0;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.section-related-posts .post-list--compact {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 0;
}

.section-related-posts .post-list--compact .post-card {
  padding: 18px 0 16px;
  border: 0;
  border-top: 1px solid rgba(33, 46, 84, 0.14);
  border-radius: 0;
  background: transparent;
}

.section-related-posts .post-list--compact .post-card h3 {
  margin: 8px 0;
  font-size: clamp(24px, 1.95vw, 30px);
  line-height: 1.18;
}

.section-related-posts .post-list--compact .post-card h3 a {
  color: #2f5dcf;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease-out;
}

.section-related-posts .post-list--compact .post-card h3 a:hover,
.section-related-posts .post-list--compact .post-card h3 a:focus-visible {
  text-decoration-color: currentColor;
}

.section-related-posts .post-list--compact .post-card p {
  display: none;
}

.post-archive-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid rgba(33, 46, 84, 0.12);
}

.post-archive-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(33, 46, 84, 0.12);
  background: transparent;
}

.post-archive-item h3 {
  margin: 0 0 8px;
  font-size: clamp(30px, 2.45vw, 38px);
  font-weight: 500;
  line-height: 1.14;
  color: #17203a;
}

.post-archive-item h3 a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease-out;
}

.post-archive-item h3 a:hover,
.post-archive-item h3 a:focus-visible {
  text-decoration-color: currentColor;
}

.post-archive-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #485270;
}

.post-archive-item .post-meta {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.section-topics .section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f5dcf;
  font-size: clamp(24px, 1.95vw, 31px);
  letter-spacing: -0.012em;
}

.section-topics .section-head h2::before {
  content: "✦";
  color: #8a5af0;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.topic-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 0;
}

.topic-list > li {
  min-width: 0;
}

.topic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 16px;
  border: 0;
  border-top: 1px solid rgba(33, 46, 84, 0.14);
  border-radius: 0;
  background: transparent;
  color: #2f5dcf;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.topic-list span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease-out;
}

.topic-list a:hover,
.topic-list a:focus-visible {
  color: #1f3f95;
}

.topic-list a:hover span,
.topic-list a:focus-visible span {
  text-decoration-color: currentColor;
}

.topic-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(42, 86, 199, 0.14);
  color: #264aa8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.topic-list a:hover strong,
.topic-list a:focus-visible strong {
  background: rgba(42, 86, 199, 0.22);
  color: #1f3f95;
}

.topic-list a.is-current-topic {
  color: #1f3f95;
  border-color: rgba(42, 86, 199, 0.42);
}

.topic-list a.is-current-topic strong {
  background: rgba(42, 86, 199, 0.24);
  color: #1d3d92;
}

.pagination {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(33, 46, 84, 0.2);
  background: #f7f9ff;
  color: #233052;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    color 0.2s ease-out;
}

.pagination-link:hover,
.pagination-link:focus-visible {
  background: #edf2ff;
  border-color: rgba(42, 86, 199, 0.36);
  color: #1f3f95;
}

.pagination-link.is-current {
  border-color: rgba(42, 86, 199, 0.45);
  background: rgba(42, 86, 199, 0.14);
  color: #2247a3;
}

.archive-empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #485270;
}

.article-layout {
  max-width: 1120px;
  margin: 0 auto;
  --article-hero-image: none;
}

.article-layout--hero {
  --article-hero-image: url("./assets/images/posts/berlin-friedrichstrasse-hero.jpg");
}

.article-layout--hero.article-hero--station {
  --article-hero-image: url("./assets/images/posts/berlin-friedrichstrasse-hero.jpg");
}

.article-layout--hero.article-hero--urban {
  --article-hero-image: url("./assets/images/posts/berlin-urban-1.jpg");
}

.article-layout--hero.article-hero--train {
  --article-hero-image: url("./assets/images/posts/berlin-train-1.jpg");
}

.article-layout--hero.article-hero--portrait {
  --article-hero-image: url("./assets/images/posts/berlin-architecture-portrait.jpg");
}

.article-layout--hero.article-hero--openclaw {
  --article-hero-image: url("./assets/images/posts/openclaw-restoration/cover-berlin-cathedral.jpg");
}

.article-layout--hero.article-hero--techdebt {
  --article-hero-image: url("./assets/images/posts/technical-debt/cover-berlin-river.jpg");
}

.article-layout--hero.article-hero--youtube {
  --article-hero-image: url("./assets/images/posts/youtube-channels/hero-youtube.jpg");
}

.article-layout--hero.article-hero--books {
  --article-hero-image: url("./assets/images/posts/books-wishlist/cover-berlin-skyline.jpg");
}

.article-header {
  position: relative;
  margin: 0 0 40px;
  min-height: clamp(330px, 48vw, 470px);
  padding: clamp(36px, 6vw, 58px) clamp(18px, 4vw, 34px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #d9e3ef;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.article-header::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  background-image: var(--article-hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(2.5px) saturate(1.04);
  transform: scale(1.04);
}

.article-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(231, 238, 247, 0.78) 0%,
    rgba(228, 236, 246, 0.72) 45%,
    rgba(222, 232, 244, 0.74) 100%
  );
}

.article-header > * {
  position: relative;
  z-index: 1;
}

.article-back {
  position: absolute;
  top: clamp(14px, 2.6vw, 24px);
  left: clamp(14px, 2.8vw, 28px);
  margin: 0;
  color: #223a82;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-header .section-kicker {
  margin-bottom: 8px;
  color: #2a4cae;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.article-header .page-title {
  max-width: 16ch;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #2c3447;
}

.article-summary {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: clamp(19px, 1.7vw, 28px);
  line-height: 1.34;
  color: #2f394f;
}

.article-header .post-meta {
  margin: 14px 0 0;
  color: #3f4a63;
  font-size: 15px;
}

.article-content-grid {
  display: grid;
  grid-template-columns: minmax(210px, 290px) minmax(0, 1fr);
  gap: clamp(28px, 4.3vw, 58px);
  align-items: start;
}

.article-sidebar {
  min-width: 0;
  align-self: stretch;
}

.article-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  margin: 0;
  padding: 0 8px 0 0;
  border: 0;
  display: grid;
  gap: 6px;
}

.article-toc strong {
  margin: 0 0 10px;
  color: #2f5fca;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.article-toc a {
  display: block;
  padding: 10px 12px 10px 14px;
  color: #2f3648;
  font-size: 16px;
  line-height: 1.22;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(33, 46, 84, 0.12);
  border-radius: 10px;
  transition: color 0.2s ease-out, background-color 0.2s ease-out,
    border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: #264fa9;
  background: rgba(42, 86, 199, 0.08);
  border-left-color: rgba(42, 86, 199, 0.34);
}

.article-toc a.is-active {
  color: #1f4393;
  background: rgba(42, 86, 199, 0.12);
  border-bottom-color: rgba(42, 86, 199, 0.28);
  border-left-color: rgba(42, 86, 199, 0.52);
  box-shadow: none;
  font-weight: 600;
}

.article-prose {
  display: grid;
  gap: 16px;
}

.article-prose h2 {
  margin: 30px 0 2px;
  font-size: clamp(34px, 2.9vw, 46px);
  line-height: 1.12;
  color: #6d3fd8;
  scroll-margin-top: 24px;
}

.article-prose p {
  margin: 0;
  font-size: 19px;
  line-height: 1.62;
  color: #3f4352;
}

.article-prose code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.article-prose :not(pre) > code {
  padding: 0.1em 0.42em;
  border-radius: 6px;
  background: rgba(39, 56, 109, 0.1);
  color: #264aa8;
  font-size: 0.92em;
  border: 1px solid rgba(42, 86, 199, 0.18);
}

.article-prose pre {
  margin: 16px 0;
}

.article-prose pre.shiki {
  position: relative;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(26, 36, 72, 0.2);
  background: #24292e;
  color: #e6edf3;
  box-shadow: 0 10px 24px rgba(24, 32, 60, 0.16);
  overflow-x: auto;
  white-space: pre;
}

.article-prose pre.shiki::before {
  content: attr(data-language);
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(183, 198, 232, 0.28);
  background: rgba(9, 17, 35, 0.5);
  color: #b6c9f3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-prose pre.shiki code {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.article-prose pre.shiki .line {
  display: block;
  min-height: 1.45em;
}

.article-layout--openclaw .article-header::after {
  background: linear-gradient(
    180deg,
    rgba(245, 241, 233, 0.84) 0%,
    rgba(237, 232, 224, 0.86) 44%,
    rgba(227, 220, 209, 0.9) 100%
  );
}

.article-layout--openclaw .article-header .section-kicker {
  color: #2f446b;
}

.article-layout--openclaw .article-header .page-title {
  max-width: 20ch;
  color: #2a3243;
}

.article-layout--openclaw .article-summary {
  color: #313b4f;
}

.article-layout--openclaw .article-prose {
  gap: 22px;
}

.article-layout--openclaw .article-prose a {
  color: #234ca7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-layout--openclaw .article-prose a:hover,
.article-layout--openclaw .article-prose a:focus-visible {
  color: #1b3c85;
}

.article-layout--books .article-prose {
  gap: 22px;
}

.article-layout--books .article-prose a {
  color: #234ca7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-layout--books .article-prose a:hover,
.article-layout--books .article-prose a:focus-visible {
  color: #1b3c85;
}

.article-layout--books .openclaw-figure-group {
  margin: 10px 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 18px;
}

.article-layout--books .openclaw-figure-group > h2 {
  margin: 0;
}

.article-layout--books .openclaw-compare-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  max-width: none;
  margin: 0;
  gap: clamp(18px, 3.2vw, 34px);
  align-items: center;
}

.books-wishlist-quote {
  position: relative;
  margin: 0;
  padding: 18px 0 18px 18px;
  border-left: 3px solid rgba(122, 91, 224, 0.58);
  background: linear-gradient(90deg, rgba(122, 91, 224, 0.09) 0%, rgba(122, 91, 224, 0) 45%);
  color: #2f3f61;
  box-shadow: none;
}

.books-wishlist-quote::before {
  content: "Quote";
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f57cf;
}

.books-wishlist-quote p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.62;
  font-style: italic;
}

.books-wishlist-quote p:first-child::before {
  content: "“";
  margin-right: 0.12em;
  font-size: 1.62em;
  line-height: 0;
  color: #7a5be0;
  vertical-align: -0.2em;
}

.books-wishlist-quote p:last-child::after {
  content: " ”";
  margin-left: 0.08em;
  font-size: 1.55em;
  line-height: 0;
  color: #7a5be0;
  vertical-align: -0.18em;
}

.books-wishlist-quote p + p {
  margin-top: 14px;
}

.article-layout--books .openclaw-photo-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-layout--books .openclaw-photo-card img {
  width: min(100%, 318px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 34px rgba(27, 41, 77, 0.18);
}

.openclaw-figure-group {
  margin: 6px 0 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(39, 52, 91, 0.14);
  background: linear-gradient(165deg, #f6f8ff 0%, #edf2fc 100%);
  display: grid;
  gap: 14px;
}

.openclaw-figure-title {
  margin: 0;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.2;
  color: #223963;
}

.openclaw-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin-inline: auto;
  gap: 16px;
  align-items: start;
}

.openclaw-compare-grid--reverse {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.openclaw-photo-card {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(36, 54, 104, 0.16);
  background: #f4f7ff;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(27, 41, 77, 0.1);
}

.openclaw-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.openclaw-photo-card figcaption {
  margin: 0;
  padding: 11px 13px 13px;
  font-size: 14px;
  line-height: 1.45;
  color: #384a71;
  background: rgba(245, 248, 255, 0.9);
}

.openclaw-photo-card--wide {
  max-width: min(860px, 100%);
}

.openclaw-photo-card--diagram {
  border-color: rgba(34, 51, 96, 0.22);
}

.openclaw-inline-note {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #435272;
}

.article-layout--techdebt .article-header .page-title {
  max-width: 18ch;
}

.article-layout--techdebt .article-prose {
  gap: 20px;
}

.article-layout--techdebt .article-prose h3 {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.2;
  color: #355195;
  scroll-margin-top: 24px;
}

.article-layout--techdebt .article-prose a {
  color: #234ca7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-layout--techdebt .article-prose a:hover,
.article-layout--techdebt .article-prose a:focus-visible {
  color: #1b3c85;
}

.article-layout--techdebt .article-prose ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: #3f4352;
  font-size: 18px;
  line-height: 1.55;
}

.article-layout--techdebt .article-prose li {
  margin: 0;
}

.article-layout--techdebt .openclaw-figure-group {
  gap: 16px;
}

.article-layout--techdebt .openclaw-photo-card {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-color: rgba(44, 63, 117, 0.2);
  background: #f3f6ff;
}

.article-layout--techdebt .openclaw-photo-card img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #f3f6ff;
}

.article-layout--techdebt .openclaw-photo-card--wide {
  max-width: min(680px, 100%);
}

.techdebt-split-copy {
  display: grid;
  gap: 10px;
}

.techdebt-split-copy p {
  margin: 0;
}

.article-layout--youtube .article-header .page-title {
  max-width: 18ch;
}

.article-layout--youtube .article-prose {
  gap: 20px;
}

.article-layout--youtube .article-prose h3 {
  margin: 0;
  font-size: clamp(25px, 2.2vw, 31px);
  line-height: 1.2;
  color: #223963;
}

.article-layout--youtube .article-prose a {
  color: #234ca7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-layout--youtube .article-prose a:hover,
.article-layout--youtube .article-prose a:focus-visible {
  color: #1b3c85;
}

.youtube-preview-grid {
  display: grid;
  gap: 0;
}

.youtube-preview-card {
  margin: 0;
}

.youtube-preview-link {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(14px, 2.3vw, 22px);
  align-items: center;
  padding: clamp(14px, 2.4vw, 20px);
  border-radius: 18px;
  border: 1px solid rgba(34, 52, 103, 0.2);
  background: linear-gradient(145deg, #f8faff 0%, #eef3ff 100%);
  box-shadow: 0 12px 26px rgba(25, 40, 80, 0.12);
  transition: transform 0.16s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.youtube-preview-link:hover,
.youtube-preview-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(42, 86, 199, 0.4);
  box-shadow: 0 14px 28px rgba(25, 40, 80, 0.16);
}

.youtube-preview-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(38, 57, 109, 0.2);
  background: #e9eefb;
}

.youtube-preview-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.youtube-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ff1d1d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.youtube-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

.youtube-preview-copy {
  display: grid;
  gap: 8px;
}

.youtube-preview-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c70a8;
}

.youtube-preview-copy p {
  margin: 0;
}

.youtube-preview-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(42, 86, 199, 0.12);
  color: #1f4393;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.work-grid > * {
  min-width: 0;
}

.work-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  background: #f5f7fc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-page .work-card {
  border-color: rgba(33, 46, 84, 0.1);
  background: #fafbfe;
}

.project-card {
  gap: 12px;
}

.project-grid {
  margin-top: 132px;
  gap: 34px;
}

.project-grid .project-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

  .project-preview {
    margin: 0 0 4px;
    min-height: 170px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(57, 76, 136, 0.18);
  overflow: hidden;
  background: #dbe5fb;
  box-shadow: 0 10px 22px rgba(33, 46, 84, 0.14);
}

.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-grid .project-preview {
  margin: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.project-grid .project-preview--markdown,
.project-grid .project-preview--resume {
  background: transparent;
}

.project-preview--markdown {
  background: linear-gradient(145deg, #7ea9e5 0%, #5b89cb 58%, #375f9f 100%);
}

.project-preview--resume {
  background: linear-gradient(145deg, #8ea1d8 0%, #6c84cb 56%, #3d5aa8 100%);
}

.project-meta {
  margin: 2px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(42, 86, 199, 0.12);
  color: #264aa8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.2;
}

.project-pill time {
  color: inherit;
  font: inherit;
}

.work-card h3 {
  margin: 0;
  font-size: var(--type-card-title-size);
  line-height: 1.2;
  color: #17203a;
}

.work-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #485270;
}

.work-card p a {
  color: #264aa8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}

.work-card p a:hover,
.work-card p a:focus-visible {
  color: #1d3d92;
  text-decoration-color: currentColor;
}

.work-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.work-card li {
  font-size: 14px;
  line-height: 1.45;
  color: #3f4969;
}

.work-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #264aa8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}

.work-link:hover,
.work-link:focus-visible {
  color: #1f3f95;
  text-decoration-color: currentColor;
}

.section-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.section-featured > * {
  min-width: 0;
}

.home-page .section-featured {
  gap: 16px;
}

.featured-copy,
.featured-panel {
  border-radius: 18px;
  border: 1px solid rgba(33, 46, 84, 0.14);
  padding: 26px;
}

.home-page .featured-copy,
.home-page .featured-panel {
  border-color: rgba(33, 46, 84, 0.11);
}

.featured-copy {
  background: linear-gradient(160deg, #f6f9ff 0%, #edf2ff 100%);
}

.featured-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 2.45vw, 42px);
  line-height: 1.12;
  color: #13213f;
}

.featured-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #445071;
}

.featured-copy p + p {
  margin-top: 12px;
}

.featured-copy .cta {
  margin-top: 20px;
}

.featured-panel {
  background: linear-gradient(145deg, #1d3066 0%, #283f7f 100%);
  color: #dfe8ff;
}

.featured-panel-label {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #adc2ff;
  font-weight: 700;
}

.featured-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  color: #f4f7ff;
}

.featured-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.featured-panel li {
  font-size: 14px;
  line-height: 1.5;
}

.note-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.note-entry {
  padding: 18px 20px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  border-radius: 14px;
  background: #f8faff;
}

.note-meta {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #596486;
}

.note-entry h3 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
  color: #17203a;
}

.note-entry h3 a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease-out;
}

.note-entry h3 a:hover,
.note-entry h3 a:focus-visible {
  text-decoration-color: currentColor;
}

.note-entry p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #485270;
}

.note-layout {
  max-width: 860px;
}

.note-header {
  margin-bottom: 20px;
}

.note-prose {
  display: grid;
  gap: 14px;
}

.note-prose p {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  color: #455175;
}

.notes-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  background: #f7f9ff;
}

.home-page .notes-list {
  background: #fafbff;
  border-color: rgba(33, 46, 84, 0.1);
}

.notes-list li + li {
  border-top: 1px solid rgba(33, 46, 84, 0.08);
}

.notes-list a {
  display: block;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #1d2c54;
}

.notes-list a:hover,
.notes-list a:focus-visible {
  background: rgba(42, 86, 199, 0.08);
}

.section-about {
  max-width: none;
}

.section-about h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 2.4vw, 40px);
  line-height: 1.15;
  color: #17203a;
}

.section-about p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #434f70;
}

.section-about p + p {
  margin-top: 12px;
}

.about-grid {
  margin-top: -8px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.about-grid > * {
  min-width: 0;
}

.about-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 2.2vw, 38px);
  line-height: 1.15;
  color: #17203a;
}

.about-grid p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #455175;
}

.about-grid p + p {
  margin-top: 12px;
}

.about-panel {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  background: #f8faff;
}

.about-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  color: #17203a;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.about-list li {
  font-size: 15px;
  line-height: 1.45;
  color: #445071;
}

.about-language-list {
  list-style: none;
  padding-left: 0;
}

.about-language-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-chip-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(33, 46, 84, 0.16);
  background: #f1f5ff;
  color: #2b3f75;
  font-size: 14px;
  line-height: 1.2;
}

.about-hashtag-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.about-hashtag-list li {
  color: #2f56b7;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.about-highlights-list {
  margin: 24px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.about-highlights-list li {
  font-size: 16px;
  line-height: 1.5;
  color: #445071;
}

.about-columns {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section > .about-columns:first-child {
  margin-top: 0;
}

.about-columns > * {
  min-width: 0;
}

.about-block h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.2;
  color: #17203a;
}

.about-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #455175;
}

.section-about a,
.about-block .about-list a {
  color: #264aa8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}

.section-about a:hover,
.section-about a:focus-visible,
.about-block .about-list a:hover,
.about-block .about-list a:focus-visible {
  color: #1d3d92;
  text-decoration-color: currentColor;
}

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

.testimonials-grid > * {
  min-width: 0;
}

.testimonial-card {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  background: #f6f8fe;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: #28345a;
}

.testimonial-card figcaption {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.4;
  color: #526083;
}

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

.contributions-grid > * {
  min-width: 0;
}

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

.contribution-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(33, 46, 84, 0.12);
  background: #f8f9fd;
}

.home-page .contribution-card {
  border-color: rgba(33, 46, 84, 0.1);
  background: #fafbfe;
}

.contribution-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #17203a;
}

.contribution-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contribution-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #485270;
}

.section-newsletter {
  position: relative;
  isolation: isolate;
  padding: 38px 0 42px;
  margin-bottom: 0;
  border-top: 1px solid rgba(33, 46, 84, 0.1);
  border-bottom: 1px solid rgba(33, 46, 84, 0.1);
  border-radius: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.home-page .section-newsletter {
  margin-bottom: 0;
}

.section-newsletter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ebedf2 0%, #ececee 50%, #e8ebf2 100%);
}

.newsletter-copy {
  max-width: 560px;
}

.newsletter-copy .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.newsletter-copy .section-kicker::before {
  content: "✉";
  color: #2f5fca;
  font-size: 13px;
  transform: translateY(-1px);
}

.newsletter-copy h2 {
  margin: 0 0 10px;
  font-size: var(--type-section-title-size);
  line-height: 1.14;
  color: #17203a;
}

.newsletter-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #435174;
}

.newsletter-embed {
  margin: 0;
  width: min(100%, 500px);
}

.embeddable-buttondown-form {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.embeddable-buttondown-form label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2a3659;
}

.embeddable-buttondown-form input[type="email"] {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(33, 46, 84, 0.24);
  background: #fff;
  color: #1c2643;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
}

.embeddable-buttondown-form input[type="email"]::placeholder {
  color: #6a779b;
}

.newsletter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.embeddable-buttondown-form input[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #2a5fd3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease-out, transform 0.15s ease-out;
}

.embeddable-buttondown-form input[type="submit"]:hover,
.embeddable-buttondown-form input[type="submit"]:focus-visible {
  background: #214fb8;
}

.embeddable-buttondown-form input[type="submit"]:active {
  transform: translateY(1px);
}

.newsletter-preview-link {
  margin: 0 0 0 auto;
  text-align: right;
  font-size: 14px;
  line-height: 1.35;
}

.newsletter-preview-link a {
  color: #2a4ea8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-preview-link a:hover,
.newsletter-preview-link a:focus-visible {
  color: #1d3d92;
}

.section-contact {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(33, 46, 84, 0.14);
  background: linear-gradient(155deg, #edf3ff 0%, #f7f9ff 100%);
}

.home-page .section-contact {
  border-color: rgba(33, 46, 84, 0.11);
  background: linear-gradient(155deg, #f2f6ff 0%, #fafcff 100%);
}

.section-contact h2 {
  margin: 0 0 12px;
  font-size: var(--type-section-title-size);
  line-height: 1.12;
  color: #13213f;
}

.section-contact p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #414e71;
}

.section-contact a {
  color: #264aa8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}

.section-contact a:hover,
.section-contact a:focus-visible {
  color: #1d3d92;
  text-decoration-color: currentColor;
}

.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 528px);
  gap: 56px;
  align-items: center;
  margin-bottom: 44px;
}

.contact-intro-copy {
  max-width: 560px;
}

.contact-intro .page-title {
  margin: 0 0 10px;
  font-size: var(--type-section-title-size);
  line-height: 1.08;
  color: var(--brand);
}

.contact-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-title-icon {
  width: 21px;
  height: 21px;
  fill: #8a5af0;
  flex-shrink: 0;
  transform: translateY(1px);
}

.contact-intro .page-intro {
  margin: 0;
  max-width: 50ch;
  font-size: 18px;
  line-height: 1.5;
  color: #464d60;
}

.contact-hero-media {
  justify-self: end;
  width: min(100%, 528px);
}

.contact-photo-placeholder {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 528 / 357;
  border-radius: 20px;
  border: 0;
  background: linear-gradient(150deg, #c3deff 0%, #8bb8f3 52%, #628fd6 100%);
  box-shadow: 0 14px 28px rgba(37, 60, 117, 0.18);
}

.contact-photo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-photo-placeholder span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(243, 247, 255, 0.84);
  background: rgba(34, 57, 111, 0.3);
  color: #f4f8ff;
  font-size: 14px;
}

.contact-simple {
  max-width: 760px;
  display: grid;
  gap: 22px;
}

.contact-icon-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon-links a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #21356f;
  border: 1px solid rgba(32, 52, 104, 0.24);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(36, 57, 111, 0.13);
  transition: transform 0.18s ease-out, background-color 0.2s ease-out,
    color 0.2s ease-out, border-color 0.2s ease-out;
}

.contact-icon-links a:hover,
.contact-icon-links a:focus-visible {
  transform: translateY(-1px);
  color: #f3f7ff;
  background: #2a56c7;
  border-color: #2a56c7;
}

.contact-icon-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-casual-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: #3f4352;
}

.site-footer {
  padding: 44px 16px;
  color: #fff;
  background-color: #152b67;
  background-image: linear-gradient(180deg, #102252 0%, #17357c 62%, #1c448f 100%);
}

.site-footer a {
  color: inherit;
}

.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(420px, 1.55fr) minmax(180px, 0.8fr);
  grid-template-areas: "contact nav social";
  column-gap: 34px;
  row-gap: 18px;
  align-items: start;
}

.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-email em {
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

.footer-nav {
  grid-area: nav;
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  align-items: flex-start;
  gap: 8px 13px;
}

.footer-nav a {
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease-out, opacity 0.2s ease-out;
}

.footer-nav a.is-active {
  font-weight: 600;
  opacity: 1;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 1;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.footer-social-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.footer-social-block {
  grid-area: social;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out,
    border-color 0.2s ease-out;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
}

.footer-social a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a[aria-label="LinkedIn"] svg,
.footer-social a[aria-label="X"] svg,
.footer-social a[aria-label="GitHub"] svg {
  fill: currentColor;
  stroke: none;
}

.footer-contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 340px;
}

.footer-contact p {
  font-size: 16px;
}

.footer-email {
  font-size: clamp(21px, 1.1rem + 0.95vw, 29px);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy-email {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    transform 0.15s ease-out;
}

.footer-copy-email:hover,
.footer-copy-email:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.footer-copy-email:active {
  transform: translateY(1px);
}

body.dark-mode {
  color: #dce7ff;
  background: #081327;
}

body.dark-mode :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--focus-ring-dark);
}

body.dark-mode .promo-strip {
  background: linear-gradient(90deg, #132e68 0%, #1b3d86 52%, #132e68 100%);
}

body.dark-mode .hero-area {
  background: #0f1b34;
}

body.dark-mode .brand-role {
  color: #a7b3d5;
}

body.dark-mode .main-nav {
  background: #17223e;
  border-color: rgba(149, 167, 221, 0.2);
  box-shadow: none;
}

body.dark-mode .main-nav a {
  color: #c5d2f0;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a:focus-visible {
  color: #e7eeff;
  background: rgba(158, 184, 255, 0.16);
}

body.dark-mode .main-nav a.active {
  color: #98b2ff;
}

body.dark-mode .theme-toggle {
  background: #17223e;
  color: #d2dcf3;
  border-color: rgba(149, 167, 221, 0.3);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .theme-toggle:focus-visible {
  background: #233257;
  color: #eef4ff;
  border-color: rgba(149, 167, 221, 0.48);
}

body.dark-mode .hero-copy h1,
body.dark-mode .page-title,
body.dark-mode .section-head h2,
body.dark-mode .section-about h2,
body.dark-mode .section-contact h2 {
  color: #ecf2ff;
}

body.dark-mode .hero-copy p,
body.dark-mode .page-intro,
body.dark-mode .article-summary,
body.dark-mode .section-about p,
body.dark-mode .section-contact p {
  color: #b3c1e1;
}

body.dark-mode .section-caption {
  color: #aebcde;
}

body.dark-mode .post-entry,
body.dark-mode .post-archive-item,
body.dark-mode .work-card,
body.dark-mode .featured-copy,
body.dark-mode .note-entry,
body.dark-mode .notes-list,
body.dark-mode .testimonial-card,
body.dark-mode .contribution-card,
body.dark-mode .section-contact {
  background: #16233f;
  border-color: rgba(149, 167, 221, 0.22);
}

body.dark-mode .section-kicker,
body.dark-mode .work-link,
body.dark-mode .article-back,
body.dark-mode .topic-list strong,
body.dark-mode .article-toc a,
body.dark-mode .section-contact a,
body.dark-mode .contribution-card a {
  color: #9eb8ff;
}

body.dark-mode .project-pill {
  background: rgba(158, 184, 255, 0.19);
  color: #ccdaff;
}

body.dark-mode .home-page .section-head h2.blog-title {
  color: #a8c2ff;
}

body.dark-mode .blog-title-icon {
  color: #c4a0ff;
}

body.dark-mode .section-head :is(h1, h2).section-title-accent {
  color: #a9c2ff;
}

body.dark-mode .section-title-accent--featured .section-title-accent__icon {
  color: #c8a7ff;
}

body.dark-mode .section-title-accent--archive .section-title-accent__icon {
  color: #c8a7ff;
}

body.dark-mode .section-link {
  border-color: rgba(149, 167, 221, 0.3);
  background: #1f2b4c;
  color: #d7e3ff;
}

body.dark-mode .section-link:hover,
body.dark-mode .section-link:focus-visible {
  background: #293b63;
  color: #eef4ff;
  border-color: rgba(149, 167, 221, 0.5);
}

body.dark-mode .pagination-link {
  border-color: rgba(149, 167, 221, 0.3);
  background: #1f2b4c;
  color: #d7e3ff;
}

body.dark-mode .pagination-link:hover,
body.dark-mode .pagination-link:focus-visible {
  border-color: rgba(158, 184, 255, 0.52);
  background: #2b3f68;
  color: #eef4ff;
}

body.dark-mode .pagination-link.is-current {
  border-color: rgba(158, 184, 255, 0.48);
  background: rgba(158, 184, 255, 0.16);
  color: #dfe8ff;
}

body.dark-mode .topic-list a.is-current-topic {
  border-color: rgba(158, 184, 255, 0.52);
  color: #dfe8ff;
}

body.dark-mode .topic-list a:hover,
body.dark-mode .topic-list a:focus-visible {
  border-color: rgba(158, 184, 255, 0.5);
  color: #eef4ff;
}

body.dark-mode .post-meta,
body.dark-mode .post-card p,
body.dark-mode .post-entry p,
body.dark-mode .post-archive-item p,
body.dark-mode .article-prose p,
body.dark-mode .note-prose p,
body.dark-mode .work-card p,
body.dark-mode .work-card li,
body.dark-mode .contribution-card p,
body.dark-mode .testimonial-card figcaption,
body.dark-mode .about-block p {
  color: #b9c8e7;
}

body.dark-mode .work-card p a {
  color: #9eb8ff;
}

body.dark-mode .work-card p a:hover,
body.dark-mode .work-card p a:focus-visible {
  color: #d7e3ff;
}

body.dark-mode .article-prose :not(pre) > code {
  background: rgba(158, 184, 255, 0.16);
  color: #d4e3ff;
  border-color: rgba(158, 184, 255, 0.28);
}

body.dark-mode .article-prose pre.shiki {
  border-color: rgba(132, 152, 212, 0.32);
  box-shadow: 0 12px 28px rgba(5, 10, 25, 0.38);
}

body.dark-mode .article-prose pre.shiki::before {
  border-color: rgba(168, 188, 236, 0.34);
  background: rgba(8, 16, 34, 0.56);
  color: #c3d6ff;
}

body.dark-mode .project-preview {
  border-color: rgba(149, 167, 221, 0.34);
  box-shadow: 0 12px 24px rgba(5, 10, 25, 0.36);
}

body.dark-mode .project-preview--markdown {
  background: linear-gradient(145deg, #29436e 0%, #38588f 56%, #253f68 100%);
}

body.dark-mode .project-preview--resume {
  background: linear-gradient(145deg, #303c67 0%, #425a99 56%, #2f3f6d 100%);
}

body.dark-mode .project-grid .project-card,
body.dark-mode .project-grid .project-preview,
body.dark-mode .project-grid .project-preview--markdown,
body.dark-mode .project-grid .project-preview--resume {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.dark-mode .post-card h3,
body.dark-mode .post-entry h3,
body.dark-mode .post-archive-item h3,
body.dark-mode .article-prose h2,
body.dark-mode .note-entry h3,
body.dark-mode .about-grid h2,
body.dark-mode .about-panel h3,
body.dark-mode .about-block h3,
body.dark-mode .article-toc strong,
body.dark-mode .work-card h3,
body.dark-mode .contribution-card h3,
body.dark-mode .notes-list a {
  color: #edf3ff;
}

body.dark-mode .notes-list li + li {
  border-top-color: rgba(149, 167, 221, 0.18);
}

body.dark-mode .notes-list a:hover,
body.dark-mode .notes-list a:focus-visible {
  background: rgba(158, 184, 255, 0.12);
}

body.dark-mode .note-meta,
body.dark-mode .note-entry p {
  color: #aebcde;
}

body.dark-mode .about-grid p,
body.dark-mode .about-list li,
body.dark-mode .about-highlights-list li {
  color: #b9c8e7;
}

body.dark-mode .about-chip {
  background: #1a2847;
  border-color: rgba(149, 167, 221, 0.24);
  color: #dbe7ff;
}

body.dark-mode .about-hashtag-list li {
  color: #9eb8ff;
}

body.dark-mode .section-about a,
body.dark-mode .about-block .about-list a {
  color: #9eb8ff;
}

body.dark-mode .section-about a:hover,
body.dark-mode .section-about a:focus-visible,
body.dark-mode .about-block .about-list a:hover,
body.dark-mode .about-block .about-list a:focus-visible {
  color: #d7e3ff;
}

body.dark-mode .about-panel {
  background: #18233f;
  border-color: rgba(149, 167, 221, 0.22);
}

body.dark-mode .post-archive-list {
  border-top-color: rgba(149, 167, 221, 0.22);
}

body.dark-mode .post-archive-item {
  background: transparent;
  border-bottom-color: rgba(149, 167, 221, 0.22);
}

body.dark-mode .section-featured-posts .post-card {
  background: transparent;
  border-top-color: rgba(149, 167, 221, 0.26);
}

body.dark-mode .section-featured-posts .post-card h3 a {
  color: #b5cbff;
}

body.dark-mode .home-post-list .post-card {
  background: transparent;
  border-radius: 0;
  border-top-color: rgba(149, 167, 221, 0.26);
}

body.dark-mode .home-post-list .post-card h3 a {
  color: #b5cbff;
}

body.dark-mode .featured-post-media {
  border-color: rgba(149, 167, 221, 0.35);
  background: #18233f;
  box-shadow: 0 8px 20px rgba(5, 12, 30, 0.34);
}

body.dark-mode .section-related-posts .section-kicker {
  color: #bc96ff;
}

body.dark-mode .section-related-posts #related-title {
  color: #b5cbff;
}

body.dark-mode .section-related-posts #related-title::before {
  color: #c8a7ff;
}

body.dark-mode .section-related-posts .home-post-list .post-card {
  background: transparent;
  border-radius: 0;
}

body.dark-mode .section-related-posts .post-list--compact .post-card {
  border-top-color: rgba(149, 167, 221, 0.26);
}

body.dark-mode .section-related-posts .post-list--compact .post-card h3 a {
  color: #a8c2ff;
}

body.dark-mode .topic-list a {
  background: transparent;
  border-top-color: rgba(149, 167, 221, 0.26);
  color: #a8c2ff;
}

body.dark-mode .topic-list strong {
  background: rgba(158, 184, 255, 0.18);
  color: #dfe8ff;
}

body.dark-mode .topic-list a:hover strong,
body.dark-mode .topic-list a:focus-visible strong {
  background: rgba(158, 184, 255, 0.3);
  color: #eef4ff;
}

body.dark-mode .section-topics .section-head h2 {
  color: #a8c2ff;
}

body.dark-mode .section-topics .section-head h2::before {
  color: #c8a7ff;
}

body.dark-mode .home-post-list .post-card p {
  color: #afbee0;
}

body.dark-mode .home-post-list .post-meta {
  color: #9eb0d6;
}

body.dark-mode .article-toc {
  background: transparent;
  border: 0;
}

body.dark-mode .article-header {
  background: #10192e;
}

body.dark-mode .article-header::after {
  background: linear-gradient(
    180deg,
    rgba(8, 14, 29, 0.7) 0%,
    rgba(12, 20, 38, 0.76) 46%,
    rgba(13, 24, 44, 0.78) 100%
  );
}

body.dark-mode .article-back {
  color: #bfd1ff;
}

body.dark-mode .article-header .section-kicker {
  color: #a7bfff;
}

body.dark-mode .article-header .post-meta {
  color: #bccce9;
}

body.dark-mode .article-summary {
  color: #cedbf5;
}

body.dark-mode .article-toc strong {
  color: #b9ccff;
}

body.dark-mode .article-toc a {
  color: #d4def2;
  border-left-color: transparent;
  border-bottom-color: rgba(149, 167, 221, 0.28);
}

body.dark-mode .article-toc a:hover,
body.dark-mode .article-toc a:focus-visible {
  color: #bfd1ff;
  background: rgba(128, 163, 255, 0.14);
  border-left-color: rgba(128, 163, 255, 0.44);
}

body.dark-mode .article-toc a.is-active {
  color: #e1ebff;
  background: rgba(128, 163, 255, 0.22);
  border-bottom-color: rgba(128, 163, 255, 0.32);
  border-left-color: rgba(165, 192, 255, 0.72);
  box-shadow: none;
}

body.dark-mode .article-prose h2 {
  color: #c5abff;
}

body.dark-mode .article-layout--openclaw .article-header::after {
  background: linear-gradient(
    180deg,
    rgba(14, 19, 31, 0.66) 0%,
    rgba(18, 24, 39, 0.74) 46%,
    rgba(19, 27, 44, 0.78) 100%
  );
}

body.dark-mode .article-layout--openclaw .article-header .section-kicker {
  color: #b7cfff;
}

body.dark-mode .article-layout--openclaw .article-header .page-title {
  color: #eef3ff;
}

body.dark-mode .article-layout--openclaw .article-prose a {
  color: #a9c3ff;
}

body.dark-mode .article-layout--openclaw .article-prose a:hover,
body.dark-mode .article-layout--openclaw .article-prose a:focus-visible {
  color: #d7e5ff;
}

body.dark-mode .article-layout--books .article-prose a {
  color: #a9c3ff;
}

body.dark-mode .article-layout--books .article-prose a:hover,
body.dark-mode .article-layout--books .article-prose a:focus-visible {
  color: #d7e5ff;
}

body.dark-mode .books-wishlist-quote {
  border-left-color: rgba(191, 168, 255, 0.72);
  background: linear-gradient(90deg, rgba(131, 105, 234, 0.22) 0%, rgba(131, 105, 234, 0) 45%);
  color: #d8e4ff;
  box-shadow: none;
}

body.dark-mode .books-wishlist-quote::before {
  color: #c9b5ff;
}

body.dark-mode .books-wishlist-quote p:first-child::before {
  color: #bfa8ff;
}

body.dark-mode .books-wishlist-quote p:last-child::after {
  color: #bfa8ff;
}

body.dark-mode .article-layout--books .openclaw-figure-group {
  border: 0;
  background: transparent;
}

body.dark-mode .article-layout--books .openclaw-photo-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.dark-mode .article-layout--books .openclaw-photo-card img {
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.42);
}

body.dark-mode .openclaw-figure-group {
  border-color: rgba(149, 167, 221, 0.28);
  background: linear-gradient(165deg, rgba(26, 37, 66, 0.88) 0%, rgba(22, 34, 59, 0.92) 100%);
}

body.dark-mode .openclaw-figure-title {
  color: #e2ebff;
}

body.dark-mode .openclaw-photo-card {
  border-color: rgba(149, 167, 221, 0.3);
  background: #172543;
  box-shadow: 0 12px 26px rgba(5, 10, 25, 0.34);
}

body.dark-mode .openclaw-photo-card figcaption {
  color: #bacbec;
  background: rgba(19, 31, 56, 0.92);
}

body.dark-mode .openclaw-inline-note {
  color: #b9c8e7;
}

body.dark-mode .article-layout--techdebt .article-prose h3 {
  color: #b4c8ff;
}

body.dark-mode .article-layout--techdebt .article-prose a {
  color: #a9c3ff;
}

body.dark-mode .article-layout--techdebt .article-prose a:hover,
body.dark-mode .article-layout--techdebt .article-prose a:focus-visible {
  color: #d7e5ff;
}

body.dark-mode .article-layout--youtube .article-prose h3 {
  color: #d6e1ff;
}

body.dark-mode .article-layout--youtube .article-prose a {
  color: #a9c3ff;
}

body.dark-mode .article-layout--youtube .article-prose a:hover,
body.dark-mode .article-layout--youtube .article-prose a:focus-visible {
  color: #d7e5ff;
}

body.dark-mode .youtube-preview-link {
  border-color: rgba(149, 167, 221, 0.34);
  background: linear-gradient(145deg, #1a2747 0%, #1a2b4c 100%);
  box-shadow: 0 16px 30px rgba(4, 9, 22, 0.36);
}

body.dark-mode .youtube-preview-link:hover,
body.dark-mode .youtube-preview-link:focus-visible {
  border-color: rgba(169, 195, 255, 0.52);
}

body.dark-mode .youtube-preview-media {
  border-color: rgba(149, 167, 221, 0.35);
  background: #12203d;
}

body.dark-mode .youtube-preview-kicker {
  color: #a8bcf2;
}

body.dark-mode .youtube-preview-cta {
  background: rgba(111, 145, 226, 0.2);
  color: #cde0ff;
}

body.dark-mode .article-layout--techdebt .article-prose ul {
  color: #c9d7f5;
}

body.dark-mode .article-layout--techdebt .openclaw-photo-card {
  border-color: rgba(149, 167, 221, 0.3);
  background: #172543;
}

body.dark-mode .article-layout--techdebt .openclaw-photo-card img {
  background: #172543;
}

body.dark-mode .featured-copy {
  background: linear-gradient(160deg, #15223f 0%, #1c2b4d 100%);
}

body.dark-mode .featured-panel {
  background: linear-gradient(145deg, #0f1a34 0%, #162849 100%);
  border-color: rgba(149, 167, 221, 0.24);
}

body.dark-mode .featured-panel h3 {
  color: #f1f5ff;
}

body.dark-mode .featured-panel-label {
  color: #a7bbf3;
}

body.dark-mode .section-newsletter {
  border-top-color: rgba(149, 167, 221, 0.24);
  border-bottom-color: rgba(149, 167, 221, 0.24);
}

body.dark-mode .section-newsletter::before {
  background: linear-gradient(180deg, #101a31 0%, #0f1a2f 52%, #0e192f 100%);
}

body.dark-mode .newsletter-copy h2 {
  color: #edf3ff;
}

body.dark-mode .newsletter-copy p {
  color: #aebcde;
}

body.dark-mode .newsletter-copy .section-kicker::before {
  color: #c6a9ff;
}

body.dark-mode .embeddable-buttondown-form label {
  color: #dce6ff;
}

body.dark-mode .embeddable-buttondown-form input[type="email"] {
  border-color: rgba(149, 167, 221, 0.35);
  background: #0f1a34;
  color: #e7eeff;
}

body.dark-mode .embeddable-buttondown-form input[type="email"]::placeholder {
  color: #8fa1cd;
}

body.dark-mode .embeddable-buttondown-form input[type="submit"] {
  background: #3f6ed8;
}

body.dark-mode .embeddable-buttondown-form input[type="submit"]:hover,
body.dark-mode .embeddable-buttondown-form input[type="submit"]:focus-visible {
  background: #4c7be6;
}

body.dark-mode .newsletter-preview-link a {
  color: #9eb8ff;
}

body.dark-mode .newsletter-preview-link a:hover,
body.dark-mode .newsletter-preview-link a:focus-visible {
  color: #dbe6ff;
}

body.dark-mode .testimonial-card blockquote {
  color: #d5def3;
}

body.dark-mode .contact-casual-copy {
  color: #aebcde;
}

body.dark-mode .contact-icon-links a {
  color: #d8e4ff;
  border-color: rgba(149, 167, 221, 0.34);
  background: #162545;
  box-shadow: 0 12px 24px rgba(4, 9, 24, 0.42);
}

body.dark-mode .contact-icon-links a:hover,
body.dark-mode .contact-icon-links a:focus-visible {
  background: #436fd8;
  border-color: #436fd8;
  color: #eef4ff;
}

body.dark-mode .contact-photo-placeholder {
  background: linear-gradient(155deg, #29426e 0%, #385890 52%, #243e69 100%);
  box-shadow: 0 18px 34px rgba(5, 10, 25, 0.46);
}

body.dark-mode .contact-photo-placeholder span {
  border-color: rgba(194, 214, 255, 0.66);
  background: rgba(9, 18, 41, 0.34);
  color: #dce8ff;
}

body.dark-mode .contact-title-icon {
  fill: #c7adff;
}

body.dark-mode .section-contact a:hover,
body.dark-mode .section-contact a:focus-visible,
body.dark-mode .work-link:hover,
body.dark-mode .work-link:focus-visible {
  color: #dbe6ff;
}

body.dark-mode .cta:hover,
body.dark-mode .cta:focus-visible {
  background: #3a69d9;
}

body.dark-mode.error-page {
  background:
    radial-gradient(circle at 18% -8%, rgba(88, 125, 223, 0.25) 0%, transparent 56%),
    radial-gradient(circle at 84% -11%, rgba(188, 120, 64, 0.22) 0%, transparent 50%),
    #081327;
}

body.dark-mode.error-page .hero-area {
  background: transparent;
}

body.dark-mode .error-card {
  border-color: rgba(149, 167, 221, 0.32);
  background: linear-gradient(150deg, #172644 0%, #1d2f54 54%, #16233f 100%);
  box-shadow: 0 20px 42px rgba(3, 8, 21, 0.48);
}

body.dark-mode .error-card__halo--one {
  background: radial-gradient(circle at 33% 36%, rgba(130, 167, 255, 0.54) 0%, rgba(130, 167, 255, 0.08) 67%);
}

body.dark-mode .error-card__halo--two {
  background: radial-gradient(circle at 66% 60%, rgba(220, 153, 97, 0.42) 0%, rgba(220, 153, 97, 0.08) 70%);
}

body.dark-mode .error-code {
  color: #9eb8ff;
  text-shadow: 0 9px 24px rgba(6, 12, 28, 0.48);
}

body.dark-mode .error-title {
  color: #ecf2ff;
}

body.dark-mode .error-copy {
  color: #b6c4e3;
}

body.dark-mode .error-path-label {
  color: #acbfec;
}

body.dark-mode .error-path {
  background: rgba(158, 184, 255, 0.15);
  border-color: rgba(158, 184, 255, 0.35);
  color: #e1ebff;
}

body.dark-mode .error-link {
  background: #1e2f54;
  border-color: rgba(149, 167, 221, 0.35);
  color: #d8e4ff;
}

body.dark-mode .error-link:hover,
body.dark-mode .error-link:focus-visible {
  background: #2a3f68;
  border-color: rgba(149, 167, 221, 0.5);
  color: #edf3ff;
}

body.dark-mode .site-footer {
  background-color: #0d1a3a;
  background-image: linear-gradient(#0a1633 0.5%, #152754 100%);
}

body.dark-mode.home-page .section + .section {
  border-top-color: rgba(149, 167, 221, 0.2);
}

body.dark-mode.home-page .work-card,
body.dark-mode.home-page .contribution-card,
body.dark-mode.home-page .notes-list,
body.dark-mode.home-page .section-contact,
body.dark-mode.home-page .featured-copy {
  background: #15213b;
  border-color: rgba(149, 167, 221, 0.2);
}

@media (max-width: 1320px) {
  .header {
    --dynamic-col: clamp(11rem, 1rem + 20vw, 16.5rem);
  }

  .hero {
    margin-top: 92px;
    padding: 0 16px;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .brand-name {
    font-size: 19px;
  }

  .main-nav {
    padding: 0 10px;
  }

  .main-nav a {
    font-size: 15px;
    padding: 13px 9px;
  }

  .media-card {
    min-height: 330px;
  }

  .section-featured-posts .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}

@media (max-width: 980px) {
  .page-shell {
    padding: 16px 14px 40px;
  }

  .header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }

  .main-nav {
    order: 3;
    justify-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0 10px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .theme-toggle {
    order: 2;
    justify-self: start;
  }

  .hero {
    margin-top: 56px;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 30px;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: clamp(34px, 9.2vw, 46px);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: clamp(17px, 4.7vw, 19px);
  }

  .media-card {
    min-height: 292px;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "nav nav"
      "social contact";
    column-gap: 30px;
    row-gap: 20px;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .footer-nav a {
    font-size: 15px;
  }

  .footer-social-title {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact {
    text-align: center;
    max-width: none;
  }

  .footer-email {
    justify-content: center;
  }

  .content-shell {
    padding: 48px 14px 0;
  }

  .error-shell {
    padding-top: 16px;
    padding-bottom: 58px;
  }

  .error-card {
    border-radius: 20px;
    padding: 24px 20px 22px;
  }

  .error-code {
    font-size: clamp(64px, 24vw, 110px);
  }

  .error-title {
    font-size: clamp(30px, 8.2vw, 42px);
  }

  .error-copy {
    font-size: 17px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions a {
    width: 100%;
    justify-content: center;
  }

  .error-link {
    text-align: center;
  }

  .section {
    margin-bottom: 64px;
  }

  .home-page .hero {
    margin-top: 48px;
  }

  .home-page .content-shell {
    padding-top: 36px;
  }

  .home-page .section {
    margin-bottom: 56px;
  }

  .home-page .section-newsletter {
    margin-bottom: 0;
  }

  .home-page .section + .section {
    padding-top: 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .home-page .section-head h2.blog-title {
    gap: 8px;
    font-size: clamp(22px, 6.8vw, 28px);
  }

  .section-head :is(h1, h2).section-title-accent {
    gap: 8px;
    font-size: clamp(22px, 6.6vw, 29px);
  }

  .section-related-posts {
    margin-top: 36px;
  }

  .section-related-posts #related-title {
    gap: 8px;
    font-size: clamp(22px, 6.6vw, 28px);
  }

  .blog-title-icon {
    width: 22px;
    height: 22px;
  }

  .section-title-accent__icon {
    width: 20px;
    height: 20px;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .section-featured-posts .post-list {
    grid-template-columns: 1fr;
  }

  .section-featured-posts .post-card {
    max-width: 620px;
    margin-inline: auto;
  }

  .featured-post-media {
    max-height: clamp(220px, 42vw, 340px);
  }

  .section-related-posts .post-list--compact {
    grid-template-columns: 1fr;
  }

  .home-post-list .post-card h3 {
    font-size: clamp(23px, 6.5vw, 30px);
  }

  .post-entries {
    grid-template-columns: 1fr;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

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

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

  .testimonials-grid,
  .contributions-grid {
    grid-template-columns: 1fr;
  }

  .home-contributions .contributions-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    margin-top: 88px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-grid h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .contact-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .contact-hero-media {
    justify-self: start;
    width: min(100%, 430px);
  }

  .section-newsletter {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter-embed {
    width: 100%;
  }

  .newsletter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .embeddable-buttondown-form .newsletter-actions input[type="submit"] {
    width: 100%;
    text-align: center;
  }

  .newsletter-actions .newsletter-preview-link {
    margin-left: 0;
    align-self: flex-end;
  }

  .contact-intro .page-title {
    font-size: clamp(34px, 9.5vw, 42px);
  }

  .contact-intro .page-intro {
    font-size: 17px;
  }

  .contact-photo-placeholder {
    aspect-ratio: 528 / 357;
  }

  .contact-simple {
    gap: 18px;
  }

  .contact-icon-links a {
    width: 48px;
    height: 48px;
  }

  .contact-casual-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .note-entry {
    padding: 16px;
  }

  .note-entry h3 {
    font-size: 22px;
  }

  .note-prose p {
    font-size: 16px;
  }

  .notes-list a {
    font-size: 16px;
    padding: 14px 15px;
  }

  .section-about p,
  .section-contact p {
    font-size: 16px;
  }

  .page-title {
    font-size: clamp(34px, 9vw, 46px);
  }

  .article-header {
    min-height: clamp(280px, 64vw, 380px);
    margin-bottom: 28px;
    padding: 56px 16px 28px;
  }

  .article-back {
    top: 14px;
    left: 16px;
  }

  .article-header .page-title {
    font-size: clamp(34px, 9.5vw, 52px);
  }

  .article-content-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .article-toc {
    position: static;
    border-left: 0;
    border-bottom: 1px solid rgba(33, 46, 84, 0.16);
    padding-bottom: 6px;
  }

  .article-toc a {
    padding: 10px 2px;
    font-size: 16px;
  }

  body.dark-mode .article-toc {
    border-left: 0;
    border-bottom: 1px solid rgba(149, 167, 221, 0.3);
  }

  .article-summary,
  .article-prose p {
    font-size: 16px;
  }

  .article-prose pre.shiki {
    padding: 14px 15px;
    border-radius: 12px;
  }

  .article-prose pre.shiki code {
    font-size: 14px;
    line-height: 1.42;
  }

  .article-prose h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .openclaw-figure-group {
    padding: 14px;
    border-radius: 14px;
  }

  .openclaw-figure-title {
    font-size: clamp(20px, 5.4vw, 25px);
  }

  .openclaw-compare-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .openclaw-compare-grid--reverse {
    grid-template-columns: 1fr;
  }

  .openclaw-photo-card figcaption {
    font-size: 13px;
    padding: 10px 12px 12px;
  }

  .openclaw-inline-note {
    font-size: 15px;
  }

  .books-wishlist-quote {
    padding: 14px 0 14px 14px;
  }

  .books-wishlist-quote p {
    font-size: 1.04rem;
  }

  .article-layout--techdebt .article-prose h3 {
    font-size: clamp(21px, 5.8vw, 27px);
  }

  .article-layout--techdebt .article-prose ul {
    font-size: 16px;
  }

  .youtube-preview-link {
    grid-template-columns: 1fr;
  }

  .youtube-preview-media {
    max-width: 260px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .section-featured-posts .post-card {
    max-width: 560px;
  }

  .featured-post-media {
    max-height: clamp(210px, 50vw, 300px);
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "social"
      "contact";
    gap: 26px;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .section-featured-posts .post-card {
    max-width: 520px;
  }

  .featured-post-media {
    max-height: clamp(200px, 58vw, 260px);
  }
}

@media (max-width: 320px) {
  .home-page .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(26px, 11vw, 34px);
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    font-size: clamp(15px, 4.6vw, 17px);
  }

  .main-nav {
    padding-inline: 8px;
  }

  .main-nav a {
    font-size: 14px;
    padding-inline: 8px;
  }

  .featured-copy,
  .featured-panel {
    padding: 20px;
  }

  .featured-copy h2 {
    font-size: clamp(22px, 9.2vw, 28px);
    overflow-wrap: anywhere;
  }

  .featured-panel h3 {
    font-size: clamp(20px, 8vw, 24px);
    overflow-wrap: anywhere;
  }

  .featured-copy .cta {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 220px) {
  .page-shell,
  .content-shell {
    padding-inline: 12px;
  }

  .work-card,
  .contribution-card,
  .post-card,
  .post-entry,
  .section-contact,
  .about-panel,
  .note-entry,
  .featured-copy,
  .featured-panel {
    padding: 16px;
  }

  .work-card h3,
  .contribution-card h3,
  .post-card h3,
  .post-entry h3,
  .about-panel h3,
  .featured-copy h2,
  .featured-panel h3,
  .section-head h2,
  .section-contact h2,
  .home-post-list .post-card h3 {
    font-size: clamp(20px, 10vw, 28px);
    overflow-wrap: anywhere;
  }

  .work-card ul,
  .featured-panel ul,
  .about-list {
    padding-left: 16px;
  }
}
