@charset "utf-8";
/* ───────────────────────────────────────────────
   같이그림스튜디오 2026 — base
   디자인 토큰, 폰트, 초기화, 로딩 화면
   ─────────────────────────────────────────────── */

/* ── 폰트 (self-host, OFL) ── */
@font-face {
  font-family: "Wanted Sans";
  src: url("../fonts/WantedSansStdVariable.woff2") format("woff2");
  font-weight: 400 700; /* Bold(700)까지만 사용 */
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ── 토큰 ── */
:root {
  --c-purple: #86339E;  /* 주색 */
  --c-lilac: #DCB6E8;   /* 보조색 */
  --c-bg: #F2F2F0;      /* 기본 배경 */
  --c-paper: #FAFAF8;   /* 섹션 구분 배경, 카드 */
  --c-black: #151215;   /* 블랙 섹션, 본문 */
  --c-ink-sub: #5C5A58; /* 보조 텍스트 */
  --c-line: #D6D5D1;    /* 구분선 */
  --c-footer: #2A1631;  /* 푸터, 어드민 사이드바 */
  --c-logo: #67216F;    /* 로고 전용 */

  --f-kr: "Wanted Sans", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);   /* 부드럽게 미끄러지는 감속 (튕김 없음) */
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: 80px;   /* 데스크톱 좌우 여백 */
  --header-h: 120px;
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --header-h: 72px; }
}

/* ── 초기화 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-black);
  font-family: var(--f-kr);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.04em;   /* 한글 -4% */
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-purple); outline-offset: 3px; }

.mono { font-family: var(--f-mono); letter-spacing: -0.03em; } /* 영문 -3% */
h1, h2, h3 { line-height: 1.3; font-weight: 700; } /* 큰 한글 제목 행간 130% */

.gg-skip {
  position: fixed; top: -60px; left: 16px; z-index: 10000;
  background: var(--c-black); color: var(--c-bg);
  padding: 10px 16px; border-radius: 4px; font-size: 14px;
  transition: top .2s;
}
.gg-skip:focus { top: 12px; }

/* Lenis (부드러운 스크롤) 필수 규칙 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── 버튼 (푸터·문의 띠 등에서 공통 사용) ── */
.gg-btn {
  --sh: var(--c-lilac);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: -0.03em;
  white-space: nowrap;
  filter: drop-shadow(4px 4px 0 var(--sh));   /* 블러 없는 오프셋 그림자 */
  transition: transform .35s var(--ease-out), filter .35s var(--ease-out);
}
.gg-btn:hover { transform: translate(-2px, -2px); filter: drop-shadow(6px 6px 0 var(--sh)); }
.gg-btn--paper { background: var(--c-bg); color: var(--c-black); }
.gg-btn--paper span { color: var(--c-logo); }
.gg-btn--lilac { background: var(--c-lilac); color: var(--c-black); --sh: var(--c-purple); }
.gg-btn--black { background: var(--c-black); color: var(--c-bg); --sh: var(--c-purple); }
.gg-btn--black span { color: var(--c-lilac); }
.gg-btn--purple { background: var(--c-purple); color: var(--c-bg); --sh: var(--c-black); }

/* ── 임시 화면 (2단계 확인용) ── */
.gg-placeholder { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 14px; padding: 160px var(--gutter) 80px; }
.gg-placeholder h1 { font-size: clamp(44px, 6vw, 72px); }
.gg-placeholder--tall { min-height: 90vh; background: var(--c-paper); }

/* ───────── 로딩 화면 ─────────
   html.is-loading 일 때만 보임 (첫 방문 세션)                */
.gg-loader {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: center; justify-content: center;
  background: var(--c-bg);
}
.is-loading .gg-loader { display: flex; }
.is-loading body { overflow: hidden; }
.gg-loader-inner { display: grid; justify-items: center; }
.gg-loader-symbol { width: min(376px, 62vw); height: auto; overflow: visible; }
.gg-loader-symbol .sym-main { mix-blend-mode: multiply; }
.gg-loader-pct { margin-top: 36px; font-size: 20px; font-weight: 700; color: var(--c-logo); }
.gg-loader-label { margin-top: 12px; font-size: 13px; color: var(--c-ink-sub); }
.gg-loader-bar { margin-top: 26px; width: 240px; height: 2px; background: var(--c-line); }
.gg-loader-bar i { display: block; height: 100%; width: 0; background: var(--c-purple); }

/* ───────── 페이지 이동 보라 커튼 ───────── */
.gg-curtain {
  position: fixed; inset: 0; z-index: 8000;
  background: var(--c-purple);
  transform: translateY(100%);
  pointer-events: none;
}
.has-curtain .gg-curtain { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .gg-loader, .gg-curtain { display: none !important; }
  * { animation: none !important; transition-duration: .01ms !important; }
}
