:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #767676;
  --border: #eaeaea;
  --card-bg: #f5f5f7;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 88px;
  font-size: 15px;
}

header .brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.15s ease;
}

header nav a:hover,
header nav a.active {
  color: var(--text);
}

/* Bio */
.bio {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  max-width: 580px;
  margin-bottom: 104px;
  letter-spacing: -0.01em;
}

/* Lista progetti (Work) */
.project {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-bottom: 88px;
  align-items: start;
}

.project-meta h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-meta .desc {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.project-meta .info {
  font-size: 13px;
  color: var(--muted);
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project:hover .project-media img {
  transform: scale(1.015);
}

/* Griglia esperimenti (Play) */
.play-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 28px;
}

.play-item .project-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
}

.play-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.play-item p {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
footer {
  margin-top: 112px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--text);
}

footer .next-link a {
  margin-right: 0;
  color: var(--text);
}

/* Responsive mobile */
@media (max-width: 680px) {
  header { margin-bottom: 56px; }
  .bio { font-size: 19px; margin-bottom: 72px; }
  .project { grid-template-columns: 1fr; gap: 16px; margin-bottom: 64px; }
  .play-grid { grid-template-columns: 1fr; }
}