/* ==========================================================================
   HACKERBLOG · main stylesheet
   Dark editorial system for exploit analysis & security research.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-normal-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-italic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-normal-400.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0b0a;
  --bg-2: #0e100e;
  --bg-3: #121512;
  --bg-code: #070807;
  --ink: #ece9e1;
  --ink-2: #c9ccc3;
  --muted: #92988f;
  --faint: #5d635b;
  --line: rgba(236, 233, 225, 0.11);
  --line-2: rgba(236, 233, 225, 0.2);
  --accent: #ff6038;
  --accent-2: #ffa07f;
  --accent-soft: rgba(255, 96, 56, 0.1);
  --signal: #b8f24a;
  --danger: #ff5a5a;
  --sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --display: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --shell: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: 'ss01' on, 'cv01' on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #0a0b0a; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.mono-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--accent); color: #0a0b0a; padding: 10px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.page-grain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none;
  opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* ── buttons & links ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #0a0b0a; }
.btn--solid:hover { background: #ff7a58; border-color: #ff7a58; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(236, 233, 225, .05); }
.btn--danger { border-color: rgba(255, 90, 90, .45); color: var(--danger); }
.btn--danger:hover { background: rgba(255, 90, 90, .1); border-color: var(--danger); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 10px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.link-button {
  background: none; border: 0; padding: 0; color: inherit; text-align: left;
  font: inherit; cursor: pointer;
}
.status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 3px rgba(184, 242, 74, .12);
  vertical-align: middle;
}

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 11, 10, .78);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 36px;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { display: block; width: 30px; height: 30px; color: var(--ink); transition: color .25s; }
.brand:hover .brand-mark { color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text strong {
  font-size: 13px; font-weight: 700; letter-spacing: .17em; line-height: 1.1;
}
.brand-text small {
  font-family: var(--mono); font-size: 7.5px; letter-spacing: .24em;
  color: var(--faint); line-height: 1.2;
}
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: 18px; }
.nav-link {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 26px 0; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s;
}
.nav-link em {
  font-family: var(--mono); font-style: normal; font-size: 7.5px;
  letter-spacing: .1em; color: var(--faint); transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 18px; height: 1px;
  background: var(--accent); transition: right .35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active em { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: var(--muted); padding: 4px;
  transition: color .2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn kbd {
  font-size: 8px; letter-spacing: .06em; color: var(--faint);
  border: 1px solid var(--line); padding: 2px 4px; border-radius: 2px;
}
.icon-btn:hover { color: var(--ink); }
.header-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  color: var(--muted); transition: color .2s;
}
.header-link:hover { color: var(--ink); }
.header-link .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.console-link { color: var(--faint); }
.console-link:hover { color: var(--accent); }
.nav-toggle {
  display: none; width: 34px; height: 34px; border: 1px solid var(--line);
  background: transparent; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .3s;
}
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { top: 20px; }
.nav-toggle[aria-expanded='true'] span:first-child { top: 17px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { top: 17px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 70px 0 auto; z-index: 80;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px var(--pad) 24px; display: flex; flex-direction: column;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 500;
}
.mobile-nav a span { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .12em; }
.mobile-nav a.is-active { color: var(--accent); }
.mobile-nav__admin { color: var(--muted); margin-top: 8px; }

/* ── search overlay ─────────────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(5, 6, 5, .78); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh var(--pad) 40px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(680px, 100%); background: var(--bg-2);
  border: 1px solid var(--line-2); padding: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  animation: panelIn .35s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-10px) scale(.99); } }
.search-panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-form { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); padding: 10px 12px 10px 16px; }
.search-form__prompt { color: var(--accent); font-family: var(--mono); }
.search-form input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-size: 17px; padding: 8px 0;
}
.search-form input::placeholder { color: var(--faint); }
.search-hints { margin-top: 22px; display: flex; gap: 28px; }
.search-hints__links { display: flex; flex-direction: column; gap: 8px; }
.search-hints__links a { display: flex; justify-content: space-between; gap: 40px; font-size: 13px; color: var(--ink-2); }
.search-hints__links a:hover { color: var(--accent); }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 104px); overflow: hidden; }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, black 15%, transparent 75%);
  opacity: .42;
}
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; right: -220px; top: -300px;
  background: radial-gradient(circle, rgba(255, 96, 56, .13), transparent 66%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(44px, 7vw, 96px); align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted);
  margin-bottom: 34px;
}
.eyebrow__mark { width: 7px; height: 7px; background: var(--accent); }
.eyebrow__slash { color: var(--faint); }
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(74px, 10.4vw, 150px); line-height: .84; letter-spacing: -.025em;
  margin-left: -0.04em;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-lede {
  max-width: 54ch; margin-top: 36px;
  color: var(--muted); font-size: 16px; line-height: 1.95;
}
.hero-actions { display: flex; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 64px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 6px; }
.hero-stats dt { font-size: 10px; color: var(--faint); letter-spacing: .12em; }
.hero-stats dd { font-size: 24px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.hero-stats__live { display: flex; align-items: center; gap: 8px; font-size: 12px !important; letter-spacing: .08em; color: var(--signal) !important; }

.dossier {
  position: relative; background: linear-gradient(180deg, #111411 0%, #0b0d0b 100%);
  border: 1px solid var(--line-2); box-shadow: 0 50px 120px rgba(0, 0, 0, .55);
}
.dossier::before, .dossier::after {
  content: ''; position: absolute; width: 13px; height: 13px; pointer-events: none;
}
.dossier::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.dossier::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.dossier__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 9px; letter-spacing: .14em; color: var(--muted);
}
.dossier__chip {
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  border: 1px solid rgba(255, 96, 56, .5); color: var(--accent); padding: 2px 6px;
}
.dossier__body { position: relative; padding: 28px 24px 24px; overflow: hidden; }
.dossier__stamp {
  position: absolute; top: 22px; right: -16px; transform: rotate(9deg);
  border: 1px solid rgba(255, 96, 56, .5); color: rgba(255, 96, 56, .75);
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em; padding: 4px 34px;
}
.dossier__index { font-size: 8.5px; letter-spacing: .16em; color: var(--faint); }
.dossier__title {
  font-family: var(--display); font-weight: 400; font-size: 33px; line-height: 1.08;
  letter-spacing: -.01em; margin-top: 14px; max-width: 15ch;
}
.dossier__meta { margin-top: 26px; border-top: 1px solid var(--line); }
.dossier__meta div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.dossier__meta dt { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; color: var(--faint); }
.dossier__meta dd { font-family: var(--mono); font-size: 9.5px; color: var(--ink-2); text-align: right; }
.dossier__asm {
  margin-top: 22px; padding: 16px 14px; background: var(--bg-code);
  border: 1px solid var(--line); font-size: 9.5px; line-height: 2; color: #9ba298;
  overflow-x: auto;
}
.dossier__asm .n { color: #5d635b; margin-right: 10px; }
.dossier__asm .c { color: #596158; }
.dossier__asm .hot { color: var(--accent); background: rgba(255, 96, 56, .08); padding: 1px 3px; }
.dossier__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-top: 1px solid var(--line);
  font-size: 8px; letter-spacing: .12em; color: var(--faint);
}
.dossier__foot b { color: var(--accent); }
.dossier__foot a { color: var(--ink-2); }
.dossier__foot a:hover { color: var(--accent); }

/* ── featured ───────────────────────────────────────────────────────── */
.featured-section { padding-bottom: clamp(70px, 9vw, 108px); }
.section-kicker { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.section-kicker__line { flex: 1; height: 1px; background: var(--line); }
.featured-card {
  display: grid; grid-template-columns: 1.15fr .85fr;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
  min-height: 420px;
}
.featured-card:hover {
  border-color: rgba(255, 96, 56, .45); transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.featured-card__content {
  padding: clamp(30px, 4.2vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.featured-card__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--faint); font-size: 9px; }
.pill {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255, 96, 56, .4); padding: 3px 8px;
  background: var(--accent-soft);
}
.featured-card__title {
  margin-top: 26px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.12; max-width: 19ch;
  transition: color .25s;
}
.featured-card:hover .featured-card__title { color: var(--accent); }
.featured-card__summary {
  margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.featured-card__cta { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink); }
.featured-card__cta span { color: var(--accent); margin-left: 4px; }
.featured-card__views { font-size: 8.5px; color: var(--faint); letter-spacing: .1em; }
.featured-card__visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 96, 56, .09), transparent 60%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.signal-art { width: 72%; height: auto; color: rgba(236, 233, 225, .22); }
.signal-art__rings { animation: slowSpin 90s linear infinite; transform-origin: 260px 260px; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.signal-art__pulse { animation: pulseRing 3.2s ease-out infinite; transform-origin: 260px 260px; }
@keyframes pulseRing { 0% { r: 12; opacity: 1; } 100% { r: 44; opacity: 0; } }
.signal-art__label { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; fill: var(--accent); }
.signal-art__coord { font-family: var(--mono); font-size: 7px; letter-spacing: .12em; fill: rgba(236, 233, 225, .42); }
.featured-card__figure {
  position: absolute; bottom: 16px; left: 18px; font-size: 8px;
  letter-spacing: .14em; color: var(--faint);
}

/* ── section head ───────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-2);
}
.section-head__title { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.section-head__aside { display: flex; align-items: center; gap: 28px; padding-bottom: 4px; }
.section-head__note { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .06em; }

/* ── latest list ────────────────────────────────────────────────────── */
.latest-section { padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 120px); }
.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(40px, 6vw, 84px); margin-top: 8px; }
.post-list { min-width: 0; }
.post-row { border-bottom: 1px solid var(--line); }
.post-row__link {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 116px;
  gap: clamp(16px, 2vw, 30px); align-items: start; padding: 32px 0;
  transition: padding .35s var(--ease), background .35s;
}
.post-row__link::before {
  content: ''; position: absolute; left: -18px; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 2px; height: 52%; background: var(--accent); transition: transform .35s var(--ease);
}
.post-row__link:hover::before { transform: translateY(-50%) scaleY(1); }
.post-row__index { font-family: var(--mono); font-size: 10px; color: var(--faint); padding-top: 5px; }
.post-row__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.post-row__meta .cat {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.tag-inline { font-family: var(--mono); font-size: 8.5px; color: var(--faint); letter-spacing: .04em; }
.post-row__title { font-size: clamp(19px, 1.9vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.32; transition: color .25s; }
.post-row__link:hover .post-row__title { color: var(--accent); }
.post-row__summary {
  margin-top: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row__side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font-size: 9px; color: var(--faint); letter-spacing: .06em; padding-top: 4px;
}
.post-row__arrow {
  margin-top: 14px; font-size: 19px; color: var(--ink-2);
  transition: transform .35s var(--ease), color .25s;
}
.post-row__link:hover .post-row__arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ── aside ──────────────────────────────────────────────────────────── */
.home-aside { position: sticky; top: 100px; align-self: start; }
.aside-block { border-top: 1px solid var(--line-2); padding: 26px 0 30px; }
.aside-block:first-child { border-top: 0; padding-top: 4px; }
.aside-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.aside-block__more { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.aside-block__more:hover { color: var(--accent); }
.aside-block__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.aside-block__text { font-size: 12.5px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.tag-index li { border-bottom: 1px dashed var(--line); }
.tag-index li:last-child { border-bottom: 0; }
.tag-index a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 0; font-size: 13px; color: var(--ink-2); transition: color .2s, padding .25s var(--ease);
}
.tag-index a:hover { color: var(--accent); padding-left: 4px; }
.tag-index em { font-style: normal; font-size: 9px; color: var(--faint); }
.tag-index__empty { color: var(--faint); font-size: 12px; padding: 8px 0; }
.tag-index--compact a { font-size: 12.5px; padding: 8px 0; }
.tag-index li.is-current a { color: var(--accent); }
.aside-block--signal {
  background: linear-gradient(160deg, rgba(255, 96, 56, .07), rgba(255, 96, 56, 0) 65%);
  border: 1px solid var(--line); padding: 24px; margin-top: 10px;
}
.aside-block--signal .aside-block__head { margin-bottom: 12px; }
.subscribe-form { display: flex; gap: 6px; }
.subscribe-form input {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-2);
  padding: 10px 12px; font-size: 12px; outline: none; transition: border-color .2s;
}
.subscribe-form input:focus { border-color: var(--accent); }
.subscribe-form .btn { min-height: 38px; padding: 0 14px; }
.form-note { margin-top: 10px; font-size: 11px; }
.form-note--ok { color: var(--signal); }
.form-note--err { color: var(--danger); }
.aside-block--now { margin-top: 0; border-top: 1px solid var(--line); }
.now-list { display: flex; flex-direction: column; gap: 10px; }
.now-list li { display: flex; gap: 9px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.now-list b { color: var(--ink-2); font-weight: 500; }
.now-list i { color: var(--ink-2); font-style: italic; }
.now-list__dot { flex: none; width: 4px; height: 4px; margin-top: 7px; background: var(--accent); }

/* ── pagination / empty ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0 4px; }
.pagination__link { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-2); }
.pagination__link:hover { color: var(--accent); }
.pagination__link.is-disabled { color: var(--faint); cursor: default; }
.pagination__count { font-size: 9px; color: var(--faint); }
.empty-state { border-top: 1px solid var(--line); padding: 70px 0; text-align: center; }
.empty-state__mark {
  display: block; width: 34px; height: 34px; margin: 0 auto 20px; position: relative;
  border: 1px solid var(--line-2);
}
.empty-state__mark::before, .empty-state__mark::after {
  content: ''; position: absolute; background: var(--faint);
}
.empty-state__mark::before { width: 1px; height: 14px; left: 16px; top: 9px; }
.empty-state__mark::after { height: 1px; width: 14px; top: 16px; left: 9px; }
.empty-state h3 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }

/* ── archive band ───────────────────────────────────────────────────── */
.archive-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.archive-band__inner { display: grid; grid-template-columns: 1fr 2fr auto; gap: 50px; align-items: center; padding: 64px 0; }
.archive-band__label h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; margin-top: 10px; }
.archive-band__years { display: flex; gap: 12px; flex-wrap: wrap; }
.year-cell {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 22px;
  border: 1px solid var(--line); min-width: 128px; transition: border-color .25s, background .25s;
}
.year-cell:hover { border-color: var(--accent); background: var(--accent-soft); }
.year-cell__number { font-family: var(--display); font-size: 36px; line-height: 1; }
.year-cell__count { font-size: 8px; letter-spacing: .12em; color: var(--faint); }
.archive-band__link { display: flex; align-items: center; gap: 18px; }
.archive-band__arrow { font-size: 30px; color: var(--accent); transition: transform .3s var(--ease); }
.archive-band__link:hover .archive-band__arrow { transform: translateX(6px); }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 84px) 0 22px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(30px, 5vw, 70px); }
.footer-logo { font-size: 26px; font-weight: 700; letter-spacing: .06em; }
.footer-logo span { color: var(--accent); font-size: 10px; vertical-align: super; margin-left: 3px; }
.footer-tagline { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--accent); margin-top: 8px; }
.footer-desc { margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.8; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .mono-label { margin-bottom: 6px; }
.footer-col a { font-size: 12.5px; color: var(--ink-2); width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col--note p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.footer-disclaimer { color: var(--faint) !important; font-family: var(--mono); font-size: 9px !important; letter-spacing: .06em; }
.footer-wordmark {
  margin-top: 60px; margin-bottom: -1.4vw;
  font-size: clamp(70px, 15.8vw, 210px); font-weight: 700; letter-spacing: -.045em; line-height: .78;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 233, 225, .1);
  white-space: nowrap; user-select: none;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 20px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; color: var(--faint);
}
.footer-meta { display: flex; align-items: center; gap: 8px; }
.footer-meta__sep { color: var(--line-2); }
.footer-meta a:hover { color: var(--accent); }

/* ── shared page head ───────────────────────────────────────────────── */
.page-head { padding: clamp(64px, 9vw, 110px) 0 clamp(38px, 5vw, 58px); position: relative; }
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 88px 100%;
  mask-image: linear-gradient(to right, black, transparent 80%);
  opacity: .3;
}
.page-head > .shell { position: relative; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-top: 16px; }
.page-head h1 {
  font-size: clamp(54px, 7.6vw, 104px); font-weight: 600; letter-spacing: -.05em;
  line-height: .95; display: flex; align-items: flex-start; gap: 12px;
}
.page-head__count { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--accent); padding-top: 10px; }
.page-head__row > p { max-width: 46ch; color: var(--muted); font-size: 13.5px; line-height: 1.85; padding-bottom: 6px; }

/* ── archive page ───────────────────────────────────────────────────── */
.archive-list { padding-bottom: 110px; }
.archive-year { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 50px; padding: 50px 0; border-top: 1px solid var(--line); }
.archive-year__side { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.archive-year__number { font-family: var(--display); font-size: 76px; line-height: .9; letter-spacing: -.03em; }
.archive-year__count { font-size: 9px; color: var(--faint); letter-spacing: .12em; }
.archive-year__rule { width: 34px; height: 1px; background: var(--accent); margin-top: 12px; }
.archive-item {
  display: grid; grid-template-columns: 70px 110px minmax(0, 1fr) 70px 28px;
  gap: 18px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), color .2s;
}
.archive-item:hover { padding-left: 10px; }
.archive-item__date, .archive-item__cat, .archive-item__read { font-size: 9px; color: var(--faint); letter-spacing: .06em; }
.archive-item__cat { text-transform: uppercase; }
.archive-item h3 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.4; transition: color .2s; }
.archive-item:hover h3 { color: var(--accent); }
.archive-item__arrow { font-size: 17px; color: var(--faint); transition: transform .3s var(--ease), color .2s; }
.archive-item:hover .archive-item__arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ── tags page ──────────────────────────────────────────────────────── */
.tags-list { padding-bottom: 110px; border-top: 1px solid var(--line); }
.tag-row {
  display: grid; grid-template-columns: 60px minmax(120px, 1fr) minmax(80px, 260px) 60px 30px;
  gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.tag-row:hover { padding-left: 8px; }
.tag-row__index { font-size: 9px; color: var(--faint); }
.tag-row__name { font-size: 19px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.tag-row:hover .tag-row__name { color: var(--accent); }
.tag-row__bar { height: 1px; background: var(--line); position: relative; }
.tag-row__bar i { position: absolute; left: 0; top: 0; height: 1px; width: var(--w); background: var(--accent); }
.tag-row__count { font-size: 10px; color: var(--muted); text-align: right; }
.tag-row__arrow { font-size: 17px; color: var(--faint); transition: transform .3s var(--ease), color .2s; }
.tag-row:hover .tag-row__arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ── search ─────────────────────────────────────────────────────────── */
.page-head--search { padding-bottom: 24px; }
.search-page-form {
  display: flex; align-items: center; gap: 14px; margin-top: 34px;
  border: 1px solid var(--line-2); padding: 12px 14px 12px 18px; background: var(--bg-2);
  transition: border-color .2s;
}
.search-page-form:focus-within { border-color: var(--accent); }
.search-page-form__prompt { color: var(--accent); font-family: var(--mono); font-size: 18px; }
.search-page-form input {
  flex: 1; background: none; border: 0; outline: none; font-size: 18px; padding: 8px 0;
}
.search-page-form input::placeholder { color: var(--faint); }
.search-result-meta { display: flex; align-items: baseline; gap: 14px; padding: 34px 0 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search-result-meta strong { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.search-result-meta a { margin-left: auto; font-size: 9px; color: var(--faint); }
.search-result-meta a:hover { color: var(--accent); }
.search-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 60px 0 100px; }
.search-suggestions__block h2 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; margin: 14px 0 12px; }
.search-suggestions__block p { color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 42ch; }
.search-suggestions__links { display: flex; flex-direction: column; justify-content: center; }
.search-suggestions__links a {
  display: flex; align-items: center; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid var(--line); font-size: 15px; transition: color .2s, padding .3s;
}
.search-suggestions__links a:first-child { border-top: 1px solid var(--line); }
.search-suggestions__links a span { font-size: 9px; color: var(--faint); }
.search-suggestions__links a em { margin-left: auto; font-style: normal; color: var(--accent); }
.search-suggestions__links a:hover { color: var(--accent); padding-left: 6px; }

/* ── about ──────────────────────────────────────────────────────────── */
.about-section { padding-bottom: 120px; }
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-aside { position: sticky; top: 100px; }
.about-portrait {
  position: relative; aspect-ratio: 1; border: 1px solid var(--line-2); overflow: hidden;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 96, 56, .12), transparent 65%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.about-portrait__mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 96px; color: var(--ink); letter-spacing: -.02em;
}
.about-portrait__label { position: absolute; left: 14px; bottom: 12px; font-size: 7.5px; letter-spacing: .16em; color: var(--faint); }
.about-id { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.about-id strong { font-size: 17px; font-weight: 600; }
.about-id span { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.about-links { margin-top: 26px; border-top: 1px solid var(--line); }
.about-links li { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.about-links a, .about-links .mono { font-size: 12px; color: var(--ink-2); }
.about-links a:hover { color: var(--accent); }
.about-principles { margin-top: 28px; border-left: 2px solid var(--accent); padding-left: 14px; }
.about-principles p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.about-main .prose { max-width: 720px; }
.about-contact {
  margin-top: 60px; border: 1px solid var(--line); padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: var(--bg-2);
}
.about-contact h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 6px; }
.about-contact p { font-size: 13px; color: var(--muted); max-width: 40ch; }

/* ── post ───────────────────────────────────────────────────────────── */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130; background: transparent; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
.post-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(38px, 5vw, 58px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 8.5px; letter-spacing: .12em; color: var(--faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__current { color: var(--muted); text-transform: uppercase; }
.post-hero__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; color: var(--faint); font-size: 9px; letter-spacing: .08em; }
.post-title {
  font-size: clamp(38px, 5.8vw, 76px); font-weight: 600; letter-spacing: -.04em;
  line-height: 1.04; margin-top: 20px; max-width: 19ch;
}
.post-summary { margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 62ch; }
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.avatar {
  flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: var(--accent-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--accent);
}
.avatar--lg { width: 58px; height: 58px; font-size: 14px; }
.post-byline__author { display: flex; flex-direction: column; gap: 2px; }
.post-byline__author strong { font-size: 13px; font-weight: 600; }
.post-byline__author span { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.post-byline__facts { display: flex; gap: 36px; margin-left: auto; }
.post-byline__facts div { display: flex; flex-direction: column; gap: 3px; }
.post-byline__facts dt { font-size: 9px; color: var(--faint); letter-spacing: .1em; }
.post-byline__facts dd { font-size: 10px; color: var(--ink-2); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(40px, 7vw, 90px); padding-bottom: 100px; }
.post-main { min-width: 0; }
.post-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.post-divider .mono { font-size: 8.5px; letter-spacing: .14em; color: var(--faint); }
.post-divider__line { flex: 1; height: 1px; background: var(--line); }
.post-aside { position: relative; }
.post-aside .toc { position: sticky; top: 100px; padding-bottom: 10px; margin-bottom: 30px; }
.toc ol { margin-top: 14px; border-left: 1px solid var(--line); }
.toc__item a {
  display: block; padding: 7px 0 7px 14px; margin-left: -1px;
  border-left: 1px solid transparent; font-size: 11.5px; line-height: 1.5; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.toc__item--h3 a { padding-left: 26px; font-size: 11px; color: var(--faint); }
.toc__item a:hover, .toc__item.is-active a { color: var(--ink); border-left-color: var(--accent); }
.toc__item.is-active a { color: var(--accent); }
.post-aside__block { border-top: 1px solid var(--line); padding: 18px 0; }
.post-aside__date { font-size: 10px; color: var(--ink-2); margin-top: 8px; }
.post-aside__note { font-size: 11px; color: var(--faint); line-height: 1.7; margin-top: 8px; }
.post-aside__back { display: inline-block; margin-top: 20px; font-size: 9px; letter-spacing: .1em; color: var(--faint); }
.post-aside__back:hover { color: var(--accent); }

/* prose */
.prose { color: var(--ink-2); font-size: 16px; line-height: 1.95; max-width: 780px; }
.prose > *:first-child { margin-top: 0 !important; }
.prose p { margin: 0 0 1.35em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; position: relative; }
.prose h2 { font-size: 28px; margin: 2.3em 0 .75em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 21px; margin: 1.8em 0 .6em; }
.prose h4 { font-size: 17px; margin: 1.5em 0 .5em; }
.prose h2::before {
  content: ''; position: absolute; left: -18px; top: 1.35em; width: 7px; height: 7px; background: var(--accent);
}
.heading-anchor { color: var(--faint); font-family: var(--mono); font-size: .6em; margin-right: .35em; opacity: 0; transition: opacity .2s; position: absolute; left: -1.15em; top: .18em; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor { opacity: 1; }
.heading-anchor:hover { color: var(--accent); }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 160, 127, .35); transition: color .2s, text-decoration-color .2s; }
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; margin: .45em 0; }
.prose ul li::before { content: '▸'; position: absolute; left: -1.25em; top: .05em; color: var(--accent); font-size: .8em; }
.prose ol { list-style: decimal; }
.prose ol li { margin: .45em 0; padding-left: .2em; }
.prose ol li::marker { color: var(--accent); font-family: var(--mono); font-size: .8em; }
.prose blockquote {
  margin: 2em 0; padding: 20px 24px; border-left: 2px solid var(--accent);
  background: var(--bg-2); color: var(--ink-2); font-size: 15.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code:not(pre code) {
  font-size: .78em; background: var(--bg-3); border: 1px solid var(--line);
  padding: 2px 6px; color: var(--accent-2); word-break: break-word;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose img { display: block; border: 1px solid var(--line); }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--faint); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 13.5px; }
.prose th { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; }
.prose tr:nth-child(even) td { background: rgba(236, 233, 225, .015); }
.prose kbd { font-size: .75em; border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 1px 5px; background: var(--bg-3); }
.prose details { border: 1px solid var(--line); padding: 12px 16px; margin: 1.4em 0; background: var(--bg-2); }
.prose summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.prose mark { background: rgba(184, 242, 74, .18); color: var(--ink); padding: 0 3px; }
.prose input[type='checkbox'] { accent-color: var(--accent); margin-right: 8px; }

/* code blocks */
.codeblock { margin: 2em 0; border: 1px solid var(--line); background: var(--bg-code); }
.codeblock__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line);
  background: rgba(236, 233, 225, .02);
}
.codeblock__lang { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.codeblock__copy {
  background: none; border: 1px solid var(--line); color: var(--faint);
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; padding: 3px 8px;
  transition: color .2s, border-color .2s;
}
.codeblock__copy:hover { color: var(--accent); border-color: var(--accent); }
.codeblock pre { padding: 20px; overflow-x: auto; font-size: 12.5px; line-height: 1.85; }
.codeblock pre code { background: none; border: 0; padding: 0; color: #c7ccc2; }
.hljs-comment, .hljs-quote { color: #646b62; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-doctag, .hljs-formula { color: #ff7a52; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute { color: #b9e37f; }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-link { color: #e8c07a; }
.hljs-title, .hljs-section, .hljs-name, .hljs-selector-id, .hljs-selector-class { color: #8fc4ff; }
.hljs-built_in, .hljs-type, .hljs-class .hljs-title { color: #d8b4fe; }
.hljs-variable, .hljs-template-variable, .hljs-params { color: #d6d3c9; }
.hljs-meta, .hljs-meta .hljs-keyword { color: #7ec8b0; }
.hljs-deletion { color: #ff6b6b; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }
.hljs-addition { background: rgba(184, 242, 74, .06); }
.hljs-deletion { background: rgba(255, 90, 90, .06); }

/* post footer */
.post-footer { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-tags { display: flex; align-items: baseline; gap: 20px; padding-bottom: 20px; }
.post-tags > div { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 8px; transition: all .2s;
}
.post-tags a:hover { color: var(--accent); border-color: var(--accent); }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 20px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.share-row .mono-label { margin-right: 8px; }
.share-btn {
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-2);
  background: none; border: 1px solid var(--line); padding: 6px 10px; transition: color .2s, border-color .2s;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); }
.author-card {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 20px; align-items: start;
  margin-top: 32px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line);
}
.author-card__body h3 { font-size: 15px; font-weight: 600; margin: 6px 0 6px; }
.author-card__body h3 span { font-family: var(--mono); font-size: 8px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.author-card__body p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.author-card__links { display: flex; flex-direction: column; gap: 6px; }
.author-card__links a { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.author-card__links a:hover { color: var(--accent); }

.post-nav-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; }
.post-nav__item { display: flex; flex-direction: column; gap: 10px; padding: 32px 0; max-width: 90%; }
.post-nav__item--next { text-align: right; margin-left: auto; align-items: flex-end; }
.post-nav__item .mono-label { font-size: 8px; }
.post-nav__title { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; transition: color .2s; }
.post-nav__item:hover .post-nav__title { color: var(--accent); }
.related-section { padding: clamp(56px, 8vw, 96px) 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.related-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); background: var(--bg-2); padding: 24px;
  transition: border-color .3s, transform .3s var(--ease);
}
.related-card:hover { border-color: rgba(255, 96, 56, .45); transform: translateY(-3px); }
.related-card__index { position: absolute; right: 18px; top: 16px; font-size: 9px; color: var(--faint); }
.related-card__meta { display: flex; gap: 14px; font-size: 8.5px; color: var(--faint); letter-spacing: .06em; }
.related-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; max-width: 24ch; transition: color .2s; }
.related-card:hover h3 { color: var(--accent); }
.related-card p { font-size: 12px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related-card__arrow { margin-top: auto; padding-top: 14px; color: var(--faint); font-size: 17px; transition: transform .3s, color .2s; }
.related-card:hover .related-card__arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ── error pages ────────────────────────────────────────────────────── */
.error-main { min-height: 68vh; display: flex; align-items: center; padding: 80px 0; }
.error-page { max-width: 720px; }
.error-page h1 {
  font-family: var(--display); font-size: clamp(110px, 18vw, 230px); line-height: .8;
  letter-spacing: -.04em; color: var(--ink); margin: 18px 0 22px;
}
.error-page > p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.error-page__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.error-page__trace { margin-top: 44px; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; color: var(--faint); border-left: 1px solid var(--line); padding-left: 18px; }
.error-page__trace .err { color: var(--accent); }
.error-page__detail { margin: 20px 0; padding: 14px; border: 1px solid var(--line); background: var(--bg-2); font-size: 11px; color: var(--danger); white-space: pre-wrap; }

/* ── toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px);
  z-index: 150; background: var(--ink); color: var(--bg); padding: 11px 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── reveal animation ───────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .signal-art__rings, .signal-art__pulse { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-body { background: #080908; }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); padding: 24px 18px; background: #090a09;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 22px; border-bottom: 1px solid var(--line); }
.admin-brand__text { display: flex; flex-direction: column; }
.admin-brand__text strong { font-size: 11.5px; letter-spacing: .14em; }
.admin-brand__text small { font-family: var(--mono); font-size: 7px; color: var(--faint); letter-spacing: .14em; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; }
.admin-nav__label { margin: 16px 8px 6px; font-size: 8px; color: var(--faint); letter-spacing: .18em; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  font-size: 12.5px; color: var(--muted); border-left: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.admin-nav a svg { width: 16px; height: 16px; }
.admin-nav a:hover { color: var(--ink); background: rgba(236, 233, 225, .03); }
.admin-nav a.is-active { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); }
.admin-sidebar__foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 11.5px; color: var(--muted); }
.admin-sidebar__foot a:hover, .admin-sidebar__foot button:hover { color: var(--accent); }
.admin-sidebar__status { font-size: 7.5px; letter-spacing: .1em; color: var(--faint); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.admin-main { min-width: 0; }
.admin-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(22px, 3vw, 42px); border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 8, .92); backdrop-filter: blur(12px);
}
.admin-topbar__crumb { font-size: 8px; color: var(--faint); letter-spacing: .12em; }
.admin-topbar h1 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
.admin-topbar__actions { display: flex; gap: 8px; }
.admin-content { padding: clamp(22px, 3vw, 38px) clamp(22px, 3vw, 42px) 70px; max-width: 1420px; }

.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.stat-card strong { font-family: var(--display); font-size: 42px; line-height: .9; font-weight: 400; letter-spacing: -.02em; }
.stat-card__foot { font-size: 10px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.stat-card--live strong { color: var(--signal); }
.stat-card--scheduled strong { color: var(--accent); }

.admin-grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-grid-2--even { grid-template-columns: 1fr 1fr; }
.admin-panel { border: 1px solid var(--line); background: var(--bg-2); padding: 22px; }
.admin-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-panel__head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.admin-panel__text { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.admin-panel--accent { background: linear-gradient(160deg, rgba(255, 96, 56, .08), transparent 60%), var(--bg-2); }

.admin-table { border-top: 1px solid var(--line); }
.admin-table__head, .admin-table__row {
  display: grid; align-items: center; gap: 14px;
}
.admin-table--posts .admin-table__head, .admin-table--posts .admin-table__row {
  grid-template-columns: minmax(0, 1fr) 88px 92px 130px 60px 160px;
}
.admin-table--compact .admin-table__head, .admin-table--compact .admin-table__row {
  grid-template-columns: minmax(0, 1fr) 80px 86px 60px;
}
.admin-table__head { padding: 9px 0; font-size: 8px; letter-spacing: .12em; color: var(--faint); border-bottom: 1px solid var(--line); }
.admin-table__row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-table__row:last-child { border-bottom: 0; }
.admin-table__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-table__title strong { font-size: 12.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table__title:hover strong { color: var(--accent); }
.admin-table__title > span.mono { font-size: 8.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table__time, .admin-table__views, .admin-table__cat { font-size: 9px; color: var(--muted); }
.admin-table__actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.admin-table__actions a, .admin-table__actions button { font-size: 8px; letter-spacing: .06em; color: var(--muted); }
.admin-table__actions a:hover { color: var(--accent); }
.admin-table__edit { font-size: 8px; color: var(--faint); }
.admin-table__edit:hover { color: var(--accent); }
.admin-table__foot { margin-top: 12px; font-size: 8px; color: var(--faint); letter-spacing: .08em; text-align: right; }
.featured-flag { font-size: 7px; color: var(--accent); letter-spacing: .1em; }
.inline-form { display: inline; }
.danger-link { background: none; border: 0; padding: 0; color: var(--faint) !important; font: inherit; font-family: var(--mono); font-size: 8px; }
.danger-link:hover { color: var(--danger) !important; }
.admin-table__cat { text-transform: uppercase; }

.status-pill {
  display: inline-flex; align-items: center; width: fit-content;
  font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px; border: 1px solid var(--line-2); color: var(--muted);
}
.status-pill--published { color: var(--signal); border-color: rgba(184, 242, 74, .35); background: rgba(184, 242, 74, .06); }
.status-pill--scheduled { color: var(--accent); border-color: rgba(255, 96, 56, .4); background: var(--accent-soft); }
.status-pill--draft { color: var(--faint); }

.admin-empty { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.admin-empty h3 { margin: 10px 0 8px; font-size: 18px; color: var(--ink); }
.admin-empty p { margin-bottom: 16px; }
.admin-empty--wide { padding: 70px 10px; }

.top-posts { display: flex; flex-direction: column; }
.top-posts li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.top-posts li:last-child { border-bottom: 0; }
.top-posts__index { font-size: 9px; color: var(--faint); }
.top-posts__body { flex: 1; min-width: 0; }
.top-posts__body a { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-posts__body a:hover { color: var(--accent); }
.top-posts__bar { display: block; height: 1px; background: var(--line); margin-top: 7px; }
.top-posts__bar i { display: block; height: 1px; width: var(--w); background: var(--accent); }
.top-posts__views { font-size: 9px; color: var(--faint); }

.admin-shortcuts { display: flex; flex-direction: column; }
.admin-shortcuts a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.admin-shortcuts a:last-child { border-bottom: 0; }
.admin-shortcuts a span { font-size: 8px; color: var(--faint); }
.admin-shortcuts a em { margin-left: auto; font-style: normal; color: var(--accent); }
.admin-shortcuts a:hover { color: var(--accent); }
.admin-code { margin: 0; padding: 16px; background: var(--bg-code); border: 1px solid var(--line); overflow-x: auto; font-size: 10.5px; line-height: 1.8; color: #b9c0b5; }
.admin-code--lg { font-size: 11px; line-height: 1.9; }
.admin-panel .admin-code { margin: 4px 0 16px; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 2px; border: 1px solid var(--line); background: var(--bg-2); }
.filter-tabs a { padding: 8px 14px; font-size: 11px; color: var(--muted); border-right: 1px solid var(--line); }
.filter-tabs a:last-child { border-right: 0; }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a.is-active { color: var(--accent); background: var(--accent-soft); }
.admin-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; min-width: 260px; }
.admin-search svg { width: 14px; height: 14px; color: var(--faint); }
.admin-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 9px 0; font-size: 11.5px; }
.admin-search button { background: none; border: 0; color: var(--faint); font-size: 8px; letter-spacing: .08em; }
.admin-search button:hover { color: var(--accent); }

.alert { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); font-size: 12px; margin-bottom: 16px; }
.alert__mark { font-family: var(--mono); font-size: 10px; font-weight: 700; }
.alert--ok { border-color: rgba(184, 242, 74, .3); background: rgba(184, 242, 74, .05); color: #cfe9a3; }
.alert--error { border-color: rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .06); color: #ffb1b1; }
.alert--info { border-color: var(--line); background: rgba(236, 233, 225, .03); color: var(--muted); }
.alert a { margin-left: auto; color: var(--accent); }

/* forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field__label { font-size: 10.5px; color: var(--ink-2); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field__label em { font-style: normal; font-size: 7.5px; color: var(--faint); letter-spacing: .1em; }
.field__hint { font-size: 10px; color: var(--faint); line-height: 1.6; }
.field input, .field select, .field textarea {
  width: 100%; background: #0b0c0b; border: 1px solid var(--line-2); padding: 10px 12px;
  font-size: 12.5px; outline: none; border-radius: 0; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-inline { display: flex; gap: 6px; }
.field-inline input { flex: 1; min-width: 0; }
.mini-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); padding: 0 10px; font-size: 8px; letter-spacing: .08em; }
.mini-btn:hover { color: var(--accent); border-color: var(--accent); }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; padding: 8px 0; }
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__box { width: 14px; height: 14px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; }
.checkbox input:checked + .checkbox__box { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked + .checkbox__box::after { content: '✓'; color: #0a0b0a; font-size: 9px; font-weight: 700; }
.checkbox em { font-style: normal; font-size: 7.5px; color: var(--faint); margin-left: 4px; }

/* editor */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.editor-main { border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.editor-title-row { padding: 20px 22px 0; }
.field--title { margin: 0; }
.field--title input {
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0 16px;
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em;
}
.field--title input:focus { border-color: var(--accent); }
.editor-tabs { display: flex; align-items: center; gap: 2px; padding: 16px 22px 0; border-bottom: 1px solid var(--line); }
.editor-tab { background: none; border: 0; border-bottom: 1px solid transparent; padding: 8px 12px 11px; font-size: 11.5px; color: var(--muted); margin-bottom: -1px; }
.editor-tab span { font-size: 7.5px; color: var(--faint); margin-left: 5px; }
.editor-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.editor-tabs__hint { margin-left: auto; font-size: 8px; color: var(--faint); }
.editor-write { padding: 18px 22px 22px; }
.editor-textarea {
  width: 100%; min-height: 560px; background: #0a0b0a; border: 1px solid var(--line);
  padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  resize: vertical; outline: none;
}
.editor-textarea:focus { border-color: var(--accent); }
.editor-textarea--tall { min-height: 300px; }
.editor-preview { padding: 26px 28px; min-height: 560px; }
.editor-preview__empty { color: var(--faint); font-size: 12px; }
.editor-summary { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.editor-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }
.editor-card { border: 1px solid var(--line); background: var(--bg-2); padding: 18px; }
.editor-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.editor-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 8px; color: var(--faint); }
.editor-card__foot a:hover { color: var(--accent); }
.editor-card--publish .btn { margin-top: 2px; }
.editor-card--danger { border-color: rgba(255, 90, 90, .22); }
.editor-card__note { font-size: 10.5px; color: var(--faint); line-height: 1.6; margin-bottom: 12px; }

/* settings / api */
.admin-settings__about { margin-bottom: 18px; }
.admin-savebar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.admin-savebar .mono { font-size: 9px; color: var(--faint); }
.token-box { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px dashed var(--line-2); background: var(--bg-code); margin-bottom: 16px; }
.token-box code { font-size: 11px; color: var(--accent-2); word-break: break-all; }
.api-list { display: flex; flex-direction: column; }
.api-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.api-list li code { color: var(--accent-2); font-size: 10px; }
.endpoint-table { border-top: 1px solid var(--line); }
.endpoint-row { display: grid; grid-template-columns: 80px 230px minmax(0, 1fr); gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.endpoint-row--head { font-size: 8px; letter-spacing: .12em; color: var(--faint); padding: 8px 0; }
.method { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }
.method--post { color: var(--signal); }
.method--patch { color: #e8c07a; }
.method--get { color: #8fc4ff; }
.method--delete { color: var(--danger); }

/* login */
.admin-login-body { background: #070807; }
.login-shell { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }
.login-visual {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(30px, 4vw, 54px); overflow: hidden;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(255, 96, 56, .13), transparent 55%),
    var(--bg);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  border-right: 1px solid var(--line);
}
.login-visual__top { display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.login-visual__top .brand-mark { width: 26px; height: 26px; }
.login-visual__body { max-width: 520px; }
.login-visual__body h1 { font-family: var(--display); font-size: clamp(58px, 6.4vw, 96px); font-weight: 400; line-height: .88; letter-spacing: -.02em; margin: 20px 0 22px; }
.login-visual__body > p { color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 40ch; }
.login-terminal { margin-top: 38px; border: 1px solid var(--line-2); background: rgba(6, 7, 6, .82); }
.login-terminal__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.login-terminal__bar span { width: 6px; height: 6px; border-radius: 50%; background: #454a43; }
.login-terminal__bar span:first-child { background: #ff6b5a; }
.login-terminal__bar span:nth-child(2) { background: #e8c07a; }
.login-terminal__bar span:nth-child(3) { background: #8fc47a; }
.login-terminal__bar em { margin-left: auto; font-style: normal; font-size: 8px; color: var(--faint); }
.login-terminal pre { padding: 14px 16px; font-size: 10.5px; line-height: 2; color: #9ba298; overflow-x: auto; }
.login-terminal .c { color: var(--accent); }
.login-terminal .g { color: var(--signal); }
.login-terminal .w { color: #e8c07a; }
.login-visual__foot { display: flex; align-items: center; justify-content: space-between; font-size: 8px; color: var(--faint); letter-spacing: .08em; }
.login-visual__foot .status-dot { margin-right: 6px; }
.login-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 70px); max-width: 560px; width: 100%; margin: 0 auto; }
.login-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; font-size: 8px; color: var(--faint); }
.login-card h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.login-card__sub { color: var(--muted); font-size: 12.5px; margin: 8px 0 26px; }
.login-card .field { margin-bottom: 18px; }
.login-card__note { margin-top: 18px; font-size: 10px; color: var(--faint); line-height: 1.7; }
.login-card__note code { color: var(--muted); font-size: 9.5px; }
.login-form-foot { display: flex; justify-content: space-between; margin-top: 30px; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.login-form-foot a:hover { color: var(--accent); }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .site-nav { gap: 22px; }
  .header-actions { gap: 12px; }
  .console-link { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 48px; }
  .latest-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; }
  .admin-table--posts .admin-table__head, .admin-table--posts .admin-table__row { grid-template-columns: minmax(0, 1fr) 78px 78px 116px 50px 132px; gap: 10px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { min-height: 62px; }
  .mobile-nav { top: 62px; }
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .dossier { max-width: 480px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__visual { min-height: 280px; border-left: 0; border-top: 1px solid var(--line); order: -1; }
  .signal-art { width: 52%; max-height: 280px; }
  .featured-card__content { padding: 32px; }
  .latest-grid { grid-template-columns: 1fr; }
  .home-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .aside-block:first-child { padding-top: 24px; }
  .aside-block--signal { margin-top: 0; }
  .aside-block--now { grid-column: 1 / -1; }
  .archive-band__inner { grid-template-columns: 1fr; gap: 28px; padding: 46px 0; }
  .archive-band__link { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col--note { grid-column: 1 / -1; max-width: 60ch; }
  .page-head__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-aside { display: none; }
  .post-byline { flex-wrap: wrap; }
  .post-byline__facts { margin-left: 0; width: 100%; border-top: 1px dashed var(--line); padding-top: 16px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; max-width: 360px; }
  .archive-year { grid-template-columns: 130px 1fr; gap: 26px; }
  .archive-year__number { font-size: 52px; }
  .archive-item { grid-template-columns: 50px 1fr 24px; }
  .archive-item__cat, .archive-item__read { display: none; }
  .tag-row { grid-template-columns: 40px 1fr 60px 24px; }
  .tag-row__bar { display: none; }
  .search-suggestions { grid-template-columns: 1fr; gap: 32px; padding-bottom: 70px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static; height: auto; flex-direction: row; align-items: center; gap: 20px;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 20px; overflow-x: auto;
  }
  .admin-brand { border-bottom: 0; padding: 0; }
  .admin-brand__text small { display: none; }
  .admin-nav { flex-direction: row; padding: 0; gap: 4px; }
  .admin-nav__label { display: none; }
  .admin-nav a { white-space: nowrap; border-left: 0; border-bottom: 1px solid transparent; }
  .admin-nav a.is-active { border-left: 0; border-bottom-color: var(--accent); }
  .admin-sidebar__foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; white-space: nowrap; }
  .admin-sidebar__status { display: none; }
  .admin-grid-2, .admin-grid-2--even { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-wrap { min-height: 100vh; }
}

@media (max-width: 680px) {
  :root { --pad: 20px; }
  .header-actions { gap: 14px; }
  .header-link { display: none; }
  .search-trigger kbd { display: none; }
  .hero-title { font-size: clamp(62px, 17vw, 92px); }
  .hero-lede { font-size: 14.5px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .dossier__title { font-size: 27px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head__aside { gap: 16px; }
  .post-row__link { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .post-row__side { grid-column: 2; flex-direction: row; align-items: center; gap: 14px; padding-top: 2px; }
  .post-row__arrow { display: none; }
  .post-row__summary { -webkit-line-clamp: 3; }
  .home-aside { grid-template-columns: 1fr; }
  .home-aside .aside-block--now { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head h1 { font-size: 52px; }
  .page-head { padding-top: 54px; }
  .archive-year { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .archive-year__side { position: static; flex-direction: row; align-items: baseline; gap: 12px; }
  .archive-year__number { font-size: 38px; }
  .archive-year__rule { flex: 1; margin-top: 0; }
  .archive-item { grid-template-columns: 46px 1fr 22px; gap: 12px; }
  .archive-item h3 { font-size: 15.5px; }
  .tag-row { grid-template-columns: 30px 1fr 42px 20px; gap: 12px; }
  .tag-row__name { font-size: 16px; }
  .search-page-form { flex-wrap: wrap; }
  .search-page-form input { width: 100%; flex-basis: 100%; }
  .post-title { max-width: none; }
  .post-summary { font-size: 15px; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 24px; }
  .prose h2::before { left: -12px; }
  .author-card { grid-template-columns: 44px 1fr; }
  .author-card__links { grid-column: 2; flex-direction: row; }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; align-items: flex-start; margin-left: 0; border-top: 1px solid var(--line); }
  .about-contact { flex-direction: column; align-items: flex-start; }
  .footer-wordmark { font-size: 22vw; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 34px; }
  .admin-table--posts { overflow-x: auto; }
  .admin-table--posts .admin-table__head, .admin-table--posts .admin-table__row { min-width: 720px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search { min-width: 0; }
  .admin-savebar { flex-direction: column; align-items: stretch; }
  .endpoint-row { grid-template-columns: 60px 1fr; }
  .endpoint-row > span:last-child { grid-column: 1 / -1; }
  .login-form-wrap { padding: 30px 22px; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .hero-title { font-size: 64px; }
  .featured-card__content { padding: 24px; }
  .post-byline__facts { gap: 22px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

body.is-locked { overflow: hidden; }

