/*
Theme Name: LIBVON
Theme URI: https://libvon.com/
Author: LIBVON
Description: LIBVON 공식 브랜드 및 상품 카탈로그 테마
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.4
Text Domain: libvon
*/
:root {
	--ink: #171816;
	--muted: #565953;
	--surface: #f2f3f0;
	--line: #dedfdb;
	--paper: #fff;
	--accent: #167744;
	--frame: 1328px;
	--gutter: clamp(20px, 5vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--ink);
	background: var(--paper);
	font: 16px/1.65 system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.14; letter-spacing: -.065em; }
.wrap { width: min(100% - var(--gutter) * 2, var(--frame)); margin-inline: auto; }
.skip-link, .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: .6rem 1rem;
	clip-path: none;
	background: white;
}
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brandmark, .custom-logo-link { display: block; flex: none; width: 82px; }
.brandmark img, .custom-logo { width: 100%; max-height: 57px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(16px, 3.8vw, 52px); row-gap: 4px; }
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: .75rem;
	font-weight: 750;
	letter-spacing: .08em;
	text-decoration: none;
}
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .55em; }
.hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
	padding-block: clamp(46px, 7vw, 100px);
}
.hero-text-only { grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: clamp(2.55rem, 5.7vw, 6rem); font-weight: 720; }
.hero p { max-width: 31ch; margin: 24px 0 32px; color: var(--muted); }
.hero-media, .featured-media, .product-media, .detail-media, .detail-secondary { background: var(--surface); overflow: hidden; }
.hero-media { aspect-ratio: 4/3; }
.hero-media img, .product-media img, .featured-media img { width: 100%; height: 100%; object-fit: cover; }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	min-height: 52px;
	padding: 10px 19px;
	border: 1px solid var(--ink);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--paper); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: .65em; font-weight: 690; }
.featured {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
	gap: clamp(24px, 7vw, 108px);
	align-items: center;
	border-top: 1px solid var(--line);
	padding-block: clamp(38px, 6vw, 85px);
}
.featured-media { aspect-ratio: 4/3; }
.featured h2, .brand-band h2, .about-layout h2 { font-size: clamp(1.85rem, 4vw, 3.7rem); }
.featured .text-link, .brand-band .text-link { margin-top: 14px; }
.brand-band { background: var(--surface); }
.brand-inner, .about-layout, .contact-grid {
	display: grid;
	align-items: start;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(22px, 6vw, 92px);
}
.brand-inner { padding-block: clamp(45px, 7vw, 102px); }
.brand-inner p, .about-layout > p { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.page-section { padding-block: clamp(46px, 8vw, 112px); }
.page-heading { padding-bottom: clamp(22px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 5vw, 68px); }
.page-heading h1, .detail-copy h1 { font-size: clamp(2.4rem, 5.6vw, 5.75rem); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; }
.product-card { display: block; text-decoration: none; }
.product-card h2 { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: clamp(1rem, 2.1vw, 1.44rem); line-height: 1.35; letter-spacing: -.035em; }
.product-card:hover h2 { text-decoration: underline; }
.product-media { aspect-ratio: 4/3; }
.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: .45em .85em; border: 1px solid var(--line); }
.page-numbers.current { color: var(--paper); background: var(--ink); }
.back-link { margin-bottom: 22px; }
.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: clamp(26px, 6vw, 88px);
}
.detail-media img, .detail-secondary img { width: 100%; }
.detail-media:empty, .hero-media:empty, .featured-media:empty { display: none; }
.detail-copy h1 { font-size: clamp(2rem, 4.2vw, 4.6rem); }
.detail-copy .button { margin-top: 24px; }
.detail-secondary { width: min(100%, 720px); margin: clamp(32px, 6vw, 82px) auto 0; }
.contact-grid section { padding: clamp(22px, 4vw, 46px); background: var(--surface); }
.contact-grid p, .contact-grid dl { margin: 18px 0 0; }
.contact-grid dt { font-weight: 700; }
.contact-grid dd { margin: 0 0 12px; color: var(--muted); }
.contact-grid dd:last-child { margin-bottom: 0; }
.entry-content { max-width: 900px; margin-inline: auto; }
.entry-content:not(:empty) { margin-top: clamp(30px, 6vw, 80px); }
.entry-content > * + * { margin-block-start: 1.25rem; }
.entry-content .wp-block-image img { height: auto; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 106px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: .8rem; }
.footer-wordmark { color: var(--ink); font-size: 1.1rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
@media (max-width: 760px) {
	.header-inner { min-height: 72px; }
	.hero, .featured, .brand-inner, .about-layout, .contact-grid, .detail-layout { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.hero p { margin-block: 16px 23px; }
	.detail-copy { grid-row: 1; }
}
@media (max-width: 410px) {
	.brandmark, .custom-logo-link { width: 58px; }
	.header-inner { gap: 10px; }
	.site-nav { column-gap: 10px; }
	.site-nav a { font-size: .63rem; letter-spacing: .035em; }
}
@media (max-width: 340px) {
	.product-grid { grid-template-columns: 1fr; }
}

