*, *::after, *::before { box-sizing: border-box; } :root { font-size: 12px; --color-text: #000000; --color-bg: #ffffff; --color-link: #000000; --color-link-hover: #000000; --page-padding: 1.5rem; } body { margin: 0; color: var(--color-text); background-color: var(--color-bg); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { text-decoration: none; color: var(--color-link); outline: none; cursor: pointer; &:hover { text-decoration: underline; color: var(--color-link-hover); } &:focus { outline: none; background: lightgrey; &:not(:focus-visible) { background: transparent; } &:focus-visible { outline: 2px solid red; background: transparent; } } } .frame { padding: 3rem var(--page-padding) 0; display: grid; z-index: 1000; position: relative; grid-row-gap: 1rem; grid-column-gap: 2rem; pointer-events: none; justify-items: start; grid-template-columns: auto auto; grid-template-areas: 'title' 'back' 'archive' 'github' 'demos' 'tags' 'sponsor'; #cdawrap { justify-self: start; grid-area: sponsor; } a, button { pointer-events: auto; } .frame__title { grid-area: title; font-size: inherit; margin: 0; } .frame__back { grid-area: back; justify-self: start; } .frame__archive { grid-area: archive; justify-self: start; } .frame__github { grid-area: github; } .frame__tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 1rem; } .frame__demos { grid-area: demos; display: flex; flex-wrap: wrap; gap: 1rem; } @media screen and (min-width: 53em) { padding: var(--page-padding); height: 100%; position: fixed; top: 0; left: 0; width: 100%; grid-template-columns: auto auto auto auto 1fr; grid-template-rows: auto auto; align-content: space-between; grid-template-areas: 'title back github archive demos' 'tags tags tags sponsor sponsor'; .frame__tags { align-self: end; } .frame__demos, #cdawrap { justify-self: end; text-align: right; max-width: 300px; } } } .content { padding: var(--page-padding); display: flex; flex-direction: column; width: 100vw; position: relative; @media screen and (min-width: 53em) { min-height: 100vh; justify-content: center; align-items: center; } }