:root {
  --bg: #0d0d0f;
  --bg-soft: #141417;
  --surface: rgba(23, 24, 28, 0.82);
  --surface-strong: rgba(30, 31, 36, 0.94);
  --text: #f4efe3;
  --muted: #aaa8a2;
  --subtle: #6f747d;
  --line: rgba(244, 239, 227, 0.13);
  --accent: #45d6ff;
  --accent-hot: #ff4fa8;
  --accent-warm: #f5c45b;
  --accent-green: #63e6a2;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #0d0d0f 0%, #17120f 52%, #101315 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

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

img {
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(69, 214, 255, 0.58);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800;
  box-shadow: inset 0 0 24px rgba(69, 214, 255, 0.14);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-main {
  padding: 28px 0 52px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(69, 214, 255, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(255, 79, 168, 0.11), transparent 36%),
    var(--surface-strong);
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.06) 1px, transparent 2px),
    linear-gradient(110deg, rgba(69, 214, 255, 0.22), transparent 34%, rgba(245, 196, 91, 0.16));
  background-size: 100% 6px, auto;
  mix-blend-mode: screen;
  opacity: 0.32;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(700px, 100%);
  padding: clamp(28px, 5vw, 62px);
}

.hero-image-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  padding: 10px;
  border-left: 1px solid var(--line);
}

.hero-image-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-image-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 45%, rgba(5, 8, 18, 0.54)),
    linear-gradient(120deg, rgba(69, 214, 255, 0.14), transparent 42%, rgba(245, 196, 91, 0.12));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-image-bitcoin {
  grid-column: 1;
  grid-row: 1;
}

.hero-image-bitcoin img {
  object-position: center;
}

.hero-image-wembanyama {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero-image-wembanyama img {
  object-position: center 20%;
}

.hero-image-nolan {
  grid-column: 1;
  grid-row: 2;
}

.hero-image-nolan img {
  object-position: center 38%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-content h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  font-weight: 800;
}

.hero-text {
  max-width: 54ch;
  margin: 22px 0 0;
  color: #d8d2c4;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #061015;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.content-grid,
.archive-page,
.taxonomy-page,
.post-detail {
  margin-top: 34px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

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

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 118px 18px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.timeline-item::before {
  position: absolute;
  top: 0;
  bottom: -16px;
  left: 126px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--accent), rgba(69, 214, 255, 0.08));
  opacity: 0.55;
}

.timeline-item:last-child::before {
  bottom: 50%;
}

.timeline-date {
  display: grid;
  align-self: start;
  min-height: 148px;
  padding: 18px 14px;
  border: 1px solid rgba(69, 214, 255, 0.32);
  border-radius: 8px;
  background: rgba(13, 13, 15, 0.82);
  box-shadow: inset 0 0 26px rgba(69, 214, 255, 0.08);
}

.timeline-month,
.timeline-year {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-day {
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.timeline-node {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 13px;
  height: 13px;
  margin-top: 18px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 20px rgba(69, 214, 255, 0.52);
}

.timeline-item .post-card {
  min-height: 238px;
}

.timeline-item:nth-child(3n + 1) .post-card {
  border-top-color: rgba(69, 214, 255, 0.6);
}

.timeline-item:nth-child(3n + 2) .post-card {
  border-top-color: rgba(245, 196, 91, 0.6);
}

.timeline-item:nth-child(3n + 3) .post-card {
  border-top-color: rgba(255, 79, 168, 0.55);
}

.post-card,
.taxonomy-card,
.archive-row,
.post-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.post-card {
  display: grid;
  min-height: 260px;
  padding: 22px;
}

.post-card:nth-child(3n + 1) {
  border-top-color: rgba(69, 214, 255, 0.6);
}

.post-card:nth-child(3n + 2) {
  border-top-color: rgba(245, 196, 91, 0.6);
}

.post-card:nth-child(3n + 3) {
  border-top-color: rgba(255, 79, 168, 0.55);
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.post-card h3 {
  align-self: end;
  margin-top: 22px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  overflow-wrap: anywhere;
}

.post-card h3 a:hover,
.archive-row a:hover {
  color: var(--accent);
}

.post-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.post-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

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

.terms a {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.read-link {
  color: var(--accent-warm);
  font-weight: 800;
}

.post-hero {
  padding: clamp(26px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(69, 214, 255, 0.16), transparent 30%),
    linear-gradient(315deg, rgba(255, 79, 168, 0.12), transparent 36%),
    var(--surface-strong);
}

.post-hero.compact {
  padding-bottom: 32px;
}

.post-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 8vw, 6rem);
  overflow-wrap: anywhere;
}

.post-hero .terms {
  margin-top: 22px;
}

.post-body {
  width: min(820px, 100%);
  margin: clamp(28px, 5vw, 48px) auto 0;
  color: #ece5d6;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, "Times New Roman", serif;
  font-size: clamp(1.06rem, 0.5vw + 0.98rem, 1.18rem);
  line-height: 1.92;
}

.typography-prose {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 160px),
    linear-gradient(90deg, rgba(69, 214, 255, 0.08), transparent 42%, rgba(245, 196, 91, 0.06)),
    rgba(12, 14, 19, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

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

.post-body > *:last-child {
  margin-bottom: 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  position: relative;
  margin-top: 2.35em;
  margin-bottom: 0.75em;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 850;
  line-height: 1.25;
}

.post-body h2 {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(1.65rem, 2vw, 2.35rem);
}

.post-body h2::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 86px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.post-body h3 {
  font-size: clamp(1.32rem, 1.35vw, 1.72rem);
}

.post-body h4 {
  color: var(--accent-warm);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body table,
.post-body figure,
.post-body .highlight,
.post-body pre {
  margin: 0 0 1.35em;
}

.post-body p {
  text-align: justify;
  text-justify: inter-ideograph;
}

.post-body strong {
  color: #fff7df;
  font-weight: 850;
}

.post-body a {
  color: #73e2ff;
  border-bottom: 1px solid rgba(115, 226, 255, 0.38);
  background: linear-gradient(180deg, transparent 60%, rgba(69, 214, 255, 0.14) 0);
}

.post-body a:hover {
  color: #fff0b8;
  border-color: rgba(245, 196, 91, 0.55);
}

.post-body ul,
.post-body ol {
  padding-left: 1.45em;
}

.post-body li {
  margin-bottom: 0.55em;
  padding-left: 0.15em;
}

.post-body li::marker {
  color: var(--accent-warm);
  font-weight: 800;
}

.post-body blockquote {
  position: relative;
  padding: 22px 24px 22px 58px;
  border: 1px solid rgba(245, 196, 91, 0.22);
  border-left: 4px solid var(--accent-warm);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 196, 91, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.055);
  color: #f2ead8;
}

.post-body blockquote::before {
  position: absolute;
  left: 18px;
  top: 10px;
  color: rgba(245, 196, 91, 0.52);
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
}

.post-body code:not(pre code) {
  padding: 0.12em 0.42em;
  border: 1px solid rgba(69, 214, 255, 0.2);
  border-radius: 6px;
  background: rgba(69, 214, 255, 0.1);
  color: #bdf1ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
}

.post-body pre,
.post-body .highlight {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    #07090d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.post-body pre {
  padding: 20px;
}

.post-body .highlight {
  padding: 0;
}

.post-body .highlight table {
  display: table;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

.post-body .highlight td {
  border: 0;
}

.post-body .highlight pre {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.post-body .gutter {
  width: 1%;
  color: rgba(236, 229, 214, 0.36);
  user-select: none;
}

.post-body .code {
  color: #d7e8ff;
}

.post-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-collapse: collapse;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.post-body th,
.post-body td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.post-body th {
  background: rgba(69, 214, 255, 0.1);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.post-body img {
  display: block;
  max-width: min(100%, 980px);
  height: auto;
  margin: 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.32);
}

.post-body hr {
  height: 1px;
  margin: 2.6em 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(69, 214, 255, 0.5), rgba(245, 196, 91, 0.45), transparent);
}

.post-body .MathJax,
.post-body mjx-container {
  color: #fff2c6;
  font-size: 1.02em;
}

.post-body mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.6em 0;
  padding: 18px 20px;
  border: 1px solid rgba(245, 196, 91, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(245, 196, 91, 0.11), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.post-body mjx-container:not([display="true"]) {
  padding: 0 0.1em;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-year {
  margin: 24px 0 6px;
  color: var(--accent-warm);
  font-size: 1rem;
}

.archive-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 14px 18px;
}

.archive-row time {
  color: var(--subtle);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.archive-row a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

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

.taxonomy-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 20px;
}

.taxonomy-card span {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.taxonomy-card strong {
  color: var(--accent-green);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.post-nav a,
.pagination-link,
.pagination-status {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.pagination-status {
  min-width: 132px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.pagination-link {
  font-weight: 800;
}

.pagination-link.is-older {
  text-align: right;
}

.pagination-spacer {
  min-height: 1px;
}

.post-nav span {
  display: block;
  color: var(--subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.post-nav strong {
  display: block;
  margin-top: 6px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 0 46px;
  color: var(--subtle);
  font-size: 0.86rem;
}

@media (max-width: 840px) {
  .site-shell {
    width: min(100% - 24px, 680px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .hero-image-grid {
    grid-template-rows: 170px 210px 170px;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-image-bitcoin,
  .hero-image-wembanyama,
  .hero-image-nolan {
    grid-column: 1;
  }

  .hero-image-bitcoin {
    grid-row: 1;
  }

  .hero-image-wembanyama {
    grid-row: 2;
  }

  .hero-image-nolan {
    grid-row: 3;
  }

  .post-list,
  .taxonomy-grid,
  .taxonomy-grid.dense,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 96px 18px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-item::before {
    left: 105px;
  }

  .timeline-date {
    min-height: 126px;
  }

  .archive-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before,
  .timeline-node {
    display: none;
  }

  .timeline-date {
    display: flex;
    min-height: auto;
    align-items: baseline;
    gap: 8px;
  }

  .timeline-day {
    font-size: 2rem;
  }

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

  .pagination-link.is-older {
    text-align: left;
  }

  .pagination-spacer {
    display: none;
  }
}
