:root {
  color-scheme: light dark;
}

/* Reset basic margins/padding */
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  body {
      min-height: 100vh;
      font-family: Arial, Helvetica, sans-serif;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
      -webkit-text-size-adjust:100%;
      font-smooth: antialiased; 
      accent-color: #ff2621;
      color: light-dark(#51515c, #fff);
      background-color: light-dark(#f4f4f5, #09090b);
      color-scheme: light;
      &.dark {  
        color-scheme: dark;
      }
  }

  .logo {
    text-decoration: none;
    color: light-dark(#000, #fff);
    font-weight: bold;
    font-size: 24px;
  }

  /* ---------- Sidebar ---------- */
  .sidebar {
    position: sticky;            /* Stick within its parent */
    top: 0;                      /* Stick to the top of the viewport */
    align-self: flex-start;      /* Needed for sticky to work in a flex column */
    width: 100%;
    height: 100%;               /* Full viewport height */
    overflow-y: auto;            /* Scroll if sidebar content overflows */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .sidebar h2 {
      margin-bottom: 1rem;
  }

  .sidebar ul {
      list-style: none;
  }

  .sidebar li + li {
      margin-top: 0.5rem;
  }

  .sidebar a {
      color: light-dark(#51515c, #fff);
      text-decoration: none;
  }

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

  /* ---------- Main content ---------- */
  .main-app {
      flex: 1;                     /* Take remaining horizontal space */
      overflow-x: hidden;
  }

.container {
  display: flex;
  gap: 30px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1024px;
  min-width: 1024px;
  margin: 0 auto;
}
.sidebar {
  flex: 0 0 calc(320px + 40px);
  order: 1;
}
.main-app {
  flex: 1;
  padding: 20px 0;
}

.main-app h1 {
    margin-bottom: 1rem;
}

.main-app  {
  p {
    line-height: 1.6;
    margin-bottom: 1rem;  
  }
  ul {
    line-height: 1.6;
    margin: 1rem 0;
    padding-left: 20px;
    li {
      margin-bottom: 0.5rem;
      list-style: disc;
    }
  }
}
header.nav {
  margin-bottom: 60px;
  padding: 20px 0;
  border-bottom: 1px solid light-dark(#e0e0e0, #333);
}
hr {
  border-color: light-dark(#e0e0e0, #333);
}
header.nav .container{  
  align-items: center;
  justify-content: space-between;
}
header.nav h1 {
  font-size: 24px;
  font-weight: 600;
}
header.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
header.nav ul li a {
  text-decoration: none;
  color: light-dark(#333, #fff);
  font-weight: 600;
  font-size: 14px;
}
header.nav ul li a:hover {
  color: light-dark(#888888, #8c8c8c);
}