body {
  margin: 0;
  background: #1e1e1e;
  color: #dadada;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  padding-left: 60px;
}

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  line-height: 1.75;
  font-size: 1.05rem;
}

a:link {
  color: #a78af9;
}

hr {
  border-top: 2px solid #363636;
  opacity: 0.2;
  margin: 22px auto;
  max-width: 710px;
}

blockquote {
  border-left: 2px solid #8a5cf4;
  padding-left: 2px;
}

.article-header h1 {
  margin-bottom: 36px;
}

.article-header {
  margin-bottom: 24px;
}

.meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.meta .label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.published,
.author {
  line-height: 1.5;
}

.author {
  text-align: right;
}

/* Sidebar container */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 60px;
  background: #1b1b1b;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  z-index: 1000;
}

/* Put global items at top, controls at bottom (optional) */
.globalNav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px; /* spacing between icons */
  width: 100%;
}

.articleNav {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding-bottom: 10px;
}

.navItem,
.navControl {
  width: 44px; /* hitbox size */
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 5px 0 5px 0;
  cursor: pointer;
  text-decoration: none;
}

.navIcon {
  margin: 10px 0 10px 0;
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Interaction logic */

.navItem:hover,
.navControl:hover {
  background: #ffffff0a; /* subtle hover */
}

.navItem:hover .navIcon,
.navControl:hover .navIcon {
  opacity: 0.9;
  transform: translateY(-1px);
}

.navItem:focus-visible,
.navControl:focus-visible {
  outline: 2px solid #78787873;
  outline-offset: 2px;
}

.navItem.active,
.navControl.active {
  background: #ffffff10;
}

.navItem.active .navIcon,
.navControl.active .navIcon {
  opacity: 1;
}

.navItem.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: #dadadabf;
}
