/* =========================================================
   글헌 사이트 스타일 (E. 편안한 화이트)

   ★ 색을 바꾸려면 아래 :root 안의 값만 고치면 돼요.
     사이트 전체가 이 값을 따라 바뀌어요.
   ========================================================= */
:root {
  /* ---- 바탕 ---- */
  --color-bg: #ffffff;          /* 기본 바탕 */
  --color-bg-soft: #f7f5f2;     /* 회색빛 띠 (작품, 진행 과정, 하단) */
  --color-card: #ffffff;        /* 카드 바탕 */
  --color-chip: #f4f1ec;        /* 보조 버튼, 영상 자리, 릴스 카드 */

  /* ---- 글자 ---- */
  --color-text: #222222;        /* 본문 글자 */
  --color-text-sub: #555555;    /* 설명 글자 */
  --color-text-faint: #6b6b6b;  /* 작은 안내 글자 */

  /* ---- 선 ---- */
  --color-line: #e5e2dd;

  /* ---- 강조색 (버튼, 번호, 재생 버튼) ---- */
  --color-accent: #e0603f;
  --color-accent-text: #ffffff;    /* 강조색 위의 글자 */
  --color-accent-soft: #fde8e2;    /* "추천" 배지 바탕 */
  --color-accent-strong: #b3401f;  /* 배지 글자, 링크에 마우스를 올렸을 때 */

  /* ---- 글꼴과 모양 ---- */
  --font-body: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --font-brush: 'Nanum Brush Script', cursive;
  --radius: 16px;      /* 카드 모서리 */
  --radius-btn: 12px;  /* 버튼 모서리 */
  --max-width: 1080px; /* 내용 최대 너비 */
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 18px/1.75 var(--font-body);
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--color-accent-strong); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-accent) 50%, transparent); outline-offset: 3px; }
h1, h2 { line-height: 1.25; text-wrap: balance; }
h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px); }
.lead { margin: 0 0 32px; color: var(--color-text-sub); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--color-text-faint); }
.wrap { max-width: var(--max-width); margin: 0 auto; padding-inline: 24px; }
.band { padding-block: clamp(56px, 8vw, 80px); }
.band-soft { background: var(--color-bg-soft); }
.brush { font-family: var(--font-brush); font-weight: 400; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--color-bg); padding: 8px 12px; z-index: 10; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-btn);
  text-decoration: none; font-weight: 500; font-size: 17px; white-space: nowrap;
  background: var(--color-chip); color: var(--color-text);
}
.btn:hover { color: var(--color-text); filter: brightness(0.97); }
.btn-accent { background: var(--color-accent); color: var(--color-accent-text); font-weight: 700; }
.btn-accent:hover { color: var(--color-accent-text); }
.btn-line { background: transparent; border: 1px solid var(--color-line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 머리글 ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 20px; }
.logo { display: block; line-height: 0; text-decoration: none; flex-grow: 1; }
.logo img { width: auto; height: 52px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 16px; }
.site-nav a { text-decoration: none; padding-block: 8px; }

/* ---------- 첫 화면 ---------- */
.hero { text-align: center; padding-block: 40px 72px; }
.hero h1 { margin: 0 auto; max-width: 14em; font-size: clamp(32px, 5.5vw, 48px); line-height: 1.2; }
.hero .lead { margin: 20px auto 0; max-width: 32em; }
.hero .btn-row { justify-content: center; margin-top: 30px; }
.hero-media {
  position: relative; margin: 48px 0 0; aspect-ratio: 16 / 9;
  background: var(--color-chip); border-radius: calc(var(--radius) + 4px); overflow: hidden;
  display: grid; place-items: center;
}
.hero-media svg { width: 60%; height: auto; }
.hero-media path { stroke: var(--color-text); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 0; right: 0; bottom: 14px; font-size: 15px; color: var(--color-text-faint); }

/* ---------- 작품 ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.work { margin: 0; background: var(--color-card); border-radius: var(--radius); padding: 28px 20px 20px; text-align: center; }
.work .brush { display: block; font-size: 72px; line-height: 1.1; }
.work img, .work video { width: 100%; border-radius: calc(var(--radius) - 6px); }
.work figcaption { margin-top: 14px; font-size: 15px; color: var(--color-text-faint); }

/* ---------- 인스타그램 ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head .lead { margin: 4px 0 0; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.reel {
  aspect-ratio: 9 / 16; background: var(--color-chip); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
  text-decoration: none; position: relative; overflow: hidden; color: #fff;
}
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .45), transparent 35%, transparent 70%, rgb(0 0 0 / .5)); }
.reel:hover { color: #fff; }
.reel:hover img { transform: scale(1.03); }
.reel b { font-size: 18px; line-height: 1.4; position: relative; z-index: 1; }
.reel small { font-size: 14px; position: relative; z-index: 1; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
@media (prefers-reduced-motion: reduce) { .reel img { transition: none; } }

/* ---------- 진행 과정 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.steps li { background: var(--color-card); border-radius: var(--radius); padding: 24px; }
.steps .num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--color-accent); color: var(--color-accent-text); font-weight: 700;
}
.steps b { display: block; }
.steps span:last-child { color: var(--color-text-sub); font-size: 16px; }

/* ---------- 가격 ---------- */
.narrow { max-width: 820px; }
.prices { border-top: 1px solid var(--color-line); }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 22px; border-bottom: 1px solid var(--color-line); }
.price-info { flex: 1 1 260px; }
.price-info span { color: var(--color-text-sub); font-size: 16px; }
.price-amount { font-size: 24px; font-weight: 700; white-space: nowrap; }
.price-was { font-size: 16px; font-weight: 400; color: var(--color-text-faint); margin-right: 6px; }
.badge { background: var(--color-accent-soft); color: var(--color-accent-strong); font-size: 13px; padding: 2px 8px; border-radius: 6px; font-weight: 700; margin-left: 4px; }

/* ---------- 자주 묻는 질문 ---------- */
.faq details { border-bottom: 1px solid var(--color-line); padding-block: 18px; }
.faq summary { font-weight: 500; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--color-text-sub); }

/* ---------- 하단 ---------- */
.site-footer { background: var(--color-bg-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-block: 56px; }
.site-footer .logo { flex-grow: 0; }
.site-footer .logo img { height: 60px; }
.site-footer address { font-style: normal; font-size: 15px; color: var(--color-text-faint); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
