@font-face { font-family: "Nordwand Mono"; src: url("../fonts/NordwandMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; } @font-face { font-family: "Nordwand Mono"; src: url("../fonts/NordwandMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; } :root { color-scheme: light dark; --background-color: light-dark(#fbfaff, #0d0d0d); --text-color: light-dark(#17121f, white); --muted-text-color: light-dark(#4b4459, #a3a3a3); --link-color: light-dark(purple, #b794f6); --command-color: light-dark(#1d7a3c, #86e0a6); --menu-bg-color: light-dark(#f3effa, rgb(26, 26, 26)); --menu-bg-color-translucent: light-dark(rgb(243 239 250 / 0.75), rgb(26 26 26 / 0.7)); --menu-border-color: light-dark(#d8cfe8, #404040); --alternative-bg-color-translucent: light-dark(rgb(230 223 243 / 0.75), rgb(38 38 38 / 0.7)); --radius: 8px; --radius-small: 5px; --dots: radial-gradient(light-dark(rgb(90 60 140 / 0.13), rgb(255 255 255 / 0.04)) 1px, transparent 1.5px); --dots-size: 18px 18px; } *, *::before, *::after { box-sizing: border-box; } html { scrollbar-gutter: stable; } body { margin: 0; min-height: 100vh; font-family: "Nordwand Mono", ui-monospace, monospace; color: var(--text-color); background-color: light-dark(#f4edf9, #121113); } body::before { content: ""; position: fixed; inset: 0; z-index: -1; background-image: var(--dots); background-size: var(--dots-size); pointer-events: none; } input, button, code { font: inherit; } a { color: var(--link-color); text-decoration: none; &:hover { text-decoration: underline; } } header { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: stretch; background-color: var(--menu-bg-color-translucent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--menu-border-color); a { display: flex; align-items: center; padding: 11px 20px; color: var(--text-color); &:hover { text-decoration: none; color: var(--link-color); background-color: var(--alternative-bg-color-translucent); } } .brand { gap: 10px; font-size: 1.2em; font-weight: 600; } nav { display: flex; } .json { gap: 6px; margin-left: auto; font-size: 0.85em; color: var(--muted-text-color); } } main { display: flex; flex-direction: column; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 24px 20px 48px; } .toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; h1 { margin: 0; font-size: 1.3em; font-weight: 600; } .count { color: var(--muted-text-color); font-weight: 400; } input[type="search"] { width: min(100%, 320px); min-height: 42px; padding: 10px 14px; border: 1px solid var(--menu-border-color); border-radius: var(--radius); background-color: var(--menu-bg-color-translucent); color: var(--text-color); font-size: 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; &:hover { border-color: var(--text-color); } &:focus-visible { outline: none; border-color: var(--link-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent); } } } .filters { display: flex; flex-wrap: wrap; gap: 8px; .filter { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; font-size: 13px; color: var(--text-color); border: 1px solid var(--menu-border-color); border-radius: 999px; background-color: var(--menu-bg-color-translucent); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; &:hover { border-color: var(--text-color); } &:focus-visible { outline: 2px solid var(--link-color); outline-offset: 2px; } &[aria-pressed="true"] { border-color: var(--link-color); background-color: color-mix(in srgb, var(--link-color) 15%, transparent); } .n { font-size: 11px; color: var(--muted-text-color); } img { display: block; height: 16px; width: auto; max-width: 64px; &.mono { height: 13px; @media (prefers-color-scheme: dark) { filter: invert(1); } } } } } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; } .card { position: relative; isolation: isolate; aspect-ratio: 2 / 3; min-width: 0; overflow: hidden; border: 1px solid var(--menu-border-color); border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--link-color) 25%, transparent), transparent 70%), var(--menu-bg-color-translucent); transition: border-color 0.2s ease; &[hidden] { display: none; } &:hover, &:has(.open:focus-visible) { border-color: var(--text-color); } .open { display: block; width: 100%; height: 100%; padding: 0; border: 0; color: inherit; font: inherit; text-align: inherit; background: none; cursor: pointer; &:focus-visible { outline: 2px solid var(--link-color); outline-offset: -3px; border-radius: var(--radius); } > img { display: block; width: 100%; height: 100%; object-fit: cover; } } .placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 16px; text-align: center; color: var(--muted-text-color); .initial { font-size: 64px; font-weight: 600; line-height: 1; opacity: 0.5; } .title { font-size: 13px; font-weight: 600; } } .platform { position: absolute; top: 0; left: 0; z-index: 2; display: flex; align-items: center; padding: 9px 28px 28px 9px; font-size: 11px; font-weight: 600; color: white; text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); background: radial-gradient( ellipse at top left, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.3) 40%, transparent 70% ); pointer-events: none; img, .platform-name { pointer-events: auto; } img { display: block; height: 18px; width: auto; max-width: 64px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.6)); &.mono { height: 16px; max-width: 72px; filter: brightness(0) invert(1) drop-shadow(0 0 1px rgb(0 0 0 / 0.9)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.6)); } } } .caption { position: absolute; inset: auto 0 0; display: -webkit-box; overflow: hidden; padding: 28px 10px 9px; font-size: 12px; font-weight: 600; line-height: 1.35; color: white; text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.55) 60%, transparent); pointer-events: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } } .details { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; overflow: auto; color: var(--text-color); border: 1px solid var(--menu-border-color); border-radius: var(--radius); background-color: var(--menu-bg-color); background-image: var(--dots); background-size: var(--dots-size); box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.5); &:focus { outline: none; } &::backdrop { background-color: rgb(0 0 0 / 0.55); backdrop-filter: blur(4px); } &[open] { animation: details-in 0.2s ease; } .backdrop { position: absolute; inset: 0 0 auto; width: 100%; height: 260px; object-fit: cover; opacity: 0.45; mask-image: linear-gradient(to bottom, black 20%, transparent); pointer-events: none; @media (prefers-color-scheme: light) { opacity: 0.3; } } .sheet { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px; } .art { align-self: start; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-small); box-shadow: 0 12px 24px -8px rgb(0 0 0 / 0.5); background: linear-gradient(160deg, color-mix(in srgb, var(--link-color) 25%, transparent), transparent 70%), var(--alternative-bg-color-translucent); img { display: block; width: 100%; height: 100%; object-fit: cover; } .placeholder { display: grid; place-items: center; height: 100%; font-size: 96px; font-weight: 600; color: var(--muted-text-color); opacity: 0.5; } } .body { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .meta { display: flex; align-items: center; gap: 8px; padding-right: 32px; font-size: 12px; font-weight: 600; color: var(--text-color); text-shadow: 0 1px 3px light-dark(rgb(255 255 255 / 0.8), rgb(0 0 0 / 0.8)); img { display: block; height: 16px; width: auto; max-width: 64px; &.mono { height: 13px; @media (prefers-color-scheme: dark) { filter: invert(1); } } } } h2 { margin: 0; font-size: 1.4em; font-weight: 600; line-height: 1.25; } p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-text-color); text-shadow: 0 1px 3px light-dark(rgb(255 255 255 / 0.8), rgb(0 0 0 / 0.8)); } .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; a { display: inline-flex; align-items: center; gap: 4px; } } .close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--text-color); border: 1px solid var(--menu-border-color); border-radius: 50%; background-color: var(--menu-bg-color-translucent); cursor: pointer; &:hover { border-color: var(--text-color); } &:focus-visible { outline: 2px solid var(--link-color); outline-offset: 2px; } } .run { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; padding: 8px 8px 8px 12px; border: 1px solid var(--menu-border-color); border-radius: var(--radius-small); background-color: var(--alternative-bg-color-translucent); code { flex: 1; min-width: 0; padding-top: 5px; font-size: 12px; line-height: 1.5; overflow-wrap: break-word; color: var(--command-color); user-select: all; &::before { content: "$ "; color: var(--muted-text-color); opacity: 0.7; } } button { display: grid; flex-shrink: 0; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--menu-border-color); border-radius: var(--radius-small); background-color: var(--menu-bg-color); color: var(--text-color); cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; &:hover { border-color: var(--text-color); } &:focus-visible { outline: 2px solid var(--link-color); outline-offset: 1px; } .icon-check { display: none; } &[data-copied] { color: var(--link-color); border-color: var(--link-color); .icon-copy { display: none; } .icon-check { display: block; } } } } } @keyframes details-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } } @media (prefers-reduced-motion: reduce) { .details[open] { animation: none; } } @media (max-width: 600px) { header { justify-content: center; .brand { flex-basis: 100%; justify-content: center; } .json { margin-left: 0; } } .toolbar { flex-direction: column; input[type="search"] { width: 100%; } } main { padding-inline: 12px; } .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; } .details .sheet { grid-template-columns: 1fr; gap: 20px; padding: 20px; .art { justify-self: center; width: 55%; } } }