:root {
  --bg: #111111;
  --text: #e8e8e8;
  --muted: #a3a3a3;
  --link: #e8e8e8;
  --clay: #b8552f;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  gap: 60px;
}

nav.sidebar {
  flex: 0 0 220px;
  text-align: right;
}

nav.sidebar .site-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

nav.sidebar a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 17px;
  margin-bottom: 10px;
}

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

main {
  flex: 1;
  min-width: 0;
}

.hero-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-bottom: 40px;
}

main p {
  max-width: 640px;
  color: var(--text);
  font-size: 17px;
}

.contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
}

.contact h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact a,
.contact span {
  color: var(--muted);
}

/* Projects grid */
.projects-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.project-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 800px) {
  .layout { flex-direction: column; padding: 30px 20px; }
  .projects-row { grid-template-columns: 1fr; }
}
