/* Colours, type and shapes follow the in-game main menu (Code/MainMenuUI/MainMenuHud.razor.scss). */
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --bg: #0b0f11;
  --bar: #11171a;
  --bar-hover: #192124;
  --bar-active: #141b1e;
  --line: #263034;
  --line-soft: #192124;
  --glass: rgb(14 12 9 / .86);
  --text: #d3dcdc;
  --bright: #e9eff0;
  --muted: #7f9196;
  --dim: #56666c;
  --accent: #c9852a;
  --accent-hi: #e8a93a;
  --online: #5a8a40;
  --wrap: 68rem;
  --chrome: 78px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--chrome) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.5 "Barlow Condensed", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
}

h1, h2, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--bright);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 20;
}
.skip:focus { left: 0; }

/* Top bar and status bar */
.chrome {
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar {
  display: flex;
  align-items: stretch;
  height: 52px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: var(--bright);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.brand-copy { display: flex; flex-direction: column; }
.brand-title {
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 5px;
  line-height: 20px;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-width: 0;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  border-bottom: 2px solid transparent;
  color: #e6e0d2;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-item:hover, .nav-item:focus-visible {
  background: var(--bar-hover);
  border-bottom-color: var(--accent);
  color: #fff;
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.status-group { display: flex; align-items: center; gap: 10px; }
.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--online);
}
.faded { color: var(--dim); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: start;
  min-height: calc(100vh - var(--chrome));
  min-height: calc(100svh - var(--chrome));
  padding: 4rem 1.5rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: -3% -2%;
  z-index: -2;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  animation: drift 26s ease-out both;
}
@keyframes drift {
  from { transform: scale(1.09); }
  to { transform: scale(1.02); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(11 15 17 / .35) 0%, rgb(11 15 17 / 0) 30%, rgb(11 15 17 / .15) 60%, rgb(11 15 17 / .88) 100%);
}
.corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.corners span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgb(211 220 220 / .5);
}
.corners .tl { left: 12px; top: 12px; border-top-width: 1px; border-left-width: 1px; }
.corners .tr { right: 12px; top: 12px; border-top-width: 1px; border-right-width: 1px; }
.corners .bl { left: 12px; bottom: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.corners .br { right: 12px; bottom: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-copy {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}
h1 {
  display: inline-block;
  padding-bottom: .12em;
  border-bottom: 3px solid var(--accent);
  color: var(--bright);
  font-size: clamp(4.5rem, 17vw, 12rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: .1em;
  margin-right: -.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgb(0 0 0 / .65);
}

/* Below the hero: the forest behind smoked-glass panels */
main {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 1.5rem;
}
.forest {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.forest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 35%;
  filter: saturate(.85) brightness(.9);
}
.forest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(11 15 17 / .8) 0%, rgb(11 15 17 / .5) 50%, rgb(11 15 17 / .15) 100%);
}

.panel {
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--line);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding: 0 14px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}
.panel-meta {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.rows { padding: 6px 14px 10px; }
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
.row dt {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.row dd {
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .5px;
  overflow-wrap: anywhere;
  text-align: right;
}
.row a { color: var(--bright); text-decoration: none; }
.row a:hover, .row a:focus-visible { color: var(--accent-hi); }

.js .reveal { opacity: 0; transition: opacity .7s ease; }
.js .reveal.in { opacity: 1; }

.footbar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* 404 */
.notfound {
  display: grid;
  place-content: center;
  gap: 1.25rem;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}
.notfound h1 { font-size: clamp(2.5rem, 10vw, 5rem); margin: 0; }
.notfound a {
  color: var(--accent-hi);
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

@media (max-width: 40rem) {
  .brand { padding: 0 12px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 18px; letter-spacing: 4px; }
  .nav { justify-content: flex-end; }
  .nav-item { padding: 0 12px; border-right: 0; border-left: 1px solid var(--line); font-size: 14px; }
  .statusbar { font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
  .statusbar .status-group:first-child .faded { display: none; }
  .hero { padding: 3rem 1.25rem 3.5rem; }
  main { padding: 3rem 1.25rem; }
  .row { flex-direction: column; gap: .2rem; }
  .row dd { text-align: left; font-size: 1.25rem; }
  .footbar { letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .hero-art { transition: none; transform: none; }
  .js .reveal { transition: none; }
}
