:root {
  --mds-bg: #080808;
  --mds-bg-soft: #111111;
  --mds-bg-elev: rgba(18, 18, 18, 0.78);
  --mds-surface-strong: rgba(245, 241, 232, 0.08);
  --mds-text: #f5f1e8;
  --mds-muted: rgba(245, 241, 232, 0.72);
  --mds-muted-soft: rgba(245, 241, 232, 0.5);
  --mds-border: rgba(245, 241, 232, 0.12);
  --mds-border-strong: rgba(245, 241, 232, 0.22);
  --mds-accent: #f1ece2;
  --mds-accent-soft: rgba(241, 236, 226, 0.14);
  --mds-track: rgba(255, 255, 255, 0.12);
  --mds-button-bg: #f1ece2;
  --mds-button-text: #080808;
  --blog-pill-solid-bg: #f1ece2;
  --blog-pill-solid-text: #080808;
  --mds-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  --mds-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] {
  --mds-bg: #f2efe8;
  --mds-bg-soft: #fbf8f1;
  --mds-bg-elev: rgba(255, 255, 255, 0.82);
  --mds-surface-strong: rgba(16, 16, 16, 0.06);
  --mds-text: #111111;
  --mds-muted: rgba(17, 17, 17, 0.72);
  --mds-muted-soft: rgba(17, 17, 17, 0.5);
  --mds-border: rgba(17, 17, 17, 0.12);
  --mds-border-strong: rgba(17, 17, 17, 0.22);
  --mds-accent: #111111;
  --mds-accent-soft: rgba(17, 17, 17, 0.08);
  --mds-track: rgba(17, 17, 17, 0.12);
  --mds-button-bg: #111111;
  --mds-button-text: #f2efe8;
  --blog-pill-solid-bg: #111111;
  --blog-pill-solid-text: #f2efe8;
  --mds-shadow: 0 28px 64px rgba(17, 17, 17, 0.14);
  --mds-shadow-soft: 0 20px 40px rgba(17, 17, 17, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(180deg, var(--mds-bg) 0%, color-mix(in srgb, var(--mds-bg) 92%, #000 8%) 100%);
  color: var(--mds-text);
  font-family: "Manrope", sans-serif;
  overflow-x: clip;
}

body.mds-menu-open {
  overflow: hidden;
}

.blog-page-view {
  position: relative;
}

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

.mds-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

body.mds-menu-open .mds-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mds-header-wrap {
  position: relative;
  z-index: 40;
  display: grid;
  min-width: 0;
}

.mds-header {
  position: sticky;
  top: 18px;
  z-index: 120;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "brand nav controls toggle";
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--mds-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mds-bg) 76%, transparent 24%);
  backdrop-filter: blur(18px);
  box-shadow: var(--mds-shadow-soft);
  overflow: visible;
}

.mds-header > * {
  min-width: 0;
}

.mds-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  width: clamp(164px, 26vw, 240px);
  height: 42px;
}

.mds-brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

img.mds-theme-image--dark {
  display: block;
}

img.mds-theme-image--light {
  display: none;
}

:root[data-theme="light"] img.mds-theme-image--dark {
  display: none;
}

:root[data-theme="light"] img.mds-theme-image--light {
  display: block;
}

.mds-menu {
  grid-area: nav;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mds-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mds-controls--desktop {
  grid-area: controls;
}

.mds-controls--mobile {
  display: none;
}

.mds-locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--mds-border);
  background: var(--mds-surface-strong);
}

.mds-locale-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--mds-muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.mds-locale-switch a:hover,
.mds-locale-switch a:focus-visible {
  background: var(--mds-accent-soft);
  color: var(--mds-text);
  outline: none;
}

.mds-locale-switch a.is-active,
.mds-locale-switch a.is-active:hover,
.mds-locale-switch a.is-active:focus-visible {
  background: var(--mds-button-bg);
  color: var(--mds-button-text);
  -webkit-text-fill-color: var(--mds-button-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mds-button-bg) 84%, transparent 16%);
}

.mds-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--mds-border);
  background: var(--mds-surface-strong);
}

.mds-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mds-muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mds-nav a:hover,
.mds-nav a:focus-visible,
.mds-nav a.is-active {
  background: var(--mds-accent-soft);
  color: var(--mds-text);
  outline: none;
}

.mds-nav a.mds-nav__cta {
  background: var(--mds-button-bg);
  color: var(--mds-button-text) !important;
  -webkit-text-fill-color: var(--mds-button-text);
  white-space: nowrap;
}

.mds-nav a.mds-nav__cta:hover,
.mds-nav a.mds-nav__cta:focus-visible {
  background: color-mix(in srgb, var(--mds-accent) 90%, var(--mds-text) 10%);
  color: var(--mds-button-text) !important;
  -webkit-text-fill-color: var(--mds-button-text);
}

.mds-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  min-width: 122px;
  border-radius: 999px;
  border: 1px solid var(--mds-border);
  background: var(--mds-surface-strong);
  color: var(--mds-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mds-theme-toggle:hover,
.mds-theme-toggle:focus-visible,
.mds-menu-toggle:hover,
.mds-menu-toggle:focus-visible {
  outline: none;
  border-color: var(--mds-border-strong);
  box-shadow: 0 0 0 3px var(--mds-accent-soft);
}

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

.mds-theme-toggle__track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--mds-track);
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.mds-theme-toggle__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mds-accent);
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

:root[data-theme="light"] .mds-theme-toggle__thumb {
  transform: translateX(18px);
}

.mds-theme-toggle__label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-width: 4.8rem;
  text-align: left;
}

.mds-menu-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 48px;
  height: 48px;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--mds-border);
  background: var(--mds-surface-strong);
  color: var(--mds-text);
  line-height: 0;
  touch-action: manipulation;
  cursor: pointer;
  flex-shrink: 0;
}

.mds-menu-icon,
.mds-menu-icon::before,
.mds-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mds-menu-icon {
  position: relative;
}

.mds-menu-icon::before,
.mds-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.mds-menu-icon::before {
  top: -6px;
}

.mds-menu-icon::after {
  top: 6px;
}

.mds-header.is-open .mds-menu-icon {
  background: transparent;
}

.mds-header.is-open .mds-menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.mds-header.is-open .mds-menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.blog-page,
.blog-page * {
  box-sizing: border-box;
}

.blog-page a {
  color: inherit;
}

.blog-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 18px 16px 72px;
  box-sizing: border-box;
}

.blog-page {
  display: grid;
  gap: 28px;
}

.blog-backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--mds-muted);
}

.blog-backlink::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--mds-border-strong);
}

.blog-article {
  display: grid;
  gap: 20px;
}

.blog-hero,
.blog-card,
.blog-gallery-panel {
  border-radius: 30px;
  border: 1px solid var(--mds-border);
  background:
    linear-gradient(155deg, var(--mds-accent-soft), transparent 40%),
    var(--mds-bg-elev);
  backdrop-filter: blur(14px);
  box-shadow: var(--mds-shadow-soft);
}

.blog-hero {
  position: relative;
  display: grid;
  gap: 24px;
  min-height: 440px;
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  isolation: isolate;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, var(--mds-border-strong), transparent);
  opacity: 0.9;
}

.blog-hero::after {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -84px;
  width: 240px;
  height: 240px;
  border-radius: 40px;
  border: 1px solid var(--mds-border);
  transform: rotate(32deg);
  opacity: 0.48;
}

.blog-hero__body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 66ch;
  padding-right: min(32vw, 360px);
}

.blog-hero__eyebrow,
.blog-card__kicker,
.blog-gallery__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mds-muted-soft);
}

.blog-hero__eyebrow::before,
.blog-gallery__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--mds-border-strong);
}

.blog-hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.blog-hero__intro {
  margin: 0;
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--mds-muted);
}

.blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-pill:hover,
.blog-pill:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.blog-pill--solid {
  background: var(--blog-pill-solid-bg);
  color: var(--blog-pill-solid-text) !important;
  -webkit-text-fill-color: var(--blog-pill-solid-text);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.blog-pill--ghost {
  border-color: var(--mds-border);
  background: transparent;
  color: var(--mds-text);
}

.blog-hero__media {
  position: absolute;
  top: 34px;
  right: 34px;
  width: min(34vw, 380px);
  aspect-ratio: 0.92;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--mds-border-strong);
  box-shadow: var(--mds-shadow);
  background: color-mix(in srgb, var(--mds-bg-soft) 86%, transparent 14%);
  z-index: 1;
}

.blog-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 18%, rgba(8, 8, 8, 0.24) 100%);
}

.blog-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-hero__media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 8px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--mds-bg) 74%, transparent 26%);
  color: #f5f1e8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.blog-article--variant-0 .blog-hero__media {
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
  transform: rotate(2deg);
}

.blog-article--variant-1 .blog-hero__media {
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  transform: rotate(-3deg);
}

.blog-article--variant-1 .blog-hero__media img {
  object-position: center 32%;
}

.blog-article--variant-2 .blog-hero__media {
  top: 52px;
  right: 24px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%, 0 82%);
  transform: rotate(4deg);
}

.blog-article--variant-2 .blog-hero__media img {
  object-position: center 26%;
}

.blog-article--variant-3 .blog-hero__media {
  top: 28px;
  right: 48px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
  transform: rotate(-5deg);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
  gap: 20px;
  align-items: start;
}

.blog-card,
.blog-gallery-panel {
  position: relative;
  overflow: hidden;
}

.blog-card::after,
.blog-gallery-panel::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -74px;
  width: 180px;
  height: 180px;
  border-radius: 30px;
  border: 1px solid var(--mds-border);
  transform: rotate(28deg);
  opacity: 0.44;
}

.blog-card {
  padding: clamp(24px, 3vw, 32px);
}

.blog-card__kicker {
  position: relative;
  z-index: 1;
  color: var(--mds-muted);
}

.blog-card__kicker::before {
  content: "";
  width: 0;
}

.blog-prose {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--mds-text);
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose > :last-child {
  margin-bottom: 0;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  margin: 1.8em 0 0.6em;
  font-family: "Sora", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.blog-prose h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.blog-prose h3 {
  font-size: 1.28rem;
}

.blog-prose p,
.blog-prose li,
.blog-prose blockquote {
  font-size: 1.02rem;
  line-height: 1.84;
  color: var(--mds-muted);
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote,
.blog-prose pre {
  margin: 0 0 1.15rem;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.25rem;
}

.blog-prose li + li {
  margin-top: 0.4rem;
}

.blog-prose a {
  color: var(--mds-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.blog-prose blockquote {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--mds-border-strong);
  border-radius: 18px;
  background: var(--mds-surface-strong);
}

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

.blog-prose pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--mds-bg-soft) 88%, transparent 12%);
  border: 1px solid var(--mds-border);
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.blog-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.blog-card--meta strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 7vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.blog-card--meta p,
.blog-card--meta span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: var(--mds-muted);
  line-height: 1.72;
}

.blog-inline-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 800;
  text-decoration: none;
}

.blog-inline-link::after {
  content: "->";
  transition: transform 0.2s ease;
}

.blog-inline-link:hover::after,
.blog-inline-link:focus-visible::after {
  transform: translateX(3px);
}

.blog-gallery-panel {
  padding: clamp(24px, 3vw, 32px);
}

.blog-gallery__header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.blog-gallery__header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.blog-gallery__header p {
  margin: 0;
  max-width: 52ch;
  color: var(--mds-muted);
  line-height: 1.72;
}

.blog-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.blog-gallery__item {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--mds-border);
  background: color-mix(in srgb, var(--mds-bg-soft) 88%, transparent 12%);
  box-shadow: var(--mds-shadow-soft);
}

.blog-gallery__item:nth-child(4n + 1),
.blog-gallery__item:nth-child(4n) {
  grid-column: span 7;
}

.blog-gallery__item:nth-child(4n + 2),
.blog-gallery__item:nth-child(4n + 3) {
  grid-column: span 5;
}

.blog-gallery__item img {
  width: 100%;
  aspect-ratio: 1.28;
  display: block;
  object-fit: cover;
}

.blog-gallery__item:nth-child(4n + 2) img,
.blog-gallery__item:nth-child(4n + 3) img {
  aspect-ratio: 1;
}

.blog-gallery__item figcaption {
  padding: 12px 14px 14px;
  color: var(--mds-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-hero--compact {
  min-height: 0;
}

.blog-hero--compact .blog-hero__body {
  max-width: 64ch;
  padding-right: 0;
}

.blog-directory-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-directory-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  min-height: 360px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--mds-border);
  background:
    linear-gradient(155deg, var(--mds-accent-soft), transparent 44%),
    color-mix(in srgb, var(--mds-bg-soft) 84%, transparent 16%);
  box-shadow: var(--mds-shadow-soft);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-directory-card::before {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -76px;
  width: 170px;
  height: 170px;
  border-radius: 30px;
  border: 1px solid var(--mds-border);
  transform: rotate(28deg);
  opacity: 0.42;
}

.blog-directory-card:hover,
.blog-directory-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--mds-border-strong);
  box-shadow: var(--mds-shadow);
  outline: none;
}

.blog-directory-media {
  position: relative;
  min-height: 176px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--mds-border);
  background:
    linear-gradient(140deg, var(--mds-accent-soft), transparent 62%),
    color-mix(in srgb, var(--mds-bg-soft) 82%, transparent 18%);
}

.blog-directory-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 18%, rgba(8, 8, 8, 0.3) 100%);
  pointer-events: none;
}

.blog-directory-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.blog-directory-card:hover .blog-directory-media > img,
.blog-directory-card:focus-visible .blog-directory-media > img {
  transform: scale(1.04);
}

.blog-directory-card--variant-0 .blog-directory-media > img {
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
  object-position: center 28%;
}

.blog-directory-card--variant-1 .blog-directory-media > img {
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  object-position: center 22%;
}

.blog-directory-card--variant-2 .blog-directory-media > img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%, 0 82%);
  object-position: center 40%;
}

.blog-directory-media--placeholder {
  display: grid;
  place-items: center;
}

.blog-directory-media__placeholder {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  place-self: center;
  width: min(164px, calc(100% - 40px));
  margin-inline: auto;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--mds-border-strong);
  background: color-mix(in srgb, var(--mds-accent-soft) 75%, transparent 25%);
  box-shadow: var(--mds-shadow-soft);
}

.blog-directory-media__placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-directory-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mds-muted-soft);
}

.blog-directory-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--mds-border-strong);
}

.blog-directory-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.42rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.blog-directory-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--mds-muted);
  line-height: 1.75;
}

.blog-directory-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-weight: 800;
  text-decoration: none;
}

.blog-directory-link::after {
  content: "->";
  transition: transform 0.2s ease;
}

.blog-directory-card:hover .blog-directory-link::after,
.blog-directory-card:focus-visible .blog-directory-link::after {
  transform: translateX(3px);
}

.blog-empty-state {
  display: grid;
  gap: 14px;
}

.blog-empty-state h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.blog-empty-state p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 56ch;
  color: var(--mds-muted);
  line-height: 1.75;
}

.blog-footer {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 16px 24px;
  box-sizing: border-box;
}

@media (max-width: 1080px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

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

  .blog-sidebar {
    position: static;
  }

  .blog-hero {
    min-height: 0;
  }

  .blog-hero__body {
    padding-right: 0;
    max-width: 100%;
  }

  .blog-hero__media {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 560px);
    margin-top: 6px;
  }

  .blog-article--variant-0 .blog-hero__media,
  .blog-article--variant-1 .blog-hero__media,
  .blog-article--variant-2 .blog-hero__media,
  .blog-article--variant-3 .blog-hero__media {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .mds-header {
    top: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    border-radius: 28px;
  }

  .mds-header.is-open {
    background: color-mix(in srgb, var(--mds-bg) 90%, transparent 10%);
  }

  .mds-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    justify-content: stretch;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s;
    z-index: 6;
  }

  .mds-header.is-open .mds-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mds-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    max-height: min(420px, calc(100dvh - 92px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    background: color-mix(in srgb, var(--mds-bg-soft) 92%, transparent 8%);
    box-shadow: var(--mds-shadow-soft);
  }

  .mds-nav a {
    padding: 9px 12px;
    text-align: left;
    border: 1px solid var(--mds-border);
    background: color-mix(in srgb, var(--mds-bg-soft) 80%, transparent 20%);
  }

  .mds-controls--desktop {
    display: none;
  }

  .mds-controls--mobile {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--mds-border);
  }

  .mds-controls--mobile .mds-locale-switch {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    padding: 3px;
  }

  .mds-controls--mobile .mds-locale-switch a {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 9px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .mds-controls--mobile .mds-theme-toggle {
    width: 100%;
    min-width: 0;
    padding: 8px 11px;
    gap: 8px;
    justify-content: space-between;
  }

  .mds-controls--mobile .mds-theme-toggle__label {
    display: inline;
    min-width: 0;
    font-size: 0.74rem;
    text-align: right;
  }

  .mds-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .mds-header {
    top: 10px;
    padding: 10px 12px;
    gap: 8px;
  }

  .mds-brand {
    width: clamp(124px, 36vw, 156px);
    height: 26px;
  }

  .mds-controls--mobile .mds-theme-toggle__label {
    font-size: 0.75rem;
  }

  .mds-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mds-nav {
    padding: 7px;
    border-radius: 20px;
  }

  .mds-nav a {
    padding: 8px 11px;
    font-size: 0.86rem;
  }

  .mds-controls--mobile .mds-theme-toggle {
    padding: 7px 10px;
  }

  .blog-shell {
    padding: 14px 10px 52px;
  }

  .blog-footer {
    padding: 0 10px 18px;
  }

  .blog-hero,
  .blog-card,
  .blog-gallery-panel {
    border-radius: 24px;
  }

  .blog-hero {
    padding: 22px;
  }

  .blog-hero__media {
    width: 100%;
    max-width: none;
    border-radius: 22px;
  }

  .blog-gallery {
    grid-template-columns: 1fr;
  }

  .blog-directory-grid {
    grid-template-columns: 1fr;
  }

  .blog-gallery__item,
  .blog-gallery__item:nth-child(4n + 1),
  .blog-gallery__item:nth-child(4n),
  .blog-gallery__item:nth-child(4n + 2),
  .blog-gallery__item:nth-child(4n + 3) {
    grid-column: auto;
  }

  .blog-directory-card {
    min-height: 0;
    padding: 20px;
  }

  .blog-gallery__item img,
  .blog-gallery__item:nth-child(4n + 2) img,
  .blog-gallery__item:nth-child(4n + 3) img {
    aspect-ratio: 1.15;
  }
}

@media (max-width: 420px) {
  .mds-header {
    padding: 12px;
    gap: 8px;
  }

  .mds-brand {
    width: clamp(104px, 34vw, 126px);
  }

  .mds-menu-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .mds-controls--mobile .mds-locale-switch a {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .mds-controls--mobile .mds-theme-toggle {
    min-width: 110px;
    padding: 7px 9px;
  }

  .mds-controls--mobile .mds-theme-toggle__label {
    font-size: 0.7rem;
  }
}
