header h1 { margin: 0.83em 0 0; text-align: center; a { position: relative; display: block; text-decoration: none; text-transform: none; font-weight: 300; font-style: italic; font-size: 3em; font-family: Lora, serif; line-height: 1em; color: #000; &:hover, &:focus { color: #000; } &::before { position: absolute; bottom: 0; left: 50%; display: inline-block; margin-left: -40px; width: 80px; max-width: 80px; height: 2px; background-color: #000; content: ''; } } span { font-weight: 400; font-size: 0.68em; } } @media screen and (max-width: 480px) { header h1 { font-size: 1.4em; text-align: left; margin-left: 20px; border-bottom: 1px solid #000; width: calc(100% - 40px); a { margin-bottom: -5px; &::before { content: none; } } } } @media screen and (max-width: 375px) { header h1 { font-size: 1em; } }