:root {
  color-scheme: dark;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  background: #fff;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

html {
  font-size: 18pt;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  position: relative;
  background-color: #081c3b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(45deg, rgb(3 28 25 / 76.9%), rgb(8 28 59 / 78%)),
    url("images/bg.jpg") center bottom / cover no-repeat;
}

.profile {
  position: relative;
  z-index: 1;
  width: min(100%, 29rem);
  padding: 3.625rem 2.875rem;
}

.profile::after {
  content: "";
  display: block;
  height: 4.5rem;
}

.mark {
  display: block;
  width: 6.125rem;
  height: 3.375rem;
  object-fit: cover;
  object-position: left top;
}

h1 {
  width: calc(100% + 0.575rem);
  margin: 1.375rem 0 0;
  font-family: "Archivo", sans-serif;
  font-size: 2.375em;
  font-weight: 400;
  letter-spacing: 0.575rem;
  line-height: 1.25;
  text-transform: uppercase;
}

p {
  width: calc(100% + 0.025rem);
  margin: 1.375rem 0 0;
  font-size: 1em;
  font-weight: 200;
  letter-spacing: 0.025rem;
  line-height: 1.75;
}

.contact {
  display: inline-flex;
  width: 13.75rem;
  height: 3.125rem;
  margin-top: 1.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 0.375rem;
  color: inherit;
  font-family: "Montserrat", sans-serif;
  font-size: 0.625em;
  letter-spacing: 0.3rem;
  text-decoration: none;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.688rem;
}

nav a {
  display: flex;
  width: 2em;
  height: 2em;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: inherit;
  font-size: 1.125em;
  text-decoration: none;
  transition: border-color 0.25s ease;
}

nav svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
  transition: fill 0.25s ease;
}

a:hover,
a:focus-visible {
  color: #1cffe4;
}

a:focus-visible {
  outline: 2px solid #1cffe4;
  outline-offset: 4px;
}

@media (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 11pt;
  }
}

@media (max-width: 736px) {
  .profile {
    padding: 3.5rem 2rem;
  }

  .mark {
    height: 4.21875rem;
  }

  h1 {
    width: calc(100% + 0.503125rem);
    letter-spacing: 0.503125rem;
  }

  p {
    width: calc(100% + 0.021875rem);
    letter-spacing: 0.021875rem;
  }

  .contact {
    margin-top: 1.3125rem;
  }

  nav {
    margin-top: 1.266rem;
  }
}

@media (max-width: 480px) {
  .mark {
    height: 3.375rem;
  }
}

@media (max-width: 360px) {
  .profile {
    padding: 2.625rem 1.5rem;
  }

  .mark {
    height: 2.953125rem;
  }

  h1 {
    font-size: 2em;
  }

  nav {
    gap: 0.46875rem;
  }
}

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