:root {
  color-scheme: dark;
  --bg: #030711;
  --card: rgba(13, 18, 33, 0.85);
  --border: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #c084fc;
  font-family: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(192, 132, 252, 0.2), transparent 40%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  text-align: left;
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.filters {
  margin-bottom: 1.5rem;
}

#filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.7);
  backdrop-filter: blur(14px);
}

#filters-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

#filters-form input,
#filters-form select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

#filters-form input:focus,
#filters-form select:focus {
  outline: none;
  border-color: var(--accent);
}

#filters-form .full {
  grid-column: 1 / -1;
}

.filters-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.filters-actions button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.filters-actions button[type="submit"] {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #041026;
}

#filters-reset {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--card);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-headline span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.project-headline .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.project-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.project-description {
  color: var(--text);
  margin: 0.2rem 0 0;
}

.project-reason {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0;
}

.badges,
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge,
.meta-chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

.meta-chip.source {
  border-color: rgba(192, 132, 252, 0.3);
  background: rgba(192, 132, 252, 0.12);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.75rem;
}

.project-footer time {
  color: var(--muted);
  font-size: 0.85rem;
}

.project-footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.project-footer a:hover {
  border-color: var(--accent);
}

.footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 640px) {
  .project-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
