/* ================================================
   The .NET Blog — dotnet-minimal theme
   Minimal · Techy · Classy
   ================================================ */

:root {
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1100px;
  --max-width-wide: 1100px;
}

/* ── Light Theme ────────────────────────────── */
[data-theme="light"] {
  --bg: #f8f9fb;
  --bg-card: #ffffff;
  --bg-hover: #f0f1f5;
  --border: #e2e4ea;
  --border-light: #d1d5de;
  --accent: #6c5ce7;
  --accent-2: #0891b2;
  --accent-glow: rgba(108, 92, 231, 0.1);
  --text: #334155;
  --text-muted: #64748b;
  --text-dim: #475569;
  --heading: #0f172a;
  --code-bg: #f1f2f6;
  --tag-bg: rgba(108, 92, 231, 0.08);
  --tag-border: rgba(108, 92, 231, 0.2);
  --timeline-dot: #6c5ce7;
  --header-bg: rgba(248, 249, 251, 0.85);
}

/* ── Dark Theme ─────────────────────────────── */
[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-card: #13161b;
  --bg-hover: #1a1e26;
  --border: #1e2330;
  --border-light: #252c3a;
  --accent: #7c6cfa;
  --accent-2: #56d1f0;
  --accent-glow: rgba(124, 108, 250, 0.18);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --heading: #f8fafc;
  --code-bg: #0b0e14;
  --tag-bg: rgba(124, 108, 250, 0.12);
  --tag-border: rgba(124, 108, 250, 0.3);
  --timeline-dot: #7c6cfa;
  --header-bg: rgba(13, 15, 18, 0.85);
}

/* ── Reset & Base ───────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--accent-2);
}

/* ── Typography ─────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1.2em;
  color: var(--text);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--code-bg);
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-dim);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

ul,
ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 0.3em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Layout ─────────────────────────────────── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: 0 1.5rem; */
}

.container--wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  /* padding: 0 1.5rem; */
}

.main-content {
  flex: 1;
  padding: 3rem 0 5rem;
}

/* ── Navigation ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: 0 1.5rem; */
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover {
  color: var(--accent);
}

.site-logo .logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-bottom: 0px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: all .2s;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading);
  background: var(--bg-hover);
}

/* ── Theme Toggle ────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
  line-height: 1;
  margin-top: 2px;
}

.theme-toggle:hover {
  color: var(--heading);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.theme-toggle .icon-moon {
  display: block;
}

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

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

/* ── Hamburger / Burger Button ───────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color .2s, background .2s;
}

.nav-burger:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero / Home Page ───────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  /* border-bottom: 1px solid var(--border); */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  /* background: radial-gradient(circle, rgba(124,108,250,0.07) 0%, transparent 70%); */
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero h1 .accent-2 {
  color: var(--accent-2);
}

.typewriter-line {
  white-space: nowrap;
}

.typewriter-cursor {
  color: var(--accent);
  font-weight: 300;
  animation: tw-blink 0.8s step-end infinite;
}

@keyframes tw-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  transition: all .2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #6a5ae0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 108, 250, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  color: var(--heading);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── Section Headers ─────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-header--author-posts {
  margin-top: 40px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.section-link:hover {
  color: var(--accent-2);
}

/* ── Post Cards ──────────────────────────────── */
.posts-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-card {
  background: var(--bg-card);
  padding: 1.8rem 2rem;
  transition: background .2s;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}

.post-card:hover {
  background: var(--bg-hover);
}

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

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-author-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
}
.post-author-tag:hover {
  text-decoration: underline;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  transition: color .2s;
}

.post-card:hover .post-card-title {
  color: var(--accent);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

/* ── Tags ────────────────────────────────────── */
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 3px;
  padding: 2px 8px;
  transition: all .2s;
  letter-spacing: 0.03em;
}

.tag:hover {
  background: rgba(124, 108, 250, 0.22);
  color: #a89dfc;
}

.tag--secondary {
  color: var(--accent-2);
  background: rgba(86, 209, 240, 0.08);
  border-color: rgba(86, 209, 240, 0.25);
}

.tag--secondary:hover {
  background: rgba(86, 209, 240, 0.15);
}

/* ── Post Arrow ───────────────────────────────── */
.post-card-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding-top: 1.6rem;
  transition: color .2s, transform .2s;
}

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

/* ── Load More ───────────────────────────────── */
.post-card--hidden {
  display: none;
}

.load-more-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.load-more-btn {
  min-width: 200px;
}

/* ── Single Post Page ────────────────────────── */
.post-header {
  padding: 0rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.post-header-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.post-header h1 {
  margin-bottom: 1rem;
}

.post-header-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  /* max-width: 620px; */
  line-height: 1.65;
}

.post-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.post-translations {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-translations-label {
  margin-right: 0.3rem;
}

.translation-link {
  color: var(--accent);
  text-decoration: none;
}

.translation-link:hover {
  text-decoration: underline;
}

.post-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.post-share-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.share-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 2px 8px;
  transition: all .2s;
}

.share-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.post-body {
  max-width: var(--max-width);
}

.post-body h2 {
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  margin: 2rem 0 0.75rem;
}

.post-body p {
  margin-bottom: 1.3em;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.3em;
}

.post-body img {
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid var(--border);
}

/* ── Author Info (in post) ───────────────────── */
.post-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.post-author-card .author-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.post-author-card .author-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.post-author-info {
  min-width: 0;
}

.post-author-info .author-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.post-author-info .author-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
}

.post-author-info .author-name-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-author-info .author-name-link:hover {
  color: var(--accent);
}

.post-author-info .author-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.post-author-info .author-bio {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 0.45rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.post-author-socials {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.post-author-info .author-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.4rem;
  display: inline-block;
}

.post-source-link-wrap {
  margin-top: 0;
  text-align: right;
}

.post-source-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-source-link:hover {
  color: var(--accent);
}

/* ── Authors Page ────────────────────────────── */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .2s;
}

.author-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.author-card-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.author-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.author-card .avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.author-card-name {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

.author-card-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.author-card-bio {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.author-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 3px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.author-post-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-post-count span {
  color: var(--accent);
}

/* ── Author Single Page ───────────────────────── */
.author-hero {
  padding: 3.5rem 0 2.5rem;
  /* border-bottom: 1px solid var(--border); */
  margin-bottom: 3rem;
}

.author-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.author-hero-avatar {
  /* width: 120px;
  height: 120px; */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-light);
  flex-shrink: 0;
}

.author-hero-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.author-hero-content {}

.author-hero-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.3rem;
}

.author-hero-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.author-hero-bio {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 100%;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  white-space: pre-line;
}

.author-hero-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Tags Page ────────────────────────────────── */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem 0;
}

.tags-cloud .tag {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.tags-cloud .tag--lg {
  font-size: 1rem;
  padding: 8px 18px;
}

.tags-cloud .tag--xl {
  font-size: 1.15rem;
  padding: 10px 22px;
}

/* ── Events / Timeline ────────────────────────── */
.timeline-page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.timeline-page-header .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 95%);
}

.timeline-year {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-year-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: absolute;
  left: -2.5rem;
  top: 0;
  writing-mode: unset;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--timeline-dot);
  transition: background .2s, box-shadow .2s;
}

.timeline-item:hover::before {
  background: var(--timeline-dot);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-item--featured::before {
  width: 16px;
  height: 16px;
  left: -2.50rem;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(124, 108, 250, 0.4);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  transition: all .2s;
}

.timeline-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

.timeline-item--featured .timeline-card {
  border-color: rgba(124, 108, 250, 0.3);
}

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.timeline-card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.timeline-card-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.timeline-card-title a {
  color: inherit;
}

.timeline-card-title a:hover {
  color: var(--accent);
}

.timeline-card-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.timeline-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.event-type-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.event-type-conference {
  background: rgba(86, 209, 240, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(86, 209, 240, 0.25);
}

.event-type-meetup {
  background: rgba(124, 108, 250, 0.12);
  color: var(--accent);
  border: 1px solid rgba(124, 108, 250, 0.25);
}

.event-type-release {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.event-type-webinar {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.event-type-workshop {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* ── Home 70/30 Split Layout ────────────────── */
.home-split {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3.5rem;
  align-items: start;
}

.home-events-col {
  position: sticky;
  top: 2rem;
}

.home-timeline {
  position: relative;
  /* padding-left: 1.8rem; */
}

.home-timeline-item {
  position: relative;
  margin-bottom: 1.2rem;
}

.home-timeline-item:hover::before {
  background: var(--timeline-dot);
  box-shadow: 0 0 10px var(--accent-glow);
}

.home-timeline-item--featured::before {
  width: 12px;
  height: 12px;
  left: -1.7rem;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(124, 108, 250, 0.4);
}

.home-timeline-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  transition: all .2s;
}

.home-timeline-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

.home-timeline-item--featured .home-timeline-card {
  border-color: rgba(124, 108, 250, 0.3);
}

.home-timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.3rem;
}

.home-timeline-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.25rem;
  line-height: 1.4;
}

.home-timeline-card:hover .home-timeline-title {
  color: var(--accent);
}

.home-timeline-location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 960px) {
  .home-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-events-col {
    position: static;
  }
}

/* ── Page Header (generic) ──────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ── Pagination ───────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all .2s;
}

.pagination a:hover {
  color: var(--heading);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.pagination .active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.footer-copy a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: all .2s;
}

.footer-links a:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Utility ──────────────────────────────────── */
.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent);
}

.text-accent2 {
  color: var(--accent-2);
}

.font-mono {
  font-family: var(--font-mono);
}

.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: .5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* ── Syntax Highlighting (Chroma) ─────────────── */
.highlight {
  margin: 1.5rem 0;
}

.highlight pre {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
}

/* ── Light theme syntax (github) ── */
[data-theme="light"] .chroma {
  color: #1f2328;
  background-color: var(--code-bg);
}

[data-theme="light"] .chroma .err {
  color: #f6f8fa;
  background-color: #82071e
}

[data-theme="light"] .chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit
}

[data-theme="light"] .chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0
}

[data-theme="light"] .chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0
}

[data-theme="light"] .chroma .hl {
  background-color: #dedede
}

[data-theme="light"] .chroma .lnt {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #7f7f7f
}

[data-theme="light"] .chroma .ln {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #7f7f7f
}

[data-theme="light"] .chroma .line {
  display: flex
}

[data-theme="light"] .chroma .k {
  color: #cf222e
}

[data-theme="light"] .chroma .kc {
  color: #cf222e
}

[data-theme="light"] .chroma .kd {
  color: #cf222e
}

[data-theme="light"] .chroma .kn {
  color: #cf222e
}

[data-theme="light"] .chroma .kp {
  color: #cf222e
}

[data-theme="light"] .chroma .kr {
  color: #cf222e
}

[data-theme="light"] .chroma .kt {
  color: #cf222e
}

[data-theme="light"] .chroma .na {
  color: #1f2328
}

[data-theme="light"] .chroma .nc {
  color: #1f2328
}

[data-theme="light"] .chroma .no {
  color: #0550ae
}

[data-theme="light"] .chroma .nd {
  color: #0550ae
}

[data-theme="light"] .chroma .ni {
  color: #6639ba
}

[data-theme="light"] .chroma .nl {
  color: #900;
  font-weight: bold
}

[data-theme="light"] .chroma .nn {
  color: #24292e
}

[data-theme="light"] .chroma .nx {
  color: #1f2328
}

[data-theme="light"] .chroma .nt {
  color: #0550ae
}

[data-theme="light"] .chroma .nb {
  color: #6639ba
}

[data-theme="light"] .chroma .bp {
  color: #6a737d
}

[data-theme="light"] .chroma .nv {
  color: #953800
}

[data-theme="light"] .chroma .vc {
  color: #953800
}

[data-theme="light"] .chroma .vg {
  color: #953800
}

[data-theme="light"] .chroma .vi {
  color: #953800
}

[data-theme="light"] .chroma .vm {
  color: #953800
}

[data-theme="light"] .chroma .nf {
  color: #6639ba
}

[data-theme="light"] .chroma .fm {
  color: #6639ba
}

[data-theme="light"] .chroma .s {
  color: #0a3069
}

[data-theme="light"] .chroma .sa {
  color: #0a3069
}

[data-theme="light"] .chroma .sb {
  color: #0a3069
}

[data-theme="light"] .chroma .sc {
  color: #0a3069
}

[data-theme="light"] .chroma .dl {
  color: #0a3069
}

[data-theme="light"] .chroma .sd {
  color: #0a3069
}

[data-theme="light"] .chroma .s2 {
  color: #0a3069
}

[data-theme="light"] .chroma .se {
  color: #0a3069
}

[data-theme="light"] .chroma .sh {
  color: #0a3069
}

[data-theme="light"] .chroma .si {
  color: #0a3069
}

[data-theme="light"] .chroma .sx {
  color: #0a3069
}

[data-theme="light"] .chroma .sr {
  color: #0a3069
}

[data-theme="light"] .chroma .s1 {
  color: #0a3069
}

[data-theme="light"] .chroma .ss {
  color: #032f62
}

[data-theme="light"] .chroma .m {
  color: #0550ae
}

[data-theme="light"] .chroma .mb {
  color: #0550ae
}

[data-theme="light"] .chroma .mf {
  color: #0550ae
}

[data-theme="light"] .chroma .mh {
  color: #0550ae
}

[data-theme="light"] .chroma .mi {
  color: #0550ae
}

[data-theme="light"] .chroma .il {
  color: #0550ae
}

[data-theme="light"] .chroma .mo {
  color: #0550ae
}

[data-theme="light"] .chroma .o {
  color: #0550ae
}

[data-theme="light"] .chroma .ow {
  color: #0550ae
}

[data-theme="light"] .chroma .p {
  color: #1f2328
}

[data-theme="light"] .chroma .c {
  color: #57606a
}

[data-theme="light"] .chroma .ch {
  color: #57606a
}

[data-theme="light"] .chroma .cm {
  color: #57606a
}

[data-theme="light"] .chroma .c1 {
  color: #57606a
}

[data-theme="light"] .chroma .cs {
  color: #57606a
}

[data-theme="light"] .chroma .cp {
  color: #57606a
}

[data-theme="light"] .chroma .cpf {
  color: #57606a
}

[data-theme="light"] .chroma .gd {
  color: #82071e;
  background-color: #ffebe9
}

[data-theme="light"] .chroma .ge {
  font-style: italic
}

[data-theme="light"] .chroma .gi {
  color: #116329;
  background-color: #dafbe1
}

[data-theme="light"] .chroma .go {
  color: #1f2328
}

[data-theme="light"] .chroma .gl {
  text-decoration: underline
}

/* ── Dark theme syntax (nord) ── */
[data-theme="dark"] .chroma {
  color: #d8dee9;
  background-color: var(--code-bg);
}

[data-theme="dark"] .chroma .err {
  color: #bf616a
}

[data-theme="dark"] .chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit
}

[data-theme="dark"] .chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0
}

[data-theme="dark"] .chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0
}

[data-theme="dark"] .chroma .hl {
  background-color: #424853
}

[data-theme="dark"] .chroma .lnt {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #6c6f74
}

[data-theme="dark"] .chroma .ln {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #6c6f74
}

[data-theme="dark"] .chroma .line {
  display: flex
}

[data-theme="dark"] .chroma .k {
  color: #81a1c1;
  font-weight: bold
}

[data-theme="dark"] .chroma .kc {
  color: #81a1c1;
  font-weight: bold
}

[data-theme="dark"] .chroma .kd {
  color: #81a1c1;
  font-weight: bold
}

[data-theme="dark"] .chroma .kn {
  color: #81a1c1;
  font-weight: bold
}

[data-theme="dark"] .chroma .kp {
  color: #81a1c1
}

[data-theme="dark"] .chroma .kr {
  color: #81a1c1;
  font-weight: bold
}

[data-theme="dark"] .chroma .kt {
  color: #81a1c1
}

[data-theme="dark"] .chroma .na {
  color: #8fbcbb
}

[data-theme="dark"] .chroma .nc {
  color: #8fbcbb
}

[data-theme="dark"] .chroma .no {
  color: #8fbcbb
}

[data-theme="dark"] .chroma .nd {
  color: #d08770
}

[data-theme="dark"] .chroma .ni {
  color: #d08770
}

[data-theme="dark"] .chroma .ne {
  color: #bf616a
}

[data-theme="dark"] .chroma .nl {
  color: #8fbcbb
}

[data-theme="dark"] .chroma .nn {
  color: #8fbcbb
}

[data-theme="dark"] .chroma .py {
  color: #8fbcbb
}

[data-theme="dark"] .chroma .nt {
  color: #81a1c1
}

[data-theme="dark"] .chroma .nb {
  color: #81a1c1
}

[data-theme="dark"] .chroma .bp {
  color: #81a1c1
}

[data-theme="dark"] .chroma .nf {
  color: #88c0d0
}

[data-theme="dark"] .chroma .fm {
  color: #88c0d0
}

[data-theme="dark"] .chroma .s {
  color: #a3be8c
}

[data-theme="dark"] .chroma .sa {
  color: #a3be8c
}

[data-theme="dark"] .chroma .sb {
  color: #a3be8c
}

[data-theme="dark"] .chroma .sc {
  color: #a3be8c
}

[data-theme="dark"] .chroma .dl {
  color: #a3be8c
}

[data-theme="dark"] .chroma .sd {
  color: #616e87
}

[data-theme="dark"] .chroma .s2 {
  color: #a3be8c
}

[data-theme="dark"] .chroma .se {
  color: #ebcb8b
}

[data-theme="dark"] .chroma .sh {
  color: #a3be8c
}

[data-theme="dark"] .chroma .si {
  color: #a3be8c
}

[data-theme="dark"] .chroma .sx {
  color: #a3be8c
}

[data-theme="dark"] .chroma .sr {
  color: #ebcb8b
}

[data-theme="dark"] .chroma .s1 {
  color: #a3be8c
}

[data-theme="dark"] .chroma .ss {
  color: #a3be8c
}

[data-theme="dark"] .chroma .m {
  color: #b48ead
}

[data-theme="dark"] .chroma .mb {
  color: #b48ead
}

[data-theme="dark"] .chroma .mf {
  color: #b48ead
}

[data-theme="dark"] .chroma .mh {
  color: #b48ead
}

[data-theme="dark"] .chroma .mi {
  color: #b48ead
}

[data-theme="dark"] .chroma .il {
  color: #b48ead
}

[data-theme="dark"] .chroma .mo {
  color: #b48ead
}

[data-theme="dark"] .chroma .o {
  color: #81a1c1
}

[data-theme="dark"] .chroma .ow {
  color: #81a1c1;
  font-weight: bold
}

[data-theme="dark"] .chroma .p {
  color: #eceff4
}

[data-theme="dark"] .chroma .c {
  color: #616e87;
  font-style: italic
}

[data-theme="dark"] .chroma .ch {
  color: #616e87;
  font-style: italic
}

[data-theme="dark"] .chroma .cm {
  color: #616e87;
  font-style: italic
}

[data-theme="dark"] .chroma .c1 {
  color: #616e87;
  font-style: italic
}

[data-theme="dark"] .chroma .cs {
  color: #616e87;
  font-style: italic
}

[data-theme="dark"] .chroma .cp {
  color: #5e81ac;
  font-style: italic
}

[data-theme="dark"] .chroma .cpf {
  color: #5e81ac;
  font-style: italic
}

[data-theme="dark"] .chroma .gd {
  color: #bf616a
}

[data-theme="dark"] .chroma .ge {
  font-style: italic
}

[data-theme="dark"] .chroma .gr {
  color: #bf616a
}

[data-theme="dark"] .chroma .gh {
  color: #88c0d0;
  font-weight: bold
}

[data-theme="dark"] .chroma .gi {
  color: #a3be8c
}

[data-theme="dark"] .chroma .gp {
  color: #4c566a;
  font-weight: bold
}

[data-theme="dark"] .chroma .gs {
  font-weight: bold
}

[data-theme="dark"] .chroma .gu {
  color: #88c0d0;
  font-weight: bold
}

[data-theme="dark"] .chroma .gt {
  color: #bf616a
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {

  .container,
  .container--wide {
    padding: 0 1rem;
  }

  /* Header: logo centered, burger on the right */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 0 1rem;
    justify-content: flex-end;
    align-items: center;
    position: relative;
  }

  .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-burger {
    display: flex;
  }

  /* Nav links hidden by default — revealed when .open is toggled */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    padding: 0.5rem 0 0.75rem;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--radius);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }

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

  .post-card-arrow {
    display: none;
  }

  .author-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-hero-inner {
    flex-direction: column;
  }

  .timeline {
    padding-left: 1.8rem;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-item::before {
    left: -1.55rem;
  }

  .timeline-item--featured::before {
    left: -1.75rem;
  }
}

/* ── Language Selector ──────────────────────── */
.lang-selector-wrap {
  position: relative;
  margin-top: 5px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-toggle .icon-lang {
  flex-shrink: 0;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 150px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  list-style: none;
  padding: .3rem 0;
  z-index: 200;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown li a {
  display: block;
  padding: .4rem .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}

.lang-dropdown li a:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.lang-dropdown li.lang-active a {
  color: var(--accent);
  font-weight: 600;
}

/* ── Post Translations (updated) ─────────── */
.post-translations {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-translations-label {
  margin-right: .3rem;
}

.translation-link {
  color: var(--accent);
}

.translation-link:hover {
  color: var(--accent-2);
}