@charset "UTF-8";

@font-face {
  font-family: "Roboto Mono";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: local("Roboto Mono Regular"),
    url("../fonts/RobotoMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Mono";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: local("Roboto Mono Bold"),
    url("../fonts/RobotoMono-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Mono";
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  src: local("Roboto Mono Medium"),
    url("../fonts/RobotoMono-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Mono";
  font-display: swap;
  font-style: italic;
  font-weight: 400;
  src: local("Roboto Mono Italic"),
    url("../fonts/RobotoMono-Italic.woff2") format("woff2");
}

:root {
  --max-width: 65rem;
  --compact-width: 40rem;
  --delay: 100ms;

  /* Colors */
  --bg-color: rgb(14, 14, 14);
  --primary-color: rgb(160, 160, 160);
  --secondary-color: rgb(255, 143, 0);
}

@media (prefers-color-scheme: light) {
  :root {
    /* Colors */
    /* --bg-color: rgb(14, 14, 14);
    --primary-color: rgb(255, 255, 255);
    --secondary-color: rgb(255, 143, 0); */
  }
}

html {
  font-size: clamp(16px, 0.9vw, 18px);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: var(--primary-color);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary-color);
  transition: filter 200ms ease-in-out;
}

a:hover {
  filter: brightness(1.3);
}

header,
main,
footer {
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  margin-top: clamp(1rem, 12vw, 7rem);
  max-width: var(--max-width);
}

section {
  margin: 0 auto;
  margin-bottom: 6rem;
  padding: 1rem;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 1rem;
  margin: 0 3rem;
  gap: 2.5rem;
  justify-content: flex-end;
}

@media (max-width: 40rem) {
  .menu ul {
    margin: 0;
    gap: 2rem;
    justify-content: center;
  }
}

.menu li a {
  text-decoration: none;
}

.compact {
  width: fit-content;
  width: -moz-fit-content;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--compact-width);
}

.icon.twitter {
  background-image: url("../../resources/img/x.svg");
}

.icon.mastodon {
  background-image: url("../../resources/img/mastodon.svg");
}

.icon.github {
  background-image: url("../../resources/img/github.svg");
}

.icon.linkedin {
  background-image: url("../../resources/img/linkedin.svg");
}

.icon.donation {
  background-image: url("../../resources/img/heart.svg");
}

.about .name h1 {
  display: block;
  font-weight: 500;
  font-size: 2.3rem;
  margin: 0;
}

.about .name .alt {
  display: block;
  color: var(--secondary-color);
  font-size: 1.4rem;
}

.photo img {
  width: 100%;
  max-width: 10rem;
  margin: 1rem auto;
  border-radius: 50%;
}

.social {
  margin-top: 2rem;
}

.social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social .icon {
  display: block;
  text-decoration: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2rem;
  min-width: 2rem;
  min-height: 2rem;
}

.btn {
  box-sizing: border-box;
  display: flex;
  width: fit-content;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 0.03rem solid var(--primary-color);
  background-color: transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.btn img {
  width: 1.2rem;
  height: 1.2rem;
}

.contact {
  text-align: center;
}

.contact .btn {
  margin: 0 auto;
}

section > h2 {
  text-transform: uppercase;
}

section.expertise ul {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

section.expertise h3 {
  display: flex;
  gap: 1rem;
}

section.expertise h3 .icon {
  width: 1.5rem;
}

section.work {
  margin-top: 5rem;
}

section.work .sponsoring {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

footer {
  margin-top: 6rem;
  text-align: center;
}

footer a {
  font-size: 0.9rem;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100;
  }
}

.fade {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 1.5s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

.fade.one {
  animation-delay: var(--delay);
}

.fade.two {
  animation-delay: calc(6 * var(--delay));
}

.fade.three {
  animation-delay: calc(12 * var(--delay));
}

.fade.four {
  animation-delay: calc(18 * var(--delay));
}
