/* Sovetic black + red minimal theme (only effective rules kept) */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-height: 56px;
  --fs-h1: clamp(1.4rem, 2vw + 1.2rem, 2.2rem);
  --fs-p: clamp(1rem, 1.2vw + 0.8rem, 1.05rem);
  --text: #e8e8e8;
  --subtext: #bdbdbd;
  --accent: #cc0000;
  --accent-weak: rgba(204, 0, 0, 0.18);
}

/* Base */
html,
body {
  height: 100%;
}
html,
body {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(
      1000px 500px at 10% -10%,
      rgba(204, 0, 0, 0.18),
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      900px 500px at 100% 110%,
      rgba(204, 0, 0, 0.12),
      rgba(0, 0, 0, 0) 60%
    ),
    linear-gradient(180deg, #0b0b0b 0%, #121212 100%);
}

/* Layout: ensure content clears fixed navbar */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  padding-top: calc(var(--nav-height) + 20px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(12, 12, 12, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  min-height: var(--nav-height);
  padding: 10px 10px;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.nav-links {
  display: flex;
  gap: 8px;
}
.navbar a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color 0.25s ease, transform 0.12s ease;
}
.navbar a:hover {
  background-color: var(--accent-weak);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Burger (mobile) */
#nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-burger:focus-visible {
  outline: 2px solid #fff;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease, width 0.2s ease;
  transform-origin: center;
}
#nav-toggle:checked + .nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#nav-toggle:checked + .nav-burger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked + .nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Content */
.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.content h1 {
  font-size: var(--fs-h1);
  margin-bottom: 12px;
  color: var(--text);
}
.content p,
.content .subtitle {
  font-size: var(--fs-p);
  color: var(--subtext);
}

/* Global links */
a {
  color: var(--accent);
}
a:hover {
  color: #ff4040;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 8px 12px;
  }
  .nav-burger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: grid;
    gap: 6px;
    padding: 8px 10px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  }
  #nav-toggle:checked ~ .nav-links {
    max-height: 60vh;
  }
  .navbar a {
    padding: 12px 16px;
  }
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

nav {
  background: #333;
  color: #fff;
  padding: 1rem;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

header {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
}

.content {
  background: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
