@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

@font-face {
  font-family: 'HVWeist';
  src: url('./fonts/HVWeist.ttf');
}

:root {
  --accent: #9E30F4;
  --text: black;
  --offBlack: #1F0323;
  --background: #F9F9F9;
  --contentMaxWidth: 1210px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  padding: 50px;
  margin: unset;

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 100vw;
}

.header {
  width: 100%;
  max-width: var(--contentMaxWidth);

  display: flex;
  gap: 50px;
}

.links {
  display: flex;
  align-items: flex-end;
  padding-bottom: 3px;
  gap: 30px;
}

.links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--offBlack);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.links a.active {
  opacity: 1;
}

.hero {
  width: 100%;
  max-width: var(--contentMaxWidth);

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 40px;
  min-height: 338px;
}

.hook h2 {
  font-family: 'Roboto';
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.37em;
  margin: unset;
  color: var(--accent);
}

.hook h1 {
  font-family: 'HVWeist', 'Roboto', sans-serif;
  max-width: 420px;
  font-size: 40px;
  font-weight: 400;
  margin: 8px 0;
  color: var(--offBlack);
}

.hook p {
  max-width: 500px;
  font-size: 16px;
  font-weight: 300;
  margin: unset;
  color: var(--offBlack);
}

.workWrapper {
  margin-top: 45px;
  max-width: var(--contentMaxWidth);
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workWrapper h2 {
  font-family: 'HVWeist', 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--offBlack);
}

.workWrapper .work {
  width: 100%;
  border: 1px solid var(--offBlack);
  border-radius: 6px;
  padding: 20px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 30px;
  overflow: hidden;
}

.workWrapper .work .information h3 {
  font-family: 'HVWeist', 'Roboto', sans-serif;
  font-size: 26px;
}

.workWrapper .work .information .role {
  font-family: 'HVWeist', 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--offBlack);
  margin: 8px 0 0 0;
}

.workWrapper .work .information p {
  max-width: 500px;
  font-weight: 300;
  font-size: 16px;
  margin: 16px 0 24px 0;
}

.workWrapper .work .information a {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workWrapper .work .coverImage img {
  height: 100%;
  max-width: 450px;

  aspect-ratio: 336/190;

  border-radius: 10px;

  filter: drop-shadow(0 0 10px rgba(0,0,0,0.15));
  cursor: pointer;

  transition: transform .3s;
}

.workWrapper .work .coverImage img:hover {
  transform: scale(1.05);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  padding: 50px 0 0 0;
  max-width: var(--contentMaxWidth);
  border-top: 1px solid var(--offBlack);
  margin-top: 65px;

  font-size: 16px;
}

.footer p {
  font-family: 'HVWeist';
}

.footer .credits {
  font-family: 'Roboto', sans-serif;
}

.footer .credits a {
  font-family: 'HVWeist';
  text-decoration: none;
}

@media only screen and (max-width: 940px) {
  .portrait {
    display: none;
  }

  .work {
    flex-direction: column;
  }
}

@media only screen and (max-width: 800px) {
  .footer  {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media only screen and (max-width: 660px) {
  .workWrapper .work .coverImage {
    position: relative;
    width: 100%;
  }

  .workWrapper .work .coverImage:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: calc((95 / 168) * 100%);
  }

  .workWrapper .work .coverImage img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}

* {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  margin: unset;
}
