body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #0b0f14;
  color: #d7e0ea;
  line-height: 1.6;
}

.page {
  margin-top: 20px;
}

#projects article {
  background: #111826;
  padding: 15px;
  margin: 15px 0;
  border-radius: 8px;
}

.tag {
  display: inline-block;
  margin-right: 6px;
  margin-top: 8px;

  font-size: 12px;
  padding: 3px 8px;

  border-radius: 999px;
  background: #1b2433;
  color: #93c5fd;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: #7dd3fc;
}

nav a {
  margin-left: 15px;
  color: #9aa4b2;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

/* posts */
.posts article {
  background: #111826;
  padding: 15px;
  margin: 15px 0;
  border-radius: 8px;
}

.posts h3 {
  margin: 0;
  color: #93c5fd;
}

.posts span {
  font-size: 12px;
  color: #6b7280;
}

/* skeleton loader */
.skeleton {
  height: 70px;
  margin: 10px 0;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #111826 25%,
    #1b2433 37%,
    #111826 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination button {
  background: #111826;
  color: #9aa4b2;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.pagination button:hover {
  color: white;
  background: #1b2433;
}

.pagination button.active {
  background: #2563eb;
  color: white;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 15px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #111826;
  color: #9aa4b2;
  cursor: pointer;
  font-size: 14px;
}

.chip:hover {
  background: #1b2433;
  color: white;
}

.chip.active {
  background: #2563eb;
  color: white;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search {
  width: 100%;
  box-sizing: border-box;

  padding: 10px 36px 10px 12px; /* место под крестик */
  border-radius: 8px;
  border: none;
  outline: none;

  background: #111826;
  color: #d7e0ea;
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  background: transparent;
  border: none;
  color: #6b7280;

  cursor: pointer;
  font-size: 14px;

  display: none;
}

.clear-btn:hover {
  color: white;
}

.search::placeholder {
  color: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
