:root {
  color-scheme: dark;
  --bg: #08090b;
  --text: #d7dde7;
  --muted: #8b95a3;
  --dim: #5d6876;
  --line: #222a35;
  --accent: #7cf7b1;
  --link: #7dd3fc;
  --marker: #d08770;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(124, 247, 177, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(124, 247, 177, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 0, rgba(107, 184, 255, 0.12), transparent 28rem),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto;
  color: var(--text);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 15px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: 0.18;
  mix-blend-mode: screen;
}

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

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.masthead {
  padding-bottom: 22px;
}

.logo {
  display: inline-block;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo::before {
  content: "[";
  color: var(--accent);
}

.logo::after {
  content: "]";
  color: var(--accent);
}

.masthead p,
.intro p,
.entry p,
.footer {
  color: var(--muted);
}

.masthead p {
  max-width: 520px;
  margin: 6px 0 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.intro {
  margin: 34px 0 46px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(124, 247, 177, 0.035);
}

.intro p {
  margin: 0;
}

.intro span {
  color: var(--accent);
}

.section-title {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title span,
time {
  color: var(--dim);
  font-size: 0.82rem;
}

.entry {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(34, 42, 53, 0.76);
}

.entry h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.entry h2 a {
  color: var(--text);
}

.entry h2 a::before {
  content: "> ";
  color: var(--marker);
}

.entry p {
  max-width: 760px;
  margin-bottom: 5px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
  padding-top: 16px;
  font-size: 0.8rem;
}

.article-shell {
  max-width: 940px;
}

.post {
  margin-top: 34px;
}

.post-header {
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.back-link,
.post-date {
  color: var(--dim);
  font-size: 0.82rem;
}

.post-date {
  margin: 18px 0 10px;
}

.post h1 {
  max-width: 940px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
  text-transform: none;
}

.dek {
  max-width: 900px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.post h2 {
  margin: 38px 0 10px;
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

.post p {
  max-width: 940px;
  margin-bottom: 16px;
}

.post p code {
  color: var(--accent);
}

.post pre {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.82rem;
  line-height: 1.5;
}

.post pre code.hljs {
  padding: 16px;
  background: transparent;
}

.callout,
.screenshot-slot {
  border: 1px solid var(--line);
  background: rgba(124, 247, 177, 0.035);
}

.callout {
  margin-bottom: 28px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
}

.callout p {
  margin: 0;
}

.screenshot-slot {
  margin: 22px 0;
  padding: 28px 16px;
  color: var(--dim);
  text-align: center;
}

.ban-status {
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-left: 2px solid #e05f65;
  background: rgba(224, 95, 101, 0.06);
  color: #e05f65;
}

.ban-status p {
  margin: 0;
  color: inherit;
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .masthead p {
    white-space: normal;
  }

  .site-shell {
    width: min(100% - 24px, var(--max));
    padding-top: 24px;
  }

  .footer {
    flex-direction: column;
  }

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

  .entry {
    padding: 16px 0;
  }
}
