/* global variables, reset, typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0d0d0d;
  color: #f0f0f0;
  font-family: sans-serif;
  font-size: 14px;
}

nav {
  padding: 12px 20px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 14px;
}

#nav-search-form { flex: 1; max-width: 320px; }

#nav-search-input {
  width: 100%;
  padding: 6px 12px;
  background: #111;
  border: 1px solid #222;
  color: #f0f0f0;
  font-size: 13px;
}

#nav-search-input::placeholder { color: #555; }

/* pushes the login/username link to the right edge — explicit class rather
   than nav a:last-child since the search form (not an <a>) can sit after
   the other nav links but before this one */
.nav-auth { margin-left: auto; }

main {
  padding: 20px;
}
