<html> HTML
<nav class="nav">
  <div class="logo">Brand</div>
  <ul class="links">
    <li><a href="#">Docs</a></li>
    <li><a href="#">Pricing</a></li>
    <li><a href="#">Blog</a></li>
  </ul>
  <a class="cta" href="#">Sign up</a>
</nav>
# CSS
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 2rem;
  background: #fafafa;
}
/* TODOs:
  1) Turn .nav into a flex container, vertically center its items, and add gap.
  2) Set .links to display:flex and gap;
  optionally use flex:1 with justify-content:center.
  3) If .links is not taking the center role, use margin-left:auto on .cta to push it right.
  4) At max-width:480px, stack or wrap cleanly without hiding links.
*/
.nav {
  background: #222;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}
.logo {
  font-weight: 700;
}
.links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.links a {
  color: #fff;
  text-decoration: none;
}
.links a:focus-visible,
.cta:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
.cta {
  background: #e63946;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}
@media (max-width: 480px) {
  /* Stack or wrap the navbar here */
}
Live preview updates as you type
Building preview…