*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #161616;
  --surface: #1f1f1f;
  --border: #2a2a2a;
  --text: #e2e2e2;
  --muted: #777;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  flex: 1;
  width: 100%;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.project-controls input,
.project-controls select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 6px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.project-controls input {
  flex: 1;
  cursor: text;
}

.project-controls input::placeholder {
  color: var(--muted);
}

.project-controls input:focus,
.project-controls select:focus {
  border-color: #555;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: 0.15s;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.project-card h2 {
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
}

.project-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

.meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.tag {
  font-size: 0.7rem;
  background: var(--border);
  color: var(--muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

a {
  color: inherit;
  cursor: default;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}


footer {
  border-top: 1px solid var(--border);
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .project-controls {
    flex-direction: column;
  }

  main {
    padding: 2rem 1.25rem;
  }
}