/* ==========================================================================
   editama.tech — style.css
   1. Tokens & reset      5. Featured
   2. Background & util   6. Post grid
   3. Header & nav        7. Article / post page
   4. Hero                8. About, footer, responsive
   ========================================================================== */

/* ---------- 1. Tokens & reset ------------------------------------------- */
:root {
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SFMono-Regular", monospace;

  --bg: #060a0d;
  --bg-soft: #0a1015;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9f4f8;
  --text-2: #a3b7c1;
  --text-3: #6d838e;
  --accent: #2ee6c5;
  --accent-2: #22b8ff;
  --accent-soft: rgba(46, 230, 197, 0.12);
  --danger: #ff6b81;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1160px;
  --read: 720px;

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

[data-theme="light"] {
  --bg: #f6fafb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-hover: #ffffff;
  --line: rgba(8, 40, 52, 0.1);
  --line-strong: rgba(8, 40, 52, 0.2);
  --text: #071619;
  --text-2: #47616c;
  --text-3: #708a95;
  --accent: #0e9f8e;
  --accent-2: #0b82c4;
  --accent-soft: rgba(14, 159, 142, 0.1);
  --shadow: 0 20px 50px -30px rgba(10, 40, 52, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #04120f; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. Background & utility ------------------------------------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(46, 230, 197, 0.13), transparent 62%),
    radial-gradient(760px 480px at 8% 4%, rgba(34, 184, 255, 0.1), transparent 60%),
    radial-gradient(700px 700px at 50% 108%, rgba(120, 70, 255, 0.08), transparent 65%);
}

.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.section-head .aside {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
}
.section-head .count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 46ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { gap: 14px; }

.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 3. Header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
  margin-right: auto;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #04120f;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 22px -10px var(--accent);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.lang-btn {
  width: auto;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.nav-toggle { display: none; }

/* ---------- 4. Hero ----------------------------------------------------- */
.hero {
  padding: 60px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 20px 0 0;
}

.hero p.lead {
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-2);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #04120f;
  box-shadow: 0 14px 34px -18px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px var(--accent); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--line-strong); }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats div { padding-right: 30px; }
.hero-stats div + div {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.hero-stats div span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-stats div small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-3);
}

/* terminal card */
.term {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.term:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.term-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
}
.term-bar i:first-child { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.term-body {
  padding: 20px 20px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--text-2);
  overflow-x: auto;
}
.term-body .p { color: var(--accent); }
.term-body .k { color: #b48cff; }
.term-body .s { color: var(--accent-2); }
.term-body .c { color: var(--text-3); }
.term-body .out { color: var(--text); }
.term-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* topic strip */
.topic-strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
  overflow: hidden;
}
.topic-track {
  display: flex;
  gap: 44px;
  padding: 13px 0;
  width: max-content;
  animation: slide 68s linear infinite;
}
.topic-strip:hover .topic-track { animation-play-state: paused; }
.topic-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 44px;
}
.topic-track span::after {
  content: "◆";
  font-size: 7px;
  color: var(--accent);
  opacity: 0.7;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 5. Featured ------------------------------------------------- */
.section { padding: 72px 0; }
.section.tight { padding: 44px 0 60px; }

.featured {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.featured:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background: var(--cover, linear-gradient(140deg, #2ee6c5, #22b8ff));
  overflow: hidden;
  isolation: isolate;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 45%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 9px);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 13, 0.04) 35%, rgba(4, 10, 13, 0.42));
}

[data-theme="light"] .cover::after {
  background: linear-gradient(180deg, rgba(4, 10, 13, 0) 45%, rgba(4, 10, 13, 0.3));
}

.cover-mark {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s var(--ease);
}

.featured .cover { min-height: 264px; }
.featured:hover .cover-mark { transform: scale(1.04); }

.featured-body {
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .meta { margin: 0 0 14px; }
.featured-body h3 { margin-top: 0; }
.featured-body .read-more { margin-top: 22px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.chip.accent {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.featured-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.032em;
  font-weight: 600;
  margin: 16px 0 0;
}
.featured:hover h3 { color: var(--accent); }
.featured-body h3 { transition: color 0.25s; }

.featured-body p {
  color: var(--text-2);
  margin: 14px 0 0;
  font-size: 0.96rem;
  max-width: 48ch;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* ---------- 6. Post grid ------------------------------------------------ */
.toolbar {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #04120f;
  font-weight: 550;
}

.search-wrap {
  position: relative;
  margin-left: auto;
  min-width: 230px;
}
.search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.8;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}
.search-wrap input::placeholder { color: var(--text-3); }
.search-wrap input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--surface-hover);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.card .cover {
  aspect-ratio: 5 / 2;
  min-height: 0;
}
.card .cover-mark { font-size: 1.9rem; opacity: 0.92; }
.card:hover .cover-mark { transform: scale(1.06); }

/* kategori menempel di sampul supaya badan kartu bersih */
.chip-on-cover {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 10, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  transition: color 0.2s;
}
.card:hover h3 { color: var(--accent); }

.card-body p {
  margin: 8px 0 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.card-foot .go {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s, transform 0.25s var(--ease);
}
.card:hover .card-foot .go { color: var(--accent); transform: translate(2px, -2px); }

.empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-2);
}
.empty strong { display: block; color: var(--text); margin-bottom: 6px; font-family: var(--font-display); }

/* ---------- newsletter -------------------------------------------------- */
.subscribe {
  position: relative;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  background:
    radial-gradient(520px 180px at 6% 0%, var(--accent-soft), transparent 72%),
    var(--surface);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: center;
}
.subscribe h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  line-height: 1.25;
}
.subscribe p { color: var(--text-2); margin: 7px 0 0; font-size: 0.88rem; max-width: 52ch; }

.sub-form { display: flex; gap: 8px; }
.sub-form input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--text);
  font-size: 0.88rem;
}
.sub-form input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.sub-form .btn { height: 42px; }
.sub-note {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ---------- 7. Article -------------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

.article-head {
  padding: 56px 0 0;
  text-align: center;
}
.article-head .inner { max-width: 780px; margin-inline: auto; }

.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 20px 0 0;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

.article-cover {
  max-width: 940px;
  margin: 44px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.article-cover .cover { min-height: 260px; }
.article-cover .cover-mark { font-size: clamp(2.4rem, 8vw, 5rem); }

.article-wrap {
  max-width: var(--read);
  margin: 0 auto;
  padding: 56px 0 0;
}

.prose {
  font-size: 1.055rem;
  line-height: 1.82;
  color: color-mix(in srgb, var(--text) 92%, var(--text-2));
}
.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.62rem;
  letter-spacing: -0.028em;
  line-height: 1.28;
  font-weight: 600;
  margin-top: 2.4em;
  color: var(--text);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 2em;
  color: var(--text);
}
.prose h2 + p, .prose h3 + p { margin-top: 0.9em; }

.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 0.9em; }

.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.06rem;
}
.prose blockquote p { margin: 0; }
.prose blockquote p::before { content: ""; }

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.6em 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.9em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 100%;
}
.prose thead th {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.prose tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--surface); }
.prose tbody td:first-child { color: var(--text); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.855em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.code-block {
  position: relative;
  margin: 1.9em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050a0d;
  overflow: hidden;
}
[data-theme="light"] .code-block { background: #0b1218; }

.code-lang {
  display: block;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d94a0;
  background: rgba(255, 255, 255, 0.02);
}

.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: #cfe3ec;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}
.tok-com { color: #5b7480; font-style: italic; }
.tok-str { color: #7ee7c7; }
.tok-kw { color: #b48cff; }
.tok-num { color: #ffc247; }

.code-copy {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #9db2bd;
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.code-copy:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.code-copy.done { color: var(--accent); border-color: var(--accent); }

.article-foot {
  max-width: var(--read);
  margin: 64px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.share-row .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}
.share-row a, .share-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.share-row a:hover, .share-row button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.author-avatar {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #04120f;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
}
.author-box h4 { margin: 0; font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; }
.author-box p { margin: 5px 0 0; font-size: 0.87rem; color: var(--text-2); line-height: 1.6; }

.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.postnav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.postnav a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.postnav span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.postnav strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.4;
}
.postnav .next { text-align: right; }

/* ---------- 8. About / page -------------------------------------------- */
.page-head {
  padding: 72px 0 44px;
  max-width: 780px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.042em;
  font-weight: 600;
  margin: 18px 0 0;
}
.page-head p { color: var(--text-2); font-size: 1.05rem; margin: 18px 0 0; max-width: 56ch; }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  position: sticky;
  top: 92px;
}
.profile-top { display: flex; gap: 16px; align-items: center; }
.profile-avatar {
  width: 62px; height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #04120f;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 12px 30px -14px var(--accent);
}
.profile-top h2 { margin: 0; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.profile-top small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.profile-card p { color: var(--text-2); font-size: 0.9rem; margin: 18px 0 0; }

.skill-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 2px; }
.skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.87rem;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li span:last-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
}

.timeline { position: relative; padding-left: 26px; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--line) 70%, transparent);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -25px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.tl-item small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.tl-item h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.tl-item p { margin: 6px 0 0; color: var(--text-2); font-size: 0.89rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.25s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.contact-card small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-card strong { display: block; margin-top: 8px; font-size: 0.92rem; font-weight: 550; }
.contact-card span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-2); }

/* footer */
.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { font-size: 0.89rem; color: var(--text-2); transition: color 0.2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--text-2); font-size: 0.89rem; margin: 14px 0 0; max-width: 34ch; }

.footer-latest a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-2);
}
.footer-latest a strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}
.footer-latest a span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
}
.footer-latest li + li { padding-top: 10px; border-top: 1px solid var(--line); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  flex-wrap: wrap;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- responsive -------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .term { transform: none; }
  .featured { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .subscribe { grid-template-columns: 1fr; padding: 36px 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding-inline: 18px; }
  .nav { height: 62px; gap: 12px; }
  .nav-links {
    position: fixed;
    inset: 62px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 20px;
    background: var(--bg);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; font-size: 0.95rem; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: inline-grid; }
  .brand-sub { display: none; }
  .hero { padding: 46px 0 44px; }
  .hero-stats { gap: 0; margin-top: 32px; }
  .hero-stats div { padding-right: 16px; }
  .hero-stats div + div { padding-left: 16px; }
  .hero-stats div span { font-size: 1.25rem; }
  .section { padding: 54px 0; }
  .section.tight { padding: 34px 0 44px; }
  .section-head { padding-top: 20px; margin-bottom: 24px; }
  .toolbar { position: static; padding: 10px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .featured-body { padding: 26px 22px 30px; }
  .search-wrap { margin-left: 0; width: 100%; min-width: 0; }
  .article-head { padding-top: 34px; }
  .article-wrap { padding-top: 38px; }
  .prose { font-size: 1rem; line-height: 1.78; }
  .prose thead th,
  .prose tbody td { padding: 8px 10px; }
  .prose table { font-size: 0.9rem; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sub-form { flex-direction: column; }
  .sub-form .btn { width: 100%; }
  .page-head { padding-top: 40px; }
  .author-box { flex-direction: column; gap: 12px; }
}
