:root {
  color-scheme: dark;
  --ink: #050505;
  --panel: #0a0908;
  --panel-soft: #110d0b;
  --gold: #d6a94f;
  --gold-bright: #f1cf76;
  --gold-dark: #5b3b16;
  --blood: #9d1710;
  --blood-bright: #e52b19;
  --fel: #62c922;
  --fel-bright: #97f048;
  --bone: #e5dccb;
  --muted: #958c7d;
  --sidebar: 18rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 78% 40%, rgba(74, 160, 20, 0.13), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(157, 23, 16, 0.16), transparent 36%),
    #050505;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.embers {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255, 65, 16, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(151, 240, 72, 0.65) 0 1px, transparent 1.8px);
  background-position: 15% 78%, 71% 17%;
  background-size: 17rem 17rem, 23rem 23rem;
  mask-image: linear-gradient(to top, black, transparent 82%);
  animation: ember-drift 18s linear infinite;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 1.7rem 1.6rem 1.5rem;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.99), rgba(10, 8, 7, 0.97)),
    var(--panel);
  border-right: 1px solid rgba(214, 169, 79, 0.22);
  box-shadow: 1.2rem 0 4rem rgba(0, 0, 0, 0.65);
}

.sidebar::before,
.sidebar::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 3px;
}

.sidebar::before {
  top: 0;
  height: 34%;
  background: linear-gradient(to bottom, var(--blood-bright), transparent);
  box-shadow: 0 0 12px rgba(229, 43, 25, 0.7);
}

.sidebar::after {
  bottom: 0;
  height: 28%;
  background: linear-gradient(to top, var(--fel), transparent);
  box-shadow: 0 0 12px rgba(98, 201, 34, 0.55);
}

.brand {
  display: grid;
  justify-items: center;
  margin-bottom: 2.1rem;
  text-decoration: none;
}

.brand__crest {
  width: 7.4rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(214, 169, 79, 0.42);
  clip-path: polygon(50% 0, 89% 17%, 100% 58%, 74% 100%, 26% 100%, 0 58%, 11% 17%);
  filter: drop-shadow(0 0 0.8rem rgba(98, 201, 34, 0.22));
}

.brand__name {
  margin-top: 0.8rem;
  color: var(--gold-bright);
  font-family: "Cinzel", serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__realm {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 0.35rem;
}

.nav__link {
  position: relative;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.85rem 0.8rem 1.15rem;
  border-left: 1px solid rgba(214, 169, 79, 0.18);
  color: #aaa195;
  font-family: "Cinzel", serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.nav__link--active,
.nav__link:hover {
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(157, 23, 16, 0.26), transparent 90%);
  border-left-color: var(--blood-bright);
  text-shadow: 0 0 12px rgba(229, 43, 25, 0.45);
}

.nav__rune {
  position: absolute;
  left: -4px;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: var(--blood-bright);
  box-shadow: 0 0 9px var(--blood-bright);
}

.nav__link small {
  color: #675f55;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.nav__link--disabled {
  cursor: default;
}

.discord-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(214, 169, 79, 0.3);
  background: linear-gradient(135deg, rgba(214, 169, 79, 0.1), rgba(98, 201, 34, 0.04));
  color: var(--gold-bright);
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.discord-link:hover {
  border-color: var(--fel);
  background: linear-gradient(135deg, rgba(98, 201, 34, 0.17), rgba(214, 169, 79, 0.08));
  box-shadow: 0 0 1.4rem rgba(98, 201, 34, 0.13);
  translate: 0 -2px;
}

.discord-link svg {
  width: 1.8rem;
  fill: var(--fel-bright);
  filter: drop-shadow(0 0 6px rgba(98, 201, 34, 0.45));
}

.discord-link small {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.sidebar__foot {
  margin: 1rem 0 0;
  color: #59534c;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

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

.hero__art {
  position: absolute;
  inset: -5%;
  z-index: -3;
  background-image: url("assets/UA-banner.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) brightness(0.35) contrast(1.2) blur(3px);
  transform: scale(1.08);
  animation: slow-breathe 12s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.82), transparent 30%, transparent 70%, rgba(5, 5, 5, 0.56)),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.83), rgba(5, 5, 5, 0.42) 38%, rgba(5, 5, 5, 0.94)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72) 73%);
}

.hero__content {
  width: min(57rem, calc(100% - 3rem));
  padding: 3rem 0 4.5rem;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto 0.2rem;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood-bright));
}

.eyebrow span:last-child {
  background: linear-gradient(90deg, var(--blood-bright), transparent);
}

.hero__logo {
  display: block;
  width: min(47rem, 92%);
  height: auto;
  margin: -1.4rem auto -2.1rem;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 1.4rem 1.4rem rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 1.5rem rgba(98, 201, 34, 0.15));
}

.construction-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--fel-bright);
}

.construction-mark span {
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 201, 34, 0.75));
}

.construction-mark span:last-child {
  background: linear-gradient(90deg, rgba(98, 201, 34, 0.75), transparent);
}

.construction-mark svg {
  width: 1.25rem;
  fill: currentColor;
  filter: drop-shadow(0 0 0.45rem rgba(98, 201, 34, 0.65));
}

h1 {
  margin: 1rem auto 0.8rem;
  color: #f0e8d9;
  font-family: "Cinzel", serif;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-shadow: 0 3px 1rem rgba(0, 0, 0, 0.95);
  text-transform: uppercase;
}

.hero__lede {
  max-width: 42rem;
  margin: 0 auto;
  color: #b7aea0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.cta {
  position: relative;
  display: inline-flex;
  min-width: 13.5rem;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 1rem 1.9rem;
  overflow: hidden;
  border: 1px solid #9d6f26;
  background:
    linear-gradient(180deg, rgba(255, 225, 140, 0.14), transparent 45%),
    linear-gradient(135deg, #4c3215, #1c130b 60%, #2b1d0d);
  box-shadow:
    inset 0 0 0 2px rgba(6, 5, 4, 0.9),
    inset 0 0 0 3px rgba(214, 169, 79, 0.24),
    0 0.85rem 2.8rem rgba(0, 0, 0, 0.52);
  color: var(--gold-bright);
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-shadow: 0 2px 3px #000;
  text-transform: uppercase;
  transition: 180ms ease;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  rotate: 45deg;
  translate: 0 -50%;
  background: var(--blood-bright);
  box-shadow: 0 0 0.65rem rgba(229, 43, 25, 0.8);
}

.cta::before {
  left: 0.9rem;
}

.cta::after {
  right: 0.9rem;
}

.cta:hover {
  border-color: var(--fel);
  box-shadow:
    inset 0 0 0 2px rgba(6, 5, 4, 0.9),
    inset 0 0 0 3px rgba(151, 240, 72, 0.2),
    0 0 2.2rem rgba(98, 201, 34, 0.22);
  color: #fff0ba;
  translate: 0 -2px;
}

.cta__flare {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22), transparent 52%);
  translate: -130% 0;
}

.cta:hover .cta__flare {
  transition: translate 600ms ease;
  translate: 130% 0;
}

.hero__note {
  margin: 1.2rem 0 0;
  color: #6f685f;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.hero__bottom {
  position: absolute;
  bottom: 2.1rem;
  left: 50%;
  display: flex;
  width: min(32rem, 60%);
  align-items: center;
  gap: 0.8rem;
  translate: -50% 0;
}

.hero__bottom span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 169, 79, 0.45));
}

.hero__bottom span:last-child {
  background: linear-gradient(90deg, rgba(214, 169, 79, 0.45), transparent);
}

.hero__bottom i {
  width: 0.55rem;
  height: 0.55rem;
  rotate: 45deg;
  border: 1px solid var(--gold);
  background: var(--blood);
  box-shadow: 0 0 0.8rem rgba(229, 43, 25, 0.55);
}

.menu-toggle {
  display: none;
}

@keyframes slow-breathe {
  from { transform: scale(1.08); }
  to { transform: scale(1.12); }
}

@keyframes ember-drift {
  from { background-position: 15% 78%, 71% 17%; }
  to { background-position: 19% 58%, 67% 3%; }
}

@media (max-width: 800px) {
  :root {
    --sidebar: min(19rem, 86vw);
  }

  .menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(214, 169, 79, 0.45);
    background: rgba(8, 7, 6, 0.94);
    box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.55);
    color: var(--gold);
  }

  .menu-toggle__line {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    transition: 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
    translate: 0 7px;
    rotate: 45deg;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    translate: 0 -7px;
    rotate: -45deg;
  }

  .sidebar {
    translate: -105% 0;
    transition: translate 220ms ease;
  }

  .sidebar.is-open {
    translate: 0;
  }

  .main {
    margin-left: 0;
  }

  .hero__content {
    width: min(38rem, calc(100% - 2.2rem));
    padding-top: 5rem;
  }

  .hero__logo {
    width: min(38rem, 112%);
    max-width: none;
    margin-left: -6%;
  }

  .eyebrow span {
    width: 1.5rem;
  }
}

@media (max-height: 730px) and (min-width: 801px) {
  .sidebar {
    padding-block: 1rem;
  }

  .brand {
    margin-bottom: 0.8rem;
  }

  .brand__crest {
    width: 5.3rem;
  }

  .nav__link {
    min-height: 2.65rem;
  }

  .hero__logo {
    width: min(38rem, 84%);
    margin-block: -3rem -3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
