:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  --ink: #313f47;
  --muted: #5d6b72;
  --line: #c8cccf;
  --accent: #ff7496;
  --card: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: #52626c;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #fff;
  background-image:
    url("overlay.26ecd94fe433.png"),
    linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)),
    url("background.b251fc7723cd.jpg");
  background-position: top left, center center, bottom center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 100px 100px, cover, cover;
  background-attachment: fixed, fixed, fixed;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  color: var(--accent);
  outline: 0.2rem solid currentColor;
  outline-offset: 0.22rem;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 3rem 1.25rem 2rem;
}

.profile-card {
  width: min(31rem, calc(100vw - 2.5rem));
  padding: 3.25rem 2.75rem 2.75rem;
  color: var(--ink);
  text-align: center;
  background: var(--card);
  border-radius: 0.35rem;
  box-shadow: 0 1.4rem 4rem rgba(22, 40, 50, 0.24);
}

h1 {
  margin: 0 0 1.8rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-transform: uppercase;
}

.page-shell--home {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 1.375rem;
}

.page-shell--home::before {
  content: "";
  display: block;
}

.profile-card--home {
  --card-inline: 2.75rem;
  width: min(24.75rem, calc(100vw - 3rem));
  padding: 4.125rem var(--card-inline) 2.75rem;
  border-radius: 0.25rem;
  box-shadow: none;
}

.avatar-frame {
  position: relative;
  display: block;
  margin: 0 0 1.5rem;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--card-inline));
  left: calc(-1 * var(--card-inline));
  height: 1px;
  background: var(--line);
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: min(18.875rem, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1.375rem #fff;
}

.profile-card--home h1 {
  margin: 0 0 0.525em;
  font-size: 1.695rem;
  font-weight: 300;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.profile-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: -0.675em 0 1.5em;
  padding: 0;
  list-style: none;
  font-size: 0.916667rem;
}

.profile-links li {
  padding: 0.675em 0.5em;
}

.profile-link {
  position: relative;
  display: grid;
  width: 3.75em;
  height: 3.75em;
  place-items: center;
  color: var(--line);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.profile-link:hover {
  color: var(--accent);
  border-color: currentColor;
}

.profile-icon {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-book {
  -webkit-mask-image: url("icons/book.555f4588d88c.svg");
  mask-image: url("icons/book.555f4588d88c.svg");
}

.icon-twitter {
  -webkit-mask-image: url("icons/twitter.b83962a464d6.svg");
  mask-image: url("icons/twitter.b83962a464d6.svg");
}

.icon-briefcase {
  -webkit-mask-image: url("icons/briefcase.26993a6bff88.svg");
  mask-image: url("icons/briefcase.26993a6bff88.svg");
}

.icon-graduation-cap {
  -webkit-mask-image: url("icons/graduation-cap.974140099f51.svg");
  mask-image: url("icons/graduation-cap.974140099f51.svg");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  align-self: flex-end;
  width: 100%;
  padding: 1.5em 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.825rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.home-link {
  display: grid;
  min-height: 3.25rem;
  place-items: center;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-decoration: none;
  text-transform: uppercase;
}

.home-link:hover {
  color: var(--accent);
  border-color: currentColor;
}

.error-card p {
  color: var(--muted);
  line-height: 1.6;
}

.error-code {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.25em;
}

.error-card .home-link {
  margin-top: 1.75rem;
}

@media (max-width: 34rem) {
  .page-shell {
    padding-inline: 0.85rem;
  }

  .profile-card {
    width: calc(100vw - 1.7rem);
    padding: 2.5rem 1.35rem 2.15rem;
  }
}

@media (max-width: 30rem) {
  .page-shell--home {
    padding: 0.75rem;
  }

  .profile-card--home {
    --card-inline: 1.5rem;
    width: min(24.75rem, calc(100vw - 1.5rem));
    padding: 3.25rem var(--card-inline) 2.083333rem;
  }

  .profile-card--home h1 {
    font-size: 1.375rem;
    letter-spacing: 0.18em;
  }

  .profile-links {
    font-size: 0.833333rem;
  }

  .profile-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .site-footer {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
