:root {
  color-scheme: dark;
  --black: #050505;
  --gold: #f5ca4b;
  --text: #f0f0ed;
  --muted: #8d8d89;
}

* {
  box-sizing: border-box;
}

html {
  background: #0b0a0f;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: #0b0a0f;
  background-image:
    radial-gradient(ellipse 70% 52% at 15% 9%, rgb(135 91 16 / 0.24), transparent 72%),
    radial-gradient(ellipse 52% 40% at 88% 62%, rgb(80 53 13 / 0.16), transparent 74%),
    linear-gradient(100deg, rgb(11 10 15 / 0.94), rgb(12 11 17 / 0.82) 52%, rgb(9 10 16 / 0.94)),
    url("assets/politreboot-map.webp");
  background-attachment: fixed;
  background-position: center, center, center, center 35%;
  background-repeat: no-repeat;
  background-size: auto, auto, auto, max(1250px, 100vw) auto;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 1;
  width: min(100% - 72px, 1680px);
  margin: 0 auto;
  padding-top: clamp(24px, 4vw, 62px);
}

.navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 370px) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 4vw, 76px);
}

.brand {
  display: block;
  width: 100%;
  line-height: 0;
  transition: filter 180ms ease, transform 180ms ease;
}

.brand:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.6vw, 60px);
}

.nav-group--left {
  justify-content: flex-end;
}

.nav-group--right {
  justify-content: flex-start;
}

.nav-group a {
  position: relative;
  color: #bebeb9;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav-group a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-group a:hover,
.nav-group a:focus-visible {
  color: #fff3bd;
  outline: none;
  transform: translateY(-2px);
}

.nav-group a:hover::after,
.nav-group a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.server-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.68fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: center;
  width: min(100% - 72px, 1280px);
  min-height: 458px;
  margin: clamp(82px, 12vh, 155px) auto 100px;
  padding: clamp(48px, 5.5vw, 84px);
  border: 1px solid rgb(198 92 255 / 0.2);
  background: #08070a;
  box-shadow: 0 28px 85px rgb(0 0 0 / 0.42);
}

.server-intro::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("assets/politreboot-map.webp");
  background-position: center 48%;
  background-size: cover;
  content: "";
  filter: saturate(0.78) contrast(1.08);
  opacity: 0.45;
}

.server-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 7 10 / 0.97) 0%, rgb(10 7 13 / 0.91) 48%, rgb(8 7 10 / 0.75) 100%),
    linear-gradient(0deg, rgb(8 7 10 / 0.46), transparent 54%),
    linear-gradient(135deg, rgb(127 40 176 / 0.19), transparent 41%);
  content: "";
}

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

.section-kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.server-intro__title {
  display: block;
  width: min(100%, 680px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgb(152 39 249 / 0.16));
}

.server-intro__description {
  max-width: 565px;
  margin: 34px 0 0;
  color: #a6a6a2;
  font-size: clamp(16px, 1.38vw, 20px);
  line-height: 1.7;
}

.server-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 31px;
  margin-top: 40px;
}

.join-button {
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.join-button__label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.join-button__ip {
  color: #c0c0ba;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  transition: color 160ms ease;
}

.join-button:hover .join-button__label,
.join-button:focus-visible .join-button__label {
  color: #fff0a0;
}

.join-button:hover .join-button__ip,
.join-button:focus-visible .join-button__ip {
  color: #fff;
}

.join-button:focus-visible,
.text-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 7px;
}

.text-link {
  color: #a7a7a2;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  color: var(--gold);
  transition: transform 160ms ease;
}

.text-link:hover {
  color: #fff;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.copy-feedback {
  min-height: 20px;
  margin: 14px 0 0;
  color: #878782;
  font-size: 12px;
}

.server-intro__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 27px;
  margin: 48px 0 0;
  padding: 0;
  color: #aaa9b0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  list-style: none;
  text-transform: uppercase;
}

.server-intro__traits li:not(:last-child)::after {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 27px;
  border-radius: 50%;
  background: #a637eb;
  content: "";
  vertical-align: middle;
}

.server-status {
  max-width: 330px;
  justify-self: end;
  align-self: center;
  padding: 20px 0 20px clamp(30px, 4vw, 62px);
  border-left: 1px solid rgb(255 255 255 / 0.12);
}

.server-status__top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6c6c0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c45cff;
  box-shadow: 0 0 14px rgb(196 92 255 / 0.42);
}

.server-status__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 27px 0 0;
}

.server-status__details div {
  min-width: 0;
}

.server-status__details dt {
  margin-bottom: 7px;
  color: #777773;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-status__details dd {
  margin: 0;
  color: #deded8;
  font-size: 13px;
  font-weight: 700;
}

.map-reference {
  margin: 32px 0 0;
  color: #a9a4b0;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-reference span {
  margin-right: 5px;
  color: #d15eff;
  font-size: 14px;
  vertical-align: -1px;
}

.forum-news {
  display: grid;
  grid-template-columns: minmax(185px, 0.55fr) minmax(0, 2fr) auto;
  gap: clamp(32px, 4.5vw, 76px);
  align-items: center;
  width: min(100% - 72px, 1280px);
  margin: 0 auto 130px;
  padding: 33px clamp(28px, 3.6vw, 54px);
  border-top: 1px solid rgb(245 202 75 / 0.35);
  border-bottom: 1px solid rgb(245 202 75 / 0.2);
  background: #09080b;
}

.forum-news .section-kicker {
  margin-bottom: 8px;
}

.forum-news h2 {
  margin: 0;
  color: #e4e3e8;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.forum-news__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forum-news__item {
  min-width: 0;
  padding: 0 clamp(18px, 2.2vw, 34px);
}

.forum-news__item + .forum-news__item {
  border-left: 1px solid rgb(255 255 255 / 0.11);
}

.forum-news__item:first-child {
  padding-left: 0;
}

.forum-news__item:last-child {
  padding-right: 0;
}

.forum-news__meta {
  display: flex;
  gap: 9px;
  margin-bottom: 11px;
  color: #f5ca4b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forum-news__meta span + span::before {
  margin-right: 9px;
  color: #55515b;
  content: '•';
}

.forum-news__item h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.forum-news__item a {
  color: #c5c3ca;
  text-decoration: none;
  transition: color 160ms ease;
}

.forum-news__item a:hover,
.forum-news__item a:focus-visible {
  color: #fff;
  outline: none;
}

.forum-news__all {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.forum-news__all span:last-child {
  transition: transform 160ms ease;
}

.forum-news__all:hover span:last-child {
  transform: translate(3px, -3px);
}

.site-footer {
  width: min(100% - 72px, 1280px);
  margin: 0 auto;
  padding: 56px 0 27px;
  border-top: 1px solid rgb(255 255 255 / 0.11);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(125px, 0.6fr));
  gap: clamp(28px, 5vw, 78px);
}

.site-footer__brand img {
  display: block;
  width: 178px;
  height: auto;
}

.site-footer__brand p {
  max-width: 250px;
  margin: 18px 0 0;
  color: #817e86;
  font-size: 13px;
  line-height: 1.55;
}

.site-footer h2 {
  margin: 0 0 17px;
  color: #d4d1d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-footer a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 12px;
  color: #85818a;
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #fff0a0;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  color: #66636b;
  font-size: 11px;
}

.social-bar {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgb(245 202 75 / 0.34);
  background: rgb(12 10 16 / 0.9);
  box-shadow: 0 14px 35px rgb(0 0 0 / 0.36);
  backdrop-filter: blur(12px);
}

.social-bar__link {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-right: 1px solid rgb(255 255 255 / 0.09);
  color: #c7c1cd;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.social-bar__link:last-child {
  border-right: 0;
}

a.social-bar__link:hover {
  background: rgb(245 202 75 / 0.18);
  color: #fff;
}

.social-bar__link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.58;
}

@media (max-width: 840px) {
  .site-header {
    width: min(100% - 40px, 600px);
  }

  .navigation {
    grid-template-columns: 1fr;
    row-gap: 27px;
  }

  .brand {
    width: min(100%, 380px);
    margin: 0 auto;
    grid-row: 1;
  }

  .nav-group {
    justify-content: center;
    gap: 22px;
  }

  .nav-group--left {
    grid-row: 2;
  }

  .nav-group--right {
    grid-row: 3;
  }

  .server-intro {
    grid-template-columns: 1fr;
    gap: 70px;
    width: min(100% - 40px, 600px);
    min-height: auto;
    margin: 80px auto;
    padding: 42px 34px;
  }

  .server-status {
    justify-self: start;
    align-self: start;
    padding: 32px 0 0;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    border-left: 0;
  }

  .map-reference {
    margin-top: 24px;
  }

  .forum-news {
    grid-template-columns: 1fr;
    gap: 31px;
    width: min(100% - 40px, 600px);
    margin-bottom: 90px;
  }

  .forum-news__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .forum-news__item,
  .forum-news__item:first-child,
  .forum-news__item:last-child {
    padding: 0;
  }

  .forum-news__item + .forum-news__item {
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 0.11);
    border-left: 0;
  }

  .site-footer {
    width: min(100% - 40px, 600px);
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 28px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

}

@media (max-width: 430px) {
  .site-header {
    width: min(100% - 28px, 600px);
  }

  .nav-group {
    gap: 15px;
  }

  .nav-group a {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .server-intro {
    width: min(100% - 28px, 600px);
  }

  .forum-news {
    width: min(100% - 28px, 600px);
    padding: 30px 25px;
  }

  .server-intro__title {
    width: 100%;
  }

  .server-intro__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
  }

  .site-footer {
    width: min(100% - 28px, 600px);
    padding-top: 42px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 35px;
  }

  .social-bar {
    right: 14px;
    bottom: 14px;
  }
}
