* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #0ea5e9;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.6;
}

.page { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 16px;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.header-name { font-size: 1.8rem; font-weight: 700; }
.header-title { color: #888; font-size: 1rem; margin-top: 2px; }
.header-bio { color: #666; font-size: 0.95rem; max-width: 440px; margin: 8px auto 0; }

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social-link {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #555;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* Form */
.main { padding: 40px 0; }

.form-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group { display: flex; flex-direction: column; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.form-input, .form-textarea {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; }

.submit-btn {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.submit-btn:hover { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  font-size: 0.88rem;
  min-height: 20px;
}

.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }

.footer {
  padding: 24px 0;
  text-align: center;
  color: #bbb;
  font-size: 0.85rem;
  border-top: 1px solid #eee;
}
