@charset "UTF-8";

/*
	index.html 전용 스타일 - "ON AIR desk" 컨셉
	책상을 찍는 카메라 화면 + 키보드 노란 키캡 포인트
*/

:root {
	--ink: #0d1013;          /* 밤 책상 배경 */
	--ink-2: #151a1f;        /* 패널 배경 */
	--paper: #ebe7df;        /* 본문 밝은 글자 */
	--mute: #8b939b;         /* 보조 글자 */
	--accent: #f5c542;       /* 키보드 노란 키캡 포인트 */
	--rec: #ff3b30;          /* REC 표시 전용 */
	--line: rgba(235, 231, 223, 0.12);

	--f-display: "Archivo", "Noto Sans KR", sans-serif;
	--f-body: "Noto Sans KR", -apple-system, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

	--gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	word-break: keep-all;
	overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.mono { font-family: var(--f-mono); letter-spacing: 0.02em; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ---------- ON AIR 히어로 ---------- */

.onair {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	padding: calc(var(--gutter) + 8px) calc(var(--gutter) + 8px);
	overflow: hidden;
	isolation: isolate;
}

.onair-media {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* 영상이 뜨기 전/멈췄을 때 보여줄 정지 화면 */
	background: #000 url(../img/main/studio-desk.jpg) center / cover no-repeat;
}

.onair-video {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	pointer-events: none;
}

/* 터치/클릭이 영상으로 가지 않게 (일시정지 표시 방지) */
.onair-video iframe { pointer-events: none; }

.onair.is-playing .onair-video { opacity: 1; }

/* 16:9 영상을 화면 전체에 꽉 채우기 */
.onair-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.78vh;
	transform: translate(-50%, -50%);
	border: 0;
}

.onair-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(13, 16, 19, 0.85) 0%, rgba(13, 16, 19, 0.6) 45%, rgba(13, 16, 19, 0.18) 100%),
		linear-gradient(0deg, var(--ink) 0%, rgba(13, 16, 19, 0) 30%);
}

/* 뷰파인더 모서리 */
.vf-corner {
	position: absolute;
	width: 28px;
	height: 28px;
	border: 0 solid rgba(235, 231, 223, 0.55);
	pointer-events: none;
}

.vf-tl { top: var(--gutter); left: var(--gutter); border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: var(--gutter); right: var(--gutter); border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: var(--gutter); left: var(--gutter); border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: var(--gutter); right: var(--gutter); border-bottom-width: 2px; border-right-width: 2px; }

/* Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 12px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--f-display);
	font-size: 19px;
	font-weight: 500;
}

/* 노란 키캡 로고 (마우스를 올리면 눌림) */
.brand-key {
	position: relative;
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 9px;
	background: #c99a1c;
	box-shadow: 0 3px 0 #8a6a12, 0 6px 14px rgba(0, 0, 0, 0.35);
	transform: rotate(-6deg);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-key-top {
	position: absolute;
	top: 2px;
	left: 3px;
	right: 3px;
	bottom: 5px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: var(--accent);
	color: var(--ink);
	font-family: var(--f-display);
	font-variation-settings: "wdth" 125;
	font-weight: 900;
	font-size: 19px;
	line-height: 1;
}

.brand:hover .brand-key,
.brand:focus-visible .brand-key {
	transform: rotate(0deg) translateY(2px);
	box-shadow: 0 1px 0 #8a6a12, 0 3px 8px rgba(0, 0, 0, 0.35);
}

.brand-text b { font-weight: 800; }

.site-menu {
	display: flex;
	gap: 4px;
}

.site-menu a {
	padding: 6px 12px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	color: rgba(235, 231, 223, 0.75);
	transition: color 0.2s ease, background 0.2s ease;
}

.site-menu a:hover { color: var(--paper); background: rgba(235, 231, 223, 0.08); }

.site-menu a.is-current {
	color: var(--paper);
	box-shadow: inset 0 -2px 0 var(--accent);
	border-radius: 0;
}

/* REC 표시줄 */
.rec-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 12px 0;
	font-size: 14px;
	color: var(--accent);
}

.rec-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rec);
	animation: rec-blink 1.6s steps(1) infinite;
}

.rec-sep { color: var(--mute); }

@keyframes rec-blink { 50% { opacity: 0.15; } }

/* 이름 영역 */
.onair-copy {
	margin: auto 0;
	padding: 48px 12px;
	max-width: 900px;
}

.eyebrow {
	margin: 0 0 14px;
	font-size: 15px;
	color: var(--accent);
	text-transform: uppercase;
}

.display-name {
	margin: 0;
	font-family: var(--f-display);
	font-stretch: 125%;
	font-variation-settings: "wdth" 125;
	font-weight: 800;
	font-size: clamp(52px, 10vw, 150px);
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.nm-outline {
	display: block;
	letter-spacing: 0.01em;
	color: transparent;
	-webkit-text-stroke: 2px var(--paper);
	paint-order: stroke fill;
}

.nm-solid {
	color: var(--accent);
}

.nm-caret {
	display: inline-block;
	width: 0.14em;
	height: 0.74em;
	margin-left: 0.12em;
	vertical-align: -0.02em;
	background: var(--accent);
	animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

/* 글자가 한 자씩 찍히는 효과 (home.js가 글자를 span.ch로 나눔) */
.display-name .ch {
	opacity: 0;
	animation: ch-in 0.01s linear forwards;
	animation-delay: calc(350ms + var(--i) * 75ms);
}

@keyframes ch-in { to { opacity: 1; } }

.lead {
	margin: 26px 0 0;
	font-size: clamp(18px, 2.2vw, 23px);
	font-weight: 500;
	color: rgba(235, 231, 223, 0.86);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: var(--accent); }

.btn-line { border: 1px solid rgba(235, 231, 223, 0.35); background: rgba(13, 16, 19, 0.35); }
.btn-line:hover { border-color: var(--paper); }

/* 재생 컨트롤 */
.now-playing {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding: 0 12px 4px;
}

.np-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	min-width: 0;
}

.np-label { color: var(--mute); font-size: 12px; }

.np-title {
	color: var(--accent);
	text-decoration: none;
}

.np-title:hover { text-decoration: underline; }

/* ---------- 본문 공통 ---------- */

.desk {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.block { padding: 88px 0 0; }

.block-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.block-title {
	margin: 0;
	font-family: var(--f-display);
	font-variation-settings: "wdth" 115;
	font-weight: 800;
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.1;
	text-transform: uppercase;
}

.block-note {
	margin: 0;
	color: var(--mute);
	font-size: 16px;
}

/* 라인 아이콘 (섹션 제목, 라벨) */
.ico {
	flex: none;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.block-title {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.block-title .ico { width: 0.78em; height: 0.78em; color: var(--accent); }

/* ---------- On the Desk (프로젝트 리스트) ---------- */

.projects {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.project {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 22px;
	padding: 22px 12px;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	transition: background 0.2s ease;
}

a.project:hover { background: rgba(235, 231, 223, 0.04); }

.project-icon {
	width: 52px;
	height: 52px;
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	object-fit: contain;
}

.project-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.project-name {
	font-family: var(--f-display);
	font-variation-settings: "wdth" 110;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: var(--paper);
}

a.project:hover .project-name { color: var(--accent); }

.project-desc {
	color: rgba(235, 231, 223, 0.8);
	font-size: 16.5px;
}

.project-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.project-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--accent);
}

.project-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34c759;
	box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}

.project-year { color: var(--mute); font-size: 14px; }

/* ---------- What I Do ---------- */

.about-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	align-items: start;
}

.portrait {
	margin: 0;
	position: sticky;
	top: 32px;
}

.portrait img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 10px;
	filter: grayscale(0.15);
}

.about-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px 40px;
}

.about-item h3 {
	margin: 0 0 8px;
	font-family: var(--f-display);
	font-variation-settings: "wdth" 105;
	font-weight: 700;
	font-size: 22px;
}

.about-item p {
	margin: 0;
	color: rgba(235, 231, 223, 0.8);
	font-size: 17px;
}

.about-item a {
	color: var(--accent);
	text-underline-offset: 3px;
}

.about-item em {
	font-style: normal;
	color: var(--paper);
	font-weight: 700;
	box-shadow: inset 0 -0.45em 0 rgba(245, 197, 66, 0.22);
}

/* ---------- Studio ---------- */

.tapes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tape {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
}

.tape-thumb {
	display: block;
	margin-bottom: 6px;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
}

.tape-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.tape:hover .tape-thumb img { transform: scale(1.04); }

.tape-meta { font-size: 12.5px; color: var(--accent); }

.tape-title { font-size: 17px; font-weight: 500; line-height: 1.45; }

.tape:hover .tape-title { text-decoration: underline; text-underline-offset: 3px; }

.more-link {
	display: inline-block;
	margin-top: 22px;
	color: var(--accent);
	font-size: 16px;
	text-underline-offset: 3px;
}

/* ---------- Log (경력/학력) ---------- */

.log-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 56px;
}

.log-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--mute);
}

.log {
	margin: 0;
	padding: 0;
	list-style: none;
}

.log li {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 0 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.log-year {
	grid-row: span 2;
	padding-top: 3px;
	font-size: 14.5px;
	color: var(--accent);
}

.log-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 19px;
	font-weight: 700;
}

.log-label .ico { width: 18px; height: 18px; color: var(--accent); }

.log-sub { color: var(--mute); font-size: 16px; }

/* 연도만 있는 목록 (학력) */
.log.log-short li { grid-template-columns: 64px 1fr; }

/* ---------- Stack ---------- */

.stack {
	margin: 0;
	display: grid;
	gap: 0;
}

.stack > div {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 4px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.stack dt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--mute);
	padding-top: 8px;
	align-self: start;
}

.stack dt .ico { width: 18px; height: 18px; color: var(--accent); }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 6px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink-2);
	font-size: 15.5px;
	line-height: 1.4;
}

.chip img {
	width: 26px;
	height: 26px;
	padding: 3px;
	border-radius: 6px;
	background: #fff;
}

.chip-dot {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: rgba(245, 197, 66, 0.14);
	box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.35);
}

.stack dd {
	margin: 0;
	font-size: 16.5px;
	color: var(--paper);
}

/* ---------- Footer ---------- */

.site-footer {
	max-width: 1440px;
	margin: 110px auto 0;
	padding: 28px var(--gutter) 40px;
	border-top: 1px solid var(--line);
	color: var(--mute);
	font-size: 14px;
}

.site-footer p { margin: 4px 0 0; }

.footer-links { display: flex; gap: 18px; margin-bottom: 10px; }

.footer-links a { color: var(--paper); text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- 반응형 ---------- */

@media (max-width: 991px) {
	.about-grid { grid-template-columns: 1fr; gap: 32px; }
	.portrait { position: static; max-width: 220px; }

	.tapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.onair { padding: calc(var(--gutter) + 4px); }
	.vf-corner { width: 18px; height: 18px; }

	.site-header { flex-direction: column; align-items: flex-start; padding: 6px 8px; }
	.site-menu { margin-left: -12px; flex-wrap: wrap; }
	.site-menu a { font-size: 15px; padding: 6px 10px; }

	.rec-bar { margin: 10px 8px 0; font-size: 13px; flex-wrap: wrap; }
	.onair-copy { padding: 36px 8px; }
	.display-name { font-size: 11vw; }
	.nm-outline { -webkit-text-stroke-width: 1.5px; }
	.now-playing { padding: 0 8px 4px; }

	.onair-shade {
		background:
			linear-gradient(180deg, rgba(13, 16, 19, 0.45) 0%, rgba(13, 16, 19, 0.72) 60%, var(--ink) 100%);
	}

	.project { grid-template-columns: 44px minmax(0, 1fr); padding: 18px 4px; gap: 6px 16px; align-items: start; }
	.project-icon { width: 44px; height: 44px; padding: 7px; }
	.project-name { font-size: 21px; }
	.project-side { grid-column: 2; flex-direction: row; align-items: center; gap: 14px; }

	.about-list { grid-template-columns: 1fr; }

	.log-grid { grid-template-columns: 1fr; }
	.log li { grid-template-columns: 104px 1fr; gap: 0 14px; }

	.stack > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.rec-dot, .nm-caret { animation: none; }
	.display-name .ch { opacity: 1; animation: none; }
	.onair-video, .tape-thumb img, .btn, .site-menu a, .brand-key { transition: none; }
}
