:root {
  --sidebar: rgba(10, 11, 10, 0.9);
  --page: #0a0b0a;
  --stage: rgba(255, 255, 255, 0.018);
  --ink: #f4eee6;
  --ink-dark: #f4eee6;
  --muted: rgba(244, 238, 230, 0.44);
  --line: rgba(244, 238, 230, 0.16);
  --line-strong: rgba(244, 238, 230, 0.28);
  --active: rgba(244, 238, 230, 0.08);
  --black: #f4eee6;
  --blue: #a43a35;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(244, 238, 230, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 230, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(164, 58, 53, 0.28), transparent 34rem),
    linear-gradient(180deg, #0a0b0a, #130707);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--ink);
  font-family: "IM Fell English", Georgia, serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 188px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.portal-logo {
  display: grid;
  grid-template-columns: 80px 18px;
  gap: 4px;
  align-items: start;
  width: 98px;
  margin: 14px auto 0;
}

.portal-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--ink);
  filter: saturate(0.9) contrast(1.08);
}

.portal-logo b {
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.main-nav {
  display: grid;
  gap: 20px;
  margin-top: 64px;
  padding: 0 15px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.main-nav a.active {
  color: var(--ink);
}

.nav-icon,
.doc-icon,
.login-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: currentColor;
}

.nav-icon.stack {
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -4px 0 -1px currentColor, 0 4px 0 -1px currentColor;
}

.nav-icon.card {
  width: 15px;
  height: 10px;
  margin-left: -1px;
  border-radius: 1px;
  background: currentColor;
}

.nav-icon.card::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  border-top: 2px solid var(--page);
}

.nav-icon.key {
  border-radius: 50%;
  border: 4px solid currentColor;
}

.nav-icon.key::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 7px;
  width: 9px;
  border-top: 4px solid currentColor;
  transform: rotate(-38deg);
}

.nav-icon.chart {
  border-radius: 50%;
  background: conic-gradient(currentColor 0 75%, transparent 75% 100%);
}

.nav-icon.gear {
  border: 4px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -5px 0 -3px currentColor, 0 5px 0 -3px currentColor, 5px 0 0 -3px currentColor, -5px 0 0 -3px currentColor;
}

.nav-icon.chat {
  width: 15px;
  height: 12px;
  border-radius: 4px;
  background: currentColor;
}

.nav-icon.chat::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -4px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-right: 0;
}

.side-actions {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 0 7px 13px;
  border-top: 1px solid var(--line);
}

.side-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 31px;
  border: 1px solid var(--line-strong);
  padding: 0 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.side-actions a:first-child {
  margin-top: 12px;
}

.side-actions .login-action {
  background: var(--active);
  border-color: var(--active);
}

.side-actions small {
  margin-left: -7px;
  font-size: 11px;
}

.doc-icon {
  width: 12px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
}

.help-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--page);
  font-size: 10px;
  font-weight: 800;
}

.login-icon {
  width: 13px;
  height: 13px;
  background: currentColor;
}

.login-icon::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  border: 3px solid transparent;
  border-left-color: var(--page);
}

.portal-stage {
  min-height: calc(100vh - 24px);
  margin-left: 188px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.965), rgba(0, 0, 0, 0.965)),
    url("assets/odin-manuscript.png") center center / cover no-repeat,
    var(--stage);
  background-blend-mode: normal, luminosity, normal;
  border-left: 11px solid rgba(244, 238, 230, 0.03);
  border-right: 4px solid rgba(244, 238, 230, 0.22);
}

.signin {
  position: absolute;
  left: calc(188px + 50%);
  top: 52%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.signin h1 {
  margin: 0;
  color: var(--black);
  font-family: Cinzel, serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.signin p {
  margin: -8px 0 0;
  color: var(--faint, rgba(244, 238, 230, 0.42));
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spinner {
  width: 23px;
  height: 23px;
  border: 3px solid rgba(244, 238, 230, 0.16);
  border-bottom-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.portal-footer {
  position: fixed;
  right: 15px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 10px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.footer-socials i {
  font-style: normal;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 76px;
  }

  .portal-logo {
    grid-template-columns: 52px;
    width: 52px;
  }

  .portal-logo b,
  .main-nav a,
  .side-actions a {
    font-size: 0;
  }

  .portal-logo img {
    width: 52px;
    height: 52px;
  }

  .main-nav {
    align-items: center;
    padding: 0;
  }

  .main-nav a,
  .side-actions a {
    justify-content: center;
  }

  .portal-stage {
    margin-left: 76px;
  }

  .signin {
    left: calc(76px + 50%);
  }
}
