html {
  color-scheme: dark;
  background: #080a0f;
}

body {
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #0b0e14;
  color: #f4f6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100vh - 130px);
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 15, 22, 0.94);
  backdrop-filter: blur(14px);
}

.siteNav {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
}

.siteBrand {
  color: #f4f6fb;
  font-weight: 750;
  text-decoration: none;
}

.navCenter {
  text-align: center;
}
.navRight {
  display: flex;
  justify-content: flex-end;
}

.logoutMessage,
.message,
.checkLogin,
.checkLoginIndex {
  width: min(720px, calc(100% - 40px));
  margin: 28px auto;
  padding: 18px 20px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #171b24;
  color: #dce1eb;
  text-align: center;
}

.profile,
.login,
.submitForm,
.postsPage,
.post {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto;
}

.table {
  width: 100%;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #171b24;
}

input,
select,
textarea,
button {
  box-sizing: border-box;
  max-width: 100%;
}

.mediaNavigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1100px, calc(100% - 40px));
  margin: 18px auto 36px;
}

.mediaNavigation .button {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f4f6fb;
  background: #1d222c;
  text-decoration: none;
}

.siteFooter {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #939bad;
  font-size: 13px;
}

.siteFooter a {
  color: #b8c0d0;
}

@media (max-width: 640px) {
  .siteFooter {
    align-items: center;
    flex-direction: column;
  }
}
