/* ==============================
   SITE HEADER
============================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.site-header--scrolled {
  background: rgba(10,10,15,0.97);
  border-color: var(--border-light);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__text {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--text);
  line-height: 1;
}
.site-logo__fire {
  color: var(--accent);
  text-shadow: var(--glow);
}
.site-logo__sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 4px;
  align-self: center;
}

/* Primary Nav */
.site-nav { flex: 1; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav__list .menu-item a,
.site-nav__link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 14px;
  transition: color var(--transition);
  display: block;
  position: relative;
  text-decoration: none;
}
.site-nav__list .menu-item a::after,
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.site-nav__list .menu-item a:hover,
.site-nav__link:hover { color: var(--text); }
.site-nav__list .menu-item a:hover::after,
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
  color: var(--accent);
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition);
}
.header-search-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 9px 10px;
  transition: border-color var(--transition);
}
.mobile-menu-toggle:hover { border-color: var(--accent); }
.mobile-menu-toggle__bar {
  display: block;
  width: 20px; height: 1px;
  background: var(--text-muted);
  transition: all 0.3s ease;
}
.mobile-menu-toggle.is-open .mobile-menu-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle.is-open .mobile-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-open .mobile-menu-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Search Drawer */
.search-drawer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  animation: fadeInUp 0.3s ease;
}
.search-drawer[hidden] { display: none; }
.search-drawer__form {
  display: flex;
  gap: 0;
}
.search-drawer__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 2px;
  padding: 12px 20px;
  outline: none;
  transition: border-color var(--transition);
}
.search-drawer__input:focus { border-color: var(--accent); }
.search-drawer__input::placeholder { color: var(--text-dim); }
.search-drawer__btn { flex-shrink: 0; }

/* ==============================
   HERO
============================== */
.home-main { padding-top: 64px; }

.hero-wrapper {
  background: var(--bg);
  width: 100%;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__left {
  padding: 80px clamp(60px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.container-half { padding-left: clamp(60px, 6vw, 100px); }

.hero__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(255,75,43,0.06) 0%, transparent 70%);
}
.hero__glow--2 {
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(255,107,53,0.04) 0%, transparent 70%);
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
  box-shadow: var(--glow);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.hero__title-fire {
  display: block;
  color: var(--accent);
  text-shadow: var(--glow-strong);
}
.hero__title-se {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,232,240,0.25);
}

.hero__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 420px;
  margin: 28px 0;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.hero__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.hero__tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Terminal card */
.hero__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(60px, 6vw, 100px);
  overflow: hidden;
  background: var(--surface);
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,75,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,75,43,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  pointer-events: none;
}

.terminal-card {
  width: min(420px, 90%);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
  position: relative;
  z-index: 2;
}
.terminal-card__bar {
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot--red    { background: #ff5f56; }
.terminal-dot--yellow { background: #ffbd2e; }
.terminal-dot--green  { background: #27c93f; }
.terminal-card__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 1px;
}
.terminal-card__body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  color: var(--text-muted);
}
.t-prompt  { color: var(--accent); }
.t-cmd     { color: var(--text); }
.t-comment { color: var(--text-dim); }
.t-string  { color: #7ec8a0; }
.t-num     { color: #c9a6f5; }
.t-output  { color: #6ba4d8; margin-left: 16px; display: block; }
.t-cursor  {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  box-shadow: var(--glow);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ==============================
   STATS BAR
============================== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat-item {
  background: var(--surface);
  text-align: center;
  padding: 28px 20px;
}
.stat-item__num {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: var(--glow);
  line-height: 1;
}
.stat-item__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ==============================
   HOME SECTIONS
============================== */
.home-section { padding: 80px 0; }
.home-section--latest { background: var(--bg); }
.home-section--cats   { background: var(--surface); padding: 60px 0; }
.home-section--popular { background: var(--bg); }

/* Posts Grid */
.posts-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.posts-grid--home    { grid-template-columns: repeat(3, 1fr); }
.posts-grid--archive { grid-template-columns: repeat(3, 1fr); }
.posts-grid--related { grid-template-columns: repeat(3, 1fr); }

/* Categories showcase */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cat-showcase {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-showcase::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.cat-showcase:hover { background: var(--surface); }
.cat-showcase:hover::after { transform: scaleX(1); }
.cat-showcase__icon { font-size: 18px; }
.cat-showcase__name { font-size: 14px; font-weight: 700; color: var(--text); }
.cat-showcase__count { font-size: 11px; }

/* Popular + sidebar */
.popular-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.popular-posts { background: var(--bg); padding: 48px; }
.popular-list { display: flex; flex-direction: column; }
.popular-list__item {}
.popular-list__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}
.popular-list__link:hover { padding-left: 8px; }
.popular-list__rank {
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 56px;
  line-height: 1;
  transition: color var(--transition);
}
.popular-list__link:hover .popular-list__rank { color: rgba(255,75,43,0.35); }
.popular-list__title {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  transition: color var(--transition);
  flex: 1;
}
.popular-list__link:hover .popular-list__title { color: var(--text); }
.popular-list__arrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: all var(--transition);
  flex-shrink: 0;
}
.popular-list__link:hover .popular-list__arrow {
  color: var(--accent);
  text-shadow: var(--glow);
  transform: translateX(3px);
}

/* Home Sidebar */
.home-sidebar {
  background: var(--surface);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home-about {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.home-about__avatar {
  width: 48px; height: 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  box-shadow: var(--glow);
  flex-shrink: 0;
}
.home-about__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.home-about__role { font-size: 10px; letter-spacing: 1px; margin-top: 3px; }
.home-about__desc { font-size: 13px; line-height: 1.8; color: var(--text-muted); font-weight: 300; }

/* ==============================
   ARCHIVE PAGE
============================== */
.archive-main { padding-top: 64px; }

.archive-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.archive-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.archive-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.archive-hero__type {
  font-size: 11px;
  letter-spacing: 2px;
}
.archive-hero__count {
  font-size: 11px;
  letter-spacing: 1px;
}
.archive-hero__title {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text);
}
.archive-hero__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 20px;
}

.archive-body { padding: 60px 0 80px; }
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* Filter bar */
.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
}
.archive-filter__item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.archive-filter__item:hover,
.archive-filter__item.is-active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
  background: rgba(255,75,43,0.06);
}

/* No posts */
.no-posts-found {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--border);
}
.no-posts-found__title {
  font-size: 120px;
  letter-spacing: 8px;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 16px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-dim); }

/* ==============================
   SIDEBAR WIDGETS
============================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}
.widget {
  background: var(--bg);
  padding: 28px;
}
.widget__title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.widget__title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--accent);
  box-shadow: var(--glow);
}

/* Search widget */
.search-form {
  display: flex;
}
.search-form__input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-form__input:focus { border-color: var(--accent); }
.search-form__input::placeholder { color: var(--text-dim); }
.search-form__btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition);
  box-shadow: var(--glow);
}
.search-form__btn:hover { box-shadow: var(--glow-strong); }

/* Categories widget */
.widget-cats-list { display: flex; flex-direction: column; gap: 0; }
.widget-cats-list__item { border-bottom: 1px solid var(--border); }
.widget-cats-list__item:last-child { border-bottom: none; }
.widget-cats-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  transition: padding-left var(--transition);
}
.widget-cats-list__link:hover { padding-left: 6px; }
.widget-cats-list__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.widget-cats-list__link:hover .widget-cats-list__name { color: var(--accent); }
.widget-cats-list__item.is-active .widget-cats-list__name { color: var(--accent); }
.widget-cats-list__count {
  font-size: 10px;
  letter-spacing: 1px;
}

/* Popular widget */
.widget-popular-list { display: flex; flex-direction: column; gap: 12px; }
.widget-popular-list__item {}
.widget-popular-list__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: padding-left var(--transition);
}
.widget-popular-list__link:hover { padding-left: 4px; }
.widget-popular-list__rank {
  font-size: 28px;
  line-height: 1;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color var(--transition);
}
.widget-popular-list__link:hover .widget-popular-list__rank { color: rgba(255,75,43,0.3); }
.widget-popular-list__title {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  transition: color var(--transition);
}
.widget-popular-list__link:hover .widget-popular-list__title { color: var(--text); }

/* Recent widget */
.widget-recent-list { display: flex; flex-direction: column; }
.widget-recent-list__item { border-bottom: 1px solid var(--border); }
.widget-recent-list__item:last-child { border-bottom: none; }
.widget-recent-list__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  transition: padding-left var(--transition);
}
.widget-recent-list__link:hover { padding-left: 4px; }
.widget-recent-list__title {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-recent-list__link:hover .widget-recent-list__title { color: var(--text); }
.widget-recent-list__date { font-size: 10px; letter-spacing: 1px; }

/* Tags cloud */
.widget-tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tags-cloud__item {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.widget-tags-cloud__item:hover,
.widget-tags-cloud__item.is-active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

/* ==============================
   SINGLE POST
============================== */
.single-main { padding-top: 64px; }

.single-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.single-header__cats { display: flex; gap: 8px; margin-bottom: 20px; }
.single-header__title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  max-width: 780px;
  margin-bottom: 24px;
}
.single-header__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.single-meta__date,
.single-meta__updated,
.single-meta__reading {
  font-size: 11px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Thumbnail */
.single-thumb { padding: 40px 0 0; background: var(--surface); }
.single-thumb__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Body */
.single-body { padding: 60px 0; }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: start;
}

/* TOC */
.single-toc {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}
.single-toc__title {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}
.toc-nav { display: flex; flex-direction: column; gap: 4px; }
.toc-nav a {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--border);
  transition: all var(--transition);
}
.toc-nav a:hover,
.toc-nav a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 16px;
}
.toc-nav a[data-level="3"] { padding-left: 24px; font-size: 11px; }

/* Entry content */
.entry-content {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
}
.entry-content h2 {
  font-size: 22px;
  color: var(--text);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.entry-content h2::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--accent);
  box-shadow: var(--glow);
}
.entry-content h3 {
  font-size: 18px;
  color: var(--text);
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.entry-content h4 {
  font-size: 16px;
  color: var(--text-mid);
  margin: 28px 0 12px;
}
.entry-content p { margin-bottom: 20px; }
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { opacity: 0.75; }
.entry-content strong { color: var(--text); font-weight: 700; }
.entry-content em { font-style: italic; color: var(--text-mid); }
.entry-content ul,
.entry-content ol {
  margin: 0 0 20px 1.5em;
}
.entry-content ul { list-style: none; }
.entry-content ul li::before {
  content: '→';
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 8px;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 20px 24px;
  margin: 24px 0;
  color: var(--text-mid);
  font-style: italic;
}
.entry-content pre {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 24px 0;
}
.entry-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  color: var(--accent);
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.entry-content th {
  background: var(--surface2);
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: left;
}
.entry-content td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.entry-content tr:hover td { background: var(--surface); }

/* Tags */
.single-tags { padding: 0 0 40px; }
.single-tags__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.single-tags__label { font-size: 10px; letter-spacing: 2px; }
.tag-chip {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

/* Post navigation */
.single-nav { padding: 0 0 60px; }
.single-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.single-nav__item {
  background: var(--bg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--transition);
}
.single-nav__item:hover { background: var(--surface); }
.single-nav__item--empty { background: var(--surface2); }
.single-nav__item--next { text-align: right; }
.single-nav__dir { font-size: 11px; letter-spacing: 2px; }
.single-nav__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--transition);
}
.single-nav__item:hover .single-nav__title { color: var(--accent); }

/* Related posts */
.related-posts { padding-bottom: 80px; }

/* ==============================
   SITE FOOTER
============================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer__top {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { }
.footer-logo {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.footer-logo__fire { color: var(--accent); text-shadow: var(--glow); }
.footer-brand__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 260px;
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-col__list { display: flex; flex-direction: column; gap: 12px; }
.footer-col__list a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-col__list a:hover { color: var(--accent); }
.footer-col__count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}

.site-footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.footer-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-copy a:hover { color: var(--accent); }
.footer-credit { font-size: 11px; letter-spacing: 1px; }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .posts-grid--home    { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--archive { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--related { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .popular-layout { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .single-toc { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 40px 28px; flex-direction: column; z-index: 199; overflow-y: auto; }
  .site-nav.is-open .site-nav__list { flex-direction: column; }
  .mobile-menu-toggle { display: flex; }
  .header-search-toggle .header-search-toggle__label { display: none; }
  .hero__left { padding: 48px 28px; }
  .posts-grid--home,
  .posts-grid--archive,
  .posts-grid--related { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; grid-column: span 1; }
  .post-card--featured .post-card__thumb { width: 100%; aspect-ratio: 16/9; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-section { padding: 48px 0; }
  .archive-hero { padding: 40px 0; }
  .single-header { padding: 40px 0 32px; }
  .single-nav__inner { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
}
