<style>
  /* CSS Variables */
  :root {
    --navy: #0f172a; /* background */
    --orange: #f87171; /* accents */
    --muted: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(255, 255, 255, 0.04);
  }

  /* Reset and Base Styles */
  * {
    box-sizing: border-box;
  }

  html,
  body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    background: var(--navy);
    color: var(--muted);
    line-height: 1.6;
  }

  /* Layout */
  .wrap {
    max-width: 1100px;
    margin: 24px auto;
    padding: 16px;
  }

  @media (min-width: 768px) {
    .wrap {
      margin: 36px auto;
      padding: 28px;
    }
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  @media (min-width: 880px) {
    .grid {
      grid-template-columns: 320px 1fr;
      gap: 24px;
    }
  }

  /* Header */
  header.site-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  @media (min-width: 768px) {
    header.site-header {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
  }

  .brand {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
  }

  @media (min-width: 768px) {
    .brand {
      gap: 16px;
      width: auto;
    }
  }

  .logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), #ff9b4d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy);
    font-size: 20px;
    flex-shrink: 0;
  }

  @media (min-width: 768px) {
    .logo {
      width: 68px;
      height: 68px;
      font-size: 22px;
    }
  }

  h1 {
    margin: 0;
    color: var(--orange);
    font-size: 24px;
  }

  @media (min-width: 768px) {
    h1 {
      font-size: 28px;
    }
  }

  p.lead {
    margin: 4px 0 0;
    color: var(--muted);
    opacity: 0.95;
    font-size: 14px;
  }

  @media (min-width: 768px) {
    p.lead {
      margin: 6px 0 0;
      font-size: 16px;
    }
  }

  /* Controls */
  .controls {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
  }

  @media (min-width: 768px) {
    .controls {
      width: auto;
    }
  }

  .search {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--muted);
    width: 100%;
    min-width: 0;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .search:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
  }

  @media (min-width: 768px) {
    .search {
      min-width: 220px;
      padding: 8px 12px;
      font-size: 16px;
    }
  }

  /* Navigation */
  nav.side {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  nav.side:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  nav h3 {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 18px;
  }

  @media (max-width: 767px) {
    nav h3 {
      font-size: 16px;
    }
  }

  .category {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cat-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: 100%;
  }

  .cat-btn:hover,
  .cat-btn:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }

  .cat-btn.active {
    background: rgba(248, 113, 113, 0.1);
    border-color: var(--orange);
    color: #fff;
  }

  @media (min-width: 768px) {
    .cat-btn {
      padding: 8px;
      text-align: left;
      width: auto;
    }
  }

  /* Main Content */
  main.content {
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  main.content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 767px) {
    main.content {
      padding: 16px;
    }
  }

  .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  @media (max-width: 767px) {
    .section-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  }

  .section-head h2 {
    color: var(--orange);
    margin: 0;
    font-size: 22px;
  }

  @media (max-width: 767px) {
    .section-head h2 {
      font-size: 20px;
    }
  }

  .pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  @media (max-width: 767px) {
    .pub-list {
      gap: 10px;
    }
  }

  .pub {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }

  .pub:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 767px) {
    .pub {
      padding: 12px;
    }
  }

  .pub .title {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px;
  }

  @media (max-width: 767px) {
    .pub .title {
      font-size: 15px;
    }
  }

  .pub .meta,
  .pub .authors {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    word-break: break-word;
  }

  .pub .authors {
    color: rgba(255, 255, 255, 0.85);
  }

  .pub small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
  }

  /* Helpers */
  .toggle {
    background: transparent;
    border: none;
    color: var(--orange);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
  }

  .toggle:hover {
    color: #ff9b4d;
  }

  /* Additional mobile optimizations */
  @media (max-width: 480px) {
    .wrap {
      margin: 16px auto;
      padding: 12px;
    }

    .brand {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    h1 {
      font-size: 22px;
    }

    p.lead {
      font-size: 13px;
    }

    .cat-btn {
      padding: 14px;
      font-size: 15px;
    }

    .pub .title {
      font-size: 14px;
    }

    .pub .meta,
    .pub .authors {
      font-size: 12px;
    }
  }

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
</style>