/*
Theme Name: 공구 스토어
Description: 공동구매 템플릿의 얇은 테마. 로직·문구·설정은 플러그인에 두고 여기에는 마크업과 기본 스타일만 둔다. 색은 사이트 대표 색 변수(--fh-brand)를 쓴다.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.1
Author: FastWeb
License: GPL v2 or later
Text Domain: gongu-basic
*/

/* ===================
   1. CSS Variables
   =================== */
:root {
	--gb-t-brand: var(--fh-brand, #c8431f);
	--gb-t-brand-contrast: var(--fh-brand-contrast, #ffffff);
	--gb-t-ink: #1b1d2b;
	--gb-t-muted: #5b6070;
	--gb-t-line: #dfe2ea;
	--gb-t-canvas: #ffffff;
	--gb-t-soft: #f6f7fb;
	--gb-t-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

/* ===================
   2. Reset & Base
   =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--gb-t-canvas); color: var(--gb-t-ink); font-family: var(--gb-t-font); font-size: 16px; line-height: 1.7; }
img, video { max-width: 100%; height: auto; }
a { color: var(--gb-t-brand); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gb-t-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -48px; padding: 8px 12px; background: var(--gb-t-ink); color: #fff; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ===================
   3. Layout
   =================== */
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-main { min-height: 50vh; padding: 24px 0 64px; }
.site-main .entry-title { margin: 0 0 16px; font-size: 28px; line-height: 1.3; }

/* ===================
   4. Components — header / nav / footer
   =================== */
.site-header { border-bottom: 1px solid var(--gb-t-line); background: var(--gb-t-canvas); position: sticky; top: 0; z-index: 50; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.site-title { margin: 0; font-size: 20px; font-weight: 700; }
.site-title a { color: var(--gb-t-ink); text-decoration: none; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--gb-t-line); border-radius: 8px; background: #fff; color: var(--gb-t-ink); cursor: pointer; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 16px 16px; background: var(--gb-t-canvas); border-bottom: 1px solid var(--gb-t-line); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 44px; color: var(--gb-t-ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--gb-t-brand); }
.site-account { display: flex; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gb-t-line); }
.site-account a { min-height: 44px; }

.site-footer { padding: 32px 0; background: var(--gb-t-soft); color: var(--gb-t-muted); font-size: 14px; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 4px; }

/* ===================
   5. Responsive
   =================== */
@media (min-width: 768px) {
	.nav-toggle { display: none; }
	.site-nav { display: flex; align-items: center; gap: 24px; position: static; padding: 0; border: 0; background: transparent; }
	.site-nav ul { display: flex; gap: 24px; }
	.site-account { margin: 0; padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
