:root {
  --bg: #0a0a0a;
  --bg-card: #101016;
  --text: #e0e0e0;
  --text-muted: #777;
  --accent: #3b5ec9;
  --accent-dim: rgba(59, 94, 201, 0.12);
  --border: #1e1e2a;
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ── back button ── */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.back-button:hover {
  color: var(--text);
}

/* ── hero ── */
.hero {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.hero-link {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.hero-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.github-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.github-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── section title ── */
.section-title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 1.25rem;
}

/* ── content ── */
.project-content {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.project-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.project-content strong {
  color: var(--text);
}

/* ── takeaways / lists ── */
.takeaways {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.takeaways li {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.7;
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
}

.takeaways li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.takeaways li strong {
  color: var(--text);
}

/* ── results table ── */
.results-table {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.results-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.results-table th,
.results-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.results-table th {
  color: var(--text);
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
}

.results-table td {
  color: var(--text-muted);
}

.results-table tr.highlight td {
  color: var(--accent);
  font-weight: 500;
}

/* ── gallery ── */
.gallery-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-container,
.video-container {
  flex: 1;
  min-width: 260px;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  max-height: 400px;
  object-fit: contain;
  background: var(--bg);
}

.image-caption {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.65rem;
  font-style: italic;
}

/* ── footer ── */
.footer {
  text-align: center;
  padding: 2rem 0 1rem;
  margin-top: auto;
}

/* ── responsive ── */
@media (max-width: 600px) {
  .gallery-container {
    flex-direction: column;
  }

  .image-container,
  .video-container {
    min-width: 100%;
  }
}
