@font-face{
  font-family: 'Pretendard';
  src: url('fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* wf.css — 2026 홍익시디 졸전 아카이브 와이어프레임 공통
   무채색만. 구조 라벨(#2b5fd9)을 제외한 모든 색은 회색 계열. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a1a;
  --gray: #8a8a8a;
  --line: #d9d9d9;
  --ph: #e5e5e5;
  --accent: #2b5fd9;
  --menu-h: 52px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: Pretendard, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 구조 라벨 : 파란 8px, 각 영역 옆에 ── */
/* ── 메뉴 바 : 고정, 현재 위치는 밑줄 ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--menu-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--ink);
  z-index: 100;
}
.brand { font-weight: 700; letter-spacing: 0.01em; }
.brand small { font-weight: 400; color: var(--gray); margin-left: 10px; }

.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray);
  padding-bottom: 3px;
}
.main-nav a.active { color: var(--ink); }

/* 밑줄로만 현재 위치 표시 */
.main-nav a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--ink);
}

main {
  padding: calc(var(--menu-h) + 28px) 28px 72px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── 인덱스 툴바 ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.search { min-width: 220px; }
.search input {
  width: 100%;
  padding: 7px 10px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.search input:focus { outline: none; border-color: var(--ink); }
.sort select {
  padding: 7px 8px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-left: auto;
}
.view-toggle button {
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  background: #fff;
  border: 0;
  cursor: pointer;
  color: var(--gray);
}
.view-toggle button.on { background: #1a1a1a; color: #fff; }
.result-count { color: var(--gray); font-size: 13px; }

/* ── 목록 보기 : 한 줄 = 작품 하나 ── */
.row {
  display: grid;
  grid-template-columns: 72px 1fr 3fr 64px;
  gap: 14px;
  align-items: baseline;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.row .no { color: var(--gray); }
.row .cls { text-align: right; color: var(--gray); }
.row .people { color: var(--gray); font-size: 13px; }
.row:hover { background: #f6f6f6; }

/* ── 격자 보기 : 이미지 우선, 열 수 2~5 ── */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 16px;
  padding-top: 22px;
}
.card .ph { aspect-ratio: 3 / 4; margin-bottom: 8px; }
.card .t { font-size: 14px; line-height: 1.35; }
.card .p { color: var(--gray); font-size: 13px; }

/* ── 이미지 자리 : 회색 박스 + 대각선 1개 ── */
.ph {
  background: var(--ph);
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent 49.2%,
    #b7b7b7 49.2%,
    #b7b7b7 50.8%,
    transparent 50.8%
  );
}

/* 비율별 이미지 자리 */
.ph.square { aspect-ratio: 1 / 1; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.tall { aspect-ratio: 3 / 4; }

/* ── 작품 상세 ── */
.work-head { max-width: 760px; }
.work-title { font-size: 30px; line-height: 1.3; }
.work-title-en { color: var(--gray); font-size: 15px; margin-top: 6px; }
.work-people { margin-top: 14px; }
.work-desc { margin-top: 20px; max-width: 64ch; line-height: 1.9; }

.gallery { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.gallery .ph { width: 100%; }
.gallery .ph:nth-of-type(even) { aspect-ratio: 4 / 3; }
.gallery .ph:nth-of-type(odd) { aspect-ratio: 3 / 4; }

.video { margin-top: 24px; }
.link-row {
  margin-top: 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--gray);
  font-size: 13px;
}
.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.prevnext a { max-width: 45%; }
.prevnext .lbl { color: var(--gray); font-size: 12px; display: block; }

/* ── 반 목록 ── */
.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.class-tabs a { color: var(--gray); padding-bottom: 2px; }
.class-tabs a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ── 정적 페이지 ── */
.static { max-width: 720px; }
.static h1 { font-size: 24px; line-height: 1.3; margin-bottom: 20px; }
.static p { margin-bottom: 14px; line-height: 1.9; }
.static .note {
  color: var(--gray);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table th { font-weight: 600; border-bottom-color: var(--ink); }

/* ── 모바일 390 : 메뉴는 아래 고정 바 ── */
@media (max-width: 620px) {
  main { padding-left: 16px; padding-right: 16px; }
  .site-header { padding: 0 16px; }

  /* 제목만 남기고 메뉴를 아래 고정 바로 */
  .site-header {
    border-bottom: 0;
  }
  .site-header .main-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid var(--ink);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
  }
  .site-header .main-nav ul { justify-content: space-between; gap: 0; }
  .site-header .main-nav a { font-size: 12px; }
  main { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  .brand small { display: none; }

  /* 격자 2열 */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }

  /* 목록 : 참여자 숨김 */
  .row { grid-template-columns: 56px 1fr 52px; }
  .row .people { display: none; }

  .work-title { font-size: 24px; }
  .toolbar { gap: 10px; }
  .view-toggle { margin-left: 0; }
}