:root {
  --bg: #060a08;
  --panel: #0e1512;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1f6f3;
  --muted: #93a39a;
  --accent: #35e07a;
  --accent-2: #9dff4f;
  --accent-ink: #03200e;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;

  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 800;
  transition: filter 0.15s, transform 0.1s;
}

.button:hover {
  filter: brightness(1.1);
}

.button:active {
  transform: translateY(1px);
}

.button.small {
  padding: 9px 18px;
  font-size: 14px;
}

.button.big {
  padding: 20px 34px;
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  border-radius: 14px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(53, 224, 122, 0.45), 0 10px 30px rgba(53, 224, 122, 0.25);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(53, 224, 122, 0), 0 10px 44px rgba(53, 224, 122, 0.4);
  }
}

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(6, 10, 8, 0.85), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand b {
  color: var(--accent);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.nav nav a:not(.button) {
  color: var(--muted);
}

.nav nav a:not(.button):hover {
  color: var(--text);
}

.nav nav a.discord {
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0.8;
}

.nav nav a.discord:hover {
  opacity: 1;
  color: #5865f2;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: -3%;
  background: url(assets/hero.jpg) center / cover;
  animation: drift 24s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(6, 10, 8, 0.35), rgba(6, 10, 8, 0.85) 75%),
    linear-gradient(180deg, transparent 60%, var(--bg));
}

@keyframes drift {
  to {
    transform: scale(1.08);
  }
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 20px 80px;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin-bottom: -4px;
}

.hero h1 {
  margin: 0 0 64px;
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 140px);
  line-height: 0.9;
  font-weight: 900;
  font-style: italic;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.6);
}

/* Italic glyphs overhang their box and background-clip stops at the box edge; the padding
   gives the last letter room, the negative margin keeps the spacing unchanged. */
.hero h1 span {
  padding-right: 0.12em;
  margin-right: -0.12em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
}

.scroll::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--accent);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  to {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* Sections */

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px clamp(20px, 4vw, 48px) 40px;
}

.section h2 {
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery button:hover img {
  transform: scale(1.05);
}

.footer {
  margin-top: 80px;
  padding: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .nav nav a:not(.button):not(.discord) {
    display: none;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */

.nav.solid {
  position: sticky;
  background: rgba(6, 10, 8, 0.92);
  border-bottom: 1px solid var(--line);
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 48px) 20px;
  line-height: 1.65;
  color: #d3ded7;
}

.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 44px;
  font-style: italic;
  font-weight: 900;
  color: var(--text);
}

.doc h2 {
  margin: 36px 0 8px;
  font-size: 20px;
  color: var(--text);
}

.doc .updated {
  color: var(--muted);
  font-size: 14px;
}

.doc a,
.footer a {
  color: var(--accent);
}

.doc b {
  color: var(--text);
}
