:root {
  --bg: #999999;        /* neutral gray background */
  --card: #f2f2f2;      /* soft card contrast */
  --border: #cfcfcf;
  --text: #222222;
  --muted: #555555;
}

* {
  box-sizing: border-box;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}

/* Center content */
header,
section,
footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  font-size: 1.35rem;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}

nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  margin-top: 48px;
  padding: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.hero-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.hero h2 {
  margin: 0 0 12px 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 14px 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  margin-top: 44px;
  margin-bottom: 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 720px) {
  header {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
  }

  .hero {
    padding: 26px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .hero h2 {
    font-size: 1.55rem;
  }
}

