:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #171717;
  --muted: #666666;
  --line: #e7e7e2;
  --accent: #751b40;
  --accent-2: #8b244f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 247, 245, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  color: var(--muted);
}

/* Grid */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  color: white;
  font-weight: bold;
  overflow: hidden;

  img, video{
    width: -webkit-fill-available;
    min-width: -webkit-fill-available;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}


.tag {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.3rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
}

.card-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .experiments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .experiments-grid {
    grid-template-columns: 1fr;
  }
}