:root {
  --sky-500: #027fff;
  --sky-400: #3399ff;
  --bg: #ffffff;
  --fg: #0d0d0d;
  --muted: #6b7280;
  --soft: #f7f9fb;
  --border: #e6e8eb;
  --dark-bg: #0d1424;
  --dark-panel: #111a2d;
  --focus: #027fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(2, 127, 255, 0.36);
  outline-offset: 3px;
}

.screen-reader-text {
  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:focus {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--fg);
  border-radius: 10px;
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  min-height: 55vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(135deg, rgba(2, 127, 255, 0.16), rgba(255, 255, 255, 0.82) 42%, rgba(51, 153, 255, 0.14)),
    rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(2, 127, 255, 0.16);
  box-shadow: 0 12px 36px rgba(2, 127, 255, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.admin-bar .site-header {
  top: 32px;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
}

.site-logo .custom-logo,
.site-logo .fallback-logo {
  width: auto;
  height: auto;
  max-height: 28px;
}

.pill-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.08);
}

.pill-nav-list,
.mobile-nav-list {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-nav-list a {
  display: block;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pill-nav-list a:hover,
.pill-nav-list a:focus-visible,
.pill-nav-list .current-menu-item > a,
.pill-nav-list .current_page_item > a {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signin-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.signin-link:hover {
  color: var(--fg);
}

.btn-primary,
.btn-dark,
.btn-white,
.btn-outline,
.btn-ghost,
.search-form button,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  column-gap: 6px;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.btn-arrow {
  display: inline-block;
  margin-left: 2px;
  line-height: 1;
}

.btn-primary,
.btn-dark {
  color: #fff;
  background: var(--fg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  padding: 9px 20px;
}

.btn-dark,
.btn-white,
.btn-outline,
.btn-ghost {
  padding: 12px 26px;
}

.btn-primary:hover,
.btn-dark:hover,
.btn-white:hover {
  opacity: 0.88;
}

.btn-outline {
  color: var(--fg);
  background: transparent;
  border: 2px solid var(--fg);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-white {
  color: var(--fg);
  background: #fff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle span[aria-hidden="true"] {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--fg);
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  flex-direction: column;
  padding: 14px 24px 8px;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 0;
  color: var(--fg);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px 18px;
}

.blog-hero,
.archive-hero,
.post-hero,
.not-found-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(2, 127, 255, 0.06) 0%, rgba(255, 255, 255, 0) 62%),
    #fff;
}

.blog-hero {
  padding: 96px 0 40px;
}

.archive-hero {
  padding: 88px 0 50px;
}

.post-hero {
  padding: 56px 0 32px;
}

.not-found-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 96px 0;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 58% at 50% 36%, #000 35%, transparent 100%);
}

.hero-content,
.post-hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-500);
}

.blog-hero h1,
.archive-hero h1,
.not-found-hero h1 {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
}

.blog-hero p,
.archive-hero p,
.not-found-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  width: 20px;
  height: 32px;
  padding-top: 6px;
  margin: 28px auto 0;
  border: 2px solid rgba(13, 13, 13, 0.2);
  border-radius: 999px;
}

.scroll-indicator span {
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.35);
  animation: scrollbounce 1.2s ease-in-out infinite;
}

@keyframes scrollbounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 44px;
}

.filters a {
  padding: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filters a:hover,
.filters a.active {
  color: #fff;
  background: var(--fg);
  border-color: var(--fg);
}

.featured-card {
  margin-bottom: 56px;
}

.featured-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.featured-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.18);
}

.thumb {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.featured-card .thumb {
  min-height: 320px;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.featured-link:hover .thumb img,
.post-card-link:hover .thumb img {
  transform: scale(1.04);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  margin-bottom: 20px;
  color: var(--sky-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(2, 127, 255, 0.1);
  border-radius: 999px;
}

.featured-body h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}

.excerpt {
  color: var(--muted);
}

.featured-body .excerpt {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.compact-meta {
  justify-content: flex-start;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: var(--sky-500);
}

.large-avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 56px;
}

.archive-grid {
  padding-top: 40px;
}

.post-card {
  min-width: 0;
}

.post-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.post-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.18);
}

.post-card .thumb {
  aspect-ratio: 16 / 10;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-card .tag {
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 10px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.post-card .excerpt {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}

.card-footer .read {
  color: var(--sky-500);
  font-weight: 600;
  white-space: nowrap;
}

.navigation.pagination {
  margin: 8px 0 96px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  border-color: var(--fg);
  background: var(--fg);
}

.closing-cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--soft);
}

.closing-cta h2,
.cta-dark h2 {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
}

.closing-cta p,
.cta-dark p {
  max-width: 480px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 17px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sky-500);
}

.post-hero h1 {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 600;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.breadcrumb a:hover,
.breadcrumb .current {
  color: var(--fg);
}

.hero-image {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--soft);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.25);
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-section {
  padding: 64px 0;
}

.lead {
  margin: 0 0 56px;
  color: #1a1d24;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 500;
}

.entry-content {
  color: #374151;
  font-size: 17px;
  line-height: 1.75;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content blockquote,
.entry-content pre,
.entry-content figure {
  margin-top: 0;
  margin-bottom: 24px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #1a1d24;
  font-weight: 600;
  line-height: 1.25;
}

.entry-content h2 {
  margin: 48px 0 20px;
  font-size: 28px;
}

.entry-content h3 {
  margin: 36px 0 16px;
  font-size: 22px;
}

.entry-content h4 {
  margin: 28px 0 12px;
  font-size: 18px;
}

.entry-content a {
  color: var(--sky-500);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
}

.entry-content li + li {
  margin-top: 10px;
}

.entry-content blockquote {
  padding: 6px 0 6px 24px;
  color: #1a1d24;
  font-size: 21px;
  font-style: italic;
  font-weight: 500;
  border-left: 3px solid var(--sky-500);
}

.entry-content pre {
  overflow-x: auto;
  padding: 24px;
  color: #f5f7fa;
  font-size: 13.5px;
  line-height: 1.6;
  background: #0d0d0d;
  border-radius: 16px;
}

.entry-content code {
  padding: 2px 5px;
  color: #0f172a;
  background: #eef2f7;
  border-radius: 6px;
}

.entry-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.entry-content img {
  height: auto;
  border-radius: 16px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.entry-content th {
  color: var(--fg);
  background: var(--soft);
}

.alignwide,
.alignfull {
  max-width: 1120px;
  margin-right: calc((720px - 1120px) / 2);
  margin-left: calc((720px - 1120px) / 2);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.share-row span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.share-row a {
  padding: 8px 14px;
  color: var(--sky-500);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(2, 127, 255, 0.22);
  border-radius: 999px;
  background: rgba(2, 127, 255, 0.08);
}

.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  margin-top: 64px;
  border-radius: 16px;
  background: var(--soft);
}

.author-box h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.author-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.related-posts {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
  background: var(--soft);
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 40px;
}

.related-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
}

.related-head a {
  color: var(--sky-500);
  font-size: 14px;
  font-weight: 600;
}

.related-grid {
  padding-bottom: 0;
}

.cta-dark {
  padding: 0 0 96px;
}

.cta-dark-box {
  padding: 72px 40px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0a0e15 100%);
}

.cta-dark h2 {
  color: #fff;
  font-size: 36px;
}

.cta-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.empty-state {
  padding: 96px 24px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
}

.empty-state p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.empty-state .btn-outline {
  margin-top: 26px;
}

.search-form {
  display: flex;
  width: min(100%, 520px);
  gap: 10px;
  margin: 28px auto 0;
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.search-form button {
  padding: 0 20px;
  color: #fff;
  background: var(--fg);
}

.error-code {
  display: block;
  margin-bottom: 12px;
  color: var(--sky-500);
  font-size: 84px;
  line-height: 1;
  font-weight: 800;
}

.site-footer {
  color: #fff;
  background: var(--dark-bg);
}

.stats-strip {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-blurb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-wordmark {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.footer-wordmark span {
  color: var(--sky-400);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
}

.stat-label {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.footer-links {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 24px;
}

.footer-intro p {
  max-width: 280px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

.footer-cta {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--sky-400);
  border: 1px solid rgba(2, 127, 255, 0.25);
  background: rgba(2, 127, 255, 0.1);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.footer-group h2 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-group ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-group li {
  margin-bottom: 12px;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-group a:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.comments-area {
  padding: 0 24px 72px;
}

.comments-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
}

.comment-list {
  padding: 0;
  margin: 0 0 32px;
  list-style: none;
}

.comment-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.comment-form .submit {
  padding: 12px 22px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: var(--fg);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .site-logo {
    min-width: auto;
  }

  .pill-nav-list a {
    padding: 8px 12px;
  }
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions .signin-link,
  .nav-actions .btn-primary {
    display: none;
  }

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

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

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .alignwide,
  .alignfull {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow {
    padding-right: 20px;
    padding-left: 20px;
  }

  .blog-hero,
  .archive-hero {
    padding: 72px 0 36px;
  }

  .blog-hero h1,
  .archive-hero h1,
  .not-found-hero h1 {
    font-size: 34px;
  }

  .blog-hero p,
  .archive-hero p,
  .not-found-hero p {
    font-size: 16px;
  }

  .post-hero h1 {
    font-size: 30px;
  }

  .featured-body {
    padding: 28px;
  }

  .featured-body h2,
  .related-head h2 {
    font-size: 24px;
  }

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

  .closing-cta h2,
  .cta-dark h2 {
    font-size: 30px;
  }

  .cta-dark-box {
    padding: 48px 24px;
  }

  .image-frame {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .lead {
    font-size: 18px;
  }

  .entry-content {
    font-size: 16px;
  }

  .entry-content blockquote {
    font-size: 18px;
  }

  .author-box {
    align-items: flex-start;
  }

  .stats-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .site-logo .custom-logo,
  .site-logo .fallback-logo {
    height: auto;
    max-height: 28px;
  }

  .mobile-actions,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 32px;
  }

  .filters a {
    white-space: nowrap;
  }

  .featured-card .thumb {
    min-height: 230px;
  }

  .post-card-body {
    padding: 20px;
  }

  .post-meta {
    align-items: center;
    gap: 8px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .stat {
    text-align: left;
  }

  .error-code {
    font-size: 64px;
  }
}

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