/* developer.rustanvil.com — design v2 (GeneratePress 위에 덧씌움) */
:root {
	--rv-mono: "JetBrains Mono", "D2 coding", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--rv-nord-bg: #2E3440;
	--rv-frost: #88C0D0;
	--rv-green: #A3BE8C;
	--rv-yellow: #EBCB8B;
	--rv-ink: #0F172A;
}

/* 점 격자 배경 */
.rv2 { background-color: #F8FAFC; background-image: radial-gradient(#D7DEE8 1px, transparent 1px); background-size: 22px 22px; }

/* ===== 헤더: ~/Developer_ ===== */
.rv2 .site-header .main-title a::before { content: "~/"; color: var(--rv-frost); }
.rv2 .site-header .main-title a::after { content: "_"; color: var(--rv-green); margin-left: 2px; animation: rv-blink 1.1s steps(1) infinite; }
@keyframes rv-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rv2 .site-header .main-title a::after, .rv-cursor { animation: none !important; } }

/* 헤더만 넓게: 사이트명 왼쪽 · 메뉴 오른쪽 한 줄 */
.rv2 .site-header .inside-header { max-width: 1100px; align-items: center; }
.rv2 .site-header .site-branding, .rv2 .site-header .main-title { margin: 0; }
.rv2 .entry-title { font-weight: 700; letter-spacing: -0.02em; }

/* ===== 홈 히어로: 터미널 ===== */
.rv-hero--dv {
	padding: 40px 20px 8px;
	background: linear-gradient(180deg, #0F172A 0%, #0F172A 55%, transparent 55%);
}
.rv-term { max-width: 800px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--rv-nord-bg); box-shadow: 0 24px 50px rgba(2, 6, 23, .45), 0 0 0 1px rgba(255,255,255,.06); }
.rv-term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #3B4252; }
.rv-term__bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F56; }
.rv-term__bar i:nth-child(2) { background: #FFBD2E; }
.rv-term__bar i:nth-child(3) { background: #27C93F; }
.rv-term__bar span { margin-left: auto; margin-right: auto; padding-right: 52px; font: 12px/1 var(--rv-mono); color: #9AA5B8; }
.rv-term__body { padding: 20px 24px 22px; font: 14.5px/1.75 var(--rv-mono); color: #D8DEE9; }
.rv-term__body p { margin: 0; }
.rv-term__body .rv-p { color: var(--rv-green); margin-right: 8px; }
.rv-term__body .rv-out { color: #ECEFF4; margin-bottom: 10px; font-family: "Pretendard Variable", Pretendard, var(--rv-mono); }
.rv-term__body .rv-out b { color: var(--rv-frost); font-family: var(--rv-mono); }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rv-tags a { font-family: var(--rv-mono); color: var(--rv-yellow); text-decoration: none; }
.rv-tags a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rv-tags small { color: #7B88A1; margin-left: 2px; font-size: 12px; }
.rv-cursor { display: inline-block; width: 9px; height: 1.1em; vertical-align: -3px; background: #D8DEE9; animation: rv-blink 1.1s steps(1) infinite; }
@media (max-width: 640px) {
	.rv-hero--dv { padding: 24px 12px 4px; }
	.rv-term__body { padding: 16px; font-size: 13px; }
	.rv-term__bar span { display: none; }
}

/* ===== 목록: 카드 ===== */
.rv2 .site-main > article { margin-bottom: 18px; }
.rv2.blog .inside-article, .rv2.archive .inside-article, .rv2.search .inside-article {
	position: relative; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rv2.blog .inside-article, .rv2.archive .inside-article, .rv2.search .inside-article, .rv2.single .inside-article { padding: 28px 32px !important; }
@media (max-width: 768px) { .rv2.blog .inside-article, .rv2.archive .inside-article, .rv2.search .inside-article, .rv2.single .inside-article { padding: 20px 18px !important; } .rv2 .site-main > article { margin-left: 0; margin-right: 0; } }
.rv2.blog .inside-article:hover, .rv2.archive .inside-article:hover, .rv2.search .inside-article:hover { transform: translateY(-2px); border-color: #A5B4C8; box-shadow: 0 14px 30px rgba(15, 23, 42, .10); }
.rv2.one-container .site-content, .rv2 .site.grid-container, .rv2 .site-content .content-area { background: transparent !important; }
.rv2.one-container .site-content { padding: 0 !important; }
.rv2.one-container .site-main { margin: 0 !important; }
.rv2.blog .site-main, .rv2.archive .site-main, .rv2.search .site-main { padding-top: 8px; }
.rv2 .entry-meta .posted-on, .rv2 .entry-meta time { font-family: var(--rv-mono); font-size: 0.8rem; color: #64748B; }
.rv2 .cat-links a, .rv2 .tags-links a { display: inline-block; padding: 2px 8px; margin: 2px 2px 2px 0; border-radius: 6px; color: #3B4252 !important; background: #E5E9F0; text-decoration: none; }
.rv2 .cat-links a::before, .rv2 .tags-links a::before { content: "#"; color: #5E81AC; }
.rv2 .cat-links .gp-icon, .rv2 .tags-links .gp-icon, .rv2 .comments-link { display: none; }
.rv2 .read-more { font-family: var(--rv-mono); font-size: .85rem; }
.rv2 .read-more::after { content: " →"; }

/* ===== 글 페이지 ===== */
.rv2.single .inside-article { background: #fff; border-radius: 14px; border: 1px solid #E2E8F0; }
.rv2.single .entry-header .entry-title { font-size: clamp(1.75rem, 4.5vw, 2.4rem); }
.rv2 .entry-content h2 { border-bottom: 0; }
.rv2 .entry-content h2::before { content: "## "; font-family: var(--rv-mono); color: #5E81AC; font-weight: 600; }
.rv2 .entry-content h3::before { content: "### "; font-family: var(--rv-mono); color: #81A1C1; font-weight: 600; }
.rv2 .entry-content a:not(.wp-block-button__link) { text-decoration: none; background: linear-gradient(transparent 88%, rgba(94, 129, 172, .35) 88%); transition: background .2s ease; }
.rv2 .entry-content a:not(.wp-block-button__link):hover { background: linear-gradient(transparent 0, rgba(136, 192, 208, .28) 0); }
.rv2 .entry-content blockquote { border-left: 4px solid #5E81AC; background: #EEF2F7; border-radius: 0 10px 10px 0; padding: 14px 18px; font-style: normal; }

/* 헤더 세로 정렬: GP 메뉴 줄높이(60px)에 사이트명을 맞춤 */
.rv2 .site-header .inside-header { padding-top: 6px; padding-bottom: 6px; }
.rv2 .site-header .main-title { line-height: 60px; }
@media (max-width: 768px) { .rv2 .site-header .main-title { line-height: 1.4; } }

/* 글 상단 대표 이미지: 정사각 735px → 높이 제한 */
.rv2.single .featured-image img, .rv2.single .page-header-image-single img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }

/* 본문 소제목 굵기 */
.rv2 .entry-content h2, .rv2 .entry-content h3 { font-weight: 700; letter-spacing: -0.015em; color: var(--rv-ink); }
