:root {
  color-scheme: dark;
  --bg-dark: #080612;
  --bg-mid: #0b0f1f;
  --bg-soft: #09102a;
  --accent: #5E38DA;
  --accent-strong: #2B277B;
  --text: #EEF2FF;
  --muted: #B7C2E3;
  --button: #2336D1;
  --button-hover: #2A34B8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px;
  /* Slightly offset and softened highlight; tuned for balance */
  background: radial-gradient(circle at -18% -18%, rgba(94, 56, 218, 0.72), transparent 62%),
              linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-soft) 45%, var(--bg-mid) 100%);
  color: var(--text);
  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: 14px;
  text-decoration: none;
  background: var(--button);
  color: white;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  box-shadow: 0 14px 30px rgba(94, 56, 218, 0.22);
}

.btn-rotondo:hover,
.btn-rotondo:focus-visible {
  transform: translateY(-1px);
  opacity: 0.98;
  border-color: var(--button-hover);
  background: var(--button-hover);
  box-shadow: 0 20px 40px rgba(118, 90, 212, 0.24);
}

@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;
  }
}
