Adds a Russian version (data/resume.ru.json, default language) with an RU/EN switch stored under the key shared with the front page and the portfolio. The top bar becomes the site-wide one (brand, Resume, Portfolio, Gitea, Contact, language, theme) with a second row of anchors for this page's sections, and the fonts move to Unbounded and Onest so the three pages share one type system. Portfolio links now point at /portfolio/. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtcZtnG4GQA1d6mW5PNrS9
283 lines
5.3 KiB
CSS
283 lines
5.3 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(28px, 4.2vw, 60px) / 1.05 var(--font-head);
|
|
letter-spacing: -0.045em;
|
|
}
|
|
|
|
.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%, var(--plate-a) 0%, var(--plate-b) 55%, var(--plate-c) 100%);
|
|
box-shadow: inset 0 0 0 1px var(--ring);
|
|
}
|
|
|
|
.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 var(--img-shadow));
|
|
}
|
|
|
|
.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(19px, 1.9vw, 25px) / 1.15 var(--font-head);
|
|
letter-spacing: -0.04em;
|
|
}
|
|
|
|
.kind {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.description {
|
|
max-width: 62ch;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.points {
|
|
display: grid;
|
|
gap: 4px;
|
|
font-size: 15px;
|
|
color: var(--ink-3);
|
|
}
|
|
|
|
.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: var(--ink-line);
|
|
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, var(--plate-a), var(--plate-c));
|
|
}
|
|
|
|
@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; }
|
|
}
|
|
|
|
/* The whole row is a link to the full portfolio; it closes the list. */
|
|
.more {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px 40px;
|
|
margin-top: clamp(56px, 7vw, 104px);
|
|
padding: clamp(28px, 4vw, 52px) 0;
|
|
border-top: 1px solid var(--ink);
|
|
border-bottom: 1px solid var(--line);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.more > span:first-child {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.moreTitle {
|
|
font: 700 clamp(22px, 3vw, 40px) / 1.1 var(--font-head);
|
|
letter-spacing: -0.045em;
|
|
}
|
|
|
|
.moreText {
|
|
max-width: 52ch;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.moreButton {
|
|
flex: none;
|
|
padding: 16px 28px;
|
|
border-radius: var(--radius-control);
|
|
background: var(--ink);
|
|
color: var(--paper);
|
|
font: 600 17px/1.2 var(--font-body);
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.more:hover .moreButton {
|
|
background: var(--z);
|
|
color: #fff;
|
|
}
|