/* ==========================================================================
   LANR // APOCALYPSE
   Punk-tech theme: black paper, electric yellow, ultraviolet.
   ========================================================================== */

:root {
  --bg: #07060a;
  --bg-soft: #0b0910;
  --bg-panel: #100e17;
  --bg-panel-2: #15121f;
  --ink: #f5f2ff;
  --ink-soft: #d8d2e6;
  --muted: #a49cb9;
  --dim: #6f6883;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --yellow: #ffe600;
  --yellow-bright: #ffe600;
  --yellow-soft: #fff45c;
  --purple: #a855f7;
  --purple-deep: #6d28d9;
  --cyan: #5eead4;
  --pink: #ff3d81;
  --green: #9dff5e;
  --font-sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(168, 85, 247, 0.14), transparent 62%),
    radial-gradient(760px 440px at -8% 22%, rgba(255, 230, 0, 0.05), transparent 65%),
    radial-gradient(700px 600px at 50% 108%, rgba(109, 40, 217, 0.1), transparent 65%);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--yellow-bright);
  color: #07060a;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #09070d;
}
::-webkit-scrollbar-thumb {
  background: #2a2438;
  border: 2px solid #09070d;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

[hidden] {
  display: none !important;
}

.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: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--yellow-bright);
  color: #07060a;
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Fixed background grid */
.site-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--yellow), var(--purple), transparent);
  transition: width 0.6s var(--ease);
}

.site-header.is-scrolled,
body:not(.page-home) .site-header {
  background: rgba(7, 6, 10, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.site-header.is-scrolled::after,
body:not(.page-home) .site-header::after {
  width: 100%;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  line-height: 1;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow-bright);
  color: #07060a;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.12em;
  padding-right: 3px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background 0.2s, color 0.2s;
}

.brand__mark span {
  color: var(--purple-deep);
}

.brand:hover .brand__mark {
  background: var(--purple);
  color: #fff;
}
.brand:hover .brand__mark span {
  color: var(--yellow);
}

.brand__name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand__name small {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  margin-left: auto;
}

.nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav a span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dim);
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--yellow-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--yellow);
}
.nav a:hover span,
.nav a[aria-current="page"] span {
  color: var(--purple);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--yellow);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: grid;
  place-items: center;
}

.theme-toggle__moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__sun {
  display: none;
}

html[data-theme="light"] .theme-toggle__moon {
  display: grid;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
}

.menu-btn span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 110;
  padding: 26px var(--gutter) 34px;
  background: rgba(7, 6, 10, 0.97);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 700;
}

.mobile-nav nav a span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.18em;
}

.mobile-nav nav a[aria-current="page"] {
  color: var(--yellow);
}

.mobile-nav__foot {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Shared type / buttons
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--yellow-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.9);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.eyebrow__line {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.25s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--yellow-bright);
  color: #07060a;
}
.btn--primary:hover {
  background: var(--yellow-soft);
  box-shadow: 0 12px 40px rgba(255, 230, 0, 0.18);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 10px 34px rgba(168, 85, 247, 0.16);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s;
}
.link-more span {
  color: var(--yellow);
  transition: transform 0.25s var(--ease);
}
.link-more:hover {
  color: var(--yellow);
}
.link-more:hover span {
  transform: translateX(4px);
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section--tight {
  padding: clamp(54px, 7vw, 86px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.section-head__label span {
  color: var(--yellow);
}

.section-head__label::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.section-head h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42);
}

.section-head h2 .accent {
  color: var(--yellow);
}

.section-head__desc {
  max-width: 380px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tag::before {
  content: "#";
  color: var(--purple);
}

a.tag:hover {
  color: var(--yellow);
  border-color: rgba(255, 230, 0, 0.4);
  background: rgba(255, 230, 0, 0.06);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--dim);
  text-transform: uppercase;
}

.meta__cat {
  color: var(--yellow);
}

.meta__dot {
  width: 3px;
  height: 3px;
  background: var(--dim);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(940px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 84px;
  overflow: hidden;
  isolation: isolate;
}

/* Home cover: the hero sticks under the header while the content scrolls
   over it. JS writes --cover-p from 0 → 1; CSS fades and lifts the cover. */
body.page-home .hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 680px;
}

body.page-home .hero__inner {
  opacity: var(--cover-opacity, 1);
  transform: translate3d(0, var(--cover-shift, 0px), 0);
  will-change: transform, opacity;
}

body.page-home .hero__media {
  opacity: var(--cover-media-opacity, 1);
}

body.page-home .hero__media img {
  transform: scale(var(--cover-scale, 1.015));
}

.home-body {
  position: relative;
  z-index: 2;
  background: var(--bg);
  box-shadow: 0 -26px 80px rgba(0, 0, 0, 0.42);
}

.home-body > .marquee {
  margin-top: 0;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  z-index: -1;
  background-image: var(--lqip);
  background-size: cover;
  background-position: 62% 30%;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 63% 32%;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.015);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 6, 10, 0.86) 18%, rgba(7, 6, 10, 0.22) 48%, transparent 66%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.55) 0%, transparent 28%);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(58% 70% at 82% 18%, rgba(255, 230, 0, 0.12), transparent 68%),
    radial-gradient(52% 60% at 55% 76%, rgba(168, 85, 247, 0.34), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.03) 3px 4px);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.hero__tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(118deg, rgba(109, 40, 217, 0.32), transparent 46%, rgba(255, 230, 0, 0.1));
  mix-blend-mode: color;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero__content {
  width: min(760px, 76%);
}

.hero__title {
  margin: 28px 0 26px;
  font-size: clamp(48px, 7.2vw, 108px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero__line {
  display: block;
}

.hero__title .hero__accent {
  position: relative;
  display: inline-block;
  color: var(--yellow);
  text-shadow: 3px 0 0 rgba(168, 85, 247, 0.55);
}

.hero__title .hero__accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 6%;
  height: 8%;
  background: var(--purple);
  z-index: -1;
  transform: skewX(-14deg);
  opacity: 0.72;
}

.hero__lead {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
}

.hero__lead strong {
  color: var(--yellow);
  font-weight: 600;
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(620px, 100%);
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.hero__stats > div {
  padding: 18px 18px 0 0;
  border-right: 1px solid var(--line);
}
.hero__stats > div:last-child {
  border-right: 0;
}

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.hero__stats dd {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.hero__stats dd span {
  color: var(--purple);
}

.hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--dim);
  writing-mode: vertical-rl;
}

.hero__side .hero__coord {
  color: var(--yellow);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--dim);
  transform: translateX(-50%);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--yellow), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--yellow-bright);
  color: #07060a;
  border-block: 1px solid #07060a;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee span {
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.marquee i {
  display: inline-block;
  margin: 0 22px;
  font-style: normal;
  font-size: 13px;
  color: var(--purple-deep);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Latest grid
   -------------------------------------------------------------------------- */
.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(20px, 3vw, 34px);
}

.feature-card {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.feature-card__link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 44px);
}

.feature-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  filter: saturate(0.85) contrast(1.06) brightness(0.72);
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.feature-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 6, 10, 0.97) 4%, rgba(7, 6, 10, 0.72) 38%, transparent 74%),
    linear-gradient(90deg, rgba(7, 6, 10, 0.7), transparent 68%),
    radial-gradient(70% 60% at 70% 20%, rgba(168, 85, 247, 0.22), transparent 68%);
}

.feature-card__body {
  z-index: 1;
  color: #f5f2ff;
}

.feature-card__body p {
  color: rgba(245, 242, 255, 0.78);
}

.feature-card__body .meta {
  color: rgba(245, 242, 255, 0.62);
}

.feature-card__body .meta__cat {
  color: var(--yellow-bright);
}

.feature-card__body .tag {
  color: rgba(245, 242, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

.feature-card__body .tag:hover {
  color: var(--yellow-bright);
  border-color: rgba(255, 230, 0, 0.55);
  background: rgba(255, 230, 0, 0.1);
}

.feature-card__more {
  color: var(--yellow-bright);
}

.feature-card__title {
  color: inherit;
}

.feature-card__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.feature-card .tag-row,
.feature-card__more {
  position: relative;
  z-index: 3;
}

.feature-card__more {
  pointer-events: none;
}

.feature-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 9px;
  background: var(--yellow-bright);
  color: #07060a;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  max-width: 640px;
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.feature-card p {
  max-width: 560px;
  color: rgba(245, 242, 255, 0.78);
  font-size: 14px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-card__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.feature-card__more span {
  transition: transform 0.3s var(--ease);
}

.feature-card:hover .feature-card__media img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.06) brightness(0.8);
}
.feature-card:hover .feature-card__more span {
  transform: translate(3px, -3px);
}

.latest-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.latest-item {
  position: relative;
  isolation: isolate;
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.latest-item__title {
  color: inherit;
}

.latest-item__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.latest-item .tag-row {
  position: relative;
  z-index: 2;
}

.latest-item__link {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  gap: 16px;
  height: 100%;
  padding: 22px 4px 20px 0;
  transition: padding 0.3s var(--ease), background 0.3s;
}

.latest-item__link::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  background: linear-gradient(90deg, rgba(255, 230, 0, 0.05), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.latest-item__link:hover {
  padding-left: 12px;
}
.latest-item__link:hover::before {
  opacity: 1;
}

.latest-item__index {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple);
}

.latest-item h3 {
  margin: 7px 0 6px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.latest-item p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-item .tag-row {
  margin-top: 9px;
}

.latest-item__arrow {
  padding-top: 4px;
  color: var(--dim);
  transition: color 0.2s, transform 0.3s var(--ease);
}

.latest-item__link:hover h3 {
  color: var(--yellow);
}
.latest-item__link:hover .latest-item__arrow {
  color: var(--yellow);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Channels
   -------------------------------------------------------------------------- */
.section--channels {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 38%);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.channel-card {
  position: relative;
  min-height: 330px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.35s, color 0.35s;
}

.channel-card::before {
  content: attr(data-en);
  position: absolute;
  right: -8px;
  bottom: -26px;
  font-family: var(--font-mono);
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}

.channel-card__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}

.channel-card__en {
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--purple);
}

.channel-card h3 {
  margin: 9px 0 12px;
  font-size: clamp(25px, 2.6vw, 34px);
  letter-spacing: -0.03em;
}

.channel-card p {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.channel-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.channel-card__arrow {
  font-size: 18px;
  color: var(--yellow);
  transition: transform 0.35s var(--ease);
}

.channel-card:hover {
  background: var(--yellow-bright);
  color: #07060a;
}
.channel-card:hover .channel-card__num,
.channel-card:hover .channel-card__en,
.channel-card:hover p,
.channel-card:hover .channel-card__foot {
  color: #251f00;
}
.channel-card:hover::before {
  -webkit-text-stroke-color: rgba(7, 6, 10, 0.22);
}
.channel-card:hover .channel-card__arrow {
  color: #07060a;
  transform: translateX(6px);
}

.channel-card:nth-child(2):hover {
  background: var(--purple);
  color: #fff;
}
.channel-card:nth-child(2):hover .channel-card__num,
.channel-card:nth-child(2):hover .channel-card__en,
.channel-card:nth-child(2):hover p,
.channel-card:nth-child(2):hover .channel-card__foot,
.channel-card:nth-child(2):hover .channel-card__arrow {
  color: #fff;
}

.channel-card:nth-child(3):hover {
  background: var(--cyan);
  color: #06110f;
}
.channel-card:nth-child(3):hover .channel-card__num,
.channel-card:nth-child(3):hover .channel-card__en,
.channel-card:nth-child(3):hover p,
.channel-card:nth-child(3):hover .channel-card__foot,
.channel-card:nth-child(3):hover .channel-card__arrow {
  color: #06110f;
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */
.section--profile {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.section--profile::before {
  content: "ABOUT";
  position: absolute;
  right: -3vw;
  top: 8%;
  font-family: var(--font-mono);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.profile-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
}

/* Editorial visual board used on the home page. */
.profile-visual {
  position: relative;
  min-height: 530px;
  padding: 16px 0 34px;
}

.profile-visual__index {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.profile-visual figure {
  margin: 0;
}

.profile-visual__main {
  position: relative;
  z-index: 2;
  width: 78%;
  transform: rotate(-2.2deg);
}

.profile-visual__main picture,
.profile-visual__main img {
  display: block;
  width: 100%;
}

.profile-visual__main img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
  border: 1px solid var(--line-strong);
  filter: saturate(0.98) contrast(1.04);
}

.profile-visual__main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7, 6, 10, 0.52), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.035) 3px 4px);
}

.profile-visual__main figcaption,
.profile-visual__inset figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.76);
}

.profile-visual__inset {
  position: absolute;
  right: 0;
  bottom: 12px;
  z-index: 3;
  width: 51%;
  transform: rotate(3.2deg);
}

.profile-visual__inset picture,
.profile-visual__inset img {
  display: block;
  width: 100%;
}

.profile-visual__inset img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 52% 44%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.profile-visual__inset::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 6, 10, 0.58), transparent 42%);
}

.profile-visual__sticker {
  position: absolute;
  top: 22px;
  right: 7%;
  z-index: 4;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  transform: rotate(7deg);
}

.profile-visual__sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-visual__status {
  position: absolute;
  left: 22px;
  bottom: 88px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(7, 6, 10, 0.84);
  border: 1px solid rgba(255, 230, 0, 0.32);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--yellow-bright);
  backdrop-filter: blur(6px);
}

.profile-visual__status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.profile-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.12), rgba(255, 255, 255, 0.02) 44%, rgba(255, 230, 0, 0.04));
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--yellow);
  border-style: solid;
  z-index: 2;
}
.profile-card::before {
  top: 7px;
  left: 7px;
  border-width: 1px 0 0 1px;
}
.profile-card::after {
  right: 7px;
  bottom: 7px;
  border-width: 0 1px 1px 0;
}

.profile-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0a0810;
}

.profile-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
  transition: transform 0.8s var(--ease);
}

.profile-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 6, 10, 0.55), transparent 38%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.04) 3px 4px);
}

.profile-card:hover .profile-card__frame img {
  transform: scale(1.035);
}

.profile-card__status {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(7, 6, 10, 0.82);
  border: 1px solid rgba(255, 230, 0, 0.32);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--yellow);
  backdrop-filter: blur(6px);
}

.profile-card__status span {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.profile-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--dim);
}

.profile-card__bar strong {
  color: var(--purple);
  font-weight: 400;
}

.profile-copy .eyebrow {
  margin-bottom: 18px;
}

.profile-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.profile-copy h2 span {
  color: var(--yellow);
}

.profile-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.profile-copy > p + p {
  margin-top: 14px;
}

.profile-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0 32px;
}

.profile-copy .tag-cloud {
  margin-top: 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .tag {
  padding: 5px 10px;
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Subscribe strip
   -------------------------------------------------------------------------- */
.subscribe {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(168, 85, 247, 0.14), transparent 48%),
    var(--bg-soft);
}

.subscribe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 230, 0, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  opacity: 0.5;
}

.subscribe__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: clamp(42px, 6vw, 76px);
}

.subscribe .section-head__label {
  margin-bottom: 12px;
}

.subscribe h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.subscribe p {
  max-width: 480px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 14px 0 10px;
  overflow: hidden;
  background: #050408;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}

.footer__brand {
  max-width: 300px;
  flex: 0 1 300px;
}

.footer__brand .brand {
  margin-bottom: 6px;
}

.footer__brand p {
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.5;
}

.footer__cols {
  display: flex;
  flex: 1 1 520px;
  justify-content: flex-end;
  gap: clamp(20px, 3.5vw, 52px);
}

.footer__col {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px 12px;
  max-width: 230px;
}

.footer__col h3 {
  flex: 0 0 100%;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

.footer__col a {
  display: inline-block;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.footer__col a:hover {
  color: var(--yellow);
  transform: translateX(2px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.footer__bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(7, 6, 10, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--yellow);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--yellow-bright);
  color: #07060a;
  border-color: var(--yellow);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(52px, 6vw, 78px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 78% -30%, rgba(168, 85, 247, 0.2), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.page-hero .shell {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--yellow);
}
.breadcrumb span {
  color: #3b3449;
}

.page-hero__title {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 18px;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.page-hero__title .count {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 32px;
  padding: 0 10px;
  background: var(--yellow-bright);
  color: #07060a;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  transform: translateY(-9px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.page-hero__lead {
  max-width: 580px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.page-hero__watermark {
  position: absolute;
  right: -2vw;
  bottom: -0.25em;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(100px, 20vw, 280px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Posts page
   -------------------------------------------------------------------------- */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.filter-search {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search svg {
  position: absolute;
  left: 14px;
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 40px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.filter-search input::placeholder {
  color: var(--dim);
}

.filter-search input:focus {
  outline: none;
  border-color: rgba(255, 230, 0, 0.55);
  background: #0d0b13;
}

.filter-search kbd {
  position: absolute;
  right: 12px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--dim);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-chip span {
  color: var(--dim);
  font-size: 8px;
}

.filter-chip:hover {
  color: var(--yellow);
  border-color: rgba(255, 230, 0, 0.4);
}

.filter-chip.is-active {
  background: var(--yellow-bright);
  border-color: var(--yellow);
  color: #07060a;
}
.filter-chip.is-active span {
  color: #4a4300;
}

.filter-status {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.filter-status strong {
  color: var(--yellow);
  font-weight: 400;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
}

.tone-yellow {
  --cover-a: rgba(255, 230, 0, 0.72);
  --cover-b: #3a3100;
}
.tone-purple {
  --cover-a: rgba(168, 85, 247, 0.78);
  --cover-b: #2a0f45;
}
.tone-cyan {
  --cover-a: rgba(94, 234, 212, 0.7);
  --cover-b: #07312e;
}
.tone-pink {
  --cover-a: rgba(255, 61, 129, 0.7);
  --cover-b: #3a0a1c;
}

.post-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.post-card__link,
.feature-card__link,
.latest-item__link {
  cursor: pointer;
}

.post-card__title {
  color: inherit;
}

.post-card__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card .tag-row {
  position: relative;
  z-index: 2;
}

.post-card:focus-within,
.feature-card:focus-within,
.latest-item:focus-within {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.post-card__link:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 230, 0, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 230, 0, 0.08);
}

.post-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 80% 10%, var(--cover-a), transparent 55%),
    linear-gradient(140deg, var(--cover-b), #08070c 70%);
  border-bottom: 1px solid var(--line);
}

.post-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.post-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 6, 10, 0.55), transparent 58%);
}

.post-card__code {
  position: absolute;
  left: 16px;
  top: 15px;
  z-index: 2;
  padding: 3px 7px;
  background: rgba(7, 6, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: rgba(245, 242, 255, 0.86);
  backdrop-filter: blur(4px);
}

.post-card__index {
  position: absolute;
  right: 14px;
  bottom: 8px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(58px, 6.2vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transition: -webkit-text-stroke-color 0.3s, transform 0.4s var(--ease);
}

.post-card__glyph {
  position: absolute;
  left: 40%;
  top: 44%;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--cover-a);
  opacity: 0.85;
  transform: rotate(-6deg);
  transition: transform 0.5s var(--ease);
}

.post-card__link:hover .post-card__index {
  -webkit-text-stroke-color: rgba(255, 230, 0, 0.5);
  transform: translateY(-3px);
}
.post-card__link:hover .post-card__glyph {
  transform: rotate(0) scale(1.08);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.post-card__body h3 {
  margin: 10px 0 10px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.post-card__body p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__body .tag-row {
  margin-top: 15px;
}

.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.post-card__foot .read {
  color: var(--yellow);
  font-size: 13px;
  transition: transform 0.25s var(--ease);
}

.post-card__link:hover .post-card__body h3 {
  color: var(--yellow);
}
.post-card__link:hover .post-card__foot .read {
  transform: translate(2px, -2px);
}

.post-card--wide {
  grid-column: span 2;
}

.post-card--wide .post-card__link {
  flex-direction: row;
}

.post-card--wide .post-card__cover {
  width: 46%;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.post-card--wide .post-card__body {
  width: 54%;
  padding: clamp(24px, 3vw, 36px);
}

.post-card--wide .post-card__body h3 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.empty-state {
  padding: 80px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--yellow);
}

.empty-state p {
  color: var(--dim);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */
.archive {
  display: grid;
  gap: clamp(50px, 7vw, 86px);
}

.archive-year {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.archive-year__label {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding-top: 6px;
}

.archive-year__label strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.05em;
}

.archive-year__label span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.archive-groups {
  display: grid;
  gap: 36px;
}

.archive-group {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.archive-group__date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  color: var(--purple);
}

.archive-group__date strong {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.archive-group__date span {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.archive-items {
  display: grid;
}

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), background 0.25s;
}

.archive-row:hover {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(255, 230, 0, 0.045), transparent 60%);
}

.archive-row__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.archive-row__title::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  transition: background 0.2s;
}

.archive-row:hover .archive-row__title {
  color: var(--yellow);
}
.archive-row:hover .archive-row__title::before {
  background: var(--yellow-bright);
}

.archive-row__cat {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.archive-row__date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
}

.archive-row__arrow {
  color: var(--dim);
  transition: color 0.2s, transform 0.25s;
}

.archive-row:hover .archive-row__arrow {
  color: var(--purple);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Tags page
   -------------------------------------------------------------------------- */
.tag-cloud--page {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  padding: clamp(26px, 4vw, 46px);
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.tag-cloud--page .tag-big {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 6px;
  color: var(--ink-soft);
  font-size: calc(13px + var(--weight, 0) * 5px);
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
}

.tag-cloud--page .tag-big::before {
  content: "#";
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.74em;
}

.tag-cloud--page .tag-big span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--dim);
}

.tag-cloud--page .tag-big:hover {
  color: var(--yellow);
  text-shadow: 0 0 24px rgba(255, 230, 0, 0.35);
}

.tag-index {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.tag-index__row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding 0.25s;
}

.tag-index__row:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.06), transparent 70%);
}

.tag-index__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.tag-index__name::before {
  content: "#";
  color: var(--purple);
  font-family: var(--font-mono);
}

.tag-index__posts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 12px;
}

.tag-index__posts a {
  transition: color 0.2s;
}
.tag-index__posts a:hover {
  color: var(--yellow);
}

.tag-index__count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 520px at 18% 8%, rgba(255, 230, 0, 0.08), transparent 62%),
    radial-gradient(720px 520px at 88% 20%, rgba(168, 85, 247, 0.2), transparent 64%);
}

.about-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
}

.about-portrait {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(168, 85, 247, 0.16), transparent 50%, rgba(255, 230, 0, 0.05));
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.95);
}

.about-portrait .about-portrait__image {
  aspect-ratio: 4 / 5;
  object-position: 50% 42%;
}

.about-portrait .about-portrait__sticker {
  position: absolute;
  right: -14px;
  bottom: 32px;
  z-index: 4;
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  transform: rotate(7deg);
  filter: none;
}

.about-portrait::before {
  content: "PORTRAIT / 2026";
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  padding: 4px 7px;
  background: rgba(7, 6, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--yellow);
}

.about-portrait__tag {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(7, 6, 10, 0.9);
}

.about-intro .eyebrow {
  margin-bottom: 22px;
}

.about-intro h1 {
  margin-bottom: 26px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.about-intro h1 span {
  color: var(--yellow);
}

.about-intro .lead {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.95;
}

.about-intro .lead + .lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.about-main h2 {
  margin: 44px 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.about-main h2:first-child {
  margin-top: 0;
}

.about-main p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.about-main strong {
  color: var(--ink);
  font-weight: 600;
}

.about-main a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(255, 230, 0, 0.35);
}

.about-main a:hover {
  border-bottom-color: var(--yellow);
}

.about-list {
  display: grid;
  gap: 0;
  margin: 22px 0 8px;
  border-top: 1px solid var(--line);
}

.about-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.about-list li span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim);
  padding-top: 3px;
}

.about-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 18px;
}

.about-panel {
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.about-panel h3 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

.about-panel dl {
  display: grid;
  gap: 0;
}

.about-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.about-panel dl > div:last-child {
  border-bottom: 0;
}
.about-panel dt {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.about-panel dd {
  color: var(--ink-soft);
  text-align: right;
}

.about-panel--visual {
  overflow: hidden;
}

.about-visual {
  margin: 0 0 8px;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 42%;
  border: 1px solid var(--line);
}

.about-visual figcaption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.timeline {
  display: grid;
  margin-top: 10px;
}

.timeline li {
  position: relative;
  padding: 0 0 24px 26px;
  border-left: 1px solid var(--line-strong);
  list-style: none;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--purple);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline time {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.timeline strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.timeline p {
  margin-top: 4px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Post
   -------------------------------------------------------------------------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.5);
}

.post-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(46px, 6vw, 70px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 86% -10%, rgba(168, 85, 247, 0.19), transparent 64%),
    radial-gradient(520px 300px at 0% 0%, rgba(255, 230, 0, 0.05), transparent 70%);
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.post-hero .shell {
  position: relative;
  z-index: 2;
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 28px 0 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--dim);
  text-transform: uppercase;
}

.post-hero__meta .cat {
  display: inline-flex;
  padding: 4px 8px;
  background: var(--yellow-bright);
  color: #07060a;
  font-weight: 700;
}

.post-hero h1 {
  max-width: 1000px;
  margin-bottom: 22px;
  font-size: clamp(38px, 6.2vw, 78px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-wrap: balance;
}

.post-hero__excerpt {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.9;
}

.post-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.post-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.share-btn:hover {
  color: var(--yellow);
  border-color: rgba(255, 230, 0, 0.4);
}

.share-btn svg {
  width: 13px;
  height: 13px;
}

.post-hero__watermark {
  position: absolute;
  right: -1vw;
  bottom: -0.28em;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(120px, 24vw, 340px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 72px);
}

.prose {
  min-width: 0;
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 2;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.35em;
}

.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.035em;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.prose h2 {
  margin: 2.2em 0 0.8em;
  padding-left: 22px;
  font-size: clamp(25px, 2.7vw, 33px);
  font-weight: 800;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 6px;
  height: 0.92em;
  background: var(--yellow-bright);
  transform: skewY(-14deg);
}

.prose h3 {
  margin: 1.9em 0 0.7em;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
}

.prose h3::before {
  content: "// ";
  font-family: var(--font-mono);
  font-size: 0.76em;
  color: var(--purple);
}

.prose h4 {
  margin: 1.6em 0 0.6em;
  font-size: 17px;
}

.prose a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(255, 230, 0, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.prose a:hover {
  color: var(--yellow-soft);
  border-bottom-color: var(--yellow);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose em {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}

.prose ul li::marker {
  color: var(--yellow);
}

.prose ol li::marker {
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.8em;
}

.prose li > ul,
.prose li > ol {
  margin: 0.4em 0 0.2em;
}

.prose blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 20px 26px 20px 30px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.02));
  border-left: 2px solid var(--purple);
  color: var(--ink-soft);
  font-size: 0.98em;
}

.prose blockquote::before {
  content: "“";
  position: absolute;
  left: 20px;
  top: 2px;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  color: var(--purple);
  opacity: 0.6;
}

.prose blockquote p {
  margin: 0;
}

.prose blockquote p + p {
  margin-top: 0.7em;
}

.prose hr {
  margin: 3em 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.prose code {
  padding: 0.16em 0.38em;
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.14);
  color: var(--yellow-soft);
  font-family: var(--font-mono);
  font-size: 0.82em;
  word-break: break-word;
}

.prose pre {
  position: relative;
  margin: 1.8em 0;
  padding: 48px 22px 22px;
  overflow-x: auto;
  background: #0a0810;
  border: 1px solid var(--line);
  color: #d9d2e8;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  tab-size: 2;
}

.prose pre::before {
  content: attr(data-lang);
  position: absolute;
  left: 16px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.prose pre::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 32px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--purple));
}

.prose pre code {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font-size: inherit;
  word-break: normal;
  white-space: pre;
}

.prose pre .copy-code {
  position: absolute;
  right: 10px;
  top: 9px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}

.prose pre .copy-code:hover {
  color: var(--yellow);
  border-color: rgba(255, 230, 0, 0.4);
}

.prose table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  font-size: 13px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.8em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-wrap table {
  min-width: 620px;
  margin: 0;
}

@media (max-width: 680px) {
  .table-wrap::before {
    content: "← 左右滑动查看完整表格 →";
    display: block;
    margin-bottom: 7px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-align: right;
  }
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-panel);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.prose tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.prose img {
  margin: 1.8em 0;
  border: 1px solid var(--line);
}

.prose .anchor {
  margin-left: 8px;
  color: var(--purple);
  opacity: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.6em;
  transition: opacity 0.2s;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor {
  opacity: 1;
}

.prose .short-note {
  margin-top: 2em;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 22px;
}

.toc {
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.toc__head span {
  color: var(--yellow);
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 2px;
  max-height: 46vh;
  overflow: auto;
  scrollbar-width: thin;
}

.toc li {
  line-height: 1.5;
}

.toc li.toc-h3 {
  padding-left: 14px;
}

.toc a {
  display: block;
  padding: 5px 6px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 11.5px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  color: var(--yellow);
  border-left-color: var(--yellow);
  background: rgba(255, 230, 0, 0.04);
}

.aside-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.aside-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.aside-card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.aside-card .tag-row {
  margin-top: 10px;
}

.post-end {
  padding-top: clamp(48px, 6vw, 80px);
}

.author-box {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.author-box__avatar {
  position: relative;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
}

.author-box__name span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--purple);
}

.author-box p {
  max-width: 560px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.author-box__link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  white-space: nowrap;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 108px;
  padding: 20px 22px;
  background: var(--bg-panel);
  transition: background 0.25s;
}

.post-nav a:hover {
  background: var(--bg-panel-2);
}

.post-nav a.next {
  text-align: right;
  align-items: flex-end;
}

.post-nav small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.post-nav strong {
  max-width: 92%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s;
}

.post-nav a:hover strong {
  color: var(--yellow);
}

.related {
  margin-top: clamp(48px, 6vw, 76px);
}

.related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.related__head h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.related-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  transition: border-color 0.2s, transform 0.25s;
}

.related-card:hover {
  border-color: rgba(255, 230, 0, 0.35);
  transform: translateY(-2px);
}

.related-card__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(120% 120% at 80% 10%, var(--cover-a), transparent 58%),
    linear-gradient(140deg, var(--cover-b), #08070c 72%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.related-card h3 {
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
  transition: color 0.2s;
}

.related-card:hover h3 {
  color: var(--yellow);
}

.related-card p {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Search overlay
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(76px, 12vh, 140px) 20px 40px;
  background: rgba(4, 3, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-panel {
  width: min(760px, 100%);
  max-height: min(720px, 82vh);
  display: flex;
  flex-direction: column;
  background: #0c0a12;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 85, 247, 0.12);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--yellow);
}

.search-panel__head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.search-panel__head button:hover {
  color: var(--yellow);
}
.search-panel__head kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  font-size: 8px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.search-field svg {
  position: absolute;
  left: 22px;
  width: 20px;
  height: 20px;
  color: var(--purple);
}

.search-field input {
  width: 100%;
  height: 70px;
  padding: 0 24px 0 58px;
  background: transparent;
  border: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.search-field input:focus {
  outline: none;
}

.search-field input::placeholder {
  color: var(--dim);
}

.search-results {
  overflow-y: auto;
  padding: 10px;
}

.search-hint {
  padding: 34px 18px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result.is-selected {
  background: rgba(255, 230, 0, 0.045);
}

.search-result__cat {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--purple);
}

.search-result h3 {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.search-result h3 mark {
  background: rgba(255, 230, 0, 0.2);
  color: var(--yellow);
}

.search-result p {
  margin-top: 3px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result__arrow {
  color: var(--dim);
  font-size: 14px;
}

.search-result:hover .search-result__arrow {
  color: var(--yellow);
}

.search-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 500px at 72% 50%, rgba(168, 85, 247, 0.2), transparent 65%),
    radial-gradient(400px 300px at 20% 80%, rgba(255, 230, 0, 0.06), transparent 70%);
}

.error-page .shell {
  position: relative;
  z-index: 2;
}

.error-code {
  position: relative;
  margin: 12px 0 20px;
  font-family: var(--font-mono);
  font-size: clamp(130px, 30vw, 390px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 230, 0, 0.55);
  text-shadow: 8px 8px 0 rgba(168, 85, 247, 0.12);
}

.error-code span {
  color: var(--yellow);
  -webkit-text-stroke: 0;
}

.error-page h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.error-page p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav {
    gap: 20px;
  }
  .footer__top {
    flex-wrap: wrap;
  }
  .footer__cols {
    justify-content: flex-start;
  }
  .nav a span {
    display: none;
  }
  .hero__media {
    width: 70%;
  }
  .hero__content {
    width: 82%;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .header__actions .header__rss {
    display: none;
  }
  .header__actions .header__github {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 64px) 0 76px;
    align-items: flex-end;
  }
  .hero__media {
    width: 100%;
    height: 100%;
    opacity: 0.7;
  }
  .hero__media::before {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(7, 6, 10, 0.62) 42%, rgba(7, 6, 10, 0.18) 100%),
      linear-gradient(0deg, var(--bg) 2%, rgba(7, 6, 10, 0.55) 40%, transparent 74%),
      linear-gradient(180deg, rgba(7, 6, 10, 0.8), transparent 34%);
  }
  .hero__content {
    width: 100%;
  }
  .hero__title {
    font-size: clamp(46px, 11vw, 82px);
  }
  .hero__lead {
    max-width: 500px;
  }
  .hero__side {
    display: none;
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 500px;
  }
  .latest-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid var(--line);
  }
  .latest-item {
    padding-inline: 18px;
  }
  .latest-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-card {
    min-height: 220px;
  }
  .channel-card__en {
    margin-top: 26px;
  }
  .profile-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
  }
  .profile-copy h2 {
    font-size: clamp(34px, 6vw, 52px);
  }
  .subscribe__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-layout > * {
    min-width: 0;
  }
  .post-aside {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: static;
    order: -1;
    overflow: hidden;
  }
  .post-aside > * {
    min-width: 0;
    max-width: 100%;
  }
  .toc ol {
    max-height: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .toc li {
    flex: 0 0 auto;
  }
  .toc li.toc-h3 {
    display: none;
  }
  .toc a {
    padding: 6px 10px;
    white-space: nowrap;
    border: 1px solid var(--line);
    font-size: 10.5px;
  }
  .toc a.is-active {
    border-color: var(--yellow);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .about-hero__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 34px;
  }
  .archive-year {
    grid-template-columns: 100px 1fr;
  }
  .archive-group {
    grid-template-columns: 62px 1fr;
    gap: 16px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-status {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 68px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .section-head h2 {
    font-size: 38px;
  }
  .hero {
    padding-top: calc(var(--header-h) + 52px);
  }
  .hero__title {
    margin: 22px 0 20px;
    font-size: clamp(42px, 13vw, 62px);
  }
  .hero__lead {
    font-size: 14px;
  }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 42px;
  }
  .hero__stats > div {
    padding: 14px 12px 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .hero__stats > div:nth-child(2n) {
    border-right: 0;
    padding-left: 16px;
  }
  .hero__stats > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .hero__scroll {
    display: none;
  }
  .marquee span {
    font-size: 10px;
    padding: 9px 0;
  }
  .marquee i {
    margin: 0 14px;
  }
  .feature-card {
    min-height: 470px;
  }
  .feature-card__link {
    padding: 22px;
  }
  .feature-card h3 {
    font-size: 27px;
  }
  .feature-card__foot .tag-row {
    display: none;
  }
  .latest-list {
    grid-template-columns: 1fr;
  }
  .latest-item:nth-child(odd) {
    border-right: 0;
  }
  .latest-item__link {
    grid-template-columns: 28px 1fr 18px;
    gap: 10px;
    padding: 18px 0;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    max-width: 420px;
  }
  .profile-copy h2 {
    font-size: 42px;
  }
  .subscribe h2 {
    font-size: 32px;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-card--wide {
    grid-column: auto;
  }
  .post-card--wide .post-card__link {
    flex-direction: column;
  }
  .post-card--wide .post-card__cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .post-card--wide .post-card__body {
    width: 100%;
  }
  .filter-search {
    width: 100%;
  }
  .page-hero__title {
    font-size: 52px;
  }
  .page-hero__watermark {
    display: none;
  }
  .archive-year {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .archive-year__label {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .archive-year__label strong {
    font-size: 32px;
  }
  .archive-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 12px;
  }
  .archive-row__cat {
    display: none;
  }
  .tag-index__row {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
  }
  .tag-index__posts {
    grid-column: 1 / -1;
  }
  .about-hero__grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 340px;
  }
  .about-intro h1 {
    font-size: 52px;
  }
  .about-aside {
    grid-template-columns: 1fr;
  }
  .about-list li {
    grid-template-columns: 82px 1fr;
  }
  .post-hero h1 {
    font-size: 38px;
  }
  .post-hero__foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .author-box {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }
  .author-box__avatar {
    width: 64px;
    height: 64px;
  }
  .author-box__link {
    grid-column: 1 / -1;
    padding-top: 4px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav a.next {
    text-align: left;
    align-items: flex-start;
  }
  .related__grid {
    grid-template-columns: 1fr;
  }
  .footer__top {
    flex-direction: column;
    gap: 16px;
  }
  .footer__brand {
    max-width: 100%;
    flex: none;
  }
  .footer__cols {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
  .footer__col {
    max-width: 32%;
  }
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .search-overlay {
    padding: 68px 12px 24px;
  }
  .search-panel {
    max-height: 84vh;
  }
  .search-field input {
    height: 60px;
    font-size: 16px;
  }
  .prose {
    font-size: 15.5px;
    line-height: 1.95;
  }
  .prose h2 {
    font-size: 25px;
  }
  .prose pre {
    margin-inline: calc(var(--gutter) * -0.3);
    padding-inline: 18px;
    font-size: 11.5px;
  }
  .toc ol {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Motion / print
   -------------------------------------------------------------------------- */
/* ==========================================================================
   Light theme — warm paper, ink typography, same neon accents.
   Default is dark; the header toggle writes data-theme="light".
   ========================================================================== */
html[data-theme="light"] {
  --bg: #f3eee3;
  --bg-soft: #ebe4d6;
  --bg-panel: #fffdf7;
  --bg-panel-2: #f8f1e4;
  --ink: #17121b;
  --ink-soft: #3b3342;
  --muted: #665d70;
  --dim: #8a8093;
  --line: rgba(23, 18, 27, 0.13);
  --line-strong: rgba(23, 18, 27, 0.26);
  --yellow: #a16207;
  --yellow-bright: #ffe600;
  --yellow-soft: #fff04d;
  --purple: #6d28d9;
  --purple-deep: #5b21b6;
  --cyan: #0f766e;
  --pink: #be185d;
  --green: #4d7c0f;
  color-scheme: light;
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(109, 40, 217, 0.12), transparent 62%),
    radial-gradient(760px 440px at -8% 22%, rgba(255, 200, 0, 0.14), transparent 65%),
    radial-gradient(700px 600px at 50% 108%, rgba(109, 40, 217, 0.07), transparent 65%);
}

html[data-theme="light"] .site-grid {
  background-image:
    linear-gradient(rgba(23, 18, 27, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 27, 0.055) 1px, transparent 1px);
  opacity: 0.7;
}

html[data-theme="light"] .site-noise {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .site-header.is-scrolled,
html[data-theme="light"] body:not(.page-home) .site-header {
  background: rgba(243, 238, 227, 0.9);
  border-bottom-color: var(--line);
}

html[data-theme="light"] .icon-btn:hover {
  background: rgba(23, 18, 27, 0.05);
}

html[data-theme="light"] .mobile-nav {
  background: rgba(243, 238, 227, 0.98);
}

/* Hero over warm paper */
html[data-theme="light"] .hero__media::before {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(243, 238, 227, 0.88) 18%, rgba(243, 238, 227, 0.2) 48%, transparent 66%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%),
    linear-gradient(180deg, rgba(243, 238, 227, 0.38) 0%, transparent 30%);
}

html[data-theme="light"] .hero__media::after {
  opacity: 0.24;
}

html[data-theme="light"] .hero__tint {
  opacity: 0.26;
}

html[data-theme="light"] .hero__title {
  color: var(--ink);
}

html[data-theme="light"] .hero__title .hero__accent {
  color: var(--purple);
  text-shadow: 3px 0 0 rgba(161, 98, 7, 0.35);
}

html[data-theme="light"] .hero__title .hero__accent::after {
  background: var(--yellow-bright);
  opacity: 0.72;
}

html[data-theme="light"] .hero__lead {
  color: var(--ink-soft);
}

html[data-theme="light"] .hero__lead strong {
  color: var(--yellow);
}

html[data-theme="light"] .hero__stats dd {
  color: var(--ink);
}

html[data-theme="light"] .hero__side,
html[data-theme="light"] .hero__scroll {
  color: var(--dim);
}

html[data-theme="light"] .home-body {
  box-shadow: 0 -26px 80px rgba(23, 18, 27, 0.12);
}

html[data-theme="light"] .section--channels {
  background: linear-gradient(180deg, rgba(23, 18, 27, 0.03), transparent 38%);
}

html[data-theme="light"] .latest-item__link::before {
  background: linear-gradient(90deg, rgba(161, 98, 7, 0.07), transparent 72%);
}

html[data-theme="light"] .section--profile::before {
  -webkit-text-stroke-color: rgba(23, 18, 27, 0.08);
}

html[data-theme="light"] .channel-card::before {
  -webkit-text-stroke-color: rgba(23, 18, 27, 0.13);
}

html[data-theme="light"] .channel-card:hover::before {
  -webkit-text-stroke-color: rgba(7, 6, 10, 0.2);
}

html[data-theme="light"] .profile-visual__main::after {
  background:
    linear-gradient(0deg, rgba(7, 6, 10, 0.5), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.03) 3px 4px);
}

html[data-theme="light"] .profile-visual__sticker {
  border-color: var(--bg);
}

/* Inner-page headers */
html[data-theme="light"] .page-hero {
  background:
    radial-gradient(700px 360px at 78% -30%, rgba(109, 40, 217, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(23, 18, 27, 0.025), transparent);
}

html[data-theme="light"] .page-hero::before {
  background-image:
    linear-gradient(rgba(23, 18, 27, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 27, 0.06) 1px, transparent 1px);
}

html[data-theme="light"] .page-hero__watermark {
  -webkit-text-stroke-color: rgba(23, 18, 27, 0.1);
}

html[data-theme="light"] .section-head h2 em {
  -webkit-text-stroke-color: rgba(23, 18, 27, 0.34);
}

html[data-theme="light"] .breadcrumb span {
  color: #b3a7b5;
}

/* Filters and cards */
html[data-theme="light"] .filter-search input {
  background: var(--bg-panel);
}

html[data-theme="light"] .filter-search input:focus {
  background: var(--bg-panel-2);
  border-color: rgba(161, 98, 7, 0.5);
}

html[data-theme="light"] .filter-search kbd {
  background: rgba(23, 18, 27, 0.03);
}

html[data-theme="light"] .post-card__link:hover {
  border-color: rgba(161, 98, 7, 0.55);
  box-shadow: 0 24px 60px rgba(23, 18, 27, 0.14), 0 0 0 1px rgba(161, 98, 7, 0.08);
}

html[data-theme="light"] .post-card__cover::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}

html[data-theme="light"] .post-card__body p {
  color: var(--muted);
}

html[data-theme="light"] .empty-state {
  background: rgba(23, 18, 27, 0.015);
}

html[data-theme="light"] .archive-row:hover {
  background: linear-gradient(90deg, rgba(161, 98, 7, 0.06), transparent 60%);
}

html[data-theme="light"] .tag-cloud--page {
  background: var(--bg-panel);
}

html[data-theme="light"] .tag-big {
  color: var(--ink-soft);
}

html[data-theme="light"] .tag-big:hover {
  color: var(--yellow);
  text-shadow: none;
}

html[data-theme="light"] .tag-index__row:hover {
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.06), transparent 70%);
}

/* About */
html[data-theme="light"] .about-hero::before {
  background:
    radial-gradient(760px 520px at 18% 8%, rgba(255, 200, 0, 0.14), transparent 62%),
    radial-gradient(720px 520px at 88% 20%, rgba(109, 40, 217, 0.14), transparent 64%);
}

html[data-theme="light"] .about-portrait {
  background: linear-gradient(150deg, rgba(109, 40, 217, 0.1), transparent 50%, rgba(255, 230, 0, 0.18));
}

html[data-theme="light"] .about-portrait__sticker {
  border-color: var(--bg);
}

html[data-theme="light"] .about-panel {
  background: var(--bg-panel);
}

html[data-theme="light"] .about-visual img {
  border-color: var(--line);
}

/* Article */
html[data-theme="light"] .post-hero {
  background:
    radial-gradient(700px 420px at 86% -10%, rgba(109, 40, 217, 0.12), transparent 64%),
    radial-gradient(520px 300px at 0% 0%, rgba(255, 200, 0, 0.14), transparent 70%);
}

html[data-theme="light"] .post-hero::before {
  background-image:
    linear-gradient(rgba(23, 18, 27, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 27, 0.06) 1px, transparent 1px);
}

html[data-theme="light"] .post-hero__watermark {
  -webkit-text-stroke-color: rgba(23, 18, 27, 0.1);
}

html[data-theme="light"] .post-hero__meta .cat {
  color: #07060a;
}

html[data-theme="light"] .prose {
  color: var(--ink-soft);
}

html[data-theme="light"] .prose h2,
html[data-theme="light"] .prose h3,
html[data-theme="light"] .prose h4 {
  color: var(--ink);
}

html[data-theme="light"] .prose h2::before {
  background: var(--yellow-bright);
}

html[data-theme="light"] .prose code {
  color: var(--yellow);
  background: rgba(161, 98, 7, 0.07);
  border-color: rgba(161, 98, 7, 0.18);
}

html[data-theme="light"] .prose blockquote {
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.1), rgba(109, 40, 217, 0.02));
  border-left-color: var(--purple);
  color: var(--ink-soft);
}

html[data-theme="light"] .prose blockquote::before {
  color: var(--purple);
}

html[data-theme="light"] .prose pre {
  background: #0a0810;
  border-color: rgba(7, 6, 10, 0.3);
  color: #d9d2e8;
}

html[data-theme="light"] .prose pre code {
  color: inherit;
  background: none;
  border: 0;
}

html[data-theme="light"] .prose th {
  background: var(--bg-panel-2);
  color: var(--yellow);
}

html[data-theme="light"] .prose tr:nth-child(even) td {
  background: rgba(23, 18, 27, 0.025);
}

html[data-theme="light"] .prose .short-note {
  border-color: var(--line-strong);
  color: var(--muted);
}

html[data-theme="light"] .toc,
html[data-theme="light"] .aside-card {
  background: var(--bg-panel);
}

html[data-theme="light"] .toc a:hover {
  color: var(--ink);
}

html[data-theme="light"] .toc a.is-active {
  color: var(--yellow);
  border-left-color: var(--yellow);
  background: rgba(161, 98, 7, 0.05);
}

html[data-theme="light"] .author-box {
  background: var(--bg-panel);
}

html[data-theme="light"] .author-box__avatar {
  border-color: var(--line-strong);
}

html[data-theme="light"] .post-nav a {
  background: var(--bg-panel);
}

html[data-theme="light"] .post-nav a:hover {
  background: var(--bg-panel-2);
}

html[data-theme="light"] .related-card {
  background: var(--bg-panel);
}

html[data-theme="light"] .related-card:hover {
  border-color: rgba(161, 98, 7, 0.4);
}

html[data-theme="light"] .to-top {
  background: rgba(255, 253, 247, 0.9);
  border-color: var(--line-strong);
  color: var(--yellow);
}

html[data-theme="light"] .to-top:hover {
  background: var(--yellow-bright);
  color: #07060a;
  border-color: var(--yellow-bright);
}

/* Search */
html[data-theme="light"] .search-overlay {
  background: rgba(23, 18, 27, 0.55);
}

html[data-theme="light"] .search-panel {
  background: var(--bg-panel);
  box-shadow: 0 40px 120px rgba(23, 18, 27, 0.25), 0 0 0 1px rgba(109, 40, 217, 0.1);
}

html[data-theme="light"] .search-field input {
  color: var(--ink);
}

html[data-theme="light"] .search-field input::placeholder {
  color: var(--dim);
}

html[data-theme="light"] .search-result {
  border-bottom-color: var(--line);
}

html[data-theme="light"] .search-result:hover,
html[data-theme="light"] .search-result.is-selected {
  background: rgba(161, 98, 7, 0.06);
}

html[data-theme="light"] .search-result h3 mark {
  background: rgba(255, 230, 0, 0.55);
  color: var(--ink);
}

html[data-theme="light"] .search-panel__foot {
  border-top-color: var(--line);
}

/* 404 */
html[data-theme="light"] .error-page::before {
  background:
    radial-gradient(600px 500px at 72% 50%, rgba(109, 40, 217, 0.14), transparent 65%),
    radial-gradient(400px 300px at 20% 80%, rgba(255, 200, 0, 0.16), transparent 70%);
}

html[data-theme="light"] .error-code {
  -webkit-text-stroke-color: rgba(161, 98, 7, 0.65);
  text-shadow: 8px 8px 0 rgba(109, 40, 217, 0.08);
}

html[data-theme="light"] .error-code span {
  color: var(--yellow-bright);
  -webkit-text-stroke: 1px rgba(23, 18, 27, 0.18);
}

/* Footer follows the active theme; it is no longer forced dark. */
html[data-theme="light"] .site-footer {
  background: var(--bg-soft);
  border-top-color: var(--line);
  color: var(--ink);
}

html[data-theme="light"] .site-footer .footer__brand p,
html[data-theme="light"] .site-footer .footer__bottom {
  color: var(--dim);
}

html[data-theme="light"] .site-footer .footer__col h3 {
  color: var(--dim);
}

html[data-theme="light"] .site-footer .footer__col a {
  color: var(--muted);
}

@media (max-width: 900px) {
  html[data-theme="light"] .hero__media::before {
    background:
      linear-gradient(180deg, rgba(243, 238, 227, 0.58) 0%, rgba(243, 238, 227, 0.3) 28%, rgba(243, 238, 227, 0.84) 72%, rgba(243, 238, 227, 0.96) 100%),
      linear-gradient(90deg, rgba(243, 238, 227, 0.62), transparent 68%);
  }
  html[data-theme="light"] .hero__media::after {
    opacity: 0.16;
  }
}

@media (max-width: 680px) {
  .profile-visual {
    min-height: 460px;
    max-width: 430px;
  }
  .profile-visual__sticker {
    width: 76px;
    height: 76px;
  }
  .profile-visual__status {
    left: 12px;
    bottom: 70px;
  }
  .profile-visual__main {
    width: 82%;
  }
  .profile-visual__inset {
    width: 49%;
    bottom: 4px;
  }
}

@media (max-height: 760px) {
  body.page-home .hero__title {
    margin: 18px 0;
    font-size: clamp(40px, 6.6vw, 76px);
  }
  body.page-home .hero__stats {
    margin-top: 32px;
  }
  body.page-home .hero {
    padding-bottom: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__media,
  .marquee,
  .post-aside,
  .post-end,
  .search-overlay,
  .to-top,
  .site-noise,
  .site-grid,
  .progress-bar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .post-hero,
  .post-layout {
    padding: 0;
  }
  .prose {
    color: #222;
  }
  .prose h2,
  .prose h3 {
    color: #111;
  }
  .prose code {
    color: #111;
    background: #f2f2f2;
    border-color: #ddd;
  }
}

/* Editorial refinement: retain the neon identity, give the writing room. */
:root {
  --reading-accent: #92e5dc;
  --reading-panel: #100e17;
}
html[data-theme="light"] {
  --reading-accent: #19695f;
  --reading-panel: #eee7db;
}

.section-head h2 { letter-spacing: -.035em; }
.meta { font-size: 10px; }
.latest-item h3 { line-height: 1.55; letter-spacing: -.02em; text-wrap: pretty; }
.latest-item p { line-height: 1.85; }
.latest-item__index { color: var(--muted); }
.feature-card h3 { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.4; text-wrap: pretty; }
.feature-card p { line-height: 1.9; }
.post-card__cover { aspect-ratio: 2 / 1; }
.post-card__body h3 { font-size: 20px; line-height: 1.55; letter-spacing: -.025em; text-wrap: pretty; }
.post-card__body p { line-height: 1.85; }
.tag { font-size: 10px; }
.filter-status { font-size: 11px; }
.filter-chip { font-size: 11px; padding-block: 9px; }

.post-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 76px));
  padding-bottom: clamp(34px, 4vw, 54px);
}
.post-hero .breadcrumb { margin-bottom: 28px; font-size: 11px; }
.post-hero__meta { font-size: 11px; letter-spacing: .07em; margin-top: 0; }
.post-hero h1 {
  max-width: 1020px;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.3;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.post-hero__excerpt { max-width: 760px; line-height: 1.95; }
.post-hero__watermark { opacity: .55; }
.share-btn { font-size: 10px; min-height: 36px; }
.post-layout {
  max-width: 1140px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 264px);
  gap: clamp(32px, 5vw, 76px);
}
.prose { font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.prose p { margin-bottom: 1.4em; }
.prose h2 {
  margin-top: 2.5em;
  padding-top: 22px;
  padding-left: 0;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(23px, 2.1vw, 29px);
  line-height: 1.5;
  letter-spacing: -.025em;
}
.prose h2::before { top: -2px; width: 38px; height: 3px; transform: none; }
.prose h3 { font-size: 21px; line-height: 1.55; }
.prose blockquote {
  padding: 22px 26px;
  border-left-color: var(--reading-accent);
  background: var(--reading-panel);
  font-size: .95em;
}
.prose blockquote::before { content: none; }
.prose code { padding: .16em .35em; border-radius: 3px; }
.prose pre {
  margin-block: 26px;
  padding: 52px 22px 22px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.85;
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}
.prose pre::before { top: 15px; left: 22px; color: var(--muted); font-size: 10px; }
.prose pre::after { top: 37px; left: 0; width: 100%; height: 1px; background: var(--line); }
.prose pre .copy-code { top: 9px; right: 12px; font-size: 10px; color: var(--ink-soft); min-height: 28px; }
.prose pre code { border-radius: 0; overflow-wrap: normal; }
.table-wrap { border: 1px solid var(--line-strong); border-radius: 6px; }
.table-wrap table { min-width: 560px; font-size: 13px; line-height: 1.85; }
.prose th { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--reading-accent); }
.prose th, .prose td { padding: 13px 16px; border-width: 0 0 1px; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); }
.prose .anchor:focus-visible { opacity: 1; }
.toc { border-top: 2px solid var(--reading-accent); padding: 20px 18px; }
.toc__head { font-size: 9px; letter-spacing: .08em; }
.toc a { padding-block: 7px; font-size: 12px; line-height: 1.65; }
.toc ol { max-height: 51vh; overscroll-behavior: contain; }
.aside-card p { line-height: 1.85; }

.article-brief { margin-bottom: 36px; padding: 24px; border: 1px solid var(--line-strong); background: var(--reading-panel); border-radius: 6px; }
.article-brief .article-brief__label { margin: 0 0 20px; color: var(--reading-accent); font: 11px var(--font-mono); letter-spacing: .12em; }
.article-brief dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-brief dl > div + div { border-left: 1px solid var(--line-strong); padding-left: 20px; }
.article-brief dt { margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.article-brief dd { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.8; }

.network-diagram { margin: 28px 0; padding: 26px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--reading-panel); }
.network-diagram figcaption { margin-bottom: 24px; color: var(--reading-accent); font: 11px var(--font-mono); letter-spacing: .1em; }
.network-diagram__origin { text-align: center; color: var(--ink); font-weight: 650; font-size: 17px; }
.network-diagram__origin small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.network-diagram__split { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.network-diagram__route { min-width: 0; padding: 18px; border: 1px solid var(--line-strong); border-top: 2px solid var(--reading-accent); }
.network-diagram__route:last-child { border-top-color: var(--purple); }
.network-diagram__route > span { display: block; color: var(--muted); font-size: 11px; }
.network-diagram__route strong { display: block; color: var(--ink); font-size: 15px; margin-block: 12px; }
.network-diagram__route p { margin: 0; color: var(--muted); font-size: 12px; }
.network-diagram__exit { margin: 20px 0 0 !important; text-align: center; font-size: 13px; color: var(--reading-accent); }
.prose details { margin: 24px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; }
.prose summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.prose details pre { margin-bottom: 0; }

@media (max-width: 1080px) and (min-width: 901px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
  .article-brief dl { grid-template-columns: 1fr; gap: 14px; }
  .article-brief dl > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc ol { max-height: none; }
  .toc a { font-size: 11px; }
  .post-aside .aside-card { display: none; }
  .post-hero h1 { max-width: 760px; font-size: clamp(32px, 5.5vw, 48px); }
}
@media (max-width: 680px) {
  .prose { font-size: 16px; }
  .post-hero h1 { font-size: clamp(29px, 7.5vw, 38px); line-height: 1.4; }
  .post-hero__meta { gap: 8px; font-size: 10px; }
  .post-hero__foot { margin-top: 24px; gap: 14px; }
  .post-hero__actions { width: 100%; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 19px; }
  .prose pre { font-size: 12px; padding-inline: 16px; }
  .prose blockquote { padding: 18px; }
  .table-wrap::before { position: sticky; left: 0; width: calc(100vw - 42px); max-width: 100%; padding: 9px 12px; margin: 0; background: var(--reading-panel); font-size: 10px; text-align: left; }
  .article-brief { padding: 20px; }
  .article-brief dl { grid-template-columns: 1fr; gap: 14px; }
  .article-brief dl > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .article-brief dt { margin-bottom: 4px; }
  .network-diagram { padding: 20px; }
  .network-diagram__split { grid-template-columns: 1fr; }
  .post-card__body h3 { font-size: 19px; }
  .latest-item h3 { font-size: 18px; }
}
@media print {
  .article-brief, .network-diagram, .prose blockquote { background: transparent; color: #000; }
  .article-brief dd, .network-diagram strong, .network-diagram__origin { color: #000; }
}
