.section { margin: 2.4em 0; .year { font-size: 2.2em; margin-top: 0; margin-bottom: 0.5em; } .list { list-style-type: none; margin: 0; padding: 0; li:last-of-type { margin-bottom: 0; } } &:first-of-type { margin-top: 0; } &:last-of-type { margin-bottom: 0; } } @media screen and (max-width: 768px) { .section .year { font-size: 2em; } }