@font-face {
  font-family: "JI-Renner";
  src: url("./Renner-Book-JI-natural.woff") format("woff"),
       url("./Renner-Book-JI-natural.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --card-max-width: 520px;
  --card-shadow: 12px 12px 0 rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

body {
  background: rgb(34, 193, 195);
  background: -moz-radial-gradient(circle, rgb(255, 255, 255) 0%, rgba(253, 187, 45, 1) 100%);
  background: -webkit-radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(253, 187, 45, 1) 100%);
  background: radial-gradient(circle, rgb(255, 255, 255, 1) 0%, rgba(253, 187, 45, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#22c1c3", endColorstr="#fdbb2d", GradientType=1);
  font-size: clamp(1rem, 0.8vw + 0.9rem, 1.15rem);
  font-family: "JI-Renner";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  color: black;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
  box-sizing: border-box;
  line-height: 1.5;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

header img {
  width: min(200px, 55vw);
  height: auto;
  margin: clamp(1rem, 3vw, 1.75rem) 0 1rem;
  border-radius: 50px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.name {
  color: black;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.2rem);
  font-weight: 900;
  margin-top: 0.2rem;
}

.quote {
  color: black;
  font-size: clamp(0.95rem, 1.2vw + 0.8rem, 1.1rem);
  margin-top: 0.25rem;
}

@keyframes headRotation {
  100% {
    transform: rotate(360deg);
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  width: min(100%, var(--card-max-width));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

main > div {
  width: 100%;
  max-width: var(--card-max-width);
  display: flex;
  justify-content: center;
}

.box-link {
  display: flex;
  width: 100%;
  max-width: var(--card-max-width);
  height: clamp(54px, 5vw + 48px, 68px);
  padding: 0 clamp(1rem, 4vw, 1.75rem);
  background-color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.95rem, 0.7vw + 0.95rem, 1.15rem);
  border: 2px solid rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.box-link:hover {
  cursor: pointer;
  transform: translateY(4px);
  box-shadow: var(--card-shadow-hover);
  background-color: rgba(144, 238, 144, 0.75);
}

.box-link i {
  font-size: 1.2em;
}

.box-link:focus-visible {
  outline: 3px solid black;
  outline-offset: 4px;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: black;
}

footer a {
  text-decoration: none;
  color: black;
}

footer a:hover {
  color: black;
  text-decoration: underline;
}

@media (min-width: 601px) {
  .box-link {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  body {
    padding: clamp(1.25rem, 6vw, 2rem) clamp(1rem, 6vw, 2rem);
    font-size: clamp(0.98rem, 0.75vw + 0.9rem, 1.05rem);
  }

  header img {
    border-radius: 35px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  }

  .name {
    font-size: clamp(1.5rem, 3.3vw + 1.05rem, 1.95rem);
  }

  .quote {
    font-size: clamp(0.9rem, 2.6vw + 0.7rem, 1.05rem);
  }

  .box-link {
    height: auto;
    min-height: 52px;
    padding: 0.85rem 1.1rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
    font-size: clamp(0.95rem, 2.2vw + 0.7rem, 1.05rem);
    white-space: normal;
  }
}

@media (max-width: 480px) {
  body {
    font-size: clamp(0.95rem, 2.5vw + 0.75rem, 1.05rem);
  }

  header img {
    width: min(170px, 70vw);
  }

  .name {
    font-size: clamp(1.4rem, 4.5vw + 1rem, 1.8rem);
  }

  .box-link {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .quote {
    font-size: clamp(0.85rem, 3vw + 0.65rem, 0.95rem);
  }
}
