/*
Theme Name: 비니픽 Child
Template: generatepress
Version: 1.0.0
Description: 비니픽 블로그 테마 (GeneratePress 자식 테마)
Text Domain: mdb-child
*/

/* 주제별 디자인 값 - '디자인' 단계에서 이 8개만 주제에 맞게 바꾼다 */
:root {
	--mdb-primary: #2a7348;   /* 대표색: 링크·강조선 */
	--mdb-accent: #fdf1e1;    /* 보조색: 팁 박스·표 머리 배경 */
	--mdb-bg: #ffffff;        /* 본문 배경 */
	--mdb-text: #222222;      /* 본문 글자 */
	--mdb-muted: #666666;     /* 날짜·캡션 */
	--mdb-line: #e6e2da;      /* 구분선·표 테두리 */
	--mdb-art-bg: #e4ecd9;    /* 홈 일러스트 배경 */
	--mdb-footer-bg: #1f3a2b; /* 하단 배경 (어두운 색) */
}

/* 글꼴: 기기 기본 글꼴 (내려받는 글꼴 파일 없음 = 가장 빠름)
   아이폰·맥 = 애플 시스템 글꼴, 윈도 = 맑은 고딕, 안드로이드 = 기기 기본 한글 글꼴 */
body, button, input, select, textarea,
.editor-styles-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', 'Noto Sans CJK KR', 'Segoe UI', Roboto, sans-serif;
}
body, .editor-styles-wrapper {
	font-size: 15px;
	line-height: 1.8;
	color: var(--mdb-text);
	background: var(--mdb-bg);
	word-break: keep-all;
	overflow-wrap: break-word;
}
.entry-content h2, .editor-styles-wrapper h2 {
	font-size: 24px;
	line-height: 1.4;
	font-weight: 700;
	margin: 2.2em 0 0.8em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid var(--mdb-primary);
}
.entry-content h3, .editor-styles-wrapper h3 {
	font-size: 19px;
	line-height: 1.5;
	font-weight: 700;
	margin: 1.8em 0 0.6em;
}
h1.entry-title, .editor-styles-wrapper .editor-post-title {
	font-size: 28px;
	line-height: 1.35;
}
.entry-content a { color: var(--mdb-primary); text-decoration: underline; text-underline-offset: 3px; }

/* 읽기 폭 */
.grid-container { max-width: 1100px; }
.inside-article { padding: 32px; }

/* 표: 비교 글 필수 요소. 모바일에서 가로 스크롤 */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--mdb-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--mdb-accent); font-weight: 700; }

/* 팁·주의 박스 (문단 블록 → 스타일에서 선택) */
.is-style-mdb-tip { background: var(--mdb-accent); border-left: 4px solid var(--mdb-primary); padding: 14px 18px; border-radius: 4px; }
.is-style-mdb-warn { background: #fff1f0; border-left: 4px solid #b3000c; padding: 14px 18px; border-radius: 4px; }

/* 이미지 캡션 */
.entry-content figcaption { font-size: 13px; color: var(--mdb-muted); text-align: center; }

/* 글쓴이 소개 상자 */
.mdb-author-box { margin-top: 48px; padding: 20px 24px; border: 1px solid var(--mdb-line); border-radius: 6px; }
.mdb-author-name { font-weight: 700; margin-bottom: 4px; }
.mdb-author-bio { font-size: 14px; color: var(--mdb-muted); margin-bottom: 8px; }
.mdb-author-link { font-size: 14px; color: var(--mdb-primary); }

/* 머리글·하단 */
.site-header { background: var(--mdb-bg); border-bottom: 1px solid var(--mdb-line); }
.site-info { background: var(--mdb-footer-bg); color: #ffffff; text-align: left; }
.site-info .inside-site-info { padding: 40px 20px; }
.site-info .copyright-bar { width: 100%; text-align: left; }
.mdb-footer-name { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.mdb-footer-desc { font-size: 13px; opacity: 0.8; margin: 0 0 20px; }
.mdb-footer-menu ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mdb-footer-menu a { font-size: 13px; font-weight: 700; color: #ffffff; text-decoration: none; }
.mdb-copy { font-size: 12px; opacity: 0.7; }

/* 홈 화면 (front-page.php) */
.mdb-home { width: 100%; box-sizing: border-box; padding: 0 20px 40px; } /* 여백이 폭에 더해져 가로 스크롤이 생기지 않게 */
.mdb-strip { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: 0.08em; padding: 18px 0 14px; border-bottom: 1px solid var(--mdb-text); }
.mdb-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--mdb-text); }
.mdb-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--mdb-primary); margin-bottom: 16px; }
.mdb-hero-title { font-size: 52px; line-height: 1.15; font-weight: 700; margin: 0 0 20px; }
.mdb-hero-title span { color: var(--mdb-primary); }
.mdb-hero-desc { color: var(--mdb-muted); margin-bottom: 24px; }
.mdb-btn { display: inline-block; background: var(--mdb-primary); color: #ffffff; font-size: 14px; font-weight: 700; padding: 12px 18px; border-radius: 2px; text-decoration: none; }
.mdb-btn:hover { color: #ffffff; opacity: 0.9; }
.mdb-hero-art { margin: 0; background: var(--mdb-art-bg); border-radius: 220px 220px 4px 4px; padding: 40px 32px 28px; text-align: center; }
.mdb-hero-art svg { width: 100%; height: auto; max-height: 320px; }
.mdb-hero-art figcaption { font-size: 11px; letter-spacing: 0.2em; margin-top: 12px; color: var(--mdb-text); }
.mdb-section { padding: 32px 0 8px; }
.mdb-section-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--mdb-line); }
.mdb-section-head h2 { font-size: 24px; margin: 0; }
.mdb-section-head span { font-size: 11px; letter-spacing: 0.08em; color: var(--mdb-muted); }
.mdb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-bottom: 1px solid var(--mdb-line); }
.mdb-cat { display: block; padding: 20px 12px; border-right: 1px solid var(--mdb-line); color: var(--mdb-text); text-decoration: none; }
.mdb-cat-no { display: block; font-size: 12px; color: var(--mdb-primary); margin-bottom: 6px; }
.mdb-cat-desc { display: block; font-size: 13px; color: var(--mdb-muted); margin-top: 6px; }
.mdb-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 20px; }
.mdb-post { border-top: 3px solid var(--mdb-primary); padding-top: 14px; }
.mdb-post h3 { font-size: 19px; line-height: 1.5; font-weight: 400; margin: 0 0 12px; }
.mdb-post h3 a { color: var(--mdb-text); text-decoration: none; }
.mdb-post p { font-size: 15px; color: var(--mdb-muted); margin-bottom: 12px; }
.mdb-post time { font-size: 13px; }
.mdb-closing { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; padding: 24px 0; margin-top: 32px; border-top: 1px solid var(--mdb-line); }
.mdb-closing a { color: var(--mdb-primary); text-decoration: none; }

/* 모바일 */
@media (max-width: 768px) {
	.inside-article { padding: 20px 16px; }
	.mdb-hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
	.mdb-hero-title { font-size: 36px; }
	.mdb-posts { grid-template-columns: 1fr; }
	.mdb-strip span:last-child { display: none; }
	h1.entry-title { font-size: 24px; }
}
