:root {
  --bg: #0e1116;
  --bg-light: #151a21;
  --text: #e6eaf0;
  --border: #484848;
  --primary: #3caa3c;
}

body,
html {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-size: 1.1rem;
  box-sizing: border-box;
  font-family: monospace;
}

._88x31 {
  margin-left: 40px;
}

.mudrec {
  font-size: 12px;
  color: #555;
  font-family: sans-serif;
  margin-left: 2em;
}

.mega-symbol {
  color: #999;
  font-size: 40px;
}

.wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  padding: 2rem;
  box-sizing: border-box;
}

.header {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.avatar_main {
  position: relative;
  width: 200px;
  height: 200px;
  min-width: 200px;
}

.avatar {
  position: absolute;
  top: 3.5px;
  left: 15px;
  width: 85%;
  height: 85%;
}

.ramka {
  position: absolute;
  inset: -15px;
  z-index: 100;
  width: 110%;
  height: 110%;
}

a,
a:visited {
  color: var(--primary);
}

a:hover {
  text-decoration: none;
}

.footer {
  display: flex;
  bottom: 10px;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 5rem;
}

.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

pre:has(> code) {
  background-color: var(--bg-light);
  padding: 1rem;
  border-radius: 0.5rem;
}

p code,
h1 code,
h2 code,
h3 code,
li code {
  background-color: var(--bg-light);
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}

pre {
  overflow-x: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--primary);
}

.heading {
  display: flex;
  gap: 40px;
  align-items: start;
  justify-content: center;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legacy {
  color: #999;
  text-decoration: line-through 2px;
}

.churka {
  text-decoration: underline wavy red 1px;
}

.tables {
  display: flex;
  justify-content: space-between;
}

.main p:has(> img) {
  text-align: center;
}

.main video {
  max-width: 100%;
}

.main table {
  width: 100%;
}

.main table,
.main tr,
.main td {
  border: 1px solid var(--border);
}

.main td {
  padding: 0.5rem;
}

summary {
  font-size: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.article-card:hover {
  border: 1px solid var(--border);
}

.article-card span {
  color: var(--text);
}

@media (max-width: 768px) {
  .wrapper {
    padding: 1rem;
  }

  .avatar_main {
    width: 140px;
    height: 140px;
    min-width: 140px;
    margin-top: 20px;
  }

  .avatar {
    top: 2.5px;
    left: 10px;
  }

  .ramka {
    inset: -10px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav {
    width: 100%;
    gap: 0.75rem;
  }

  .heading {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .tables {
    flex-direction: column;
    gap: 1rem;
  }

  .main {
    gap: 1rem;
  }

  .main table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .main img,
  .main video {
    max-width: 100%;
    height: auto;
  }

  .article-card {
    padding: 0.75rem;
  }

  .footer {
    padding-top: 3rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  ._88x31 {
    margin-left: 0;
  }

  .mega-symbol {
    font-size: 32px;
  }

  summary {
    font-size: 1.25rem;
  }
}
