*, *::before, *::after { box-sizing: border-box; } :root { --accent: #96A8C8; --accent-darker: #6E7B91; } a { color: var(--accent); text-decoration: none; font-weight: 800; } body { background-color: var(--accent); text-align: center; font-variant: small-caps; font-family: Lucida, Helvetica, sans-serif; margin: 0; padding: 1rem; } main { background: white; border-style: solid; border-width: 1.5px; border-color: #333; border-radius: 12px; max-width: 50rem; margin: 0 auto; } img { max-width: 100%; } nav a { background-color: var(--accent-darker); color: #FFF; border: 1.5px solid #333; font-weight: bold; padding: 1.5px 12px; margin: 0 4px; text-decoration: none; border-radius: 3px; box-shadow: 0 0 5px 0 gray; display: inline-block; } nav a:hover { background-color: #FFF; color: var(--accent-darker); box-shadow: none; } ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); text-align: left; grid-column-gap: 1rem; padding: 0; list-style: none; margin: 1rem; }