:root {
  --bg: #05070b;
  --bg-2: #081018;
  --panel: rgba(10, 18, 27, 0.9);
  --panel-solid: #0a121b;
  --panel-raised: #101b27;
  --text: #d9fce8;
  --muted: #8da99c;
  --dim: #4e6960;
  --green: #55ffb7;
  --green-2: #23c983;
  --cyan: #50d9ff;
  --blue: #7c9cff;
  --yellow: #ffd166;
  --magenta: #ff6bd6;
  --red: #ff5c7a;
  --line: rgba(85, 255, 183, 0.22);
  --line-strong: rgba(85, 255, 183, 0.45);
  --shadow: rgba(85, 255, 183, 0.18);
  --glow-cyan: rgba(80, 217, 255, 0.14);
  --glow-yellow: rgba(255, 209, 102, 0.1);
  --accent-warm: #ff8f4c;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.032) 0 1px, rgba(0, 0, 0, 0.09) 1px 4px),
    linear-gradient(90deg, rgba(255, 92, 122, 0.035), rgba(85, 255, 183, 0.02), rgba(80, 217, 255, 0.035));
  mix-blend-mode: screen;
  opacity: 0.42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(85, 255, 183, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 255, 183, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 14% 9%, rgba(80, 217, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 12%, rgba(255, 107, 214, 0.13), transparent 24rem),
    radial-gradient(circle at 72% 86%, rgba(255, 143, 76, 0.12), transparent 28rem),
    linear-gradient(135deg, #05070b 0%, #0a111b 44%, #05070b 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--green);
  text-shadow: 0 0 14px var(--shadow);
}

#app {
  color: var(--green);
}

.sidebar {
  width: 19.75rem;
  padding: 1.35rem 1rem 2rem;
  background:
    linear-gradient(180deg, rgba(12, 24, 34, 0.98), rgba(5, 7, 11, 0.98)),
    var(--bg);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.4);
}

.sidebar::before {
  content: "";
  display: none;
}

.sidebar > h1 {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.85rem 0.85rem 2.2rem;
  color: var(--green);
  background: rgba(85, 255, 183, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: lowercase;
  box-shadow: 0 0 24px rgba(85, 255, 183, 0.06);
}

.sidebar > h1::before {
  content: ">";
  position: absolute;
  left: 0.85rem;
  color: var(--yellow);
}

.sidebar > h1 a {
  color: var(--green);
}

.sidebar-nav {
  padding-top: 0.4rem;
}

.sidebar ul li {
  margin: 0.08rem 0;
}

.sidebar ul li a {
  position: relative;
  padding: 0.3rem 0.65rem 0.3rem 1.65rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.sidebar ul li a::before {
  content: "0" counter(nav-index);
  position: absolute;
  left: 0.45rem;
  color: var(--dim);
  font-size: 0.66rem;
}

.sidebar-nav > ul {
  counter-reset: nav-index;
}

.sidebar-nav > ul > li {
  counter-increment: nav-index;
}

.sidebar ul li.active > a,
.sidebar ul li a:hover {
  color: var(--green);
  background: linear-gradient(90deg, rgba(85, 255, 183, 0.11), transparent);
  border-color: rgba(85, 255, 183, 0.22);
}

.search {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.search input {
  height: 2.65rem;
  color: var(--green);
  background: #05090d;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  box-shadow: inset 0 0 22px rgba(85, 255, 183, 0.05);
  font-family: var(--mono);
  font-size: 0.82rem;
}

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

.search .matching-post {
  border-bottom: 1px solid rgba(85, 255, 183, 0.1);
}

.content {
  padding-top: 0;
  background: transparent;
}

.markdown-section {
  position: relative;
  max-width: 68rem;
  margin: 0 auto;
  padding: 4.2rem 2.5rem 6.5rem;
  color: var(--text);
}

.markdown-section::before {
  content: "";
  display: block;
  width: min(9rem, 38vw);
  height: 0.28rem;
  margin: 0 0 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--cyan));
  box-shadow: 0 0 32px rgba(85, 255, 183, 0.24);
}

.markdown-section::after {
  content: "";
  position: absolute;
  top: 6.1rem;
  left: 2.5rem;
  right: 2.5rem;
  bottom: 5rem;
  z-index: -1;
  border: 1px solid rgba(85, 255, 183, 0.12);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, rgba(10, 18, 27, 0.56), rgba(5, 7, 11, 0.14));
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.24);
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
}

.markdown-section h1 {
  margin: 0 0 1.25rem;
  max-width: 56rem;
  font-size: clamp(2.3rem, 5.4vw, 5.2rem);
  line-height: 0.98;
  text-transform: lowercase;
  text-shadow: 0 0 34px var(--shadow), 2px 0 rgba(80, 217, 255, 0.24), -2px 0 rgba(255, 107, 214, 0.16);
}

.markdown-section h1::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 0.32rem;
  margin: 0 0 0.85rem;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.22);
  color: var(--yellow);
}

.markdown-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.7rem;
  padding: 0.68rem 0.85rem;
  color: var(--text);
  background: linear-gradient(90deg, rgba(85, 255, 183, 0.1), rgba(80, 217, 255, 0.045), transparent);
  border: 1px solid rgba(85, 255, 183, 0.18);
  border-radius: 6px;
  font-size: 1.05rem;
}

.markdown-section h2::before {
  content: "";
  width: 0.64rem;
  height: 0.64rem;
  flex: 0 0 auto;
  color: var(--bg);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.28);
}

.markdown-section h3 {
  color: var(--cyan);
  font-size: 1rem;
  margin-top: 1.65rem;
}

.markdown-section h3::before {
  content: ":: ";
  color: var(--magenta);
}

.markdown-section p,
.markdown-section li {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
}

.markdown-section strong {
  color: var(--yellow);
}

.markdown-section > p:first-of-type {
  max-width: 50rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.markdown-section em {
  color: var(--cyan);
  font-style: normal;
}

.markdown-section blockquote {
  position: relative;
  margin: 1.4rem 0;
  padding: 1rem 1.15rem 1rem 3.2rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(80, 217, 255, 0.1), rgba(85, 255, 183, 0.045));
  border: 1px solid rgba(80, 217, 255, 0.22);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
}

.markdown-section blockquote::before {
  content: "!";
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 50%;
  font-weight: 900;
}

.markdown-section code {
  color: var(--green);
  background: rgba(85, 255, 183, 0.08);
  border: 1px solid rgba(85, 255, 183, 0.16);
  border-radius: 4px;
  font-family: var(--mono);
}

.markdown-section pre {
  position: relative;
  padding-top: 3.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 0 36px rgba(85, 255, 183, 0.07), inset 0 0 24px rgba(80, 217, 255, 0.03);
}

.markdown-section pre::before {
  content: "console.log";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.85rem 0.65rem 4.6rem;
  color: var(--muted);
  background:
    radial-gradient(circle, var(--red) 0 0.32rem, transparent 0.34rem),
    radial-gradient(circle, var(--yellow) 0 0.32rem, transparent 0.34rem),
    radial-gradient(circle, var(--green) 0 0.32rem, transparent 0.34rem),
    rgba(255, 255, 255, 0.035);
  background-position: 1rem center, 2.15rem center, 3.3rem center, 0 0;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.markdown-section pre > code {
  color: var(--text);
  background: transparent;
  border: 0;
}

.markdown-section table {
  display: table;
  width: 100%;
  margin: 1.35rem 0;
  border-collapse: collapse;
  color: var(--text);
  background: rgba(7, 13, 20, 0.94) !important;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.markdown-section table tr,
.markdown-section table tr:nth-child(2n) {
  background: rgba(7, 13, 20, 0.94) !important;
}

.markdown-section th,
.markdown-section td {
  border: 1px solid rgba(141, 169, 156, 0.18);
  padding: 0.8rem;
  color: var(--text) !important;
  background: transparent !important;
  vertical-align: top;
}

.markdown-section th {
  color: var(--yellow) !important;
  background: rgba(255, 209, 102, 0.055) !important;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.markdown-section table tr:hover,
.markdown-section table tr:hover td {
  background: rgba(80, 217, 255, 0.04) !important;
}

.markdown-section hr {
  border: 0;
  border-top: 1px dashed var(--line-strong);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.8rem;
}

.portfolio-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(85, 255, 183, 0.1), rgba(80, 217, 255, 0.055)),
    rgba(10, 18, 27, 0.8);
  border: 1px solid rgba(85, 255, 183, 0.2);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24), inset 0 0 32px rgba(80, 217, 255, 0.035);
}

.portfolio-card:hover {
  color: var(--text);
  border-color: rgba(80, 217, 255, 0.38);
  text-shadow: none;
}

.portfolio-card span {
  color: var(--yellow);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.portfolio-card strong {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.22;
}

.portfolio-card em {
  color: var(--cyan);
  font-size: 0.86rem;
  line-height: 1.45;
}

.post-card {
  position: relative;
  min-height: 12rem;
  border: 1px solid rgba(85, 255, 183, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(85, 255, 183, 0.1), transparent 35%),
    linear-gradient(160deg, rgba(80, 217, 255, 0.12), rgba(255, 107, 214, 0.055)),
    rgba(10, 18, 27, 0.78);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26), inset 0 0 32px rgba(80, 217, 255, 0.035);
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(255, 255, 255, 0.08) 48%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.post-card:hover::before {
  opacity: 1;
}

.post-card a {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: var(--text);
}

.post-card a:hover {
  color: var(--text);
  text-shadow: none;
}

.post-date {
  color: var(--yellow);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.post-card strong {
  color: var(--text);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.post-topic {
  min-height: 1.25rem;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.post-topic:empty {
  display: none;
}

.cover.show {
  background:
    linear-gradient(90deg, rgba(85, 255, 183, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 183, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 16% 22%, rgba(80, 217, 255, 0.22), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(255, 107, 214, 0.17), transparent 24rem),
    radial-gradient(circle at 68% 78%, rgba(255, 143, 76, 0.15), transparent 24rem),
    linear-gradient(135deg, rgba(5, 7, 11, 0.96), rgba(8, 16, 24, 0.95)) !important;
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto !important;
  justify-content: flex-start !important;
  text-align: left;
}

.cover-main {
  width: min(100%, 72rem);
  max-width: 72rem;
  margin: 0;
  padding: 0 1.25rem;
  text-align: left;
}

.cover.show .cover-main {
  margin: 0 auto 0 0 !important;
  text-align: left;
}

.cover-main,
.cover-main * {
  text-align: left;
}

.cover-main > p:first-child {
  margin: 0 0 1rem;
}

.portfolio-kicker {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 1.2rem;
  padding: 0 0 0.55rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(80, 217, 255, 0.28);
  border-radius: 0;
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  line-height: 1.3;
  text-transform: uppercase;
}

.cover-main h1 {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  text-transform: lowercase;
  text-shadow: 0 0 34px var(--shadow), 3px 0 rgba(80, 217, 255, 0.2), -3px 0 rgba(255, 107, 214, 0.18);
}

.cover-main h1 a {
  color: var(--green);
}

.cover-main h1::before {
  content: "";
  display: block;
  width: min(8rem, 34vw);
  height: 0.22rem;
  margin: 0 0 1.15rem;
  border-radius: 999px;
  background: rgba(80, 217, 255, 0.72);
  box-shadow: 0 0 24px rgba(80, 217, 255, 0.16);
}

.cover-main blockquote {
  width: min(100%, 58rem);
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.cover-main blockquote p::before {
  content: none;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 13rem));
  gap: 0.85rem;
  max-width: 64rem;
  margin: 1.5rem 0;
  padding: 0;
}

.signal-grid li {
  list-style: none;
  min-height: 6.75rem;
  padding: 0.95rem;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(85, 255, 183, 0.12), rgba(80, 217, 255, 0.055)),
    rgba(10, 18, 27, 0.78);
  border: 1px solid rgba(85, 255, 183, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.signal-grid li::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 0.18rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--yellow);
}

.signal-grid strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.signal-grid span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.signal-grid {
  counter-reset: signal;
}

.signal-grid li {
  counter-increment: signal;
}

.cover-actions,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.cover-actions a,
.social-actions a {
  display: inline-flex;
  min-height: 2.8rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: var(--text);
  background: rgba(7, 13, 20, 0.88);
  border: 1px solid rgba(80, 217, 255, 0.36);
  border-radius: 5px;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 0 24px rgba(80, 217, 255, 0.12);
}

.cover-actions a:last-child {
  color: var(--text);
  background: rgba(7, 13, 20, 0.88);
  border-color: rgba(80, 217, 255, 0.36);
}

.cover-actions a:hover,
.cover-actions a:last-child:hover {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
  text-shadow: none;
}

.social-actions {
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.social-actions a,
.social-actions a:visited {
  min-height: 2.45rem;
  color: var(--text);
  background: rgba(7, 13, 20, 0.88);
  border-color: rgba(80, 217, 255, 0.36);
  font-size: 0.78rem;
}

.social-actions a:hover,
.social-actions a:focus {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
  text-shadow: none;
}

.app-name-link img {
  display: none;
}

.anchor span {
  color: inherit;
}

.docsify-copy-code-button {
  border-radius: 4px;
  background: var(--green) !important;
  color: var(--bg) !important;
  font-family: var(--mono);
}

.sidebar-toggle {
  background: rgba(5, 7, 11, 0.9);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.sidebar-toggle span {
  background-color: var(--green);
}

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

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

@media (max-width: 768px) {
  .sidebar {
    left: -19.75rem;
  }

  body.close .sidebar,
  body.open .sidebar {
    width: 19.75rem;
  }

  .markdown-section {
    padding: 4rem 1.15rem 5rem;
  }

  .markdown-section::before {
    text-align: left;
    padding-top: 2.4rem;
    background-position: 0.85rem 0.75rem, 2rem 0.75rem, 3.15rem 0.75rem, 0 0;
  }

  .markdown-section::after {
    left: 1.15rem;
    right: 1.15rem;
  }

  .markdown-section h1 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .markdown-section h2 {
    align-items: flex-start;
  }

  .markdown-section table {
    display: block;
    overflow-x: auto;
  }

  .cover-main {
    padding: 0;
  }

  .cover.show {
    padding: 0 1rem !important;
  }

  .cover-main h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .cover-main blockquote {
    font-size: 1rem;
  }

  .signal-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .signal-grid li {
    min-height: auto;
  }

  .cover-actions,
  .social-actions {
    width: 100%;
  }

  .cover-actions a {
    flex: 1 1 13rem;
  }

  .social-actions a {
    flex: 1 1 8rem;
  }
}
