/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
background: #eceef4;
}

/* Layout */
.container {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* Hero */
.hero {
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 16px;
  color: #444;
  max-width: 65ch;
}

/* Links */
.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.links a {
  display: inline-block;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.links a:hover {
  opacity: 0.9;
}

/* Sections */
section {
  margin-top: 26px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Project cards */
.project {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.project h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.project p {
  margin: 8px 0;
  color: #333;
}

.project ul {
  margin: 10px 0 12px;
  padding-left: 18px;
}

.project a {
  font-weight: 600;
  color: #111;
}

.project a:hover {
  text-decoration: underline;
}

/* Skills list */
ul {
  margin: 10px 0 0;
}

/* Contact */
section:last-of-type p {
  margin: 8px 0 0;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .container {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }
}
