/*
Theme Name: devpz
Theme URI: https://www.devpz.com
Author: devpz
Description: Developer Primary Zone — 개발자 개인 소개 · 프로젝트 · 커뮤니티 테마 (다크)
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: devpz
*/

/* =========================================================
   1. 디자인 토큰
   ========================================================= */
:root {
	--bg: #0b0e14;
	--bg-2: #10151d;
	--bg-3: #161c26;
	--line: #222a36;
	--line-2: #2e3746;
	--text: #e6edf3;
	--text-2: #b4bfcc;
	--muted: #7d8896;
	--accent: #3ddc97;
	--accent-ink: #04140d;
	--accent-soft: rgba(61, 220, 151, .12);
	--blue: #7aa2ff;
	--warn: #ffb86b;

	--f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--f-display: "Space Grotesk", "Pretendard Variable", Pretendard, sans-serif;

	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 48px);
	--radius: 14px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .1, 1);
}

/* =========================================================
   2. 기본
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-sans);
	font-size: 17px;
	line-height: 1.7;
	letter-spacing: -.01em;
	word-break: keep-all;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.entry a, .p-info dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre, samp { font-family: var(--f-mono); font-size: .9em; }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 999; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.mono { font-family: var(--f-mono); }
.kicker {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

/* 은은한 배경 그리드 + 노이즈 */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

/* =========================================================
   3. 버튼 / 칩
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2);
	font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: .02em;
	color: var(--text); background: transparent; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
	text-decoration: none !important;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: transparent; color: var(--accent); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
	font-family: var(--f-mono); font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status--live::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2s infinite; }
.status--beta::before { background: var(--blue); }
.status--dev::before { background: var(--warn); }
.status--suspended::before { background: #ff6b6b; }
.p-notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--muted); border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.p-notice.status--suspended { border-left-color: #ff6b6b; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,151,0); } }

/* =========================================================
   4. 헤더
   ========================================================= */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
	display: flex; align-items: center;
	transition: background .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(11, 14, 20, .78);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.logo { font-family: var(--f-mono); font-weight: 700; font-size: 20px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 2px; }
.logo__prompt { color: var(--accent); margin-right: 8px; }
.logo__caret { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); margin-left: 3px; animation: blink 1.1s steps(1) infinite; transform: translateY(2px); }
@keyframes blink { 50% { opacity: 0; } }

.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav-primary a {
	display: block; padding: 8px 14px; border-radius: 999px;
	font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--text-2);
}
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current_page_item > a, .nav-primary .current-menu-ancestor > a { color: var(--text); background: var(--bg-3); }
.nav-primary .current-menu-item > a::before, .nav-primary .current_page_item > a::before { content: "● "; color: var(--accent); font-size: 9px; vertical-align: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 16px; font-size: 12px; }

.menu-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
	background: transparent; color: var(--text); cursor: pointer; position: relative;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
	position: fixed; inset: 0; z-index: 40; background: var(--bg);
	padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
	display: flex; flex-direction: column; justify-content: space-between;
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-nav li { counter-increment: m; border-bottom: 1px solid var(--line); }
.mobile-nav a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-family: var(--f-display); font-size: clamp(32px, 9vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.mobile-nav a::before { content: "0" counter(m); font-family: var(--f-mono); font-size: 13px; color: var(--accent); font-weight: 400; letter-spacing: 0; }
.mobile-nav__foot { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.nav-open { overflow: hidden; }

@media (max-width: 900px) {
	.nav-primary, .header-actions .btn { display: none; }
	.menu-toggle { display: inline-block; }
}

/* =========================================================
   5. 공통 섹션
   ========================================================= */
.site-main { min-height: 60vh; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
	margin: 14px 0 0; font-family: var(--f-display); font-weight: 700;
	font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -.04em;
}
.section-title sup { font-family: var(--f-mono); font-size: .22em; letter-spacing: 0; color: var(--accent); vertical-align: top; margin-left: .3em; font-weight: 500; }
.section-desc { max-width: 460px; color: var(--text-2); margin: 0; }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   6. 홈 - 히어로
   ========================================================= */
.hero {
	min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
	padding: calc(var(--header-h) + 28px) 0 32px; position: relative; overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; width: 60vw; height: 60vw; left: 50%; top: 40%; transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(61,220,151,.14), transparent 60%); filter: blur(20px); z-index: -1; pointer-events: none;
}
.hero__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.hero__top b { display: block; color: var(--text); font-weight: 500; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.hero__top > div:nth-child(2) { text-align: center; }
.hero__top > div:nth-child(3) { text-align: right; }

.hero__title {
	margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 2vw;
	font-family: var(--f-display); font-weight: 700; letter-spacing: -.055em; line-height: .85;
	font-size: clamp(44px, 11.5vw, 200px); white-space: nowrap;
}
.hero__title .dash { flex: 1; height: clamp(4px, .9vw, 12px); background: var(--text); position: relative; overflow: hidden; border-radius: 99px; min-width: 24px; }
.hero__title .dash::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--accent); animation: flow 2.6s var(--ease) infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.hero__title .r { color: transparent; -webkit-text-stroke: 2px var(--text); }

.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero__sub { max-width: 640px; margin: 0; font-size: clamp(18px, 2vw, 26px); line-height: 1.4; letter-spacing: -.02em; }
.hero__sub small { display: block; margin-top: 12px; font-size: 16px; color: var(--text-2); letter-spacing: -.01em; }
.hero__scroll { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--accent), transparent); animation: drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.terminal {
	margin: 40px 0; max-width: 620px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(16, 21, 29, .7);
	font-family: var(--f-mono); font-size: 14px; overflow: hidden; backdrop-filter: blur(6px);
}
.terminal__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal__body { padding: 16px 18px; min-height: 118px; color: var(--text-2); white-space: pre-wrap; }
.terminal__body .p { color: var(--accent); }
.terminal__body .ok { color: var(--accent); }
.terminal__body .c { display: inline-block; width: .55em; height: 1.1em; background: var(--text); vertical-align: -3px; animation: blink 1s steps(1) infinite; }

@media (max-width: 720px) {
	.hero__top { grid-template-columns: 1fr 1fr; }
	.hero__top > div:nth-child(2) { display: none; }
	.hero__bottom { grid-template-columns: 1fr; }
	.hero__scroll { display: none; }
	.hero__title .r { -webkit-text-stroke-width: 1px; }
}

/* =========================================================
   7. 홈 - 소개
   ========================================================= */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); }
.intro__label { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.intro__body { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.45; letter-spacing: -.03em; font-weight: 500; }
.intro__body p { margin: 0 0 .9em; }
.intro__body p:last-child { margin-bottom: 0; }
.intro__body strong, .intro__body mark { color: var(--accent); background: none; font-weight: 600; }
.intro__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; border-top: 1px solid var(--line); }
.intro__stats div { padding-top: 20px; }
.intro__stats b { display: block; font-family: var(--f-display); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.intro__stats span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 820px) {
	.intro { grid-template-columns: 1fr; }
	.intro__label { position: static; }
}

/* =========================================================
   8. 프로젝트 목록 (번호형)
   ========================================================= */
.p-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.p-row { border-bottom: 1px solid var(--line); position: relative; }
.p-row > a {
	display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1.4fr) 140px 48px; gap: 24px; align-items: center;
	padding: clamp(24px, 3vw, 40px) 0; color: var(--text); text-decoration: none; position: relative; z-index: 1;
}
.p-row::before {
	content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--row-accent, var(--accent)) 0, transparent 70%);
	opacity: 0; transform: scaleY(.6); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.p-row:hover::before { opacity: .09; transform: none; }
.p-row__num { font-family: var(--f-mono); color: var(--muted); font-size: 14px; }
.p-row__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; transition: transform .4s var(--ease), color .3s; }
.p-row__name small { display: block; margin-top: 10px; font-family: var(--f-sans); font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); }
.p-row:hover .p-row__name { transform: translateX(10px); color: var(--row-accent, var(--accent)); }
.p-row__desc { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.p-row__desc .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.p-row__arrow {
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
	transition: background .3s var(--ease), border-color .3s, transform .4s var(--ease), color .3s;
}
.p-row:hover .p-row__arrow { background: var(--row-accent, var(--accent)); border-color: transparent; color: var(--accent-ink); transform: rotate(-45deg); }
@media (max-width: 900px) {
	.p-row > a { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 14px; }
	.p-row__desc { grid-column: 2 / 3; grid-row: 2; }
	.p-row__status { grid-column: 2 / 3; grid-row: 3; }
	.p-row__arrow { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
}

/* 마우스를 따라다니는 프로젝트 미리보기 */
.hover-preview {
	position: fixed; left: 0; top: 0; z-index: 30; width: 320px; aspect-ratio: 3 / 2; pointer-events: none;
	border-radius: var(--radius); overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg);
	transition: opacity .3s var(--ease), transform .4s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hover-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.hover-preview .p-visual { height: 100%; }
@media (hover: none), (max-width: 900px) { .hover-preview { display: none; } }

/* 프로젝트 비주얼 (이미지가 없을 때 생성되는 그래픽) */
.p-visual {
	position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: inherit;
	background:
		radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
		radial-gradient(circle at 10% 100%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 50%),
		var(--bg-3);
	display: grid; place-items: center; isolation: isolate;
}
.p-visual.has-img { display: block; background: var(--bg-3); }
.p-visual.has-img img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; }
.p-visual__grid {
	position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
	background-size: 28px 28px;
}
.p-visual__mono { font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 9vw, 120px); letter-spacing: -.06em; line-height: 1; color: #fff; mix-blend-mode: overlay; opacity: .95; }
.p-visual__host { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 6px; }

/* =========================================================
   9. 흐르는 키워드 띠
   ========================================================= */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__item {
	display: flex; align-items: center; gap: 28px; padding-right: 28px;
	font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 6vw, 84px); letter-spacing: -.04em; line-height: 1; white-space: nowrap;
}
.marquee__item em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--text-2); }
.marquee__item i { width: .4em; height: .4em; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* =========================================================
   10. 가치 / 일하는 방식
   ========================================================= */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: 32px 28px 40px 0; border-right: 1px solid var(--line); counter-increment: v; }
.value + .value { padding-left: 28px; }
.value:last-child { border-right: 0; }
.value__en { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; display: flex; justify-content: space-between; }
.value__en::after { content: "0" counter(v); color: var(--muted); }
.values { counter-reset: v; }
.value h3 { margin: 48px 0 14px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.3; }
.value p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 960px) {
	.values { grid-template-columns: 1fr 1fr; }
	.value:nth-child(2) { border-right: 0; }
	.value:nth-child(3) { padding-left: 0; }
	.value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.values { grid-template-columns: 1fr; }
	.value, .value + .value { padding: 28px 0 32px; border-right: 0; }
	.value + .value { border-top: 1px solid var(--line); }
	.value h3 { margin-top: 24px; }
}

/* =========================================================
   11. 키네틱 타이포 (스크롤하면 글자가 켜짐)
   ========================================================= */
.kinetic-wrap { height: 220vh; position: relative; }
.kinetic-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.kinetic {
	margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; line-height: .98;
	font-size: clamp(48px, 10vw, 168px);
}
.kinetic .ch { color: var(--line-2); transition: color .25s linear; }
.kinetic .ch.on { color: var(--text); }
.kinetic .ch.hi { color: var(--accent); }
.no-js .kinetic-wrap, .reduced .kinetic-wrap { height: auto; }
.no-js .kinetic-sticky, .reduced .kinetic-sticky { position: static; height: auto; padding: 120px 0; }
.reduced .kinetic .ch { color: var(--text); }

/* =========================================================
   12. 커뮤니티
   ========================================================= */
.community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); }
.boards { display: grid; gap: 12px; align-content: start; }
.board {
	display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--bg-2); text-decoration: none !important; transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.board:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--bg-3); color: var(--text); }
.board b { font-size: 18px; letter-spacing: -.02em; }
.board span { grid-column: 1; color: var(--muted); font-size: 14px; }
.board .arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--accent); font-family: var(--f-mono); }

.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topics li { border-bottom: 1px solid var(--line); }
.topics a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 4px; text-decoration: none !important; }
.topics a:hover .topics__title { color: var(--accent); }
.topics__forum { font-family: var(--f-mono); font-size: 12px; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.topics__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); transition: color .2s; }
.topics__title em { font-style: normal; color: var(--muted); font-family: var(--f-mono); font-size: 13px; margin-left: 6px; }
.topics__meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.topics-empty { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; font-family: var(--f-mono); font-size: 14px; }
@media (max-width: 900px) {
	.community { grid-template-columns: 1fr; }
	.topics a { grid-template-columns: minmax(0, 1fr) auto; }
	.topics__forum { display: none; }
}

/* =========================================================
   13. CTA
   ========================================================= */
.cta { padding: clamp(100px, 14vw, 200px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
	content: ""; position: absolute; inset: auto 0 -40% 0; height: 80%;
	background: radial-gradient(ellipse at 50% 100%, rgba(61,220,151,.22), transparent 65%); pointer-events: none;
}
.cta__title {
	margin: 24px 0 28px; font-family: var(--f-display); font-weight: 700; letter-spacing: -.055em; line-height: .9;
	font-size: clamp(56px, 12vw, 200px); white-space: pre-line;
}
.cta__title span { color: var(--accent); }
.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 40px; }
.cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   14. 서브 페이지 헤더
   ========================================================= */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero__title { margin: 16px 0 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-size: clamp(44px, 8vw, 120px); }
.page-hero__title sup { font-family: var(--f-mono); font-size: .2em; color: var(--accent); vertical-align: top; letter-spacing: 0; margin-left: .3em; font-weight: 500; }
.page-hero__desc { margin: 24px 0 0; max-width: 640px; color: var(--text-2); font-size: 18px; }
.page-hero__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

/* 본문 (블록 에디터 콘텐츠) */
.entry { padding: clamp(48px, 7vw, 96px) 0; }
.entry > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry > .alignwide { max-width: 1100px; }
.entry > .alignfull { max-width: none; }
.entry h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.25; margin: 2.2em auto .7em; }
.entry h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; margin: 1.8em auto .6em; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry p, .entry ul, .entry ol { color: var(--text-2); }
.entry blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--text); font-size: 1.1em; }
.entry pre, .entry .wp-block-code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; overflow-x: auto; font-size: 14px; color: var(--text); }
.entry :not(pre) > code { background: var(--bg-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--accent); }
.entry hr, .entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3em auto; }
.entry img { border-radius: 10px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.entry .wp-block-button__link { background: var(--accent); color: var(--accent-ink); border-radius: 999px; text-decoration: none; font-family: var(--f-mono); font-size: 14px; }

/* =========================================================
   15. 프로젝트 아카이브 (카드)
   ========================================================= */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 32px; }
.filters button { font: inherit; font-family: var(--f-mono); font-size: 13px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; }
.filters button[aria-pressed="true"], .filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent-soft); }

.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(80px, 10vw, 140px); }
.p-card { display: block; text-decoration: none !important; color: var(--text); }
.p-card[hidden] { display: none; }
.p-card .p-visual { border-radius: var(--radius); border: 1px solid var(--line); transition: transform .6s var(--ease); }
.p-card:hover .p-visual { transform: scale(.985); }
.p-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.p-card__num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.p-card h2 { margin: 6px 0 6px; font-family: var(--f-display); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.1; transition: color .3s; }
.p-card:hover h2 { color: var(--accent); }
.p-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.p-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
@media (max-width: 720px) { .p-grid { grid-template-columns: 1fr; } }

/* 프로젝트 상세 */
.p-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.p-detail .entry { padding: 0; }
.p-detail .entry > * { max-width: none; }
.p-detail .p-visual { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 48px; }
.p-detail .p-visual.has-img { aspect-ratio: auto; }
.p-detail .p-visual.has-img img { height: auto; aspect-ratio: auto; }
.p-info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 8px 24px 24px; }
.p-info dl { margin: 0; }
.p-info div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.p-info dt { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; padding-top: 3px; }
.p-info dd { margin: 0; text-align: right; }
.p-info .btn { width: 100%; justify-content: center; margin-top: 24px; }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.p-nav a { padding: 40px 0; text-decoration: none !important; }
.p-nav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.p-nav span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.p-nav b { display: block; font-family: var(--f-display); font-size: clamp(22px, 3vw, 36px); letter-spacing: -.03em; margin-top: 6px; }
@media (max-width: 900px) {
	.p-detail { grid-template-columns: 1fr; }
	.p-info { position: static; order: -1; }
}

/* =========================================================
   16. 블로그(개발 노트)
   ========================================================= */
.posts { list-style: none; margin: 0; padding: 0 0 clamp(80px, 10vw, 140px); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; padding: 32px 0; align-items: baseline; text-decoration: none !important; }
.posts time { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.posts h2 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.025em; line-height: 1.35; transition: color .2s; }
.posts p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.posts a:hover h2 { color: var(--accent); }
.posts .arrow { font-family: var(--f-mono); color: var(--accent); }
@media (max-width: 720px) { .posts a { grid-template-columns: 1fr; gap: 6px; } .posts .arrow { display: none; } }
.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 100px; font-family: var(--f-mono); }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { border-color: var(--accent); color: var(--accent); }
.empty { padding: 80px 0 140px; color: var(--muted); font-family: var(--f-mono); }

/* 댓글 */
.comments { max-width: 760px; margin: 0 auto; padding-bottom: 100px; }
.comments h2 { font-size: 22px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--line); padding: 20px 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-meta .avatar { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* =========================================================
   17. 폼 공통
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
	width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px;
	padding: 12px 14px; font: inherit; font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="submit"], button[type="submit"], .button {
	background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 12px 22px;
	font-family: var(--f-mono); font-size: 14px; font-weight: 500; cursor: pointer;
}

/* =========================================================
   18. 게시판 (Asgaros Forum 다크 보정)
   ========================================================= */
.is-forum .entry > * { max-width: none; }
.is-forum .entry { padding-top: 40px; }
#af-wrapper { font-family: var(--f-sans) !important; font-size: 15px !important; color: var(--text); }
#af-wrapper a { text-decoration: none; }
#af-wrapper .title-element, #af-wrapper .title-element-dark { border-radius: 10px 10px 0 0; font-family: var(--f-mono); letter-spacing: .04em; }
#af-wrapper .content-container, #af-wrapper .forum, #af-wrapper .topic, #af-wrapper .post-element { border-color: var(--line) !important; }
#af-wrapper #forum-header { border-radius: 12px; overflow: hidden; }
#af-wrapper #forum-navigation a { font-family: var(--f-mono); font-size: 13px; }
#af-wrapper .forum-title, #af-wrapper .topic-name a { font-weight: 600; }
#af-wrapper input[type="text"], #af-wrapper input[type="search"], #af-wrapper textarea { background: var(--bg-2) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
#af-wrapper .button-normal, #af-wrapper .button-neutral, #af-wrapper .button-red, #af-wrapper input[type="submit"] { border-radius: 999px !important; font-family: var(--f-mono); }
#af-wrapper .post-message { color: var(--text-2); line-height: 1.75; }
#af-wrapper .post-message pre, #af-wrapper .post-message code { background: var(--bg-3); color: var(--accent); border-radius: 6px; }
#af-wrapper .forum-stats, #af-wrapper .forum-poster { color: var(--muted); }
#af-wrapper #forum-breadcrumbs { font-family: var(--f-mono); font-size: 13px; }
#af-wrapper .wp-editor-container { border-color: var(--line-2) !important; }
#af-wrapper .avatar { border-radius: 50%; }

/* =========================================================
   19. 푸터
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 16px 0 0; }
.footer-col h4 { margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-big {
	margin: 72px 0 24px; font-family: var(--f-display); font-weight: 700; letter-spacing: -.06em; line-height: .8;
	font-size: clamp(80px, 23vw, 360px); color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; text-align: center;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--line-2); background: rgba(16,21,29,.85); color: var(--text); cursor: pointer;
	display: grid; place-items: center; font-family: var(--f-mono); opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .3s, transform .3s var(--ease), visibility .3s, border-color .3s;
	backdrop-filter: blur(8px);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { position: absolute; inset: -1px; width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 145; stroke-dashoffset: var(--progress-offset, 145); }

/* 404 */
.notfound { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.notfound h1 { font-family: var(--f-display); font-size: clamp(100px, 24vw, 320px); line-height: .85; letter-spacing: -.06em; margin: 0; }

/* 움직임 최소화 설정 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
