html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
}

#page {
  display: flex;
  min-height: 100vh;
}

.sideimg {
  height: 250px;
  width: auto;
}

#sidebar {
  width: 320px;
  background: #111;
  color: #fff;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

#sidebar .inner {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
}

#sidebar .avatar {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: block;
}

#sidebar .tagline {
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
}

#sidebar .sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.78;
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 100%;
}

#sidebar .sidebar-footer a {
  color: #fff;
  text-decoration: none;
}

#sidebar .sidebar-footer a:hover {
  text-decoration: underline;
}

#sidebar .sidebar-footer-text {
  overflow-wrap: anywhere;
}

#sidebar .sidebar-footer-icons {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  margin-top: 0.35rem;
  flex-wrap: nowrap;
}

#sidebar .sidebar-footer-icons img {
  width: 12px;
  height: 12px;
  display: block;
  flex: 0 0 auto;
}

#content {
  flex: 1;
  padding: 4rem 3rem;
  box-sizing: border-box;
}

#content .inner {
  width: 100%;
  max-width: none;
}

#content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.section-anchor {
  display: block;
  position: relative;
  top: -90px;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

#content p, #content li {
  line-height: 1.7;
}

.floating-header {
  position: fixed;
  top: 0;
  left: 320px;
  right: 0;
  background: #ffffff;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  box-sizing: border-box;
  text-align: right;
}

.site-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.35rem;
  text-align: right;
  line-height: 1.1;
}

.site-nav {
  font-size: 0.95rem;
  text-align: right;
}

.site-nav a {
  color: #222;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

a.endorse-button {
  display: inline-block;
  background-color: #111;
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: bold;
  border: 1px solid #444;
  margin-top: 1rem;
}

a.endorse-button:hover {
  background-color: #222;
  border-color: #666;
}

.content-spacer {
  height: 90px;
}

@media (max-width: 900px) {
  #page {
    display: block;
  }

  #sidebar {
    width: auto;
    padding: 2rem 1.5rem;
  }

  #content {
    padding: 2rem 1.5rem 3rem;
  }

  .floating-header {
    left: 0;
  }
}