.var-highlight {
  color: #c0ad60;
}

.string-highlight {
  color: rgba(0, 255, 0, 0.8);
}

.center {
  width: 70%;
  margin: auto;
  padding: 10px;
}

body {
  padding: 40px;
  padding-bottom: 120px;
  background-color: #121212;
  font-size: clamp(1rem, 1vw + 0.9rem, 1.4rem);
  border-right: solid 3px rgba(0, 255, 0, 0.75);
  font-family: "Source Code Pro", monospace;
  color: lightgrey;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

pre {
  overflow-x: hidden;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

#typewriter::after {
  content: "|";
  animation: blink 500ms linear infinite alternate;
}

a {
  background-color: transparent;
  text-decoration: underline;
}

a:link {
  color: #ccffcc;
}

a:visited {
  color: grey;
}

a:hover {
  color: #ccffff;
}

a:active {
  color: #ccffcc;
}

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  background-color: rgba(0, 255, 0, 0.85);
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  font-size: 13px;
  color: #1a1a1a;
  font-family: "Source Code Pro", monospace;
  box-sizing: border-box;
}

.status-bar .segment {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0;
}

.status-bar .segment a {
  color: inherit;
  text-decoration: none;
}

.status-bar .segment a:hover,
.status-bar .segment a:focus {
  text-decoration: underline;
}

.status-bar .segment.left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-bar .segment.middle {
  flex: 1 1 auto;
  text-align: center;
  white-space: normal;
}

.status-bar .segment.right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.status-bar .status-path {
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  body {
    padding: 24px;
    padding-bottom: 140px;
    font-size: 18px;
  }

  .center {
    width: 90%;
    padding: 0;
  }

  .status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .status-bar .segment {
    width: 100%;
    display: flex;
    align-items: center;
    white-space: normal;
  }

  #status-clock {
    display: none;
  }

  .status-bar .segment.left {
    justify-content: flex-start;
    gap: 6px;
  }

  .status-bar .segment.middle {
    justify-content: flex-start;
  }

  .status-bar .segment.right {
    display: none;
  }
}

.post-content {
  margin-top: 24px;
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.75vw + 0.85rem, 1.15rem);
}

.post-content pre {
  margin: 2.2rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(0, 255, 0, 0.5);
  border-radius: 10px;
  overflow-x: auto;
}

.post-content code {
  font-family: "Source Code Pro", monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 4px;
  border-radius: 4px;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content pre code::before,
.post-content pre code::after {
  content: none;
}

.post-content .highlight {
  position: relative;
  margin: 2.4rem 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(0, 255, 0, 0.08);
  overflow: hidden;
}

.post-content .highlight pre {
  margin: 0;
  padding: 1.1rem 1.4rem;
  border-left: none;
  border-radius: 12px;
  background: transparent;
}

.post-content .highlight .chroma {
  background: transparent;
}

.post-content .highlight pre code {
  display: block;
  line-height: 1.55;
}

.post-content h1,
.post-content h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  margin: 2.8rem 0 1.2rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.post-content h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  margin: 2.2rem 0 1rem;
  line-height: 1.35;
}

.post-content h4 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 600;
  margin: 1.8rem 0 0.8rem;
  line-height: 1.4;
}

.post-content h5,
.post-content h6 {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 600;
  margin: 1.6rem 0 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-content p + h2,
.post-content p + h3,
.post-content p + h4,
.post-content p + h5,
.post-content p + h6 {
  margin-top: 3rem;
}

.post-content strong {
  color: #f0f0f0;
}

.post-content em {
  color: rgba(255, 255, 255, 0.85);
}

.post-content ul,
.post-content ol {
  margin: 1.4rem 0 1.4rem 1.6rem;
  padding: 0;
  line-height: 1.55;
}

.post-content ul ul,
.post-content ul ol,
.post-content ol ul,
.post-content ol ol {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.post-content li {
  margin: 0.4rem 0;
}

.post-content li::marker {
  color: rgba(0, 255, 0, 0.6);
}

.post-content li > p {
  margin: 0.4rem 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid rgba(0, 255, 0, 0.35);
  margin: 2.8rem 0;
}

.post-content blockquote {
  margin: 2.4rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid rgba(0, 255, 0, 0.6);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: rgba(230, 230, 230, 0.9);
  font-style: italic;
}

.post-content blockquote > :first-child {
  margin-top: 0;
}

.post-content blockquote > :last-child {
  margin-bottom: 0;
}

.post-content table {
  width: 100%;
  margin: 2.2rem 0;
  border-collapse: collapse;
  border: 1px solid rgba(0, 255, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.95);
  display: block;
  overflow-x: auto;
}

.post-content table thead,
.post-content table tbody,
.post-content table tr {
  width: 100%;
}

.post-content table thead {
  background: rgba(0, 255, 0, 0.15);
}

.post-content table thead tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.post-content table th,
.post-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.15);
  text-align: left;
}

.post-content table tr:last-child th,
.post-content table tr:last-child td {
  border-bottom: none;
}

.post-content table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.post-content table tbody tr:nth-child(2n) {
  background: rgba(0, 0, 0, 0.25);
}

.post-content table code {
  background: rgba(0, 255, 0, 0.12);
}

.post-content figure {
  margin: 2.4rem auto;
  text-align: center;
}

.post-content figure img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 0, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.post-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
}

.post-content dl {
  margin: 2rem 0;
}

.post-content dt {
  font-weight: 600;
  color: rgba(0, 255, 0, 0.85);
}

.post-content dd {
  margin: 0.5rem 0 1rem 1.4rem;
}

.post-content input[type="checkbox"] {
  accent-color: rgba(0, 255, 0, 0.7);
}

.post-content ul[class*="task-list"],
.post-content ol[class*="task-list"] {
  list-style: none;
  margin-left: 0;
}

.post-content ul[class*="task-list"] li,
.post-content ol[class*="task-list"] li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.post-content ul[class*="task-list"] input[type="checkbox"],
.post-content ol[class*="task-list"] input[type="checkbox"] {
  margin-top: 0.2rem;
}

.footnotes {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(0, 255, 0, 0.3);
  font-size: 0.85em;
  color: rgba(200, 200, 200, 0.85);
}

.footnotes ol {
  margin-left: 1.4rem;
}

.footnotes li {
  margin: 0.4rem 0;
}

.footnotes p {
  margin: 0.4rem 0;
}

.post-content sup {
  font-size: 0.75em;
}

.post-content sup a {
  color: rgba(0, 255, 0, 0.8);
}

.post {
  padding: 12px 0;
}

.post-header h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.post-header .post-meta {
  margin: 8px 0 0 0;
  font-size: 0.7em;
  color: rgba(200, 200, 200, 0.7);
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
