/* ================================================================
   123 COMPOSE — Design System & Global Stylesheet
   ================================================================
   Pixel-art inspired dark theme for a Docker Compose blog.
   Colors extracted from the pixel cube logo:
     Orange  #F5A623 — Primary brand
     Cyan    #4EC9F7 — Secondary / code
     Pink    #E05C6E — Accent / danger
     Green   #57C87B — Success / output
   ================================================================ */

/* ── 1. FONTS ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700;900&display=swap');

/* ── 2. RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── 3. DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* ·· Base backgrounds ·· */
  --c-bg:          #080808;
  --c-bg-1:        #0F0F0F;
  --c-bg-2:        #161616;
  --c-bg-3:        #1E1E1E;
  --c-bg-4:        #272727;

  /* ·· Brand palette — from pixel cube logo ·· */
  --c-orange:      #F5A623;
  --c-orange-lt:   #FFBE56;
  --c-orange-dk:   #B87A18;
  --c-cyan:        #4EC9F7;
  --c-cyan-lt:     #82DCFF;
  --c-cyan-dk:     #2BA4D0;
  --c-pink:        #E05C6E;
  --c-pink-lt:     #F07A8A;
  --c-purple:      #9B7ACA;
  --c-green:       #57C87B;
  --c-green-dk:    #3A9456;

  /* ·· Semantic ·· */
  --c-primary:     var(--c-orange);
  --c-secondary:   var(--c-cyan);
  --c-danger:      var(--c-pink);
  --c-success:     var(--c-green);

  /* ·· Text ·· */
  --c-text:        #E8E8E8;
  --c-text-mid:    #A0A0A0;
  --c-text-dim:    #505050;

  /* ·· Borders ·· */
  --c-border:      #1C1C1C;
  --c-border-mid:  #2C2C2C;
  --c-border-hi:   #444444;

  /* ·· Glow shadows ·· */
  --glow-orange:   0 0 32px rgba(245, 166, 35, 0.18);
  --glow-cyan:     0 0 32px rgba(78, 201, 247, 0.18);
  --glow-pink:     0 0 32px rgba(224, 92, 110, 0.18);

  /* ·· Typography ·· */
  --f-pixel:  'Press Start 2P', monospace;
  --f-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --f-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* ·· Type scale ·· */
  --text-xs:   0.625rem;    /* 10px */
  --text-sm:   0.75rem;     /* 12px */
  --text-base: 0.9375rem;   /* 15px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.375rem;    /* 22px */
  --text-2xl:  1.75rem;     /* 28px */
  --text-3xl:  2.25rem;     /* 36px */

  /* ·· Spacing scale (4px base unit — "1 pixel") ·· */
  --s-1:   4px;    --s-2:   8px;    --s-3:  12px;   --s-4:  16px;
  --s-5:  20px;    --s-6:  24px;    --s-8:  32px;   --s-10: 40px;
  --s-12: 48px;    --s-16: 64px;    --s-20: 80px;   --s-24: 96px;

  /* ·· Layout ·· */
  --max-w:        1200px;
  --max-w-narrow:  720px;
  --nav-h:          70px;

  /* ·· Transitions — snappy like pixel games ·· */
  --t-snap:    0ms;
  --t-fast:   80ms;
  --t-base:  160ms;
}

/* ── 4. BASE STYLES ──────────────────────────────────────────── */
html, body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg-1); }
::-webkit-scrollbar-thumb { background: var(--c-bg-4); }
::-webkit-scrollbar-thumb:hover { background: var(--c-orange-dk); }

/* ── 5. LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.section { padding: var(--s-24) 0; }
.section--sm { padding: var(--s-16) 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

/* ── 6. NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.nav__logo-img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.35));
}

.nav__brand-text {
  font-family: var(--f-pixel);
  font-size: 8px;
  color: var(--c-orange);
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}

.nav__link {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-text-dim);
  padding: var(--s-2) var(--s-4);
  transition: color var(--t-fast);
  letter-spacing: 0.02em;
}

.nav__link::before { content: './'; color: var(--c-border-hi); }
.nav__link:hover, .nav__link.active { color: var(--c-text); }
.nav__link.active::before { color: var(--c-orange); }

.nav__coffee {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-pixel);
  font-size: 7px;
  background: transparent;
  border: 1px solid var(--c-orange-dk);
  color: var(--c-orange);
  padding: var(--s-2) var(--s-4);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  margin-left: var(--s-4);
}

.nav__coffee:hover {
  background: var(--c-orange);
  color: var(--c-bg);
  border-color: var(--c-orange);
}

/* ── 7. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-pixel);
  font-size: 8px;
  letter-spacing: 0.04em;
  padding: var(--s-3) var(--s-6);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--c-orange);
  color: var(--c-bg);
  border-color: var(--c-orange);
}
.btn--primary:hover {
  background: var(--c-orange-lt);
  border-color: var(--c-orange-lt);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--c-orange-dk);
}

.btn--ghost {
  background: transparent;
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}
.btn--ghost:hover {
  background: var(--c-cyan);
  color: var(--c-bg);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--c-cyan-dk);
}

.btn--outline {
  background: transparent;
  color: var(--c-text-mid);
  border-color: var(--c-border-hi);
}
.btn--outline:hover {
  color: var(--c-text);
  border-color: var(--c-text-mid);
}

/* ── 8. TAGS ─────────────────────────────────────────────────── */
.tag {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid;
  letter-spacing: 0.03em;
  display: inline-block;
  white-space: nowrap;
}

.tag--network  { color: var(--c-cyan);      border-color: rgba(78,201,247,0.35);  background: rgba(78,201,247,0.07); }
.tag--storage  { color: var(--c-orange);    border-color: rgba(245,166,35,0.35);  background: rgba(245,166,35,0.07); }
.tag--security { color: var(--c-pink);      border-color: rgba(224,92,110,0.35);  background: rgba(224,92,110,0.07); }
.tag--monitor  { color: var(--c-green);     border-color: rgba(87,200,123,0.35);  background: rgba(87,200,123,0.07); }
.tag--media    { color: var(--c-purple);    border-color: rgba(155,122,202,0.35); background: rgba(155,122,202,0.07); }
.tag--manage   { color: var(--c-orange-lt); border-color: rgba(255,190,86,0.35);  background: rgba(255,190,86,0.07); }

/* ── 9. SECTION HEADER ───────────────────────────────────────── */
.section-label {
  font-family: var(--f-pixel);
  font-size: var(--text-xs);
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-3);
}

.section-label--inline {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.section-label--inline::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
  max-width: 200px;
}

.section-title {
  font-family: var(--f-pixel);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--c-text);
  line-height: 1.5;
}

.section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-border);
  gap: var(--s-4);
}

.section-hd__link {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-cyan);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.section-hd__link:hover { color: var(--c-cyan-lt); }

/* ── 10. CARD THUMBNAIL (terminal-style) ─────────────────────── */
.card-thumb {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 11px;
  height: 158px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-thumb__bar {
  height: 28px;
  background: var(--c-bg-3);
  display: flex;
  align-items: center;
  padding: 0 var(--s-3);
  gap: 6px;
  border-bottom: 1px solid var(--c-border-mid);
  position: relative;
}

.dot { width: 10px; height: 10px; flex-shrink: 0; }
.dot-r { background: var(--c-pink); }
.dot-y { background: var(--c-orange); }
.dot-g { background: var(--c-green); }

.card-thumb__title {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-size: 10px;
  color: var(--c-text-dim);
  pointer-events: none;
}

.card-thumb__body {
  padding: var(--s-3) var(--s-4);
  line-height: 1.75;
  height: calc(100% - 28px);
  overflow: hidden;
}

.ct-cmd  { color: var(--c-text); }
.ct-cmd::before { content: '$ '; color: var(--c-cyan); }
.ct-info { color: var(--c-text-dim); }
.ct-ok   { color: var(--c-green); }
.ct-svc  { color: var(--c-orange); }
.ct-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--c-orange);
  vertical-align: middle;
  animation: blink-cur 1s steps(1) infinite;
}
@keyframes blink-cur { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── 11. POST CARD ────────────────────────────────────────────── */
.post-card {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

.post-card:hover {
  border-color: var(--c-border-hi);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--c-orange-dk);
}

.post-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.post-card__ep {
  font-family: var(--f-pixel);
  font-size: 8px;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
}

.post-card__title {
  font-family: var(--f-pixel);
  font-size: 10.5px;
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: var(--s-3);
  letter-spacing: 0.01em;
}

.post-card__desc {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--s-5);
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
}

.post-card__link {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-cyan);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.post-card__link:hover { color: var(--c-cyan-lt); }

.post-card__date {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-text-dim);
}

/* ── 12. HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--s-24) 0;
}

/* Pixel grid bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
  pointer-events: none;
}

/* Center radial glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%,
    rgba(245, 166, 35, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.hero__logo {
  width: 110px;
  height: 110px;
  margin: 0 auto var(--s-8);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 40px rgba(245, 166, 35, 0.45));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.hero__brand {
  font-family: var(--f-pixel);
  font-size: clamp(16px, 3.5vw, 28px);
  color: var(--c-orange);
  letter-spacing: 0.12em;
  margin-bottom: var(--s-5);
  text-shadow:
    0 0 24px rgba(245, 166, 35, 0.5),
    3px 3px 0 var(--c-orange-dk);
  line-height: 1.4;
}

.hero__rule {
  width: 100%;
  max-width: 380px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-orange) 30%,
    var(--c-cyan) 70%,
    transparent 100%);
  margin: var(--s-5) auto;
  opacity: 0.55;
}

.hero__tagline {
  font-family: var(--f-pixel);
  font-size: clamp(14px, 3vw, 24px);
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: var(--s-5);
  letter-spacing: 0.02em;
}

.hero__tagline em {
  color: var(--c-cyan);
  font-style: normal;
}

.hero__sub {
  font-family: var(--f-sans);
  font-size: var(--text-lg);
  color: var(--c-text-mid);
  max-width: 500px;
  margin: 0 auto var(--s-10);
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: var(--s-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}

.scroll-hint__text {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-text-dim);
  letter-spacing: 0.12em;
}

.scroll-hint__arrow {
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-text-dim);
  border-bottom: 2px solid var(--c-text-dim);
  transform: rotate(45deg);
  animation: arr-bounce 1.6s ease-in-out infinite;
}
@keyframes arr-bounce {
  0%,100%{ transform: rotate(45deg) translateY(0); }
  50%    { transform: rotate(45deg) translateY(5px); }
}

/* ── 13. ABOUT STRIP ─────────────────────────────────────────── */
.about-strip {
  background: var(--c-bg-1);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.about-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.about-strip__item {
  padding: var(--s-10) var(--s-8);
  border-right: 1px solid var(--c-border);
  text-align: center;
}
.about-strip__item:last-child { border-right: none; }

.about-strip__pixel-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s-5);
  image-rendering: pixelated;
}

.about-strip__num {
  font-family: var(--f-pixel);
  font-size: 28px;
  color: var(--c-orange);
  display: block;
  margin-bottom: var(--s-3);
  text-shadow: 2px 2px 0 var(--c-orange-dk);
}

.about-strip__title {
  font-family: var(--f-pixel);
  font-size: 9px;
  color: var(--c-text);
  margin-bottom: var(--s-3);
  letter-spacing: 0.06em;
}

.about-strip__desc {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* ── 14. PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: var(--s-16) 0 var(--s-12);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
}

.page-header__inner { position: relative; z-index: 1; }

.page-header__label {
  font-family: var(--f-pixel);
  font-size: var(--text-xs);
  color: var(--c-text-dim);
  letter-spacing: 0.12em;
  margin-bottom: var(--s-4);
}

.page-header__title {
  font-family: var(--f-pixel);
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: var(--s-4);
}
.page-header__title span { color: var(--c-orange); }

.page-header__sub {
  font-size: var(--text-lg);
  color: var(--c-text-mid);
  max-width: 500px;
  line-height: 1.7;
}

/* ── 15. FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.filter-bar__label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  margin-right: var(--s-2);
}

.filter-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: var(--s-1) var(--s-4);
  border: 1px solid var(--c-border-mid);
  background: transparent;
  color: var(--c-text-mid);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--c-border-hi); color: var(--c-text); }
.filter-btn.active { background: var(--c-orange); color: var(--c-bg); border-color: var(--c-orange); }

/* ── 16. BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-dim); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb__sep { color: var(--c-border-hi); }

/* ── 17. POST HERO ───────────────────────────────────────────── */
.post-hero {
  padding: var(--s-16) 0 var(--s-12);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.22;
}

.post-hero__inner { position: relative; z-index: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}

.post-meta__ep {
  font-family: var(--f-pixel);
  font-size: 9px;
  color: var(--c-orange);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  padding: var(--s-1) var(--s-3);
  letter-spacing: 0.04em;
}

.post-title {
  font-family: var(--f-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--c-text);
  line-height: 1.55;
  margin-bottom: var(--s-6);
  letter-spacing: 0.01em;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  flex-wrap: wrap;
}

.post-stats__item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* ── 18. VIDEO EMBED ─────────────────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-1);
  border: 1px solid var(--c-border-mid);
  margin: var(--s-10) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(245,166,35,0.04) 0%,
    transparent 50%,
    rgba(78,201,247,0.04) 100%);
  pointer-events: none;
}

.video-embed__yt-bg {
  position: absolute;
  inset: 0;
  background: url('https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg') center/cover;
  filter: brightness(0.25) saturate(0.3);
  transition: filter var(--t-base);
}
.video-embed:hover .video-embed__yt-bg { filter: brightness(0.35) saturate(0.4); }

.video-embed__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  text-align: center;
}

.video-embed__play {
  width: 72px;
  height: 72px;
  background: var(--c-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  clip-path: polygon(15% 0%, 100% 50%, 15% 100%);
}
.video-embed:hover .video-embed__play {
  background: var(--c-orange-lt);
  transform: scale(1.08);
}

.video-embed__label {
  font-family: var(--f-pixel);
  font-size: 9px;
  color: var(--c-text-mid);
  letter-spacing: 0.06em;
}
.video-embed__sublabel {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  margin-top: -var(--s-3);
}

/* ── 19. CODE BLOCK ──────────────────────────────────────────── */
.code-block {
  position: relative;
  margin: var(--s-6) 0;
}

.code-block__header {
  background: var(--c-bg-3);
  border: 1px solid var(--c-border-mid);
  border-bottom: none;
  padding: var(--s-2) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-block__filename {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
}

.code-block__lang {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-cyan);
  letter-spacing: 0.04em;
}

.code-block pre {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border-mid);
  padding: var(--s-6);
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--c-text);
}

.code-block__copy {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-text-dim);
  background: var(--c-bg-3);
  border: 1px solid var(--c-border-mid);
  padding: var(--s-1) var(--s-3);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
  z-index: 2;
}
.code-block__copy:hover { color: var(--c-orange); border-color: var(--c-orange); }
.code-block__copy.copied { color: var(--c-green); border-color: var(--c-green); }

/* Syntax highlighting */
.ck { color: var(--c-cyan); }       /* key */
.cv { color: var(--c-orange-lt); }  /* value */
.cc { color: var(--c-text-dim); font-style: italic; } /* comment */
.cs { color: var(--c-green); }      /* string */
.cn { color: var(--c-purple); }     /* number */

/* ── 20. ARTICLE BODY ────────────────────────────────────────── */
.article-body {
  padding: var(--s-12) 0;
}

.article-body h2 {
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--c-text);
  margin: var(--s-10) 0 var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.article-body h2::before { content: '// '; color: var(--c-text-dim); }

.article-body p {
  font-size: var(--text-base);
  color: var(--c-text-mid);
  line-height: 1.85;
  margin-bottom: var(--s-5);
}

.article-body strong { color: var(--c-text); font-weight: 600; }

.article-body code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border-mid);
  padding: 1px 6px;
  color: var(--c-cyan);
}

/* ── 21. STEP LIST ───────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--s-5); margin: var(--s-6) 0; }

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--s-5);
  align-items: start;
}

.step__num {
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--c-orange);
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.3);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step__title {
  font-family: var(--f-mono);
  font-size: var(--text-base);
  color: var(--c-text);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.75;
}

/* ── 22. PREREQ LIST ─────────────────────────────────────────── */
.prereq-list { display: flex; flex-direction: column; gap: var(--s-2); margin: var(--s-4) 0; }

.prereq-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  padding: var(--s-3) var(--s-4);
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-cyan);
}
.prereq-item::before { content: '→'; color: var(--c-cyan); font-size: 12px; }

/* ── 23. CALLOUT BOXES ───────────────────────────────────────── */
.callout {
  padding: var(--s-5) var(--s-6);
  border: 1px solid;
  border-left-width: 3px;
  margin: var(--s-6) 0;
}

.callout--tip {
  background: rgba(87, 200, 123, 0.06);
  border-color: rgba(87, 200, 123, 0.3);
  border-left-color: var(--c-green);
}

.callout--info {
  background: rgba(78, 201, 247, 0.06);
  border-color: rgba(78, 201, 247, 0.3);
  border-left-color: var(--c-cyan);
}

.callout--warn {
  background: rgba(245, 166, 35, 0.06);
  border-color: rgba(245, 166, 35, 0.3);
  border-left-color: var(--c-orange);
}

.callout__label {
  font-family: var(--f-pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}
.callout--tip  .callout__label { color: var(--c-green); }
.callout--info .callout__label { color: var(--c-cyan); }
.callout--warn .callout__label { color: var(--c-orange); }

.callout__text {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.7;
}

/* ── 24. COFFEE BANNER ───────────────────────────────────────── */
.coffee-banner {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border-mid);
  border-left: 3px solid var(--c-orange);
  padding: var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-8);
  margin: var(--s-12) 0 0;
}

.coffee-banner__icon {
  font-size: 52px;
  flex-shrink: 0;
  line-height: 1;
  filter: saturate(1.2);
}

.coffee-banner__title {
  font-family: var(--f-pixel);
  font-size: 11px;
  color: var(--c-text);
  margin-bottom: var(--s-3);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.coffee-banner__desc {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.7;
  margin-bottom: var(--s-5);
}

/* ── 25. RELATED POSTS ───────────────────────────────────────── */
.related {
  padding: var(--s-16) 0;
  border-top: 1px solid var(--c-border);
}

/* ── 26. CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  margin-top: var(--s-10);
}

.contact-form {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border-mid);
  padding: var(--s-8);
}

.form-group { margin-bottom: var(--s-6); }

.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  margin-bottom: var(--s-2);
  letter-spacing: 0.04em;
}
.form-label::before { content: '$ '; color: var(--c-cyan); }

.form-input,
.form-textarea {
  width: 100%;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border-mid);
  border-radius: 0;
  padding: var(--s-3) var(--s-4);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-text);
  outline: none;
  transition: border-color var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(78, 201, 247, 0.07);
}
.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.contact-aside {}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--c-bg-1);
  border: 1px solid var(--c-border);
  color: var(--c-text-mid);
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.contact-link-item:hover { border-color: var(--c-border-hi); color: var(--c-text); }

.contact-link-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.contact-link-item__label {
  font-family: var(--f-pixel);
  font-size: 8px;
  color: var(--c-text-dim);
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.contact-link-item__val { font-size: var(--text-sm); }

/* ── 27. FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--c-bg-1);
  border-top: 1px solid var(--c-border);
  padding: var(--s-16) 0 var(--s-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-16);
  padding-bottom: var(--s-10);
  margin-bottom: var(--s-8);
  border-bottom: 1px solid var(--c-border);
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  margin-bottom: var(--s-4);
  filter: drop-shadow(0 0 12px rgba(245,166,35,0.25));
}

.footer__brand-name {
  font-family: var(--f-pixel);
  font-size: 10px;
  color: var(--c-orange);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-3);
  line-height: 1.6;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--c-text-dim);
  line-height: 1.65;
  margin-bottom: var(--s-6);
}

.footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}

.footer__nav-title {
  font-family: var(--f-pixel);
  font-size: 8px;
  color: var(--c-text-dim);
  margin-bottom: var(--s-4);
  letter-spacing: 0.08em;
}

.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer__nav-link {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  transition: color var(--t-fast);
}
.footer__nav-link:hover { color: var(--c-orange); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer__copy {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
}

.footer__social {
  display: flex;
  gap: var(--s-3);
}

.footer__social-link {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  border: 1px solid var(--c-border);
  padding: var(--s-1) var(--s-3);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer__social-link:hover { color: var(--c-orange); border-color: var(--c-orange-dk); }

/* ── 28. PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-12);
  padding-top: var(--s-8);
  border-top: 1px solid var(--c-border);
}

.page-btn {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--c-border-mid);
  color: var(--c-text-mid);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}
.page-btn:hover { border-color: var(--c-orange); color: var(--c-orange); }
.page-btn.active { background: var(--c-orange); color: var(--c-bg); border-color: var(--c-orange); }

/* ── 29. MISC UTILITIES ──────────────────────────────────────── */
.blink { animation: blink-cur 1s steps(1) infinite; }

/* Glitch on hover */
.glitch { position: relative; }
.glitch:hover::before, .glitch:hover::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.glitch:hover::before { color: var(--c-cyan);  animation: g1 0.28s steps(2) infinite; }
.glitch:hover::after  { color: var(--c-pink);  animation: g2 0.28s steps(2) infinite; }

@keyframes g1 {
  0%   { clip-path: inset(0 0 85% 0); transform: translate(-2px); }
  33%  { clip-path: inset(40% 0 35% 0); transform: translate(2px); }
  66%  { clip-path: inset(70% 0 10% 0); transform: translate(-1px); }
  100% { clip-path: inset(85% 0 0 0); transform: translate(2px); }
}
@keyframes g2 {
  0%   { clip-path: inset(85% 0 0 0); transform: translate(2px); }
  33%  { clip-path: inset(20% 0 60% 0); transform: translate(-2px); }
  66%  { clip-path: inset(50% 0 30% 0); transform: translate(1px); }
  100% { clip-path: inset(0 0 85% 0); transform: translate(-2px); }
}

/* ── 30. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer__nav-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__coffee { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-strip__grid { grid-template-columns: 1fr; }
  .about-strip__item { border-right: none; border-bottom: 1px solid var(--c-border); }
  .about-strip__item:last-child { border-bottom: none; }
  .footer__nav-grid { grid-template-columns: 1fr; }
  .section-hd { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .step { grid-template-columns: 44px 1fr; }
  .coffee-banner { flex-direction: column; text-align: center; }
  .post-stats { gap: var(--s-4); }
  .hero__logo { width: 80px; height: 80px; }
}
