*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #fafafa;
  --color-text: #2d2d2d;
  --color-muted: #6b7280;
  --color-accent: #1d4ed8;
  --color-accent-hover: #1e40af;
  --color-card-bg: #ffffff;
  --color-border: #e5e7eb;
  --max-width: 52rem;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero --- */

.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5f8a 100%);
  color: #fff;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  opacity: 0.85;
}

@media (max-width: 30rem) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .portrait {
    width: 130px;
    height: 130px;
  }
}

/* --- Sections --- */

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

section:last-child {
  border-bottom: none;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* --- Cards --- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* --- Links --- */

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* --- Contact list --- */

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* --- Footer --- */

footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}
