* { box-sizing: border-box; } html { --primary: #fd0ebf; --background: #fff; --foreground: #000; --box-padding: 1rem 2rem; font-family: 'Raleway', sans-serif; font-size: 24px; line-height: 175%; } *:focus { outline: 1px dashed var(--primary); } .mi-page { margin: 0; padding: 0; background: var(--background); display: flex; flex-direction: column; min-height: 100vh; width: 100vw; } .mi-nav { border-bottom: 1px solid var(--foreground); position: sticky; top: 0; left: 0; width: 100vw; background: var(--background); z-index: 100; } .mi-nav--toggle { padding: 0.25rem 1rem; } .mi-nav--toggle-checky { visibility: hidden; } .mi-nav--list { list-style: none; display: none; padding: 0; margin: 0; position: absolute; background: var(--background); border-bottom: 1px solid var(--foreground); left: 0; right: 0; } .mi-nav--toggle-checky:checked+.mi-nav--list { display: flex; flex-direction: column; } .mi-nav--link { display: flex; padding: 0.25rem 1rem; color: var(--foreground); text-decoration: none; } .mi-nav--link:before { display: inline-block; content: '__'; } .mi-nav--link:hover { color: var(--primary); text-decoration: underline; } @media screen and (min-width: 800px) { .mi-nav--toggle, .mi-nav--toggle-checky { display: none; } .mi-nav--list { display: flex; position: static; border-bottom: 0; } .mi-nav--item { flex-grow: 1; } } .mi-main { background: var(--background); margin: 0; flex-grow: 1; } .mi-cards { display: grid; background: var(--foreground); grid-gap: 1px; grid-template-columns: 1fr; } @media screen and (min-width: 800px) { .mi-cards { grid-template-columns: repeat(8, 1fr); } .mi-card { grid-column: auto / span 4; } .mi-logo { grid-column: 1 / span 3; } .mi-tagline { grid-column: 4 / span 5; } } @media screen and (min-width: 1600px) { .mi-card { grid-column: auto / span 2; } } .mi-logo { background: var(--background); } .mi-logo--img { width: 100%; height: 100%; object-fit: contain; } .mi-tagline { background: var(--background); display: flex; align-items: center; padding: 0.25rem 1rem; } .mi-card { background: var(--background); position: relative; height: 600px; padding: 1rem; } .mi-card--background { width: calc(100% - 2rem); height: calc(100% - 2rem); position: absolute; top: 1rem; left: 1rem; object-fit: cover; } .mi-card--text { color: var(--background); background: var(--primary); display: flex; z-index: 1; padding: 0.25rem 1rem; position: absolute; bottom: 2rem; left: 2rem; right: 2rem; } .mi-footer { border-top: 1px solid var(--foreground); background: var(--background); } .mi-footer--links { display: flex; flex-direction: row; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; } .mi-footer--link { text-decoration: none; color: var(--foreground); padding: 0.25rem 1rem; } .mi-footer--link:hover { text-decoration: underline; }