@font-face { font-family: 'Open Sans Condensed'; font-weight: 300; font-display: swap; src: local('Open Sans Condensed'); } @font-face { font-family: 'Alegreya Sans SC'; font-weight: 900; font-weight: extra-bold; font-display: swap; src: local('Alegreya Sans Sc'); } * { margin: 0; padding: 0; } html { background-color: #f4f7f6; display: flex; justify-content: center; align-items: center; main { max-width: 40em; padding: 1em; } section h2 { margin: 1em 0; font-family: 'Open Sans Condensed', sans-serif; text-transform: uppercase; border-bottom: 1px solid #b43434; } code + p, p + p{ margin: 1em 0; } &.perspective { min-height: 100vh; overflow: hidden; body { position: relative; bottom: 5em; } div.name { text-decoration: none; color: #666666; font-family: 'Alegreya Sans SC'; filter: drop-shadow(1px 1px #333333); text-transform: uppercase; font-size: 5em; font-weight: 900; transform: skew(60deg, -30deg); position: relative; &:first-child { right: 1em; } &:last-child { left: 1em; } } div.nav { transform: skew(0deg, -30deg); } } } header { h1 { display: flex; justify-content: space-evenly; } a.name { text-decoration: none; color: #666666; font-family: 'Alegreya Sans SC'; font-size: 2em; filter: drop-shadow(1px 1px #333333); } .name { &:first-child { padding-right: .25em; } &:last-child { padding-left: .25em; } } } nav, ul, li { margin: 0; padding: 0; display: inline; } nav { font-family: 'Open Sans Condensed', sans-serif; font-size: 2em; ul { background-color: #b43434; display: flex; justify-content: space-around; } a { text-decoration: none; color: #333333; } li { padding: 0 5px; &:hover { a { color: #f4f6f7; } } } }