/* 0xKEV — dark glassmorphism personal blog (mockup-aligned) */
:root {
  --bg-deep: #060412;
  --bg-mid: #0c0820;
  --bg-nebula: #140a2e;
  --glass: rgba(255, 255, 255, 0.085);
  --glass-hover: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-bright: rgba(220, 200, 255, 0.4);
  --text: #f5f3fc;
  --text-muted: #b4acc8;
  --text-dim: #8a82a8;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.55);
  --featured: #22d3ee;
  --featured-glow: rgba(34, 211, 238, 0.65);
  --nav-pill: rgba(22, 16, 48, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

[data-theme="light"] {
  /* L4 Daytime Soft Nebula */
  --bg-deep: #f4f0fb;
  --bg-mid: #ebe4f7;
  --bg-nebula: #e4dcf4;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-hover: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-bright: rgba(180, 160, 230, 0.55);
  --text: #1e1b3a;
  --text-muted: #5a5578;
  --text-dim: #7a7498;
  --accent: #8b7cf6;
  --accent-glow: rgba(167, 139, 250, 0.45);
  --featured: #22d3ee;
  --featured-glow: rgba(34, 211, 238, 0.4);
  --nav-pill: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Deep-space void — black-violet, quiet so canvas stars/meteors pop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 65% 45% at 50% 8%, rgba(55, 30, 110, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 12% 70%, rgba(25, 20, 70, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 88% 45%, rgba(35, 25, 90, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 100% 95% at 50% 45%, transparent 28%, rgba(0, 0, 4, 0.78) 100%),
    linear-gradient(168deg, #010008 0%, #03010e 38%, #050216 68%, #010009 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.04;
}

/* Daytime Soft Nebula — periwinkle / pink / creamy white */
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(196, 181, 253, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(249, 168, 212, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 55% 70%, rgba(165, 180, 252, 0.4) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 10% 75%, rgba(233, 213, 255, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(254, 205, 211, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 40% 40%, rgba(255, 255, 255, 0.7) 0%, transparent 60%),
    linear-gradient(160deg, #faf8ff 0%, #f0ebfa 35%, #ebe4f6 65%, #f5f0fc 100%);
}

[data-theme="light"] body::after {
  mix-blend-mode: soft-light;
  opacity: 0.05;
}

[data-theme="light"] #starfield {
  opacity: 0 !important;
  visibility: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

/* ——— Header: light, not a heavy sticky bar ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.15rem 1.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border-bottom: none;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--text);
  flex-shrink: 0;
  text-shadow: none;
}

.logo:hover {
  opacity: 0.88;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.45rem 0.4rem 0.6rem;
  background: var(--nav-pill);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(100, 60, 200, 0.12);
}



.nav-pill a {
  position: relative;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-pill a:hover {
  color: var(--text);
}

.nav-pill a.is-active {
  color: var(--text);
}

.nav-pill a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.22rem;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  margin-left: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .logo {
  text-shadow: none;
}

[data-theme="light"] .nav-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 24px rgba(100, 80, 160, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

[data-theme="light"] .theme-toggle {
  border: 1px solid rgba(140, 120, 180, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #5a5578;
  box-shadow: 0 1px 4px rgba(100, 80, 160, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
  background: #fff;
  color: #1e1b3a;
  border-color: rgba(140, 120, 180, 0.35);
}

[data-theme="light"] .nav-pill a.is-active::after {
  background: #1e1b3a;
  box-shadow: none;
}

[data-theme="light"] .hero-title {
  color: #0a0a0a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #0a0a0a;
  filter: none;
  text-shadow: none;
}

[data-theme="light"] .hero::before {
  display: none;
}

[data-theme="light"] .hero-divider {
  background: rgba(10, 10, 10, 0.22);
  box-shadow: none;
}

[data-theme="light"] .cta {
  color: #0a0a0a;
  background: transparent;
  border: 1px solid rgba(10, 10, 10, 0.85);
  box-shadow: none;
}

[data-theme="light"] .cta::before {
  display: none;
}

[data-theme="light"] .cta:hover {
  color: #fff;
  background: #0a0a0a;
  border-color: #0a0a0a;
  box-shadow: none;
  filter: none;
}

[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 32px rgba(100, 80, 160, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

[data-theme="light"] .card:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(196, 181, 253, 0.7);
  box-shadow:
    0 14px 40px rgba(100, 80, 160, 0.14),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

[data-theme="light"] .card::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 181, 253, 0.65),
    rgba(249, 168, 212, 0.5),
    transparent
  );
  box-shadow: 0 0 14px 3px rgba(196, 181, 253, 0.2);
}

[data-theme="light"] .tag {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(180, 160, 220, 0.35);
  color: #5a5578;
}

[data-theme="light"] .about-card,
[data-theme="light"] .article-body {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 32px rgba(100, 80, 160, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

[data-theme="light"] .article-body pre {
  background: rgba(245, 240, 255, 0.9);
  border-color: rgba(180, 160, 220, 0.35);
}

[data-theme="light"] .article-body code {
  background: rgba(196, 181, 253, 0.25);
}

/* ——— Layout ——— */
.wrap {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

main {
  padding-bottom: 4rem;
}

/* ——— Hero ——— */
.hero {
  text-align: center;
  padding: 7.25rem 1rem 4.5rem;
  position: relative;
  overflow: visible;
}

/* No radial bloom — SpaceX minimal */
.hero::before {
  display: none;
  content: none;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  margin-bottom: 0;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  transform: none;
  filter: none;
  text-shadow: none;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

/* Flat thin hairline under title — SpaceX minimal */
.hero-divider {
  display: block;
  width: min(120px, 28%);
  height: 1px;
  margin: 1.5rem auto 1.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  position: relative;
}

.hero-divider::after {
  display: none;
  content: none;
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 2.15rem;
  max-width: 28rem;
  margin-inline: auto;
  font-weight: 400;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 2.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 2px;
  box-shadow: none;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-arrow {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  opacity: 0.92;
  transition: transform 0.22s ease;
}

.cta::before {
  display: none;
  content: none;
}

.cta:hover {
  transform: translateY(-1px);
  filter: none;
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
  box-shadow: none;
}

.cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* ——— Cards ——— */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  padding-bottom: 3.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.55rem 1.4rem;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(100, 60, 180, 0.08);
  transition: transform 0.25s ease, background 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  min-height: 248px;
}

/* Subtle colored soft glow at top of each card */
.card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 140, 255, 0.55),
    rgba(100, 180, 255, 0.45),
    transparent
  );
  box-shadow: 0 0 18px 4px rgba(120, 100, 220, 0.2);
  pointer-events: none;
  opacity: 0.9;
}

.card:nth-child(2)::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 160, 255, 0.5),
    rgba(160, 120, 255, 0.45),
    transparent
  );
}

.card:nth-child(3)::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 120, 255, 0.5),
    rgba(120, 140, 255, 0.4),
    transparent
  );
}

.card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  border-color: var(--glass-border-bright);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(139, 92, 246, 0.15);
}

.card--featured {
  padding-left: 1.7rem;
}

.card--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #67e8f9 0%, #22d3ee 50%, #06b6d4 100%);
  box-shadow:
    0 0 10px var(--featured-glow),
    0 0 22px var(--featured-glow),
    0 0 36px rgba(34, 211, 238, 0.35);
  z-index: 1;
}

.card-meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.card-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.2rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.card-arrow {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
}

.card:hover .card-arrow {
  color: var(--text);
  transform: translateX(3px);
}

/* ——— Page headings (blog / about) ——— */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

/* Blog list */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 3rem;
}

.posts-list .card {
  min-height: auto;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
}

.posts-list .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.posts-list .card-footer {
  margin-top: 0.9rem;
}

/* About */
.about-card {
  padding: 2rem 2.25rem;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 12px 40px rgba(0, 0, 0, 0.3);
  max-width: 40rem;
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 140, 255, 0.5), transparent);
  pointer-events: none;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: var(--text);
  font-weight: 600;
}

/* ——— Article (post pages) ——— */
.article {
  max-width: 42rem;
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.article-meta .tag {
  text-transform: none;
  letter-spacing: 0;
}

.article h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.article-body {
  padding: 1.85rem 1.9rem;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
  overflow: hidden;
}

.article-body::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 140, 255, 0.45), transparent);
  pointer-events: none;
}

.article-body p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.15rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  background: rgba(139, 92, 246, 0.18);
  border-radius: 4px;
  color: var(--text);
}

.article-body pre {
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.article-body pre code {
  padding: 0;
  background: none;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

/* ——— Footer ——— */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 2.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-footer a:hover {
  color: var(--text-muted);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .hero {
    padding: 5rem 0.5rem 3.25rem;
  }

  .hero::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.9rem 1rem 0.6rem;
    flex-wrap: wrap;
  }

  .nav-pill {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding: 0.3rem 0.35rem;
  }

  .nav-pill a {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: clamp(3.25rem, 16vw, 4.75rem);
  }

  .hero {
    padding: 4.25rem 0.5rem 2.75rem;
  }

  .cta {
    padding: 0.9rem 2rem;
    font-size: 1.02rem;
  }

  .posts-list .card {
    flex-direction: column;
  }

  .article-body {
    padding: 1.35rem 1.2rem;
  }

  .about-card {
    padding: 1.5rem 1.25rem;
  }
}

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

  .card,
  .cta,
  .card-arrow {
    transition: none;
  }

  .card:hover,
  .cta:hover {
    transform: none;
  }
}


/* Libraries strip on homepage */
.libs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.15rem auto 1.85rem;
  position: relative;
  z-index: 1;
}
.libs-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
}
.libs-chip:hover {
  border-color: var(--glass-border-bright);
  background: var(--glass-hover);
}
.libs-chip--muted {
  color: var(--text-muted);
  font-weight: 500;
}
