:root {
  --bg: #222545;
  --bg-soft: #2a2f59;
  --panel: #303565;
  --panel-strong: #363c72;
  --panel-border: rgba(156, 166, 255, 0.12);
  --text: #ecedff;
  --muted: #a7aedb;
  --accent: #74e2c6;
  --accent-2: #6f7ef8;
  --accent-3: #f26d8a;
  --shadow: 0 24px 50px rgba(8, 10, 28, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 126, 248, 0.08), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(116, 226, 198, 0.07), transparent 20%),
    linear-gradient(180deg, #212444 0%, #222545 100%);
}

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

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

.home-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 340px;
}

.left-rail {
  padding: 70px 22px 28px;
  background: rgba(22, 25, 47, 0.78);
  border-right: 1px solid rgba(156, 166, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(116, 226, 198, 0.5);
}

.rail-eyebrow,
.small-title,
.post-kicker,
.hero-intro,
.post-footer,
.hero-stats {
  color: var(--muted);
}

.rail-brand h1 {
  margin: 0;
  font-size: 1.85rem;
  font-family: "Noto Serif SC", serif;
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.rail-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #d6dcff;
  transition: 160ms ease;
}

.rail-nav a:hover,
.rail-nav a.active {
  background: rgba(111, 126, 248, 0.16);
  color: white;
}

.rail-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(48, 53, 101, 0.7);
  border: 1px solid var(--panel-border);
}

.rail-card p {
  margin: 0;
  line-height: 1.7;
}

.main-stage {
  padding: 26px 18px 36px;
}

.right-sidebar {
  padding: 26px 26px 36px 10px;
}

.panel-dark,
.post-card {
  background: linear-gradient(180deg, rgba(50, 56, 107, 0.96), rgba(44, 49, 95, 0.96));
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.utility-bar {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.search-pill {
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(19, 22, 46, 0.38);
  color: #8f96c4;
}

.utility-links {
  display: flex;
  gap: 16px;
  color: #d9ddff;
  font-size: 0.95rem;
}

.hero-panel {
  min-height: 460px;
  margin-top: 18px;
  padding: 78px 38px 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(111, 126, 248, 0.05), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 96px
    );
  pointer-events: none;
}

.hero-intro {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.2rem;
}

.hero-profile,
.hero-tabs {
  position: relative;
  z-index: 1;
}

.hero-profile {
  margin-top: 250px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-orb {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 3rem;
  color: white;
  background:
    radial-gradient(circle at 35% 25%, #8e6ef7, transparent 30%),
    radial-gradient(circle at 70% 75%, #ff6598, transparent 32%),
    linear-gradient(135deg, #4f5ac9, #7f4da0);
  box-shadow: 0 18px 34px rgba(9, 10, 26, 0.5);
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-name-row h2 {
  margin: 0;
  font-size: 2rem;
  font-family: "Noto Serif SC", serif;
}

.follow-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(111, 126, 248, 0.24);
  color: #e7e9ff;
  font-size: 0.9rem;
}

.hero-stats {
  margin: 0;
}

.hero-tabs {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(156, 166, 255, 0.12);
}

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

.post-card {
  min-height: 250px;
  padding: 20px 20px 18px;
}

.card-glow {
  background:
    radial-gradient(circle at top right, rgba(116, 226, 198, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(54, 61, 118, 0.98), rgba(44, 49, 95, 0.98));
}

.post-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.post-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.35;
  font-family: "Noto Serif SC", serif;
}

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

.post-summary,
.side-box li,
.illustration-meta p,
.rail-card p {
  margin: 0;
  color: #b4b9e0;
  line-height: 1.8;
}

.post-footer,
.post-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.post-actions {
  margin-top: 14px;
}

.post-actions a {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(111, 126, 248, 0.28);
  background: rgba(111, 126, 248, 0.14);
}

.post-actions a:hover {
  background: rgba(111, 126, 248, 0.22);
}

.side-illustration,
.side-box {
  padding: 16px;
}

.side-illustration {
  overflow: hidden;
}

.side-illustration img {
  width: 100%;
  border-radius: 18px;
  background: rgba(22, 25, 47, 0.3);
}

.illustration-meta {
  margin-top: 14px;
}

.illustration-meta h2,
.side-box h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", serif;
}

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

.link-pills a {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(111, 126, 248, 0.12);
  color: #dce0ff;
  font-size: 0.92rem;
}

.side-box {
  margin-top: 14px;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.side-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.side-list span {
  color: #8791cb;
}

.article-body {
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 126, 248, 0.08), transparent 24%),
    linear-gradient(180deg, #212444 0%, #222545 100%);
}

.article-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 56px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.article-sidebar,
.article {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(50, 56, 107, 0.96), rgba(44, 49, 95, 0.96));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.article-sidebar {
  position: sticky;
  top: 24px;
  height: max-content;
}

.back-link,
.toc a {
  color: #d9ddff;
}

.toc {
  display: grid;
  gap: 10px;
}

.toc a:hover,
.back-link:hover {
  color: var(--accent);
}

.meta {
  color: #9299c8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.article h1,
.article h2,
.article h3 {
  font-family: "Noto Serif SC", serif;
}

.article h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.article h2 {
  margin: 34px 0 12px;
  font-size: 1.55rem;
}

.article p,
.article li {
  color: #c7ccef;
  line-height: 1.85;
}

.lead {
  color: #e7e9ff;
  font-size: 1.05rem;
}

.article pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 16px;
  background: #171a33;
  color: #eef1ff;
  border: 1px solid rgba(156, 166, 255, 0.12);
}

.article code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.article-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(156, 166, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9ea5d4;
}

@media (max-width: 1180px) {
  .home-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-sidebar {
    grid-column: 2;
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .side-box {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .home-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .left-rail {
    position: static;
    height: auto;
    padding: 24px 18px;
  }

  .main-stage,
  .right-sidebar {
    padding: 18px;
  }

  .utility-bar,
  .hero-name-row,
  .hero-profile,
  .post-footer,
  .post-actions,
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-intro {
    position: static;
    transform: none;
    margin-bottom: 120px;
  }

  .hero-profile {
    margin-top: 0;
  }

  .post-wall,
  .right-sidebar {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}
