New design: studio backdrop with a perspective floor and X/Z axis lines, an orientation gizmo that orbits on scroll, Bricolage Grotesque and Instrument Sans (bundled, no build-time network). Projects are laid out as plates by a row planner that keeps every row full for any count; a demo image from the repo root is shown when present, otherwise a generated voxel sculpture. Text and projects still come live from Gitea. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtcZtnG4GQA1d6mW5PNrS9
238 lines
4.4 KiB
CSS
238 lines
4.4 KiB
CSS
.section {
|
|
padding: 24px 0 var(--section);
|
|
}
|
|
|
|
.shell {
|
|
width: var(--shell);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px 24px;
|
|
margin-bottom: clamp(36px, 5vw, 64px);
|
|
}
|
|
|
|
.head h2 {
|
|
font: 700 clamp(40px, 5.6vw, 80px) / 1 var(--font-head);
|
|
letter-spacing: -0.04em;
|
|
}
|
|
|
|
.note {
|
|
font-size: 15px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.notice {
|
|
padding: 28px 0;
|
|
border-top: 1px solid var(--line);
|
|
border-bottom: 1px solid var(--line);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.notice a {
|
|
color: var(--z-text);
|
|
}
|
|
|
|
/* Mobile first: one column. Tablet: two. Desktop: six columns, with the spans planned per project count. */
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 56px 28px;
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.plate {
|
|
position: relative;
|
|
display: block;
|
|
aspect-ratio: 3 / 2;
|
|
overflow: hidden;
|
|
border-radius: var(--radius-plate);
|
|
background: radial-gradient(120% 90% at 50% 0%, #f3f5f8 0%, var(--studio) 55%, #d3d9e0 100%);
|
|
box-shadow: inset 0 0 0 1px rgba(21, 24, 29, 0.09);
|
|
}
|
|
|
|
.plate img,
|
|
.plate svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.cover {
|
|
object-fit: cover;
|
|
}
|
|
|
|
.contain {
|
|
position: relative;
|
|
object-fit: contain;
|
|
padding: 6%;
|
|
filter: drop-shadow(0 10px 24px rgba(21, 24, 29, 0.28));
|
|
}
|
|
|
|
.backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
object-fit: cover;
|
|
transform: scale(1.3);
|
|
filter: blur(26px) saturate(1.2);
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.caption {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.caption h3 {
|
|
font: 700 clamp(24px, 2.2vw, 30px) / 1.1 var(--font-head);
|
|
letter-spacing: -0.03em;
|
|
}
|
|
|
|
.kind {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.description {
|
|
max-width: 62ch;
|
|
color: rgba(21, 24, 29, 0.86);
|
|
}
|
|
|
|
.points {
|
|
display: grid;
|
|
gap: 4px;
|
|
font-size: 15px;
|
|
color: rgba(21, 24, 29, 0.78);
|
|
}
|
|
|
|
.points li {
|
|
position: relative;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.points li::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 0.62em;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 1px;
|
|
background: var(--z);
|
|
}
|
|
|
|
.foot {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
margin-top: auto;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tags li {
|
|
padding: 3px 11px;
|
|
border-radius: 999px;
|
|
box-shadow: inset 0 0 0 1px var(--line);
|
|
font-size: 13.5px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 20px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.links a {
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 1.5px;
|
|
text-underline-offset: 4px;
|
|
text-decoration-color: rgba(21, 24, 29, 0.3);
|
|
transition: text-decoration-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.links a:hover {
|
|
color: var(--z-text);
|
|
text-decoration-color: currentColor;
|
|
}
|
|
|
|
/* Placeholder while the list loads: three empty plates that hold the space. */
|
|
.skeleton {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 28px;
|
|
}
|
|
|
|
.skeleton span {
|
|
aspect-ratio: 3 / 2;
|
|
border-radius: var(--radius-plate);
|
|
background: linear-gradient(160deg, #eef1f4, var(--studio));
|
|
}
|
|
|
|
@media (min-width: 641px) and (max-width: 1000px) {
|
|
.grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
/* An odd last project spans the full row instead of leaving a hole. */
|
|
.item:last-child:nth-child(odd) {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.item:last-child:nth-child(odd):not(:only-child) .plate {
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.skeleton {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.skeleton span:nth-child(n + 2) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1001px) {
|
|
.grid {
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
gap: 72px 32px;
|
|
}
|
|
.item[data-span='2'] { grid-column: span 2; }
|
|
.item[data-span='3'] { grid-column: span 3; }
|
|
.item[data-span='4'] { grid-column: span 4; }
|
|
.item[data-span='6'] { grid-column: span 6; }
|
|
|
|
.item[data-span='2'] .plate { aspect-ratio: 4 / 3; }
|
|
.item[data-span='3'] .plate { aspect-ratio: 3 / 2; }
|
|
.item[data-span='4'] .plate { aspect-ratio: 16 / 9; }
|
|
|
|
/* A single project gets the whole width: plate and text side by side. */
|
|
.item[data-span='6'] {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
|
|
align-items: center;
|
|
gap: 40px;
|
|
}
|
|
.item[data-span='6'] .plate { aspect-ratio: 16 / 10; }
|
|
}
|