/* /simplified: a Ko-fi-style projects showcase. Tokens come from ../styles.css. */

/* ---------- Banner ---------- */
.banner { height: clamp(140px, 22vw, 220px); background: var(--bg); border-bottom: 1px solid var(--line); }
.banner .contours { -webkit-mask-image: none; mask-image: none; }

/* ---------- Layout ---------- */
.showcase {
  max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter) 56px;
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start;
}
@media (max-width: 880px) { .showcase { grid-template-columns: 1fr; } }

/* ---------- Profile ---------- */
.profile { position: sticky; top: 24px; margin-top: -64px; }
.profile-photo {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 5px solid var(--bg); box-shadow: 0 16px 34px -16px rgb(0 0 0 / .45); margin-bottom: 18px;
  position: relative;
}
.profile-name { font: 900 3.6rem/0.86 var(--font-display); text-transform: uppercase; margin-bottom: 16px; }
.profile-name span { display: block; color: var(--accent); }
.profile-line { color: var(--ink-soft); margin-bottom: 22px; }
.profile-line em { font-style: normal; color: var(--orange); }
.profile-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.profile-links a {
  display: block; padding: 11px 16px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease);
}
.profile-links a:hover { border-color: var(--ink); transform: translateX(3px); }
.profile-links a.is-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.profile-links a.is-primary:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 880px) {
  .profile { position: static; text-align: center; }
  .profile-photo { margin-left: auto; margin-right: auto; }
  .profile-name { font-size: clamp(3rem, 14vw, 3.6rem); }
  .profile-links { grid-template-columns: repeat(3, 1fr); }
  .profile-links li:first-child { grid-column: 1 / -1; }
  .profile-links a { text-align: center; padding-left: 8px; padding-right: 8px; }
  .profile-links a:hover { transform: translateY(-1px); }
}

/* ---------- Gallery ---------- */
.gallery { padding-top: clamp(28px, 4vw, 44px); }
/* Tabs: big display words, no pills. The inactive tab is greyed; Cursed turns orange when active. */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  position: relative; padding: 0 0 10px; margin-bottom: -1px; background: none; border: 0; cursor: pointer;
  font: 900 2.6rem/1 var(--font-display); text-transform: uppercase; color: #c9cac2;
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink-soft); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
#tab-cursed[aria-selected="true"] { color: var(--orange); border-bottom-color: var(--orange); }
@media (max-width: 480px) { .tab { font-size: 2rem; } }

.panel-intro { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; }
body:not(.has-tabs) #panel-cursed { margin-top: 40px; }

/* Cursed builds: a little wobble, because why not */
.item.is-cursed { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.item.is-cursed:hover { transform: rotate(-1.2deg) translateY(-2px); box-shadow: 0 20px 34px -22px rgb(0 0 0 / .35); }

.badge { margin: 0 0 8px; font: 600 0.72rem/1.4 var(--font-body); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.badge.is-live { color: var(--accent); }
.badge.is-next-badge { color: var(--orange); }

.feature, .item {
  display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.feature:hover, a.item:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .35); }

.feature { margin-bottom: 16px; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 24px 26px 26px; }
.feature h3 { font: 900 2.8rem/0.9 var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.feature p:not(.badge):not(.meta) { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.meta { margin: 14px 0 0; font: 500 0.88rem var(--font-body); color: var(--ink-soft); }

.grid { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.item-body { padding: 16px 18px 20px; }
.item h3 { font: 800 1.7rem/0.95 var(--font-display); text-transform: uppercase; margin-bottom: 6px; }
.item p:not(.badge) { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* "Up next" placeholder until the project has a cover */
.item.is-next { background: transparent; border: 1.5px dashed var(--line); }
.next-art { aspect-ratio: 3 / 2; display: grid; place-items: center; border-bottom: 1.5px dashed var(--line); }
.next-art span { font: 900 4.5rem/1 var(--font-display); color: var(--line); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.showcase-footer { display: flex; align-items: center; gap: 10px; font: 400 0.88rem var(--font-body); color: var(--ink-soft); }
.showcase-footer img { width: 22px; height: 22px; border-radius: 6px; }
.showcase-footer p { margin: 0; }
.showcase-footer a { color: var(--ink); text-decoration: none; }
.showcase-footer a:hover { color: var(--accent); }
