@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

:root {
  --brand-navy: #071426;
  --brand-navy-2: #0b1b32;
  --brand-blue: #2563eb;
  --brand-blue-bright: #3b82f6;
  --brand-blue-soft: #eff6ff;
  --brand-surface: #f6f8fc;
  --brand-text: #111827;
  --brand-text-muted: #64748b;
  --brand-border: #e2e8f0;
  --status-success: #16a34a;
  --status-warning: #f59e0b;
  --status-error: #dc2626;
  --radius: 0.875rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--brand-surface);
  color: var(--brand-text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, .brand-name {
  font-family: Manrope, Inter, Arial, sans-serif;
}
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
.container { width: min(calc(100% - 2rem), 1280px); margin-inline: auto; }
.site-shell { display: flex; min-height: 100vh; flex-direction: column; }
.main-content { min-height: 65vh; flex: 1; padding-bottom: 5rem; }
.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;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.625rem 0.875rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.2);
}
.skip-link:focus { top: 1rem; }
.icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.close-icon { transform: rotate(45deg); }

.topbar { display: none; background: var(--brand-navy); color: #cbd5e1; }
.topbar-row {
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}
.topbar nav { display: flex; gap: 1rem; }
.topbar a:hover { color: #fff; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}
.header-row { display: flex; min-height: 4rem; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.brand-mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--brand-blue);
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
}
.brand-name {
  color: var(--brand-navy);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}
.brand-name > span { color: var(--brand-blue); }
.brand-name small {
  display: block;
  margin-top: 0.2rem;
  color: var(--brand-text-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
}
.primary-nav { display: none; align-items: center; gap: 0.25rem; }
.primary-nav a {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}
.primary-nav a:hover { background: #f1f5f9; }
.primary-nav a.is-active { background: var(--brand-blue-soft); color: var(--brand-blue); }
.header-search {
  position: relative;
  display: none;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
}
.header-search .icon, .mobile-search .icon, .blog-main-search > .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  color: var(--brand-text-muted);
}
.header-search input, .mobile-search input {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.625rem;
  outline: 0;
  background: var(--brand-surface);
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-size: 0.875rem;
}
.header-search input:focus, .mobile-search input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-actions form { margin: 0; }
.icon-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  background: #fff;
  transition: background-color 0.15s;
}
.icon-button:hover { background: #f1f5f9; }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }
.desktop-only { display: none; }
.mobile-menu-button { display: inline-flex; }
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; }
.mobile-menu-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2, 6, 23, 0.55); }
.mobile-menu aside {
  position: absolute;
  right: 0;
  top: 0;
  width: min(20rem, 88vw);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
}
.mobile-menu-header {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-border);
  padding: 0.75rem 1rem;
}
.mobile-menu-body { padding: 1rem; }
.mobile-search { position: relative; }
.mobile-menu-body nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
.mobile-menu-body nav a { border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-weight: 500; }
.mobile-menu-body nav a:hover { background: #f1f5f9; }
.mobile-menu-body nav a.is-active { background: var(--brand-blue-soft); color: var(--brand-blue); }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--brand-border);
  padding-top: 1rem;
}

.button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.button-primary { background: var(--brand-blue); color: #fff; }
.button-primary:hover { background: #1d4ed8; }
.button-outline { border-color: var(--brand-border); background: #fff; }
.button-outline:hover { background: #f8fafc; }
.button-block { width: 100%; }
.link-button { border: 0; background: transparent; color: var(--brand-blue); }

.blog-page { padding-top: 2.5rem; }
.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  color: var(--brand-text-muted);
  font-size: 0.875rem;
}
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs .icon { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; }
.breadcrumbs span:last-child {
  overflow: hidden;
  color: var(--brand-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-intro { margin: 2.5rem auto 0; max-width: 42rem; text-align: center; }
.blog-intro h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1.15; }
.blog-intro p { margin: 0.75rem 0 0; color: var(--brand-text-muted); }
.blog-main-search {
  position: relative;
  display: flex;
  max-width: 40rem;
  margin: 2rem auto 0;
}
.blog-main-search input {
  width: 100%;
  height: 2.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.625rem 0 0 0.625rem;
  outline: 0;
  background: #fff;
  padding: 0.625rem 0.75rem 0.625rem 2.35rem;
}
.blog-main-search input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.blog-main-search .button { min-height: 2.75rem; border-radius: 0 0.625rem 0.625rem 0; }
.category-tabs {
  display: flex;
  max-width: 100%;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 2rem;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.category-tabs a {
  flex: 0 0 auto;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.category-tabs a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.category-tabs a.is-active { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.blog-results { margin-top: 2rem; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-heading h2 { margin: 0.25rem 0 0; font-size: 1.5rem; }
.section-heading select {
  height: 2.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  outline: 0;
  background: #fff;
  padding: 0 2rem 0 0.75rem;
}
.eyebrow {
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.featured-post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.featured-post-card:hover, .post-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.featured-post-card h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.5rem);
  line-height: 1.3;
}
.featured-post-card:hover h2, .post-card:hover h3 { color: var(--brand-blue); }
.featured-post-card > p { max-width: 48rem; margin: 0; color: var(--brand-text-muted); }
.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card h3 { margin: 0; font-size: 1rem; line-height: 1.45; }
.post-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--brand-text-muted);
  font-size: 0.875rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--brand-text-muted);
  font-size: 0.75rem;
}
.post-meta > span { display: inline-flex; align-items: center; gap: 0.375rem; }
.post-meta .icon { width: 0.875rem; height: 0.875rem; }
.empty-state, .callout, .alert {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 2.5rem;
  text-align: center;
}
.empty-state { margin-top: 2rem; }
.empty-state h2, .empty-state h3 { margin: 1rem 0 0; }
.empty-state p { margin: 0.5rem 0 0; color: var(--brand-text-muted); }
.empty-state-icon { width: 2rem; height: 2rem; color: var(--brand-blue); }
.alert { margin-top: 1rem; padding: 0.875rem 1rem; text-align: left; }
.alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.pagination { display: flex; justify-content: center; gap: 0.375rem; margin-top: 2rem; }
.pagination a {
  display: inline-flex;
  width: 2.375rem;
  height: 2.375rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
}
.pagination a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pagination a.active { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }

.archive-page, .author-page { padding-top: 2.5rem; }
.archive-header {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
}
.archive-header h1 { margin: 0.375rem 0 0; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.archive-header p { margin: 0.5rem 0 0; color: var(--brand-text-muted); }
.archive-list { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.archive-list section {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}
.archive-list h2 { margin: 0 0 0.75rem; }
.archive-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--brand-border);
  padding: 0.75rem 0;
}
.archive-list strong { color: var(--brand-blue); font-size: 0.875rem; }
.author-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
}
.author-profile h1 { margin: 0.25rem 0; }
.author-profile p, .author-profile small { color: var(--brand-text-muted); }

.article { width: min(calc(100% - 2rem), 1280px); margin-inline: auto; padding-top: 2.5rem; }
.article > .breadcrumbs { margin-bottom: 2rem; }
.article-header { max-width: 47.5rem; margin-inline: auto; }
.article-header h1 {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.25;
}
.lead { margin: 1rem 0 0; color: var(--brand-text-muted); line-height: 1.65; }
.author-line { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.author-line > div:last-child { min-width: 0; }
.author-line a, .author-line small { display: block; }
.author-line a { font-weight: 600; }
.author-line small { margin-top: 0.125rem; color: var(--brand-text-muted); font-size: 0.75rem; }
.avatar {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 700;
}
.avatar-large { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; }
.article-cover {
  width: min(100%, 60rem);
  aspect-ratio: 16 / 9;
  margin: 2rem auto 0;
  border-radius: 1rem;
  object-fit: cover;
}
.article-layout {
  display: grid;
  max-width: 65rem;
  grid-template-columns: minmax(0, 47.5rem);
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto 0;
}
.article-content { min-width: 0; font-size: 1rem; line-height: 1.75; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { margin: 2rem 0 0.75rem; font-size: 1.25rem; line-height: 1.4; }
.article-content h3 { margin: 1.5rem 0 0.625rem; font-size: 1.0625rem; }
.article-content a { color: var(--brand-blue); text-decoration: underline; }
.article-content img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 0.75rem;
  background: var(--brand-navy);
  color: #e2e8f0;
  padding: 1rem;
}
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { border: 1px solid var(--brand-border); padding: 0.625rem; }
.article-aside { display: none; }
.sticky-card {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  color: var(--brand-text-muted);
  font-size: 0.875rem;
}
.sticky-card strong { color: var(--brand-text); }
.sticky-card nav { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.sticky-card a { display: block; color: var(--brand-blue); font-weight: 600; }
.sticky-card .toc-child { padding-left: 0.75rem; font-size: 0.8125rem; font-weight: 500; }
.sources, .faq { margin-top: 2.5rem; border-top: 1px solid var(--brand-border); padding-top: 1rem; }
.sources li + li { margin-top: 0.5rem; }
.faq details { border-bottom: 1px solid var(--brand-border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag-cloud a {
  border-radius: 0.5rem;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}
.related, .comments { width: min(calc(100% - 2rem), 67.5rem); margin: 3.5rem auto 0; }
.related .post-grid { grid-template-columns: 1fr; }
.comments > h2 { font-size: 1.5rem; }
.comments > article {
  display: flex;
  gap: 0.875rem;
  border-bottom: 1px solid var(--brand-border);
  padding: 1.125rem 0;
}
.comments > article > div:last-child { min-width: 0; flex: 1; }
.comments article header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--brand-text-muted);
  font-size: 0.875rem;
}
.comments article header strong { color: var(--brand-text); }
.comments form, .auth-card, .form-shell {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
}
.comments form { margin-top: 1.5rem; }
label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; }
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.625rem;
  outline: 0;
  background: #fff;
  padding: 0.625rem 0.75rem;
}
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):hover {
  border-color: #94a3b8;
}
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.header-search input, .mobile-search input { padding-left: 2.25rem; }
.blog-main-search input { padding-left: 2.35rem; }
textarea { resize: vertical; }
.comments form .button, .auth-card .button { margin-top: 1rem; }
.validation { display: block; margin-top: 0.25rem; color: var(--status-error); font-size: 0.75rem; }

.auth-shell {
  display: grid;
  min-height: 36rem;
  place-items: center;
  width: min(calc(100% - 2rem), 32rem);
  margin-inline: auto;
  padding-block: 2.5rem;
}
.auth-card { width: 100%; padding: 1.5rem; box-shadow: var(--shadow); }
.auth-card h1 { margin: 1.5rem 0 0; font-size: 1.5rem; }
.auth-card > p { margin: 0.375rem 0 0; color: var(--brand-text-muted); }
.auth-card form { margin-top: 1.5rem; }
.auth-card form label:not(:first-child) { margin-top: 1rem; }
.security-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 800;
}
.notice.success { color: var(--status-success); }

.site-footer { margin-top: auto; border-top: 1px solid var(--brand-border); background: var(--brand-navy); color: #cbd5e1; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name small { color: #94a3b8; }
.footer-brand p { max-width: 25rem; margin: 0.75rem 0 0; color: #94a3b8; font-size: 0.875rem; line-height: 1.6; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; }
.footer-grid nav strong { color: #fff; font-family: Manrope, Inter, sans-serif; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--brand-navy-2); }
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  text-align: center;
}
.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  border-top: 1px solid var(--brand-border);
  background: #fff;
}
.mobile-bottom-nav a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.625rem 0.25rem;
  color: var(--brand-text-muted);
  font-size: 0.6875rem;
}
.mobile-bottom-nav a.is-active { color: var(--brand-blue); }
.mobile-bottom-nav .icon { width: 1.25rem; height: 1.25rem; }

@media (min-width: 640px) {
  .featured-post-card { padding: 2rem; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom .container { flex-direction: row; text-align: left; }
  .auth-card { padding: 2rem; }
}

@media (min-width: 1024px) {
  .container { width: min(calc(100% - 8rem), 1280px); }
  .topbar { display: block; }
  .topbar-row { display: flex; }
  .primary-nav { display: flex; }
  .header-search { display: block; }
  .desktop-only { display: inline-flex; }
  .mobile-menu-button, .mobile-bottom-nav { display: none; }
  .main-content { padding-bottom: 0; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article { width: min(calc(100% - 8rem), 1280px); }
  .article-layout { max-width: 47.5rem; grid-template-columns: minmax(0, 47.5rem); }
  .related, .comments { width: min(calc(100% - 8rem), 67.5rem); }
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

@media (max-width: 639px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading form, .section-heading select { width: 100%; }
  .author-profile { align-items: flex-start; }
  .blog-main-search .button { padding-inline: 0.875rem; }
  .empty-state, .callout { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
