/* =========================================================
   夜航游戏志 — NIGHTFLIGHT
   Editorial game journal, dark ink + acid lime
   ========================================================= */

:root {
  --bg: #07080b;
  --bg-soft: #0a0c10;
  --surface: #0f1218;
  --surface-2: #141821;
  --line: rgba(236, 233, 225, 0.12);
  --line-strong: rgba(236, 233, 225, 0.24);
  --text: #ece9e1;
  --muted: #a4a5ad;
  --dim: #71737d;
  --lime: #d8ff4e;
  --lime-soft: rgba(216, 255, 78, 0.1);
  --pink: #ff5f96;
  --amber: #ffb054;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", monospace;
  --wrap: 1280px;
  --pad: clamp(18px, 4vw, 44px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 620px at 88% -12%, rgba(216, 255, 78, 0.07), transparent 62%),
    radial-gradient(720px 520px at -8% 24%, rgba(255, 95, 150, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

::selection {
  background: var(--lime);
  color: #08090c;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--lime);
  color: #08090c;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 11, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-head.is-scrolled .topbar {
  display: none;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.25s ease;
}

.site-head.is-scrolled .masthead {
  padding-top: 11px;
  padding-bottom: 11px;
}

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

.brand__mark {
  width: 36px;
  height: 36px;
  color: var(--lime);
  flex: none;
}

.brand__text strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand__text em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
  gap: 26px;
  padding-top: 34px;
  padding-bottom: 46px;
}

.feature {
  position: relative;
  display: flex;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.feature__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 556px;
  isolation: isolate;
  color: inherit;
}

.feature__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.feature__media img,
.feature__media .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__media img {
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.01);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature:hover .feature__media img {
  transform: scale(1.045);
}

.feature__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.06) 0%, rgba(7, 8, 11, 0.4) 46%, rgba(7, 8, 11, 0.95) 100%),
    linear-gradient(100deg, rgba(7, 8, 11, 0.5), transparent 55%);
}

.feature__body {
  position: relative;
  padding: clamp(22px, 3.2vw, 46px);
  max-width: 820px;
}

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

.meta > * + *::before {
  content: "";
}

.tag {
  display: inline-block;
  color: var(--lime);
  border: 1px solid rgba(216, 255, 78, 0.42);
  padding: 4px 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1;
  background: rgba(216, 255, 78, 0.06);
}

.feature h1 {
  margin: 16px 0 14px;
  font-size: clamp(1.9rem, 4.1vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.feature p {
  margin: 0;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: #cbc8c0;
}

.feature__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.feature__more span {
  transition: transform 0.25s ease;
}

.feature:hover .feature__more span {
  transform: translateX(5px);
}

/* ---------- rail ---------- */

.rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.rail__block {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
}

.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 4px;
}

.rail__head h2 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.rail__head span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.bulletin {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bulletin li + li {
  border-top: 1px solid var(--line);
}

.bulletin a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 13px 0;
}

.bulletin__idx {
  font-size: 9.5px;
  color: var(--dim);
  padding-top: 4px;
  letter-spacing: 0.08em;
}

.bulletin__title {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bulletin a:hover .bulletin__title {
  color: var(--lime);
}

.bulletin__meta {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.now {
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(216, 255, 78, 0.1), rgba(216, 255, 78, 0.01) 56%),
    var(--surface);
  padding: 20px 22px 22px;
}

.now__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(216, 255, 78, 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.now__title {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.now__sub {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 17px 0 8px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--lime);
}

.now__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

/* ---------- sections / listing ---------- */

.section {
  padding-bottom: 74px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 20px;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.kicker {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

.chip {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #08090c;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 0.2s ease;
}

.search:focus-within {
  border-color: rgba(216, 255, 78, 0.55);
}

.search svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--dim);
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 13.5px;
}

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

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  background: var(--dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}

.search kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 6px;
  line-height: 1.4;
}

.count {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

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

/* ---------- cards ---------- */

.card {
  display: flex;
  border-top: 1px solid var(--line);
  padding-top: 0;
}

.card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 15px;
  background: var(--surface);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: rgba(7, 8, 11, 0.76);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin: 8px 0 8px;
  font-size: 18.5px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

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

.card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.arrow {
  font-size: 15px;
  color: var(--lime);
  transition: transform 0.2s ease;
}

.card:hover .arrow {
  transform: translate(3px, -3px);
}

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

.empty p {
  margin: 0;
  color: var(--muted);
}

.empty p.mono {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

/* ---------- generated covers ---------- */

.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.cover__glyph {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: 0.08em;
  color: rgba(236, 233, 225, 0.82);
}

.cover__label {
  position: absolute;
  left: 13px;
  bottom: 11px;
  z-index: 1;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: rgba(236, 233, 225, 0.5);
  text-transform: uppercase;
}

.cover--map {
  background:
    radial-gradient(120% 100% at 16% 12%, rgba(216, 255, 78, 0.22), transparent 55%),
    repeating-radial-gradient(ellipse at 82% 92%, rgba(216, 255, 78, 0.2) 0 1px, transparent 1px 16px),
    linear-gradient(160deg, #141b23, #07090c);
}

.cover--map .cover__glyph {
  color: var(--lime);
}

.cover--patch {
  background:
    repeating-linear-gradient(90deg, rgba(255, 95, 150, 0.14) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px),
    radial-gradient(95% 90% at 82% 12%, rgba(255, 95, 150, 0.26), transparent 60%),
    linear-gradient(150deg, #1b1019, #08090c);
}

.cover--patch .cover__glyph {
  color: var(--pink);
}

.cover--harvest {
  background:
    radial-gradient(circle at 30% 32%, rgba(255, 176, 84, 0.55), transparent 38%),
    repeating-linear-gradient(102deg, rgba(255, 176, 84, 0.15) 0 2px, transparent 2px 23px),
    linear-gradient(180deg, #2b1e11, #0b0906);
}

.cover--harvest .cover__glyph {
  color: #ffcf9a;
}

.cover--handheld {
  background:
    linear-gradient(
      90deg,
      transparent 0 27%,
      rgba(216, 255, 78, 0.2) 27% 27.6%,
      transparent 27.6% 68%,
      rgba(255, 95, 150, 0.18) 68% 68.6%,
      transparent 68.6%
    ),
    radial-gradient(72% 82% at 50% 118%, rgba(110, 175, 255, 0.26), transparent 62%),
    linear-gradient(160deg, #111a25, #07080b);
}

.cover--handheld .cover__glyph {
  color: #bcd9ff;
}

/* ---------- home about band ---------- */

.about-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin-bottom: 82px;
}

.about-band__avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(216, 255, 78, 0.5);
  background: linear-gradient(150deg, rgba(216, 255, 78, 0.16), transparent 70%);
  color: var(--lime);
  font-size: 28px;
  font-weight: 800;
}

.about-band h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.about-band p {
  margin: 0;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(216, 255, 78, 0.55);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--lime);
  color: #08090c;
}

/* ---------- category page ---------- */

.cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 46px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.cat-head h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.cat-head p {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.cat-count {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  padding-bottom: 6px;
}

.section--listing .section__head--slim {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 18px;
}

/* ---------- article ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(216, 255, 78, 0.55);
}

.article {
  padding-top: 34px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.crumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.crumbs a:hover {
  color: var(--lime);
}

.article__head {
  max-width: 940px;
}

.article__head h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.1rem, 4.9vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.article__dek {
  margin: 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 940px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.byline__avatar,
.author-box__avatar {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(216, 255, 78, 0.45);
  background: linear-gradient(150deg, rgba(216, 255, 78, 0.16), rgba(16, 20, 26, 0.92));
  color: var(--lime);
  font-weight: 800;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(216, 255, 78, 0.06);
}

.byline__avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
  line-height: 1;
}

.byline strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.byline > div > span,
.byline strong + span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 2px;
}

.article__media {
  margin: 38px 0 10px;
  border: 1px solid var(--line);
}

.article__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.article__media figcaption {
  padding: 10px 0;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-align: right;
}

.article__hero-pattern {
  aspect-ratio: 21 / 9;
  margin: 38px 0 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.article__hero-pattern .cover__glyph {
  font-size: clamp(56px, 10vw, 120px);
}

.article__body {
  max-width: 720px;
  margin: 46px auto 0;
  font-size: 17px;
  line-height: 1.95;
  color: #d9d6ce;
}

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

.article__body .lead {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.55em;
}

.article__body h2 {
  position: relative;
  margin: 2.2em 0 0.8em;
  padding-left: 18px;
  font-size: 24px;
  line-height: 1.42;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article__body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  bottom: 0.3em;
  width: 4px;
  background: var(--lime);
}

.article__body blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 2px solid var(--lime);
  background: var(--surface);
  color: var(--text);
  font-size: 18.5px;
  line-height: 1.8;
}

.article__body blockquote p {
  margin: 0;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.25em;
}

.article__body li {
  margin-bottom: 0.55em;
  padding-left: 0.2em;
}

.article__body li::marker {
  color: var(--lime);
}

.article__body strong {
  color: var(--text);
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article__foot-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-right: 6px;
}

.tag-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin: 38px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.author-box__avatar {
  width: 48px;
  height: 48px;
  font-size: 19px;
}

.author-box h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.author-box h2 span {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  font-weight: 400;
}

.author-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.related {
  padding-top: 22px;
}

.related .section__head {
  margin-bottom: 26px;
}

.text-link {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--lime);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 82px;
}

.pager__item {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.pager__item:hover {
  border-color: rgba(216, 255, 78, 0.5);
  background: var(--surface);
}

.pager__dir {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.pager__item strong {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 600;
}

.pager__item--next {
  text-align: right;
}

.pager__item--empty {
  border-color: transparent;
}

/* ---------- about page ---------- */

.about {
  padding-top: 48px;
}

.about__head {
  max-width: 920px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
}

.about__head h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 800;
  text-wrap: balance;
}

.about__head .lead {
  margin: 0;
  max-width: 58ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

.about__grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}

.player {
  position: sticky;
  top: 132px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(158deg, rgba(216, 255, 78, 0.1), transparent 46%),
    var(--surface);
}

.player__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.player__avatar {
  position: relative;
  display: grid;
  place-items: center;
  margin: 20px 0 18px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 24%, rgba(216, 255, 78, 0.33), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 10px),
    #0b0e13;
  color: var(--lime);
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.player__avatar::after {
  content: "PLAYER / 001";
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(236, 233, 225, 0.35);
  font-weight: 400;
}

.player__name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.player__name span {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.player__stats {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.player__stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.player__stats dt {
  color: var(--dim);
  flex: none;
}

.player__stats dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  line-height: 1.5;
}

.about__text section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.about__text h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.about__text p {
  margin: 0 0 1.1em;
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 64ch;
}

.principles li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.8;
  color: #cfccc4;
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.42em;
  width: 8px;
  height: 8px;
  background: var(--lime);
}

.note {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 28px;
}

.foot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.foot__mark {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.foot__tag {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
}

.foot__nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.foot__nav a:hover {
  color: var(--lime);
}

.foot__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--dim);
}

.foot__bottom span:nth-child(2) {
  max-width: 52ch;
  text-align: center;
}

/* ---------- reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .rail {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature__link {
    min-height: 500px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .player {
    position: static;
    max-width: 430px;
  }

  .player__avatar {
    font-size: 54px;
  }
}

@media (max-width: 760px) {
  .site-head.is-scrolled .masthead {
    padding-top: 12px;
    padding-bottom: 0;
  }

  .masthead {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 0;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 22px;
    margin-top: 13px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 13px;
  }

  .hero {
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 36px;
  }

  .feature__link {
    min-height: 440px;
  }

  .feature__body {
    padding: 22px;
  }

  .feature h1 {
    font-size: clamp(1.6rem, 7.2vw, 2.15rem);
    margin: 12px 0 10px;
  }

  .feature p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .rail {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 52px;
  }

  .section__head {
    gap: 14px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search {
    max-width: none;
  }

  .search kbd {
    display: none;
  }

  .count {
    text-align: right;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-band {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 0;
    margin-bottom: 54px;
  }

  .about-band__avatar {
    width: 56px;
    height: 56px;
    font-size: 23px;
  }

  .btn {
    justify-self: start;
  }

  .cat-head {
    padding-top: 32px;
    padding-bottom: 22px;
  }

  .cat-head h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .article {
    padding-top: 24px;
  }

  .article__head h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .article__dek {
    font-size: 15.5px;
  }

  .article__media {
    margin-top: 28px;
  }

  .article__media img {
    aspect-ratio: 16 / 10;
  }

  .article__hero-pattern {
    aspect-ratio: 16 / 10;
    margin-top: 28px;
  }

  .article__body {
    margin-top: 32px;
    font-size: 16.5px;
    line-height: 1.9;
  }

  .article__body .lead {
    font-size: 18px;
  }

  .article__body h2 {
    font-size: 21px;
    padding-left: 14px;
  }

  .article__body blockquote {
    font-size: 16.5px;
    padding: 16px 18px;
    margin: 1.6em 0;
  }

  .author-box {
    flex-direction: column;
    padding: 20px;
  }

  .pager {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .pager__item--next {
    text-align: left;
  }

  .pager__item--empty {
    display: none;
  }

  .about {
    padding-top: 32px;
  }

  .about__head h1 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .about__grid {
    padding-bottom: 42px;
  }

  .player__avatar {
    max-width: 300px;
  }

  .foot__top {
    flex-direction: column;
    gap: 20px;
  }

  .foot__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .foot__bottom span:nth-child(2) {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .topbar__date {
    display: none;
  }

  .rail__block,
  .now {
    padding: 18px;
  }

  .card h3 {
    font-size: 17.5px;
  }

  .article__body blockquote {
    font-size: 16px;
  }
}

@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
