/* shanaty.ru/portfolio — page-specific styles. Shared styles are in site.css. */


.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); font: 500 15px/1 var(--body); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip[aria-pressed='true'] .n { color: inherit; opacity: 0.7; }



/* Featured: plates in rows of two or three, planned by the number of projects (see portfolio.js). */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 28px; }
.item { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.item .plate { aspect-ratio: 3 / 2; }
.caption { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.caption h3, .card h3 { font: 700 clamp(20px, 2vw, 26px) / 1.15 var(--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-2); }
.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: 14px; 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; }

/* The rest: a compact grid. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card .plate { aspect-ratio: 16 / 10; }
.card .description { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.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) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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 (min-width: 1001px) {
  .bento { 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; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
  .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; }
  .item[data-span='6'] .plate { aspect-ratio: 16 / 10; }
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid, .skeleton { grid-template-columns: minmax(0, 1fr); }
  .skeleton span:nth-child(n + 2) { display: none; }
}
