/* 사이트 공용 스타일: 초기화, 상단 바, About/Contact 블록, 플레이어 */
/* 글꼴: Inter(무료, Google Fonts에서 불러옴). 사이트에서 쓰는 굵기 3개만. @import는 파일 맨 위에 있어야 함 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
:root {
  --bg: #0c0c0d; --fg: #f3f2ee; --mute: #8d8c87; --line: #26262a;
  --pad: clamp(16px, 4vw, 48px);
  /* Inter를 못 불러오면 기기 기본 글꼴로 대체 */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: var(--sans); /* 작은 라벨(Featured, 크레딧 항목 이름 등)도 Inter. 예전에는 고정폭 글꼴이었음 */
  color-scheme: dark;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body, h1, h2, h3, p, ol, figure { margin: 0 }
ol { padding: 0; list-style: none }
body {
  background: var(--bg); color: var(--fg);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
a:hover { opacity: .7 }
img, video, iframe { display: block; border: 0 }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
}
.top nav { display: flex; gap: 24px; font-size: 14px; color: var(--mute) }
.top a { padding: 11px 0 } /* 누르는 영역 높이 44px */
/* 썸네일을 만들 수 없는 작업(인식 못 한 주소 + thumb 미지정)의 빈 자리 */
.nothumb { display: block; background: #222 }

.block {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px;
  padding: clamp(64px, 10vw, 140px) var(--pad) 0; scroll-margin-top: 20px;
}
.block h2 { font-size: 14px; font-weight: 400; color: var(--mute) }
.block p, .block .big {
  font-size: clamp(20px, 2.4vw, 32px); line-height: 1.4; letter-spacing: -.01em;
  max-width: 28em; white-space: pre-line;
}
.block .big { display: inline-block; padding: 8px 0 } /* 이메일: 누르는 영역 높이 44px 이상 */
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; color: var(--mute) }
.links a { padding: 10px 0 } /* 누르는 영역 높이 44px 이상 */
/* 로고 링크(core.js ICONS): 로고는 원본 그대로(테두리·배경을 두르지 않음), 누르는 영역만 44px */
.links a.icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 }
.links a.icon img { height: 26px; width: auto }
.copy span { display: inline-block } /* 문장 단위로 줄바꿈 */
.copy { padding: clamp(64px, 10vw, 140px) var(--pad) 80px; font-size: 13px; color: var(--mute) }
@media (max-width: 700px) { .block { grid-template-columns: 1fr } }

/* 크레딧 표(core.js credits): 소속·내 역할·제작 방식·연도.
   왼쪽 라벨, 오른쪽 값의 2열 표 → 문구 길이와 상관없이 각 칸이 항상 같은 자리에 옴 */
.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; align-items: baseline; margin: 14px 0 0 }
.credits:empty { display: none }
.credits div { display: contents }
.credits dt { font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .65 }
.credits dd { margin: 0; font-size: 15px; line-height: 1.4 }

/* ── 플레이어: 전체 화면 스크롤 영역. 내용이 길면(이미지 작업, 긴 설명) 안에서 스크롤 ── */
dialog {
  border: 0; padding: 0; background: none; color: #f3f2ee; font: 16px/1.6 var(--sans);
  width: 100%; height: 100%; max-width: none; max-height: none;
  overflow-y: auto; overscroll-behavior: contain;
}
dialog[open] { display: grid }
dialog::backdrop { background: #0c0c0d } /* 불투명: 뒤 페이지 글자가 비쳐 겹쳐 보이지 않게 */
/* 영상 높이는 화면의 58%: 제목과 크레딧 표가 스크롤 없이 영상 아래에 같이 보임 */
.inner { margin: auto; width: min(92vw, calc(58vh * 16 / 9)); padding: 64px 0 48px }
.frame { aspect-ratio: 16 / 9; background: #000 }
.frame > * { width: 100%; height: 100% }
/* 인식 못 한 영상 주소: 플레이어 자리에 새 탭 링크 */
.openlink { display: grid; place-items: center; background: #161618; color: #f3f2ee; font-size: 18px; text-decoration: underline; text-underline-offset: 5px }
/* 이미지 작업: 제목·설명 먼저, 이미지 아래 */
dialog.gallery .inner { width: min(92vw, 1100px); display: flex; flex-direction: column }
dialog.gallery .frame { order: 1; margin-top: 24px; aspect-ratio: auto; background: none; display: grid; gap: 16px }
dialog.gallery .frame > * { height: auto; border-radius: 6px }
dialog.gallery .head { margin-top: 0 }
dialog.gallery .x { background: rgba(12, 12, 13, .8) }
/* 닫기 버튼: 밝은 이미지 위에서도 보이도록 어두운 원형 바탕 */
.x {
  all: unset; cursor: pointer; position: fixed; top: 10px; right: 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 12, 13, .7); font-size: 28px; line-height: 1;
}
.x:focus-visible, .cue:focus-visible, .pager button:focus-visible { outline: 2px solid #f3f2ee; outline-offset: 2px }
/* 이전·다음 작업(왼쪽 위): ← 03 / 23 → */
.pager { position: fixed; top: 10px; left: 12px; z-index: 1; display: flex; align-items: center; gap: 6px; font: 12px var(--mono); letter-spacing: .06em; color: #c9c8c3 }
.pager[hidden] { display: none }
.pager button { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 12, 13, .7); font-size: 18px }
.pager button:hover { background: #26262a }
dialog .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 16px }
dialog h3 { font: 500 20px/1.35 var(--sans) }
/* 과정 이미지 안내(영상 작업에 이미지가 딸려 있을 때만) */
.cue { all: unset; cursor: pointer; padding: 6px 0; font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #c9c8c3; border-bottom: 1px solid currentColor }
.cue[hidden] { display: none }
dialog p { color: #9a9994; margin-top: 14px; max-width: 60ch; white-space: pre-line }
dialog p:empty { display: none }
/* 영상 아래 과정 이미지: 한 줄에 한 장씩 크게 */
.stills { display: grid; gap: 16px; margin-top: 40px; scroll-margin-top: 24px }
.stills:empty { display: none }
.stills::before { content: "Process"; font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #9a9994 }
.stills img { width: 100%; height: auto; border-radius: 6px }

/* 소리 없는 미리보기(core.js preview): 준비되면 .show가 붙어 나타남 */
.pv { opacity: 0; transition: opacity .5s; pointer-events: none }
.pv.show { opacity: 1 }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important; animation: none !important }
}
