@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/sans.css'); @import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/serif.css'); @import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/bright.css'); *, *::before, *::after { font-family: inherit; color: inherit; margin: 0; padding: 0; box-sizing: border-box; } html, body { min-height: 100%; } img { display: block; } button, .button { cursor: pointer; } a { text-decoration: none; color: #a00; padding: 0.125rem 2px; border-radius: 4px; &:hover { background-color: #a00; color: #fff; } } h1, h2, h3, h4 { font-weight: 400; font-family: 'Computer Modern Bright', sans-serif; } table { margin: 0 auto; width: 30rem; max-width: 100%; border-collapse: collapse; th, td { border: 1px solid #333; padding: 0.25rem; min-width: 6rem; } th { font-weight: bold; } @media screen and (max-width: 50rem) { width: 100%; max-width: auto; th, td { min-width: auto; } } } /* Components */ /* Layout */ body { font-family: 'Computer Modern Serif', sans-serif; text-rendering: optimizeLegibility; font-size: 20px; line-height: 1; color: #333; background-color: #fffafa; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 8rem; padding-bottom: 8rem; header { width: 100%; background-color: #a00; color: #fff; display: flex; flex-wrap: wrap; place-content: center; column-gap: 1rem; row-gap: 1.5rem; align-content: end; align-items: end; padding: 6rem 1rem 1.25rem; box-shadow: 0 0 2rem rgba(0, 0, 0, 0.125); > h1 { line-height: 0.775; font-family: 'Computer Modern Serif', sans-serif; } ul { display: grid; grid-auto-flow: column; list-style: none; gap: 1rem; } a { color: #fff; padding: 0.5rem; &:hover { background-color: #fff; color: #a00; } font-weight: bold; font-size: 22px; border-radius: 2px; } h1 > a { font-size: 42px; } @media screen and (min-width: 50rem) { > :nth-child(1) { padding-left: 2rem; } > :nth-child(2) { padding-right: 2rem; } } } main { width: 50rem; max-width: 100%; background-color: #fff; border: 4px solid #a00; border-radius: 2px; padding: 2rem; place-self: center; box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1); /* text-align: justify; */ hyphens: auto; line-height: 1.65; > * + * { margin-top: 1rem; } ul { list-style: disc; padding-left: 2rem; li { margin-bottom: 1rem; } li + li { margin-top: 1rem; } } } } /* Mobile */ @media screen and (max-width: 50rem) { body { gap: 3rem; padding-bottom: 3rem; > header { padding: 3rem 1rem 1.25rem; > ul { display: flex; flex-wrap: wrap; justify-content: center; } } > main { width: calc(100vw - 2rem); padding: 1rem; } } }