:root {
  color-scheme: dark;
  --background: #0a0f16;
  --surface: #151d28;
  --text: #f3f5f7;
  --muted: #aab4c0;
  --line: #354352;
  --accent: #b5c9dc;
  --accent-strong: #d5e0ea;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, #1d2b3a 0, transparent 44%),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.profile {
  width: min(100%, 540px);
  padding: clamp(28px, 7vw, 52px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgb(1 4 9 / 46%);
}

.portrait {
  width: 176px;
  height: 176px;
  display: block;
  margin: 0 auto 30px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--line);
}

.intro {
  margin-bottom: 30px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 3.25rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.honorific {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.72;
}

.role {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.links a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.links a:focus-visible {
  outline: 3px solid rgb(181 201 220 / 38%);
  outline-offset: 3px;
}

.links .arm-link {
  grid-column: 1 / -1;
  color: #101923;
  background: var(--accent);
  border-color: var(--accent);
}

.links .arm-link:hover {
  color: #0a0f16;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

@media (max-width: 430px) {
  body {
    padding: 16px;
  }

  .profile {
    border-radius: 22px;
  }

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

  .links {
    grid-template-columns: 1fr;
  }

  .links .arm-link {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}
