/* Roboto (variable, 100-900), self-hosted */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-color: #fafafa;
  --text-color: rgba(255, 255, 255, 0.87);
  --subtext-color: #aaa;
  --background-color: #121212;
  --border-radius: 1rem;
  --page-width: 62.5rem;
  --page-padding: 0 2.5rem;
  --footer-height: 7.5rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  text-rendering: optimizeLegibility;
}

.wrapper {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--page-padding);
}

/* Hero */

main {
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

.hero {
  animation: fadeUp 200ms ease-out 400ms backwards;
}

.intro {
  display: flex;
  align-items: center;
  margin: 0 0 1.5rem;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  line-height: 3rem;
}

.wave {
  width: 36px;
  height: 36px;
  margin-left: 1rem;
  transform-origin: 70% 70%;
  animation: waving-hand 2500ms ease-out 3;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: fadeLeft 200ms ease-out 600ms backwards;
}

.profile {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 0.125rem solid var(--primary-color);
  border-radius: var(--border-radius);
  background: linear-gradient(to right, var(--primary-color) 50%, var(--background-color) 50%) 100% 100% / 205% 100%;
  color: var(--primary-color);
  text-decoration: none;
  transition: 0.1s ease-out;
}

.profile:hover,
.profile:focus-visible {
  background-position: 0 100%;
  color: var(--background-color);
}

.profile:focus-visible {
  outline: 2px dotted var(--subtext-color);
  outline-offset: 2px;
}

.profile svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
  margin-bottom: -0.1rem;
  fill: currentColor;
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  min-height: var(--footer-height);
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  border-top: 3px solid rgba(0, 0, 0, 0.32);
}

footer .wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 2.5rem;
}

.company {
  color: var(--subtext-color);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.375rem;
  text-align: right;
}

.company a {
  color: inherit;
  text-decoration: none;
  transition: color 0.1s ease-out;
}

.company a:hover,
.company a:focus-visible {
  color: var(--primary-color);
}

.company a:focus-visible {
  outline: 2px dotted var(--subtext-color);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .intro {
    margin-bottom: 2.625rem;
    font-size: 2.625rem;
    line-height: 4rem;
  }

  .wave {
    width: 48px;
    height: 48px;
  }

  .profiles {
    gap: 1rem;
  }

  footer {
    padding: 1.5rem 0;
  }

  footer .wrapper {
    flex-direction: row;
    align-items: center;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes waving-hand {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60%,
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
