@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/ubuntu-v21-cyrillic_latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/ubuntu-v21-cyrillic_latin-300italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ubuntu-v21-cyrillic_latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ubuntu-v21-cyrillic_latin-500italic.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --text-color: #000000;
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --muted: #686868;
  --divider: rgba(0, 0, 0, 0.24);
  --menu-text-highlight-color: #ffffff;
  --menu-back-highlight-color: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1e1e;
    --text-color: #e8e8e8;
    --navbar-bg: rgba(30, 30, 30, 0.8);
    --muted: #9a9a9a;
    --divider: rgba(255, 255, 255, 0.18);
    --menu-text-highlight-color: #1e1e1e;
    --menu-back-highlight-color: #e8e8e8;
  }
}

[data-theme="dark"] {
  --bg: #121212;
  --text-color: #e8e8e8;
  --navbar-bg: rgba(18, 18, 18, 0.8);
  --muted: #9a9a9a;
  --divider: rgba(255, 255, 255, 0.18);
  --menu-text-highlight-color: #121212;
  --menu-back-highlight-color: #e8e8e8;
}

html {
  margin:    0 auto;
  max-width: 1050px;
}

a:link,
a:visited,
a:hover,
a:active
{ color: var(--text-color); }

body {
  transition: background-color 0.6s ease, color 0.6s ease;
}

.navbar,
hr.footer {
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rss-link {
  font-size: 14px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-auto { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-auto { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-auto { display: none; }

.topname {
  font-size: 64px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 50px;
}

.intro {
  font-size: 32px;
  text-align: center;
  margin-bottom: 80px;
}

.freetext {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.articles {
  text-align: center;
}

hr.footer {
  margin-top: 30px;
  margin-bottom: 20px;
  border-top: 1px solid var(--divider);
}

footer {
  padding-bottom: 16px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  color: var(--muted);
  font-size: 14px;
}

.footer-divider {
  color: var(--muted);
  font-size: 14px;
}

.footer-icon-rss:hover img {
  filter: invert(76%) sepia(28%) saturate(6316%) hue-rotate(358deg) brightness(100%) contrast(106%);
}

body {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 18px;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text-color);
}

.navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: var(--navbar-bg) !important;
  margin-bottom: 2.5rem !important;
  position: -webkit-sticky;
  position: sticky;
  z-index: 1;
  top: 0;
  width: 100%;
  text-align: center;
}

.search-count {
  color: var(--muted);
  font-size: 16px;
}

.search-result h3 {
  margin-bottom: 4px;
}

.search-result p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 4px;
}

.nav-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.menu li {
  float: left;
}

.menu li a {
  display: block;
  color: var(--text-color);
  text-align: center;
  padding: 4px 16px;
  text-decoration: none;
}

.menu li a:hover {
  background-color: var(--menu-back-highlight-color);
  color: var(--menu-text-highlight-color)
}

.menu .active {
  text-decoration: underline;
  text-align: center;
  padding: 4px 16px;
}

html.js img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

html.js img.is-loaded {
  opacity: 1;
}

html.js .lightbox-overlay img {
  opacity: 1;
  transition: transform 0.3s ease;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: default;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
}

.lightbox-overlay::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: lightbox-spin 0.75s linear infinite;
  position: absolute;
}

.lightbox-overlay.img-ready::before {
  display: none;
}

@keyframes lightbox-spin {
  to { transform: rotate(360deg); }
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  opacity: 1;
  transform: scale(0.94);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.is-open img {
  transform: scale(1);
}

figure img {
  cursor: pointer;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 2px;
}

.column {
  flex: 24%;
  max-width: 24%;
  padding: 0 2px;
}

.column img {
  margin-top: 3px;
  vertical-align: middle;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 49%;
    max-width: 49%;
  }
}

@media screen and (max-width: 400px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

.taxonomy-description {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 1.5rem;
}

.taxonomy-browse {
  text-align: center;
  font-size: 20px;
  margin-top: 2rem;
}

.post-index-tags {
  color: var(--muted);
  font-size: 14px;
  margin: -0.6em 0 0.6em;
}

.post-index-tags a {
  color: var(--muted);
}

p.post-taxonomies {
  color: #787878;
  font-size: 16px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.prev-post {
  text-align: left;
}

.next-post {
  text-align: right;
}

@media screen and (max-width: 768px) {
  body {
    padding: 0 16px;
    font-size: 16px;
  }

  .topname {
    font-size: 36px;
  }

  .intro {
    font-size: 22px;
  }

  .freetext {
    font-size: 16px;
  }

  .menu li a {
    padding: 6px 10px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}