/* Dragon's Exodus website — Copyright (c) 2026 Dragon's Exodus. MIT License; see LICENSE. */
:root {
  --de-nav-green: #809536;
  --de-nav-bg: #050704;
  --de-nav-panel: #0c0e09;
  --de-nav-hover: #202619;
  --de-nav-current: #30391e;
  --de-nav-line: #3a3a26;
  --de-nav-fg: #f1f2eb;
  --de-nav-dim: #9da294;
  --de-site-header-height: 3.25rem;
}

.de-site-header,
.de-site-header * {
  box-sizing: border-box;
}

.de-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex: 0 0 auto;
  width: 100%;
  min-height: var(--de-site-header-height);
  border-bottom: 1px solid var(--de-nav-line);
  background: rgb(5 7 4 / 96%);
  color: var(--de-nav-fg);
  font-family: Verdana, Geneva, system-ui, sans-serif;
  box-shadow: 0 5px 18px rgb(0 0 0 / 30%);
  backdrop-filter: blur(10px);
}

.de-site-bar {
  display: flex;
  width: min(100%, var(--maxw, 92rem));
  min-height: var(--de-site-header-height);
  align-items: center;
  justify-content: space-between;
  gap: clamp(.5rem, 1.5vw, 1rem);
  margin: 0 auto;
  padding: .25rem clamp(.65rem, 1.8vw, 1rem);
}

.de-site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--de-nav-green);
  text-decoration: none;
}

.de-site-brand:hover,
.de-site-brand:focus-visible {
  color: #a6c64a;
}

.de-site-brand:focus-visible,
.de-site-menu-button:focus-visible,
.de-site-menu-panel a:focus-visible {
  outline: 2px solid var(--de-nav-green);
  outline-offset: 3px;
}

.de-site-wordmark {
  display: inline-block;
  color: currentColor;
  font: 700 clamp(1.05rem, 3.5vw, 1.375rem)/1 "Tempus Sans ITC", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  letter-spacing: .04em;
  text-shadow: 0 0 .55rem rgb(128 149 54 / 24%);
  white-space: nowrap;
}

.de-site-menu {
  position: relative;
  flex: 0 0 auto;
}

.de-site-menu-button {
  display: inline-flex;
  min-width: 5.5rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .4rem .75rem;
  border: 1px solid var(--de-nav-line);
  border-radius: .25rem;
  background: var(--de-nav-panel);
  color: var(--de-nav-fg);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.de-site-menu-button::-webkit-details-marker {
  display: none;
}

.de-site-menu-button::marker {
  content: "";
}

.de-site-menu-button:hover,
.de-site-menu[open] .de-site-menu-button {
  border-color: var(--de-nav-green);
  background: #151a10;
}

.de-site-menu-icon {
  color: var(--de-nav-green);
  font-size: 1rem;
  font-weight: 400;
  line-height: .8;
}

.de-site-menu-panel {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  display: grid;
  width: min(92vw, 38rem);
  max-height: calc(100dvh - var(--de-site-header-height) - 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding: .85rem;
  overflow-y: auto;
  border: 1px solid var(--de-nav-line);
  border-radius: .35rem;
  background: rgb(12 14 9 / 98%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 72%);
}

.de-site-menu:not([open]) .de-site-menu-panel {
  display: none;
}

.de-site-menu-group {
  display: grid;
  align-content: start;
  gap: .12rem;
}

.de-site-menu-heading {
  margin: 0;
  padding: .25rem .65rem .35rem;
  color: var(--de-nav-dim);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.de-site-menu-panel a {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .65rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  color: var(--de-nav-fg);
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.de-site-menu-panel a:hover {
  border-color: #313820;
  background: var(--de-nav-hover);
  color: #fff;
}

.de-site-menu-panel a[aria-current="page"] {
  border-color: var(--de-nav-green);
  background: var(--de-nav-current);
  color: #fff;
}

.de-site-skip {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 2000;
  padding: .65rem .85rem;
  border: 1px solid var(--de-nav-green);
  border-radius: .2rem;
  background: var(--de-nav-bg);
  color: #fff;
  font: 700 .8rem/1 Verdana, Geneva, system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-180%);
}

.de-site-skip:focus {
  transform: translateY(0);
}

@media (max-width: 36rem) {
  .de-site-menu-panel {
    width: min(88vw, 21rem);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 22rem) {
  .de-site-bar {
    gap: .4rem;
    padding-inline: .5rem;
  }

  .de-site-menu-button {
    min-width: 2.75rem;
    padding-inline: .65rem;
  }

  .de-site-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .de-site-skip {
    transition: none;
  }
}

@media (forced-colors: active) {
  .de-site-header,
  .de-site-menu-button,
  .de-site-menu-panel,
  .de-site-menu-panel a {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}
