/* SPDX-FileCopyrightText: 2026 kunqa <kunqa@disroot.org> */
/* SPDX-License-Identifier: GPL-3.0-or-later */

:root {
  color-scheme: dark;
}

body {
  background-color: #181818;
  color: #e4e4e4;
  font-size: 15px;
  padding: 24px 16px;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  background-color: #2f3133;
  padding: 14px 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #8a8a8a;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title {
  font-style: italic;
  font-weight: bold;
  font-size: 1.1rem;
}

ul {
  padding-left: 20px;
}

a {
  color: #e4e4e4;
  background-color: #2c2b59;
  text-decoration: none;
  padding: 1px 4px;
}

a:hover {
  background-color: #183d7a;
}

footer {
  border-top: 1px dotted #8a8a8a;
  margin-top: 28px;
  padding-top: 12px;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.hero-logo {
  width: 240px;
  height: auto;
  filter: invert(0.88);
  mix-blend-mode: lighten;
}

.site-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    font-style: italic;
}

.site-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

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

details {
  margin: 14px 0;
}

summary {
  cursor: pointer;
  display: inline-block;
  background-color: #2c2b59;
  padding: 2px 6px;
}

summary:hover {
  background-color: #183d7a;
}

details img {
  margin-top: 12px;
}

pre {
  background: #202224;
  border: 1px solid #55585a;
  padding: 12px;
  overflow-x: auto;
}

code {
  font-family: monospace;
}

mark {
  background-color: #183d7a;
  color: #e4e4e4;
  padding: 1px 4px;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}

.code-block {
  border: 1px solid #55585a;
  background: #202224;
  margin: 14px 0;
}

.code-block summary {
  display: block;
  padding: 6px 10px;
  border-bottom: 1px solid #55585a;
}

.code-block pre {
  margin: 0;
  border: none;
  padding: 14px;
  overflow-x: auto;
  background: #202224;
}

.code-block code {
  font-family: monospace;
  font-size: 14px;
}

.code-file + .code-file {
  border-top: 1px solid #55585a;
}

.code-filename {
  padding: 8px 14px;
  color: #a2c4e3;
  font-size: 13px;
  border-bottom: 1px solid #383a3c;
}

.code-file pre {
  margin: 0;
  border: none;
  border-radius: 0;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  background-color: #2f3133;
  padding: 14px 20px;
  border: 5px solid #55585a;
  box-shadow: 6px 6px 0 #45484c;
}

.page img.post-img-right {
  float: right !important;
  width: 240px !important;
  max-width: 45% !important;
  margin: 0 0 12px 20px !important;
}

.code-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #202224;
  margin: 14px 0;
}

.code-split .code-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.code-split .code-col + .code-col {
  border-left: 3px solid #55585a;
}

.code-split pre {
  margin: 0;
  border: none;
  padding: 12px;
  overflow-x: auto;
  flex: 1;
}

.code-split code {
  font-family: monospace;
  font-size: 10px;
}

@media (max-width: 640px) {
  .code-split {
    grid-template-columns: 1fr;
  }

  .code-split .code-col + .code-col {
    border-left: none;

  }
}
