:root {
  --background: #f3f3ef;
  --card: #e4e1da;
  --text: #222222;
  --muted: #3c3c3c;
  --button: #202020;
  --button-text: #ffffff;
  --link: #222222;

  --radius: 18px;
  --max-width: 620px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 36px 34px;
}

.portrait {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.content {
  max-width: 580px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
}

p {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--muted);
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-width: 220px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--button);
  color: var(--button-text);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.button:focus-visible {
  outline: 3px solid #777777;
  outline-offset: 3px;
}

footer {
  margin-top: 32px;
  font-size: 0.78rem;
  color: #333333;
}

@media (max-width: 520px) {
  .page {
    padding: 10px;
    justify-content: flex-start;
  }

  .card {
    padding: 36px 24px 28px;
  }

  .portrait {
    width: 142px;
    height: 142px;
    margin-bottom: 24px;
  }

  .button {
    width: 100%;
  }
}
