:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px;
  background-color: #000000;
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: min(100%, 720px);
  text-align: center;
}

h1, h2, h3, p, a {
  font-family: 'Space Mono', monospace;
}

.profile-photo {
  width: min(100%, 220px);
  height: auto;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 40px;
  display: block;
  margin: 0 auto 16px;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}

.btn-rotondo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: #bd0719;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.btn-rotondo:hover,
.btn-rotondo:focus-visible {
  transform: scale(1.03);
  opacity: 0.95;
}

@media (max-width: 600px) {
  body {
    padding: 20px 12px;
    font-size: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-rotondo {
    width: min(100%, 220px);
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  body {
    padding: 28px 20px;
  }

  .btn-rotondo {
    min-width: 120px;
  }
}
