/* index.css — 워크벤치 인덱스. 색·간격·타이포는 전부 tokens.css 변수를 쓴다. */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top-in {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.mark {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r1);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 15px; font-weight: 800;
}
.top-t { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.top-t strong { font-size: var(--t-small); letter-spacing: 0.06em; }
.top-in .btn { margin-left: auto; }

.lead { margin-bottom: var(--s6); }
.lead h1 { margin: 0 0 var(--s2); font-size: var(--t-display); letter-spacing: -0.02em; }
.lead p { margin: 0 0 var(--s2); max-width: 62ch; color: var(--ink-2); }
.lead p:last-child { margin-bottom: 0; }

.group { margin-bottom: var(--s7); }
.group-head {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.group-head h2 { margin: 0; font-size: var(--t-title); letter-spacing: -0.01em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s3);
}

.item {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.item:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
/* 준비중은 링크가 아니다 — 눌러서 404 를 보는 것보다 안 눌리는 편이 낫다 */
.item.off { opacity: 0.62; cursor: default; }

.item-head { display: flex; align-items: flex-start; gap: var(--s2); }
.item-head h3 { margin: 0; font-size: var(--t-subtitle); font-weight: 650; letter-spacing: -0.01em; flex: 1; }
.item p { margin: 0; font-size: var(--t-small); color: var(--ink-2); }

.item-foot {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.path {
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tag {
  font-size: 11px;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: var(--r1);
  padding: 1px 6px;
}

.foot { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); }
.foot code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: var(--r1);
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .top-t span { display: none; }
}
