@font-face {
    font-family: 'Romie';
    src: url('Romie-Regular.woff') format('woff');
    font-display: swap;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    background: #ffffff;
    color: #000000;
    font-family: 'Romie', Fallback, serif;
  }

  ::selection {
    background: #ff00d4;
  }

  a::selection {
    background: #ff00d4;
    color: #ffffff;
  }

  body {
    padding: 3rem;
  }

  a {
    color: #ff00d4;
  }
  a:hover {
    color: #000000;
  }

  .layout {
    display: flex;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: flex-start;
  }

  /* ---------- SIDEBAR ---------- */
  .sidebar {
    flex: 0 0 auto;
    text-align: left;
  }

  h1.name {
    font-weight: normal;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: 0 0 1.5rem;
    line-height: 1;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .nav-btn {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #000000;
    cursor: pointer;
    text-align: left;
  }
  .nav-btn:hover {
    color: #ff00d4;
  }
  .nav-btn.active {
    color: #ff00d4;
  }
  .nav-btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
  }

  /* ---------- CONTENT ---------- */
  .content {
    flex: 1 1 auto;
    min-width: 0;
  }

  .panel {
    display: none;
    max-width: 900px;
  }
  .panel.visible {
    display: block;
  }

  /* Hello panel */
  .hello-photo img {
    max-width: 240px;
    display: block;
    margin-bottom: 1.5rem;
  }
  .panel p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.5;
    margin: 0 0 1.2em;
  }

  /* Publications panel */
  .pub-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .pub-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .pub-columns h2,
  .pub-columns-2 h2 {
    font-weight: bold;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 0 0 1rem;
  }
  .pub-columns ul,
  .pub-columns-2 ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .pub-columns li,
  .pub-columns-2 li {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.5;
    margin-bottom: 1.1em;
  }
  @media (max-width: 900px) {
    .pub-columns,
    .pub-columns-2 { grid-template-columns: 1fr; gap: 1.8rem; }
  }

  @media (max-width: 700px) {
    .layout { flex-direction: column; }
  }
