:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e6e6e4;
  --text: #1c1c1a;
  --text-muted: #6b6b67;
  --accent: #2f5fdb;
  --accent-dark: #1f3f9e;
  --radius: 10px;
  --wrap: 880px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
}

h1, h2, h3 {
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 24px;
}

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

/* Hero */

.hero {
  padding: 72px 0 56px;
}

.hero p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
}

/* Projects */

.projects {
  padding: 24px 0 64px;
}

.projects .lead {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.project-logo {
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.project-logo img {
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
}

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

.project-card a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.project-card a:hover {
  color: var(--accent-dark);
}

.project-card a i {
  font-size: 12px;
  margin-left: 4px;
}

/* Contact */

.contact {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.contact-links {
  display: flex;
  gap: 16px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */

footer {
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */

@media screen and (max-width: 640px) {
  .hero {
    padding: 48px 0 32px;
  }

  h1 {
    font-size: 26px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    justify-content: center;
  }
}
