@font-face {
  font-family: Lyon;
  src: url(../fonts/TTF_LyonTextCyr-RegularNo2.woff2) format("woff2"), url(../fonts/TTF_LyonTextCyr-RegularNo2.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Artistic site title styles --- */
.site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.1rem;
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
  background: linear-gradient(90deg, #b71c1c 0%, #e57373 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(183,28,28,0.10));
  transition: filter 0.3s;
}
.site-title:hover {
  filter: drop-shadow(0 4px 16px rgba(183,28,28,0.18));
}
.site-title a {
  text-decoration: none;
  color: inherit;
}
.site-title .subtitle {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.85em;
  color: #b71c1c;
  background: none;
  margin-left: 0.15em;
  letter-spacing: 0.01em;
  line-height: 1;
}
@media (max-width: 600px) {
  .site-title {
    font-size: 1.2rem;
    line-height: 1.15;
  }
}
/* --- Minimalist adaptive site styles --- */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --accent: #b71c1c;
  --accent-soft: #cf6b6b;
  --content-width: 900px;
  --text-main: #1f1f1f;
  --text-muted: #4b4b4b;
  --surface-main: #fffdfb;
  --surface-soft: #f6f2ef;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: Lyon, "Inter", ui-sans-serif, system-ui, sans-serif;
  /* font-weight: 100; */
  background-color: #ececec;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(183, 28, 28, 0.11) 0, rgba(183, 28, 28, 0) 36%),
    radial-gradient(circle at 88% 82%, rgba(183, 28, 28, 0.08) 0, rgba(183, 28, 28, 0) 34%),
    linear-gradient(180deg, #f3f3f3 0%, #ebe8e8 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(183, 28, 28, 0.12);
  padding-bottom: 0.5rem;
}
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 0.5rem 1rem;
}
nav h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
nav h1 a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
nav h1 a:hover {
  color: var(--accent);
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
}
.menu li a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3em 0.7em;
  border-radius: 2em;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.menu li a.active, .menu li a:hover {
  background: #f4dede;
  color: var(--accent);
}
.streams {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  margin: 0.5rem 0 0.5rem 0;
}
.streams a {
  display: inline-block;
  line-height: 0;
}
.streams img {
  display: block;
  opacity: 0.7;
  filter: none;
  box-shadow: none;
  transition: opacity 0.2s;
}
.streams img:hover {
  opacity: 1;
  filter: none;
  transform: none;
  box-shadow: none;
}
main {
  flex: 1 1 auto;
  width: min(calc(100% - 2rem), var(--content-width));
  max-width: var(--content-width);
  margin: 2rem auto 1.5rem auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
}
article.maintext {
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.05rem;
}
article.maintext h1 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}
article.maintext h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 600;
}
article.maintext a {
  color: var(--accent);
  transition: color 0.2s;
}
article.maintext a:hover {
  color: var(--text-main);
  text-decoration: underline solid;
}
footer {
  background: linear-gradient(180deg, #2b2b2b 0%, #171717 100%);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.28);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: #e6e6e6;
  border-radius: 0;
  margin-top: 2rem;
  font-family: var(--font-sans);
}
.copyright {
  margin-bottom: 0.2em;

}
.developer {
  font-size: 0.6em;
  margin-top: 0.5em;
  opacity: 0.62;
}
footer a {
  color: #f1b0b0;
  text-decoration: none;
  border-bottom: 1px solid rgba(241,176,176,0.35);
  transition: color 0.2s, border-color 0.2s;
}
footer a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.7);
}

footer .streams a,
footer .streams a:hover {
  border-bottom: none;
}

/* --- Adaptive styles --- */
@media (max-width: 600px) {
  html {
    font-size: 16px;
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
  }
  main {
    width: calc(100% - 0.4rem);
    max-width: none;
    padding: 1.1rem 0.5rem;
    margin: 1rem 0.2rem 1.2rem 0.2rem;
    border-radius: 0.7rem;
  }
  nav {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
}

/* --- Simple fade-in animation for main --- */
main {
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
