/* base.css — 레이아웃·간격·반응형·컴포넌트. tokens.css를 참조만 함.
   컨셉을 바꿀 땐 되도록 tokens.css를 먼저 손대세요. */

body { font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--font-head); }

/* 접근성: 키보드 포커스 */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 200; }
.skip:focus { left: 0; }

/* 레이아웃 */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--ink-faint); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; padding: .85em 1.6em; border-radius: var(--radius-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }

/* 헤더 / 네비 */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; padding-block: 14px; }
.nav__logo { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav__links a { color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 20px; align-items: center; justify-content: center; }

/* 히어로 */
.hero { padding-block: clamp(70px, 12vw, 150px); }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { margin-top: 1.2rem; }
.hero .btn-row { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* 섹션 제목 */
.section h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; margin-top: .5rem; }

/* 그리드 */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.card h3 { font-size: var(--fs-h3); font-weight: 700; }
.card p { color: var(--ink-soft); margin-top: .5rem; }
.card__icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--bg-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 1rem; }

/* 갤러리 / 쇼케이스 */
.tile { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-faint); font-size: .9rem; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* 후기 */
.quote { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.4; max-width: 40ch; margin-inline: auto; }
.quote + .cite { margin-top: 1.2rem; color: var(--ink-faint); font-size: var(--fs-small); }

/* CTA 밴드 */
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); text-align: center; }
.cta-band h2 { color: var(--brand-ink); }
.cta-band .btn--primary { background: var(--brand-ink); color: var(--brand); }

/* 문의 폼 */
.form { max-width: 560px; margin-inline: auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form__msg { min-height: 20px; font-size: var(--fs-small); margin-top: 4px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--ink-faint); font-size: var(--fs-small); }
.site-footer .nav__links a { color: var(--ink-faint); }

/* 등장 애니메이션 (main.js가 .in 붙임) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── 반응형 ── */
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav__links { position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; margin: 0; transform: translateY(-120%); transition: transform .28s var(--ease); }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: inline-flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
