* { margin: 0; padding: 0; } body, html { box-sizing: border-box; height: 100%; font-size: 16px; } *, *:before, *:after { box-sizing: inherit; } body { background-color: #fff; color: #232323; font-family: 'Open Sans', sans-serif; text-rendering: optimizeLegibility; text-align: center; } html, body, #wrapper { min-height: 100%; } #wrapper { min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; } header { height: 100%; max-width: 90%; margin: 0 auto 10vh; text-align: center; } header h1 { display: inline-block; margin-bottom: 2rem; margin-right: -0.25em; /* fix trailing space from letter-spacing */ font-size: 7vw; font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; background: #232323 url(https://kredits.kosmos.org/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg); background-size: cover; background-repeat: no-repeat; -webkit-text-fill-color: transparent; -webkit-background-clip: text; } header h2 { font-weight: 300; font-size: 1.4rem; } main { width: 768px; max-width: 90%; text-align: left; } main p { line-height: 1.6em; margin-bottom: 1em; } .hidden { display: none !important; } @media screen and (max-width: 760px) { header { margin-top: 4rem; } header h1 { font-size: 8vw; } footer { margin-bottom: 4rem; } }