/* ═══════════════════════════════════════════════════════
   INK — Architect of Alignment. Unified brand.
   ═══════════════════════════════════════════════════════ */

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

/* --- Design Tokens (Light default) --- */
:root {
  --bg: #FFFFFF;
  --bg-elevated: #FAFAFA;
  --surface: #F8F8F8;
  --surface-hover: #F0F0F0;
  --border: #E8E8E8;
  --border-hover: #D0D0D0;

  --text: #0A0A0A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-accent: #0A0A0A;

  --accent: #1A1A1A;
  --accent-dim: rgba(26, 26, 26, 0.06);
  --accent-hover: rgba(26, 26, 26, 0.12);

  --card-shadow: rgba(0, 0, 0, 0.06);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --max-w: 660px;
  --max-w-wide: 1200px;
  --header-h: 64px;

  --thumb-architecture: linear-gradient(135deg, #2D3436 0%, #434343 100%);
  --thumb-automation: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
  --thumb-ai: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  --thumb-default: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-elevated: #111111;
  --surface: #141414;
  --surface-hover: #1A1A1A;
  --border: #222222;
  --border-hover: #333333;

  --text: #F0F0F0;
  --text-secondary: #AAAAAA;
  --text-muted: #666666;
  --text-accent: #F0F0F0;

  --accent: #E0E0E0;
  --accent-dim: rgba(224, 224, 224, 0.08);
  --accent-hover: rgba(224, 224, 224, 0.15);

  --card-shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ========== HEADER (Frosted Glass) ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(10, 10, 10, 0.85);
}

.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo with image */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-img {
  height: 46px !important;
  width: auto !important;
  max-width: none;
  border-radius: 5px;
  flex-shrink: 0;
}

.site-logo .logo-img.logo-light { display: block !important; }
.site-logo .logo-img.logo-dark { display: none !important; }
[data-theme="dark"] .site-logo .logo-img.logo-light { display: none !important; }
[data-theme="dark"] .site-logo .logo-img.logo-dark { display: block !important; }

.logo-sep {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 46px;
  margin: 0 10px;
  user-select: none;
  opacity: 0.35;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 46px;
  color: var(--text);
  white-space: nowrap;
}

.logo-dot {
  color: var(--text-muted);
}

/* Nav — Pill Buttons */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.nav-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-accent);
  background: var(--accent-dim);
  border-color: var(--border);
}

.nav-btn-filled {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
}

.nav-btn-filled:hover {
  opacity: 0.85;
  color: var(--bg) !important;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.lang-switch:hover {
  color: var(--text-accent);
  border-color: var(--border-hover);
  background: var(--accent-hover);
}

.theme-toggle {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-muted);
  padding: 0;
}

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

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

.icon-moon { display: none; }
.icon-moon path { fill: currentColor; stroke: none; }
.icon-sun { display: block; }
.icon-sun circle { fill: currentColor; }
.icon-sun line { fill: none; }

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

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== MAIN ========== */
main {
  flex: 1;
  margin-top: var(--header-h);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HERO ========== */
.hero {
  padding: 6rem 0 3rem;
  max-width: 720px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-accent);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* ========== DIVIDER ========== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ========== THUMBNAIL SYSTEM ========== */
.thumb-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

/* ========== FEATURED CARD ========== */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 3rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--card-shadow);
  border-color: var(--accent);
}

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

.featured-thumb {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-thumb[data-category="Architecture"] { background: var(--thumb-architecture); }
.featured-thumb[data-category="Automation"] { background: var(--thumb-automation); }
.featured-thumb[data-category="AI"] { background: var(--thumb-ai); }
.featured-thumb:not([data-category="Architecture"]):not([data-category="Automation"]):not([data-category="AI"]) { background: var(--thumb-default); }

.featured-thumb-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.featured-thumb.has-image {
  background: var(--surface);
}

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

.featured-thumb .thumb-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.15);
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-accent);
  margin-bottom: 0.75rem;
  transition: color 0.15s ease;
}

.featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  object-fit: cover;
}

.featured-author span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.reading-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ========== POST LIST (with thumbnails) ========== */
.post-list {
  padding: 0 0 6rem;
}

.post-list-header {
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-list-header h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Post Card — horizontal with thumb */
.post-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 1rem;
  background: var(--bg);
  align-items: stretch;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--card-shadow);
  border-color: var(--accent);
}

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

/* Post thumbnail */
.post-item-thumb {
  width: 160px;
  min-height: 110px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-item-thumb[data-category="Architecture"] { background: var(--thumb-architecture); }
.post-item-thumb[data-category="Automation"] { background: var(--thumb-automation); }
.post-item-thumb[data-category="AI"] { background: var(--thumb-ai); }
.post-item-thumb:not([data-category="Architecture"]):not([data-category="Automation"]):not([data-category="AI"]) { background: var(--thumb-default); }

.post-item-thumb.has-image {
  background: var(--surface);
}

.post-item-thumb .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

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

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

.post-item-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.post-item-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
  margin-bottom: 0.3rem;
}

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

/* ========== ARCHIVE ========== */
.archive-page {
  padding: 6rem 0;
}

.archive-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-accent);
  margin-bottom: 3rem;
}

.archive-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding: 1.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Archive post items — simpler, no thumbnail */
.archive-page .post-item {
  display: block;
  padding: 1.25rem 1.5rem;
}

.archive-page .post-item-thumb {
  display: none;
}

/* ========== SINGLE POST ========== */
.post-header {
  padding: 6rem 0 2rem;
}

.post-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.post-header .back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.post-header .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.post-header .post-meta span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-header .post-meta .tag {
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-accent);
  margin-bottom: 0.75rem;
}

.post-header .post-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.post-hero-image {
  margin: 2rem 0 2.5rem;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== POST CONTENT ========== */
.post-content {
  padding-bottom: 3rem;
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-accent);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-accent);
  margin: 2.5rem 0 0.5rem;
  line-height: 1.35;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26, 26, 26, 0.3);
  transition: text-decoration-color 0.15s ease;
}

.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content strong {
  color: var(--text-accent);
  font-weight: 600;
}

.post-content em {
  color: var(--text-secondary);
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.post-content li::marker {
  color: var(--accent);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-dim);
  border-radius: 0 12px 12px 0;
}

.post-content blockquote p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  color: var(--text);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.post-content pre {
  position: relative;
  margin: 2rem 0;
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.65;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

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

/* ========== TABLE OF CONTENTS ========== */
.toc {
  margin: 0 0 3rem;
  padding: 1.25rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.toc nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc nav ul li {
  margin-bottom: 0.35rem;
}

.toc nav ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toc nav ul li a:hover {
  color: var(--accent);
}

.toc nav ul ul {
  padding-left: 1.25rem;
  margin-top: 0.35rem;
}

/* ========== SHARE ========== */
.share-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.share-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.share-links {
  display: flex;
  gap: 0.5rem;
}

.share-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.15s ease;
}

.share-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ========== NEWSLETTER ========== */
.newsletter {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.newsletter h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 0.4rem;
}

.newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  opacity: 0.85;
}

.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-msg {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* ========== CONTINUE EXPLORING ========== */
.continue-exploring {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.continue-exploring h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 1.25rem;
}

.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s ease;
}

.explore-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ========== POST FOOTER ========== */
.post-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 5rem;
}

.post-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.post-footer-nav .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

/* ========== ABOUT ========== */
.about-page {
  padding: 6rem 0;
}

.about-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-accent);
  margin-bottom: 2rem;
}

.about-content {
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ========== FOOTER (minimal row) ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

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

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

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
  display: flex;
  align-items: center;
}

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

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0;
}

.pagination a, .pagination span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

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

/* ========== READING PROGRESS ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--text);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ========== COPY BUTTON ========== */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0;
}

.post-content pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 300;
}

.skip-link:focus {
  top: 0;
  color: var(--bg);
}

/* ========== BANGLA FONT ========== */
[lang="bn"] body,
[lang="bn"] .post-content,
[lang="bn"] .post-item-excerpt,
[lang="bn"] .about-content {
  font-family: 'Noto Sans Bengali', var(--font-sans);
  font-size: 17.5px;
  line-height: 1.9;
}

[lang="bn"] h1, [lang="bn"] h2, [lang="bn"] h3,
[lang="bn"] .hero h1, [lang="bn"] .post-item-title,
[lang="bn"] .post-header h1, [lang="bn"] .archive-page h1,
[lang="bn"] .featured-title {
  font-family: 'Noto Sans Bengali', var(--font-serif);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.04s; }
.fade-in:nth-child(3) { animation-delay: 0.08s; }
.fade-in:nth-child(4) { animation-delay: 0.12s; }
.fade-in:nth-child(5) { animation-delay: 0.16s; }
.fade-in:nth-child(6) { animation-delay: 0.2s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 1.25rem;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .nav-btn {
    padding: 0.3rem 0.75rem;
  }

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

  .hero {
    padding: 4rem 0 2rem;
  }

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

  .featured-thumb {
    aspect-ratio: 16 / 9;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .post-header {
    padding: 4rem 0 1.5rem;
  }

  .post-item-title {
    font-size: 1.1rem;
  }

  .post-item-thumb {
    width: 100px;
    min-height: 80px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .post-footer-nav {
    flex-direction: column;
  }

  .explore-links {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.75rem;
    transition: right 0.25s ease;
    z-index: 105;
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .nav-btn {
    padding: 0.5rem 1.25rem;
  }

  .post-item-thumb {
    width: 80px;
    min-height: 70px;
  }

  .thumb-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15.5px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .post-header h1 {
    font-size: 1.6rem;
  }

  .lang-switch {
    font-size: 0.6rem;
    padding: 4px 7px;
  }

  .featured-title {
    font-size: 1.3rem;
  }
}
