/*
Theme Name: 강의 사이트 기본 테마
Description: 강의 판매 템플릿(lms-basic)의 화면 틀. 기능·문구는 템플릿 플러그인이 맡는다. 색은 대표 색 변수(--fh-brand)로만 쓴다.
Version: 0.1.0
*/

/* ===================
   1. CSS Variables — 대표 색은 토대가 <head> 에 넣는다. 없을 때만 기본값.
   =================== */
:root {
	--lb-ink: #1b1f24;
	--lb-muted: #565f6b;
	--lb-line: #e3e6ea;
	--lb-bg: #ffffff;
	--lb-surface: #f6f7f9;
}

/* ===================
   2. Reset & Base
   =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--lb-ink);
	background: var(--lb-bg);
	word-break: keep-all;
}
img { max-width: 100%; height: auto; }
a { color: var(--fh-brand, #2F4B7C); }

/* ===================
   3. Layout
   =================== */
.lb-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 24px;
}
.lb-skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--lb-ink);
	color: #fff;
}
.lb-skip:focus { top: 8px; }

.lb-header {
	border-bottom: 1px solid var(--lb-line);
	background: var(--lb-bg);
}
.lb-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
}
.lb-brand {
	font-size: 18px;
	font-weight: 700;
	color: var(--fh-brand, #2F4B7C);
	text-decoration: none;
}
.lb-brand img { display: block; max-height: 40px; width: auto; }

.lb-nav ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lb-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--lb-ink);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.lb-nav a:hover,
.lb-nav a:focus-visible { background: var(--fh-brand-soft, #e5eaf3); }
.lb-nav a:focus-visible { outline: 2px solid var(--fh-brand, #2F4B7C); outline-offset: 2px; }

.lb-nav-toggle {
	display: none;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--lb-line);
	border-radius: 8px;
	background: var(--lb-bg);
	color: var(--lb-ink);
	font-size: 20px;
	cursor: pointer;
}

/* ===================
   4. Components
   =================== */
.lb-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	background: var(--fh-brand, #2F4B7C);
	color: var(--fh-brand-contrast, #fff);
	transition: background-color 0.2s ease;
}
.lb-btn:hover,
.lb-btn:focus-visible { background: var(--fh-brand-deep, #253c63); color: var(--fh-brand-contrast, #fff); }
.lb-btn:focus-visible { outline: 3px solid var(--fh-brand-soft, #e5eaf3); outline-offset: 2px; }

/* ===================
   5. Sections
   =================== */
.lb-hero {
	padding-block: 72px;
	background: var(--lb-surface);
	border-bottom: 1px solid var(--lb-line);
}
.lb-hero__title {
	margin: 0 0 12px;
	font-size: 40px;
	line-height: 1.3;
	font-weight: 700;
}
.lb-hero__desc {
	max-width: 36em;
	margin: 0 0 32px;
	font-size: 18px;
	color: var(--lb-muted);
}
.lb-section { padding-block: 64px; }
.lb-section h2 { margin: 0 0 24px; font-size: 24px; line-height: 1.35; }
.lb-page { padding-block: 48px; }
.lb-page h1 { margin: 0 0 24px; font-size: 32px; line-height: 1.3; }

.lb-footer {
	padding-block: 40px;
	border-top: 1px solid var(--lb-line);
	background: var(--lb-surface);
	color: var(--lb-muted);
	font-size: 14px;
}
.lb-footer__name { margin: 0 0 8px; color: var(--lb-ink); font-weight: 600; }
.lb-footer__info { margin: 0 0 12px; padding: 0; list-style: none; }
.lb-footer__copy { margin: 0; }

/* ===================
   6. Responsive
   =================== */
@media (max-width: 768px) {
	.lb-wrap { padding-inline: 16px; }
	.lb-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.lb-header__bar { flex-wrap: wrap; }
	.lb-nav { display: none; flex: 1 1 100%; padding-bottom: 12px; }
	.lb-nav.is-open { display: block; }
	.lb-nav ul { flex-direction: column; gap: 0; }
	.lb-hero { padding-block: 48px; }
	.lb-hero__title { font-size: 28px; }
	.lb-hero__desc { font-size: 16px; }
	.lb-section { padding-block: 40px; }
}
