/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
h2,
h3,
p,
figure {
  margin-block-end: 0;
}

ul {
  list-style: none;
}

h2,
h3 {
  text-wrap: balance;
  line-height: 1.1;
}

a {
  text-decoration-skip-ink: auto;
  color: currentColor;
  text-decoration: none;
}

figure {
  display: flex;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

/* Set core body defaults */
body {
  min-height: 100dvh;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  color: #0f172a;
  padding: 1rem;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  max-width: 45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.current-time {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem;
  margin-top: 1rem;
  border-radius: 4px;
  background-color: #ddd;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.social-link:link,
.social-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ddd;
  padding: 0.6rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: all 0.3s ease-in;
}

.social-link:hover,
.social-link:active {
  opacity: 0.85;
  transform: translateY(-2px);
}

.social-link:focus,
.social-link:focus-visible {
  outline: 2px solid;
  outline-color: #2563eb;
  outline-offset: 2px;
}

.sections-wrapper {
  display: flex;
  gap: 5rem;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
}

.sections-wrapper h3 {
  margin-bottom: 1rem;
}

.sections-wrapper ul > li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  background-color: #ddd;
}

@media screen and (min-width: 670px) {
  .profile {
    flex-wrap: nowrap;
    text-align: start;
  }
}
