:root {
  --background: #f6f1e8;
  --card: #fffdf8;
  --text: #1f2424;
  --muted: #62615d;
  --line: #d8cbb8;
  --accent: #8a6f3d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.75), transparent 34rem),
    var(--background);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.card {
  width: min(100%, 620px);
  padding: clamp(2.25rem, 6vw, 4.5rem);
  text-align: center;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(55, 42, 23, 0.08);
}

.portrait {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  background: #fbf7ef;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.55rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.subtitle {
  margin: 1.1rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.description,
.interests {
  max-width: 480px;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.interests {
  margin-top: 0.85rem;
  font-size: 1rem;
}

.links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.links a {
  min-width: 128px;
  padding: 0.78rem 1.15rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.93rem;
  letter-spacing: 0.03em;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 520px) {
  .page {
    padding: 1rem;
  }

  .card {
    padding: 2rem 1.35rem;
  }

  .links {
    flex-direction: column;
  }

  .links a {
    width: 100%;
  }
}
