
:root {
  --bg: #000000;
  --text: #ffffff;
  --text-dim: #cfc9c0;

  --panel-red: #9c0606;
  --panel-red-deep: #7e0404;

  --ball-highlight: #ff4b4b;
  --ball-bright: #e31212;
  --ball-mid: #b40b0b;
  --ball-dark: #8f0606;

  --sphere-size: clamp(150px, 36vmin, 320px);
}

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

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Linux Biolinum G";
  src: url("fonts/LinBiolinum_R_G.woff2") format("woff2"),
       url("fonts/LinBiolinum_R_G.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Linux Biolinum G";
  src: url("fonts/LinBiolinum_RB_G.woff2") format("woff2"),
       url("fonts/LinBiolinum_RB_G.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Linux Biolinum G", "Linux Biolinum O", "Linux Biolinum",
               "Libertinus Sans", Optima, Candara, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.35em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ball-highlight);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.25rem;
  padding: 5.5rem 1.5rem 3rem;
}

.panel {
  width: min(860px, 92vw);
  padding: clamp(2.5rem, 8vmin, 5rem) 1rem;
  background: var(--panel-red);
  background: linear-gradient(
    var(--panel-red) 0%,
    var(--panel-red) 70%,
    var(--panel-red-deep) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.sphere {
  height: var(--sphere-size);
  width: var(--sphere-size);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 18%,
    #f04040 0%,
    #dd1d1d 12%,
    #c31414 28%,
    #a60d0d 48%,
    #830707 68%,
    #620404 85%,
    #4c0303 100%
  );
  position: relative;
  isolation: isolate;
}

.sphere::before {
  content: "";
  position: absolute;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 45, 45, 0.85);
  filter: blur(14px);
}

.sphere::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 118%;
  height: 15%;
  border-radius: 50%;
  background: rgba(15, 0, 0, 0.7);
  bottom: -11%;
  z-index: -1;
  filter: blur(11px);
}

.intro p {
  max-width: 48rem;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text);
}

.contact p {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--text);
}

.contact a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--ball-highlight);
}

.footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #5c564d;
}

@media (max-width: 640px) {

  .navbar {
    padding: 0.9rem 1.25rem;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle-label span { top: 8px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }
  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    gap: 1.75rem;
    padding-top: 5rem;
  }

  .intro p br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
