* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffffef;
  --surface: #ffffff;
  --text: rgb(0, 0, 0);
  --border: #e6e6e9;
}

body {
  font-family: Lucida Console, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  margin: 0 auto;
  padding: 0 16px;
}

.navbar {
  display: block;
  border-bottom: 1px solid var(--border);
  background: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(85vw, 300px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}


.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-panel-title {
  font-size: 18px;
  font-weight: 600;
}

.nav-close {
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
}

.nav-drawer.is-open {
  pointer-events: auto;
}

.nav-drawer.is-open .nav-overlay {
  opacity: 1;
}

.nav-drawer.is-open .nav-panel {
  transform: translateX(0);
}

.links {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  vertical-align: middle;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn a {
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding-bottom: 6px;
}

.nav-btn a.active {
  text-decoration: none;
}

.nav-btn a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  bottom: -4px;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-btn a:hover::after,
.nav-btn a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.profile-pic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.profile-info {
  display: flex;
  flex-direction: column;

}

.profile-name {
  font-size: 22px;
  font-weight: 600;
}

.profile-username {
  display: block;
  color: grey;
  font-size: 0.9em;
}

.nav-links a {
  color: black;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 18px;
}

.drawer-icons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;

  
}

.drawer-icons > * {
  scale: 0.65;
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .profile-pic {
    width: 44px;
    height: 44px;
  }

  .profile-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar .links {
    display: none;
  }

  .drawer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .drawer-menu .nav-btn {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .drawer-menu .nav-btn:last-of-type {
    border-bottom: none;
  }

  .drawer-menu .drawer-icons {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
}

@media (min-width: 769px) {
  .nav-drawer {
    display: none;
  }
}

.about {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 16px;
}

mark {
  background: linear-gradient(to top, #ffd60a80 50%, transparent 50%);
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
}

