* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0b0f;
  color: #f1e6c8;
  font-family: Georgia, serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

header {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      rgba(0,0,0,.36),
      rgba(0,0,0,.66) 58%,
      rgba(0,0,0,.88)
    ),
    url("../images/gildenbanner.webp?v=01");
  background-size: cover;
  background-position: center 72%;
  background-repeat: no-repeat;
  min-height: clamp(560px, 68svh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 2px solid #6b4e16;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(212,175,55,.08), transparent 38%),
    linear-gradient(to bottom, transparent 72%, rgba(11,11,15,.55));
}

.hero-content {
  padding: 20px;
}

header h1 {
  font-size: 72px;
  color: #d4af37;
  letter-spacing: 3px;
  text-shadow:
    0 0 12px rgba(0,0,0,.95),
    0 0 30px rgba(0,0,0,.75),
    0 0 32px rgba(212,175,55,.24);
}

header p {
  margin-top: 20px;
  font-size: 24px;
  color: #f1e6c8;
  text-shadow:
    0 0 10px rgba(0,0,0,.95),
    2px 2px 10px #000;
}

/* ======================================================
   NAVIGATION
====================================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #171018;
  border-bottom: 1px solid #6b4e16;
  text-align: center;
  padding: 18px;
}

.nav-toggle {
  display: none;
  width: 100%;
  background: transparent;
  color: #d4af37;
  border: 1px solid #3b2d12;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

.nav-arrow {
  display: inline-block;
  transition: transform .25s ease;
}

.nav-links {
  display: block;
}

nav a {
  color: #d4af37;
  margin: 0 14px;
  font-size: 17px;
  font-weight: bold;
  transition: .2s;
}

nav a:hover {
  color: white;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 14px;
}

.nav-logo img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(212,175,55,.45));
  opacity: .95;
}

/* ======================================================
   CONTENT
====================================================== */

section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 25px;
}

h2 {
  color: #d4af37;
  font-size: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #6b4e16;
  padding-bottom: 12px;
}

p {
  font-size: 18px;
  line-height: 1.8;
}

strong {
  color: white;
}

.intro {
  background: #120d14;
  border: 1px solid #6b4e16;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 0 22px rgba(0,0,0,.45);
  margin-bottom: 40px;
}

/* ======================================================
   CHANGELOG
====================================================== */

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.changelog-entry {
  background: #15151d;
  border: 1px solid #3b2d12;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0,0,0,.45);
}

.changelog-entry summary {
  cursor: pointer;
  padding: 24px 28px;
  color: #d4af37;
  font-size: 22px;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.changelog-entry summary::-webkit-details-marker {
  display: none;
}

.changelog-entry[open] .plus {
  transform: rotate(45deg);
}

.plus {
  font-size: 32px;
  transition: .25s;
  flex-shrink: 0;
  margin-left: 18px;
}

.changelog-content {
  padding: 0 28px 32px;
}

.changelog-content h3 {
  color: white;
  font-size: 26px;
  margin: 24px 0 14px;
}

.changelog-content ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

.changelog-content li {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.changelog-note {
  margin: 24px 0 20px;
  padding: 18px 20px;
  border: 1px solid #3b2d12;
  border-radius: 12px;
  background: rgba(212,175,55,.06);
  color: #cfc3a3;
  font-size: 15px;
  line-height: 1.7;
}

.tag {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 7px 13px;
  background: rgba(212,175,55,.12);
  border: 1px solid #6b4e16;
  border-radius: 999px;
  color: #d4af37;
  font-size: 15px;
  font-weight: bold;
}

/* ======================================================
   BUTTONS / FOOTER
====================================================== */

.hero-nav-home {
  display: inline-block;
  margin-top: 34px;
  background: #d4af37;
  color: #111;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  transition: .25s;
}

.hero-nav-home:hover {
  background: #f0cc55;
  transform: scale(1.04);
}

.back-button {
  display: inline-block;
  margin-top: 40px;
  background: #d4af37;
  color: #111;
  padding: 15px 34px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  transition: .25s;
}

.back-button:hover {
  background: #f0cc55;
  transform: scale(1.04);
}

footer {
  background: #08080b;
  border-top: 1px solid #222;
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 14px;
}

footer a {
  color: #d4af37;
  transition: .2s;
}

footer a:hover {
  color: white;
}

/* ======================================================
   ULTRAWIDE
====================================================== */

@media (min-aspect-ratio: 21/9) {
  header {
    min-height: min(64svh, 820px);
    background-position: center 78%;
  }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 900px) {
  header {
    min-height: 580px;
    background-position: center 70%;
  }
}

@media (max-width: 768px) {
  header {
    min-height: 520px;
    background-position: center 68%;
  }

  header h1 {
    font-size: 48px;
  }

  header p {
    font-size: 19px;
  }

  nav {
    padding: 10px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    width: 22px;
    height: 22px;
    background-image: url("../images/favicon.ico");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 6px rgba(212,175,55,.45));
    opacity: .95;
    flex: 0 0 auto;
  }

  .nav-arrow {
    position: absolute;
    right: 16px;
  }

  .nav-logo {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease, margin-top .25s ease;
    margin-top: 12px;
    opacity: 1;
  }

  .main-nav.nav-collapsed .nav-links {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
  }

  .main-nav.nav-collapsed .nav-arrow {
    transform: rotate(180deg);
  }

  nav a {
    display: inline-block;
    margin: 0;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #3b2d12;
    border-radius: 999px;
    background: rgba(212,175,55,.06);
  }

  section {
    padding: 60px 20px;
  }

  h2 {
    font-size: 32px;
  }

  .changelog-entry summary {
    font-size: 18px;
    padding: 22px;
  }

  .changelog-content {
    padding: 0 22px 28px;
  }
}

@media (max-width: 480px) {
  header {
    min-height: 500px;
    background-position: center 66%;
  }

  header h1 {
    font-size: 38px;
  }

  header p {
    font-size: 17px;
  }

  .changelog-entry summary {
    font-size: 16px;
  }
}