/* =========================================================
   Andhika — Ghost Journal
   Monochrome Space Engineering — Black, White & Industrial
   Design tokens mirror ../portfolio/css/style.css
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #080808;
  --bg-alt: #171717;
  --surface: #171717;
  --surface-2: #202020;
  --text: #ffffff;
  --text-soft: #a3a3a3;
  --muted: #737373;
  --border: #333333;
  --border-soft: #262626;
  --border-strong: #4a4a4a;
  --accent: #d97736;
  --accent-soft: rgba(217, 119, 54, 0.10);
  --accent-line: rgba(217, 119, 54, 0.42);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);

  /* Kursor roket: memakai aksen yang sama, bukan palet baru */
  --cursor-rocket: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M16%202.5c4.1%203.1%206.4%207.2%206.4%2011.7l-2.6%204.2h-7.6l-2.6-4.2C9.6%209.7%2011.9%205.6%2016%202.5z%27%20fill%3D%27%23f5f5f5%27%20stroke%3D%27%23080808%27%20stroke-width%3D%271.2%27%20stroke-linejoin%3D%27round%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2712.4%27%20r%3D%272.7%27%20fill%3D%27%23d97736%27%2F%3E%3Cpath%20d%3D%27M10%2014.2%205.2%2020v5.1l5.2-3.5zM22%2014.2%2026.8%2020v5.1l-5.2-3.5z%27%20fill%3D%27%23d97736%27%2F%3E%3Cpath%20d%3D%27M13.2%2019.4h5.6l-1.1%204.2h-3.4z%27%20fill%3D%27%23a3a3a3%27%2F%3E%3Cpath%20d%3D%27M16%2024.2c1.7%201.3%202.5%203.2%202.3%205.3-1.5-.9-2.7-2.1-3.5-3.5-.8%201.4-2%202.6-3.5%203.5-.2-2.1.6-4%202.3-5.3z%27%20fill%3D%27%23d97736%27%2F%3E%3C%2Fsvg%3E");

  /* Posisi perjalanan: di-update dari scroll */
  --journey: 0;
  --star-opacity: 1;
  --atmosphere-opacity: 0;
  --satellite-opacity: 0;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --gh-font-heading: var(--font-display);
  --gh-font-body: var(--font-sans);

  --container: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-alt: #ebebeb;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --text: #0a0a0a;
  --text-soft: #3f3f3f;
  --muted: #6e6e6e;
  --border: #d4d4d4;
  --border-soft: #e5e5e5;
  --border-strong: #b8b8b8;
  --accent: #b55f29;
  --accent-soft: rgba(181, 95, 41, 0.10);
  --accent-line: rgba(181, 95, 41, 0.45);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.10);
  --cursor-rocket: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M16%202.5c4.1%203.1%206.4%207.2%206.4%2011.7l-2.6%204.2h-7.6l-2.6-4.2C9.6%209.7%2011.9%205.6%2016%202.5z%27%20fill%3D%27%230a0a0a%27%20stroke%3D%27%23080808%27%20stroke-width%3D%271.2%27%20stroke-linejoin%3D%27round%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2712.4%27%20r%3D%272.7%27%20fill%3D%27%23b55f29%27%2F%3E%3Cpath%20d%3D%27M10%2014.2%205.2%2020v5.1l5.2-3.5zM22%2014.2%2026.8%2020v5.1l-5.2-3.5z%27%20fill%3D%27%23b55f29%27%2F%3E%3Cpath%20d%3D%27M13.2%2019.4h5.6l-1.1%204.2h-3.4z%27%20fill%3D%27%23a3a3a3%27%2F%3E%3Cpath%20d%3D%27M16%2024.2c1.7%201.3%202.5%203.2%202.3%205.3-1.5-.9-2.7-2.1-3.5-3.5-.8%201.4-2%202.6-3.5%203.5-.2-2.1.6-4%202.3-5.3z%27%20fill%3D%27%23b55f29%27%2F%3E%3C%2Fsvg%3E");
}

/* Tema terang: latar kosmik tetap ada, tapi diredupkan agar teks gelap terbaca */
[data-theme="light"] .space-journey { opacity: 0.16; }
[data-theme="light"] .blog-hero { background: rgba(245, 245, 245, 0.72); }
[data-theme="light"] .related-section { background: rgba(235, 235, 235, 0.92); }
[data-theme="light"] .journey-readout { color: rgba(10, 10, 10, 0.45); }
[data-theme="light"] .journey-alt { color: rgba(10, 10, 10, 0.6); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background: var(--bg);
  transition: background-color 0.3s ease;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.15; }
p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--accent); color: #080808; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ---------- Perjalanan luar angkasa → atmosfer ---------- */
.space-journey {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}
.journey-sky {
  position: absolute;
  inset: -12% -12%;
  background: linear-gradient(
    180deg,
    #030303 0%, #080808 16%, #0a0c11 30%, #0d141e 44%,
    #111d28 58%, #16262e 72%, #1a2a2d 86%, #171b1a 100%
  );
  background-size: 100% 360%;
  background-position: 0 calc(var(--journey) * 100%);
  transition: background-position 0.12s linear;
}
.journey-stars {
  position: absolute;
  inset: 0;
  opacity: var(--star-opacity);
  transition: opacity 0.16s linear;
}
.journey-stars-far {
  background-image:
    radial-gradient(1px 1px at 24px 38px, rgba(255, 255, 255, 0.65) 99%, transparent),
    radial-gradient(1px 1px at 128px 96px, rgba(255, 255, 255, 0.45) 99%, transparent),
    radial-gradient(1.2px 1.2px at 198px 24px, rgba(255, 255, 255, 0.7) 99%, transparent);
  background-size: 240px 180px, 300px 220px, 360px 260px;
}
.journey-stars-near {
  background-image:
    radial-gradient(1.6px 1.6px at 72px 110px, rgba(255, 255, 255, 0.9) 99%, transparent),
    radial-gradient(1.3px 1.3px at 246px 64px, rgba(255, 255, 255, 0.75) 99%, transparent);
  background-size: 420px 320px, 520px 380px;
  animation: star-twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes star-twinkle {
  from { opacity: calc(var(--star-opacity) * 0.55); }
  to { opacity: var(--star-opacity); }
}
.journey-atmosphere {
  position: absolute;
  inset: 0;
  opacity: var(--atmosphere-opacity);
  background:
    radial-gradient(120% 58% at 50% 118%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 64%),
    radial-gradient(100% 50% at 50% 122%, rgba(126, 169, 184, 0.20), transparent 68%),
    linear-gradient(180deg, transparent 22%, rgba(38, 70, 86, 0.22) 62%, color-mix(in srgb, var(--accent) 5%, transparent) 100%);
  mix-blend-mode: screen;
  transition: opacity 0.16s linear;
}
.journey-satellite {
  position: absolute;
  top: calc(var(--journey) * 112% - 16%);
  right: clamp(28px, 11vw, 180px);
  width: clamp(38px, 4vw, 58px);
  color: var(--accent);
  opacity: var(--satellite-opacity);
  filter: drop-shadow(0 0 12px var(--accent-line));
  animation: satellite-drift 5s ease-in-out infinite alternate;
  transition: top 0.12s linear, opacity 0.2s ease;
}
.journey-satellite svg { width: 100%; height: auto; display: block; }
.satellite-trail {
  position: absolute;
  top: 50%;
  right: 88%;
  width: clamp(80px, 12vw, 170px);
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-line));
  opacity: 0.8;
}
@keyframes satellite-drift {
  from { transform: translate3d(-10px, -6px, 0) rotate(-7deg); }
  to { transform: translate3d(12px, 8px, 0) rotate(7deg); }
}
.journey-readout {
  position: absolute;
  left: 32px;
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: calc(100% - 64px);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.34);
  text-transform: uppercase;
}
.journey-layer { color: var(--accent); }
.journey-alt { color: rgba(255, 255, 255, 0.5); }

.pulse-dot, .readout-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 7px rgba(217, 119, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 54, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-dot { color: var(--accent); }
.brand-tag {
  font-size: 9px; letter-spacing: 0.1em; color: var(--muted);
  padding-left: 10px; border-left: 1px solid var(--border);
}

.back-site {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.back-site:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-2);
}
.back-site-arrow {
  color: var(--accent);
  font-size: 14px; line-height: 1;
  transition: transform 0.2s var(--ease);
}
.back-site:hover .back-site-arrow { transform: translateX(-3px); }
.back-site-short { display: none; }

.primary-nav { display: flex; align-items: center; margin-left: auto; }
.primary-nav .nav { display: flex; align-items: center; gap: 1px; }
.primary-nav .nav li { display: block; }
.primary-nav .nav a {
  position: relative;
  display: block;
  padding: 9px 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.primary-nav .nav a:hover { color: var(--text); }
.primary-nav .nav li.current a,
.primary-nav .nav a.active { color: var(--accent); }
.primary-nav .nav li.current a::after,
.primary-nav .nav a.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px;
  height: 1px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 5px; border: 1px solid var(--border);
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 4px 6px; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--accent); color: #080808; }
.lang-divider { color: var(--border-strong); font-size: 10px; }

.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn .icon { width: 17px; height: 17px; }
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }
.nav-toggle { display: none; }
.icon-close { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn::after { content: "↗"; font-size: 13px; line-height: 1; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #080808; font-weight: 600; }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-subscribe { min-height: 34px; padding: 0 12px; font-size: 9px; }

/* ---------- Blog hero ---------- */
.blog-hero {
  position: relative;
  padding: 104px 0 0;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.blog-hero .container { position: relative; z-index: 2; }

/* ---------- Observatory visual ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 74% 46%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse at 74% 46%, #000 5%, transparent 72%);
}
.earth-stage {
  position: absolute;
  top: 46%;
  right: -8%;
  width: min(72vw, 820px);
  aspect-ratio: 1;
  transform: translateY(-50%) translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0);
  transition: transform 0.35s ease-out;
}
.earth-halo {
  position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 62%);
  filter: blur(38px);
}
.earth-sphere {
  position: absolute; inset: 11%; border-radius: 50%;
  background-image: url("../assets/earth-texture.jpg");
  background-size: 200% 100%;
  filter: grayscale(1) contrast(1.2) brightness(0.82);
  box-shadow: inset -50px -24px 90px rgba(0, 0, 0, 0.92), 0 0 70px rgba(255, 255, 255, 0.05);
  animation: earth-spin 45s linear infinite;
}
@keyframes earth-spin { to { background-position: 200% 0; } }

.orbit-field { position: absolute; inset: 0; transform-style: preserve-3d; }
.orbit-ring {
  position: absolute; left: 50%; top: 50%;
  width: 74%; height: 74%; margin: -37% 0 0 -37%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.orbit-ring-a { animation: orbit-a 28s linear infinite; }
.orbit-ring-b {
  width: 96%; height: 96%; margin: -48% 0 0 -48%;
  border-style: dashed; border-color: rgba(255, 255, 255, 0.08);
  animation: orbit-b 42s linear infinite reverse;
}
.orbit-ring-c {
  width: 58%; height: 58%; margin: -29% 0 0 -29%;
  border-color: var(--accent-line);
  animation: orbit-c 22s linear infinite;
}
@keyframes orbit-a { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbit-b { from { transform: rotateY(70deg) rotateZ(0); } to { transform: rotateY(70deg) rotateZ(360deg); } }
@keyframes orbit-c { from { transform: rotateX(58deg) rotateY(-26deg) rotateZ(0); } to { transform: rotateX(58deg) rotateY(-26deg) rotateZ(360deg); } }

.satellite {
  position: absolute; left: 100%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px var(--accent-line);
}
.satellite-small { width: 5px; height: 5px; background: var(--text-soft); box-shadow: 0 0 0 3px var(--border-soft); }
.earth-reticle { position: absolute; inset: 9%; }
.reticle-h, .reticle-v { position: absolute; background: var(--border-soft); }
.reticle-h { top: 50%; left: 0; right: 0; height: 1px; }
.reticle-v { left: 50%; top: 0; bottom: 0; width: 1px; }
.grain {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.055; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-annotations { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.annot {
  position: absolute; display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0);
  transition: transform 0.35s ease-out;
}
.annot-line { width: 34px; height: 1px; background: var(--border-strong); }
.annot-1 { top: 14%; right: 3%; }
.annot-2 { top: 38%; right: 5%; }
.annot-3 { bottom: 26%; right: 2%; }
.annot-4 { bottom: 10%; right: 12%; }
.blog-hero-copy { max-width: 820px; padding-bottom: 84px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-soft);
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-status .pulse-dot { flex-shrink: 0; }

.blog-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(52px, 8.4vw, 116px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.title-dot { color: var(--accent); }
.blog-support {
  margin-top: 26px; max-width: 56ch;
  color: var(--text-soft); font-size: 16px;
}

.blog-readout {
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.blog-readout b { color: var(--text-soft); font-weight: 500; margin-right: 8px; }
.blog-readout i { margin-right: 6px; vertical-align: middle; }

/* ---------- Section / feed ---------- */
.section { padding: 104px 0; position: relative; }
.feed-section { background: transparent; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.04em;
}
.section-head > p { margin-top: 16px; max-width: 54ch; color: var(--text-soft); font-size: 15px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ---------- Post card ---------- */
.post-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.18s ease-out, border-color 0.25s ease, background-color 0.25s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }

.post-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0;
  background: radial-gradient(280px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.07), transparent 65%);
  transition: opacity 0.25s ease;
}
.post-card:hover::before { opacity: 1; }
.post-card > * { position: relative; z-index: 1; }

.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase;
}
.post-card-head span:first-child { color: var(--accent); }

.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.35s ease, transform 0.45s var(--ease); }
.post-card:hover .post-card-media img { filter: grayscale(0.25); transform: scale(1.035); }
.post-card-placeholder {
  position: relative; width: 100%; height: 100%;
  background:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 26px 26px;
}
.post-card-placeholder .placeholder-node {
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--accent);
}
.post-card-placeholder .placeholder-grid {
  position: absolute; inset: 18%;
  border: 1px solid var(--border);
}

.post-card-body { padding: 24px 20px 20px; flex: 1; }
.post-card-tag { display: block; margin-bottom: 12px; color: var(--accent); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.post-card-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.02em;
}
.post-card-body p { margin-top: 12px; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.post-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
}
.post-card-arrow { color: var(--accent); font-size: 14px; transition: transform 0.2s var(--ease); }
.post-card:hover .post-card-arrow { transform: translate(2px, -2px); }

.empty-state {
  padding: 48px 20px;
  border: 1px dashed var(--border);
  color: var(--muted); text-align: center;
  font-size: 11px; letter-spacing: 0.14em;
}

/* ---------- Archive timeline ---------- */
.timeline-feed { position: relative; }
.timeline-feed::before {
  content: ""; position: absolute;
  left: 96px; top: 10px; bottom: 10px;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; }
.timeline-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 130px;
  gap: 28px;
  padding: 30px 8px 30px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.25s ease, padding-left 0.25s var(--ease);
}
.timeline-link:hover { background: var(--accent-soft); padding-left: 10px; }
.timeline-rail {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--muted); font-size: 9px; letter-spacing: 0.1em;
}
.timeline-index { color: var(--accent); font-size: 11px; font-weight: 600; }
.timeline-date { color: var(--muted); }
.timeline-dot {
  position: absolute; left: 92px; top: 5px;
  width: 9px; height: 9px;
  border: 1px solid var(--accent); background: var(--bg);
  transform: rotate(45deg);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.timeline-link:hover .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-content { min-width: 0; }
.timeline-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
}
.timeline-meta span:first-child { color: var(--accent); }
.timeline-content h3 {
  margin-top: 12px;
  font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.03em;
  transition: color 0.2s ease;
}
.timeline-link:hover .timeline-content h3 { color: var(--accent); }
.timeline-content p { margin-top: 10px; max-width: 68ch; color: var(--text-soft); font-size: 14px; }
.timeline-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  color: var(--muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
}
.timeline-arrow { color: var(--accent); font-size: 16px; transition: transform 0.2s var(--ease); }
.timeline-link:hover .timeline-arrow { transform: translate(3px, -3px); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 44px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
}
.pagination .page-number,
.pagination a {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current,
.pagination .page-number.current {
  background: var(--accent); border-color: var(--accent); color: #080808;
}
.pagination .older-posts::after { content: " →"; }
.pagination .newer-posts::before { content: "← "; }

/* ---------- Article ---------- */
.article-head { padding-top: 72px; padding-bottom: 48px; }
.article-topline {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
}
.article-topline span:first-child { color: var(--accent); }
.article-topline-id { margin-left: auto; opacity: 0.7; }

.article-title {
  margin-top: 34px; max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.05em;
}
.article-excerpt { margin-top: 22px; max-width: 62ch; color: var(--text-soft); font-size: 17px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 30px;
  color: var(--muted); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.article-meta a { color: var(--accent); }

.article-feature { margin-top: 42px; border: 1px solid var(--border); }
.article-feature img { width: 100%; max-height: 560px; object-fit: cover; filter: grayscale(0.65); }
.article-feature figcaption {
  padding: 10px 14px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 56px;
  padding-bottom: 112px;
}
.post-body { min-width: 0; max-width: 760px; }
.post-body > * + * { margin-top: 1.35em; }
.post-body p { color: var(--text-soft); font-size: 16px; line-height: 1.85; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  margin-top: 2em;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
}
.post-body h2 { font-size: clamp(26px, 3vw, 36px); }
.post-body h3 { font-size: 24px; }
.post-body h4 { font-size: 19px; }
.post-body a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 22px; color: var(--text-soft); }
.post-body ul { list-style: square; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 6px; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote {
  margin: 2em 0; padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--text); font-family: var(--font-display); font-size: 19px; line-height: 1.55;
}
.post-body blockquote p { color: inherit; font-size: inherit; }
.post-body code, .post-body pre {
  font-family: var(--font-mono); font-size: 13px;
}
.post-body :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent);
}
.post-body pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}
.post-body pre code { padding: 0; border: 0; background: none; color: inherit; }
.post-body img { border: 1px solid var(--border); }
.post-body figcaption { margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-align: center; }
.post-body hr { height: 1px; margin: 3em 0; border: 0; background: var(--border); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post-body th, .post-body td { padding: 10px; border: 1px solid var(--border); text-align: left; }
.post-body th { background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.post-body .kg-card { margin: 2em 0; }
.post-body .kg-embed-card iframe { max-width: 100%; border: 1px solid var(--border); }
.post-body .kg-width-wide,
.post-body .kg-width-full { width: 100%; max-width: none; }
.post-body .kg-width-wide img,
.post-body .kg-width-full img { width: 100%; max-width: none; }

/* ---------- Blok artikel: kode, diagram, simulasi, rujukan ---------- */
.post-body a[rel~="citation"] {
  display: inline-block;
  margin-left: 1px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  text-decoration: none;
  vertical-align: super;
}
.post-body a[rel~="citation"]:hover { border-color: var(--accent); }

.code-wrap { position: relative; }
.code-wrap pre { padding-right: 82px; }
.code-copy {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px; letter-spacing: 0.1em;
  cursor: pointer;
}
.code-copy:hover { color: var(--accent); border-color: var(--accent); }
.post-body .tok-com { color: var(--muted); font-style: italic; }
.post-body .tok-kw { color: var(--accent); }
.post-body .tok-str { color: #9ece9e; }
.post-body .tok-num { color: #d7b77e; }
.post-body .tok-prompt { color: var(--text); font-weight: 600; }
[data-theme="light"] .post-body .tok-str { color: #2f6b2f; }
[data-theme="light"] .post-body .tok-num { color: #8a5a12; }

.article-terminal, .article-sim {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.article-terminal-bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
}
.article-terminal-bar span:last-child { color: var(--accent); letter-spacing: 0.25em; }
.article-terminal-screen, .article-sim-screen {
  max-height: 320px; overflow: auto;
  padding: 16px 18px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.article-terminal figcaption, .article-sim figcaption,
.article-shape figcaption { padding: 0 14px 12px; text-align: left; }
.term-line { min-height: 1.2em; }
.term-cmd { color: var(--text); }
.term-note { color: var(--muted); }
.term-err { color: #d97736; }
.article-terminal .tok-prompt { color: var(--accent); }
.article-sim-screen { min-height: 132px; }
.article-sim-form {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.article-sim-prompt { color: var(--accent); white-space: nowrap; }
.article-sim-form input {
  flex: 1; min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono); font-size: 12px;
}
.article-sim-form input:focus { outline: none; border-color: var(--accent); }
.article-sim-form button {
  padding: 7px 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  cursor: pointer;
}
.article-sim-form button:hover { background: var(--accent); color: var(--bg); }

.article-shape {
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.article-shape-svg { width: 100%; height: auto; display: block; }
.article-shape .shape-node rect,
.article-shape .shape-node ellipse,
.article-shape .shape-node path {
  fill: var(--surface-2);
  stroke: var(--border-strong);
  stroke-width: 1.4;
}
.article-shape .shape-node-router rect,
.article-shape .shape-node-router path { stroke: var(--accent); }
.article-shape .shape-node-label {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-anchor: middle;
}
.article-shape .shape-link { stroke: var(--accent); stroke-width: 1.4; opacity: 0.8; }
.article-shape .shape-link-label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-anchor: middle;
}

.article-refs {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.article-refs figcaption {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em;
}
.article-refs ol { margin: 0; padding: 0; list-style: none; }
.article-refs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border-soft); font-size: 13px; }
.article-refs li:first-child { border-top: 0; }
.article-refs .ref-num { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.article-refs a { color: var(--text); border-bottom: 1px solid var(--accent-line); }
.article-refs a:hover { color: var(--accent); }
.article-refs .ref-source { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.article-refs .ref-note { flex-basis: 100%; padding-left: 30px; color: var(--muted); font-size: 12px; }

/* ---------- Blok artikel lanjutan: daftar isi, callout, skenario, tabel, FAQ ---------- */
.post-body h2[id], .post-body h3[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.article-toc {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.toc-head {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--accent);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
}
.toc-head span:last-child { color: var(--muted); }
.article-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.article-toc li a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 4px;
  color: var(--text-soft); font-size: 12.5px; text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.article-toc li a:hover { color: var(--accent); background: var(--surface-2); }
.toc-num { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.article-toc li a.is-active { color: var(--accent); }
.article-toc li a.is-active .toc-num { color: var(--accent); }

.article-callout {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.callout-label {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
}
.callout-body { color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.callout-warning { border-left-color: #d7b77e; }
.callout-warning .callout-label { color: #d7b77e; }
.callout-danger { border-left-color: #d97736; }
.callout-danger .callout-label { color: #d97736; }
.callout-tip { border-left-color: #9ece9e; }
.callout-tip .callout-label { color: #9ece9e; }
[data-theme="light"] .callout-tip { border-left-color: #2f6b2f; }
[data-theme="light"] .callout-tip .callout-label { color: #2f6b2f; }

.article-scenario { padding: 16px 18px; border: 1px solid var(--border); background: var(--surface); }
.scenario-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 11px; border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
}
.scenario-head span:first-child { color: var(--accent); }
.scenario-head span:last-child { color: var(--muted); }
.scenario-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 13px; background: var(--border-soft); }
.scenario-meta-item { display: grid; gap: 4px; padding: 10px; background: var(--bg); }
.scenario-meta-item span { color: var(--muted); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; }
.scenario-meta-item strong { color: var(--text); font-size: 12px; font-weight: 500; }
.scenario-body { margin-top: 13px; color: var(--text-soft); font-size: 13px; line-height: 1.75; }
.scenario-steps { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.scenario-steps li { display: flex; align-items: baseline; gap: 10px; color: var(--text-soft); font-size: 12.5px; }
.step-num { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.scenario-expected { margin-top: 14px; padding: 11px 13px; border: 1px dashed var(--accent-line); background: var(--surface-2); }
.scenario-expected span { color: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.scenario-expected p { margin: 6px 0 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.7; }
.article-scenario figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; }

.article-table { border: 1px solid var(--border); background: var(--surface); }
.table-scroll { overflow-x: auto; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.article-table th, .article-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
.article-table th { background: var(--surface-2); color: var(--accent); font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.1em; white-space: nowrap; }
.article-table td { color: var(--text-soft); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table figcaption { padding: 10px 12px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 11px; }

.article-faq { padding: 16px 18px; border: 1px solid var(--border); background: var(--surface); }
.article-faq figcaption { margin-bottom: 10px; color: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; }
.article-faq details { border-top: 1px solid var(--border-soft); }
.article-faq summary { padding: 11px 0; color: var(--text); font-size: 13px; cursor: pointer; list-style: none; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::before { content: '+'; margin-right: 10px; color: var(--accent); font-family: var(--font-mono); }
.article-faq details[open] summary::before { content: '-'; }
.article-faq details p { margin: 0 0 12px 20px; color: var(--text-soft); font-size: 12.5px; line-height: 1.75; }

.article-checklist { padding: 16px 18px; border: 1px solid var(--border); background: var(--surface); }
.article-checklist figcaption { margin-bottom: 10px; color: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; }
.article-checklist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.article-checklist li { display: flex; align-items: baseline; gap: 10px; color: var(--text-soft); font-size: 12.5px; line-height: 1.6; cursor: pointer; }
.check-box { flex: 0 0 auto; width: 12px; height: 12px; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 10px; line-height: 10px; text-align: center; color: var(--bg); }
.article-checklist li.is-done .check-box { background: var(--accent); border-color: var(--accent); }
.article-checklist li.is-done .check-box::after { content: 'x'; }
.article-checklist li.is-done { color: var(--muted); text-decoration: line-through; }

.article-rail { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 10px; }
.rail-block { padding: 14px; border: 1px solid var(--border); background: var(--surface); }
.rail-label { display: block; color: var(--muted); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.rail-value { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--text-soft); font-size: 10px; letter-spacing: 0.08em; }
.rail-btn {
  width: 100%; margin-top: 12px; padding: 9px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease;
}
.rail-btn:hover, .rail-btn.is-copied { color: var(--accent); border-color: var(--accent); }

.related-section {
  background: rgba(23, 23, 23, 0.82);
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
  border-block: 1px solid var(--border);
}

/* ---------- Archive ---------- */
.archive-head { padding-top: 88px; padding-bottom: 16px; }
.archive-topline {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
}
.archive-topline span:first-child { color: var(--accent); }
.archive-title {
  margin-top: 30px;
  font-family: var(--font-display); font-size: clamp(42px, 6vw, 76px);
  font-weight: 700; letter-spacing: -0.05em;
}
.archive-description { margin-top: 16px; max-width: 60ch; color: var(--text-soft); font-size: 16px; }
.archive-count { margin-top: 22px; color: var(--muted); font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; }
.archive-section { padding-top: 56px; }
.author-card { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.author-avatar { width: 112px; height: 112px; border: 1px solid var(--border); object-fit: cover; }
.author-avatar-fallback { display: grid; place-items: center; color: var(--accent); font-size: 34px; }
.author-card .archive-title { margin-top: 0; }
.page-body { padding: 8px 0 112px; }

/* ---------- Error ---------- */
.error-main { display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); }
.error-panel { padding: 88px 0; text-align: center; }
.error-title {
  margin-top: 22px;
  font-family: var(--font-display); font-size: clamp(52px, 8vw, 104px);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.055em;
}
.error-support { margin: 22px auto 32px; max-width: 46ch; color: var(--text-soft); }

/* ---------- Footer — city grid ---------- */
.site-footer {
  position: relative;
  min-height: 236px;
  padding: 56px 0 148px;
  border-top: 1px solid var(--border);
  background: transparent;
  overflow: hidden;
}
.footer-inner {
  position: relative;
  z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; font-size: 11px; color: var(--muted);
}
.footer-note, .footer-blog, .back-to-top {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
}
.footer-blog, .back-to-top {
  position: relative;
  z-index: 3;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft);
}
.footer-blog:hover, .back-to-top:hover { color: var(--accent); }

.footer-city {
  --skyline: polygon(
    0 72%, 5% 72%, 5% 48%, 9% 48%, 9% 62%, 14% 62%, 14% 35%, 18% 35%,
    18% 58%, 23% 58%, 23% 28%, 27% 28%, 27% 54%, 31% 54%, 31% 42%,
    36% 42%, 36% 66%, 41% 66%, 41% 22%, 45% 22%, 45% 52%, 50% 52%,
    50% 38%, 55% 38%, 55% 60%, 60% 60%, 60% 30%, 65% 30%, 65% 56%,
    70% 56%, 70% 44%, 75% 44%, 75% 64%, 80% 64%, 80% 26%, 84% 26%,
    84% 50%, 89% 50%, 89% 40%, 94% 40%, 94% 60%, 100% 60%,
    100% 100%, 0 100%
  );
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.city-glow {
  position: absolute;
  left: -10%; right: -10%; bottom: -34px;
  height: 190px;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 66%);
  filter: blur(18px);
}
.city-skyline, .city-windows {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 152px;
  clip-path: var(--skyline);
}
.city-skyline {
  background: linear-gradient(180deg, #1c1c1c 0%, #080808 100%);
  opacity: 0.94;
}
.city-windows {
  background-image:
    radial-gradient(circle, var(--accent) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.8px, transparent 1.4px);
  background-size: 26px 22px, 38px 30px;
  background-position: 4px 8px, 17px 18px;
  mix-blend-mode: screen;
  animation: city-twinkle 4.6s ease-in-out infinite alternate;
}
.city-windows-b {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.9px, transparent 1.5px),
    radial-gradient(circle, var(--accent) 0.8px, transparent 1.4px);
  background-size: 34px 28px, 52px 40px;
  background-position: 11px 5px, 29px 22px;
  animation-duration: 6.3s;
  animation-direction: alternate-reverse;
}
.city-beacon {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px var(--accent-line);
  animation: city-beacon 3s steps(2, end) infinite;
}
.beacon-a { left: 16%; bottom: 118px; animation-delay: 0.35s; }
.beacon-b { left: 43%; bottom: 142px; animation-delay: 1.1s; }
.beacon-c { left: 68%; bottom: 128px; animation-delay: 1.85s; }
.beacon-d { left: 87%; bottom: 108px; animation-delay: 2.4s; }
.city-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  box-shadow: 0 0 18px var(--accent-line);
}
@keyframes city-twinkle {
  from { opacity: 0.22; }
  to { opacity: 0.68; }
}
@keyframes city-beacon {
  0%, 68%, 100% { opacity: 0.25; }
  74%, 90% { opacity: 1; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease) var(--delay, 0ms), transform 0.7s var(--ease) var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav .nav a { padding: 8px 5px; font-size: 9px; }
  .brand-tag { display: none; }
}

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-rail { position: static; grid-template-columns: repeat(3, 1fr); }
  .hero-annotations { display: none; }
  .earth-stage { right: -20%; opacity: 0.55; }
  .timeline-link { grid-template-columns: 72px minmax(0, 1fr) 110px; gap: 20px; }
  .timeline-feed::before { left: 72px; }
  .timeline-dot { left: 68px; }
}

@media (max-width: 880px) {
  :root { --header-h: 62px; }
  .container { padding-inline: 24px; }
  .blog-hero { padding-top: 76px; }
  .blog-hero-copy { padding-bottom: 56px; }
  .earth-stage { right: -34%; opacity: 0.42; }
  .section { padding: 84px 0; }
  .timeline-link { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .timeline-feed::before { left: 64px; }
  .timeline-dot { left: 60px; }
  .timeline-side { display: none; }

  .nav-toggle { display: grid; }
  .primary-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    display: none;
    margin: 0;
    padding: 12px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .nav { display: grid; }
  .primary-nav .nav a { padding: 11px 0; font-size: 11px; border-bottom: 1px solid var(--border-soft); }
  .primary-nav .nav a::after { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .btn-subscribe { display: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .header-inner { gap: 12px; }
  .brand-text { font-size: 13px; }
  .brand-mark { width: 26px; height: 26px; }
  .search-btn { display: none; }
  .blog-title { font-size: clamp(44px, 13vw, 70px); }
  .post-grid { grid-template-columns: 1fr; }
  .article-rail { grid-template-columns: 1fr; }
  .article-topline-id { display: none; }
  .blog-readout { gap: 8px 20px; }
  .author-card { align-items: flex-start; gap: 16px; }
  .author-avatar { width: 72px; height: 72px; }
  .footer-inner { justify-content: flex-start; }
  .site-footer { min-height: 212px; padding: 44px 0 126px; }
  .city-skyline, .city-windows { height: 128px; }
  .journey-readout { left: 18px; bottom: 18px; max-width: calc(100% - 36px); font-size: 8px; }
  .journey-satellite { width: 38px; right: 18px; }
  .satellite-trail { display: none; }
  .timeline-feed::before { display: none; }
  .timeline-link { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .timeline-rail { flex-direction: row; gap: 12px; }
  .timeline-dot { display: none; }
  .timeline-side { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
  .timeline-content p { font-size: 13px; }
  .back-site-long { display: none; }
  .back-site-short { display: inline; }
}

@media (max-width: 420px) {
  .back-site { width: 34px; padding: 0; justify-content: center; }
  .back-site-short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .journey-satellite, .journey-stars-near, .city-windows, .city-beacon { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Kursor roket ---------- */
@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: var(--cursor-rocket) 16 16, auto; }
  a, button, [role="button"], .btn, .search-btn, .lang-btn, .icon-btn, .copy-btn {
    cursor: var(--cursor-rocket) 16 16, pointer;
  }
}
