/* 디자인 값의 정본은 디자인/00_디자인_결정기록.md. 여기서 값을 바꾸면 그 문서도 같이 고친다. */

/* 마루부리 SemiBold, 페이지에 쓰인 글자만(data-font-quote). 글자를 바꾸면 npm run fonts */
@font-face {
  font-family: "AUBE Quote";
  src: url("/fonts/maruburi-semibold-subset.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #121212;
  --ink-raised: #1c1c1c;
  --ink-line: #2b2b2b;
  --ink-text: #f2f2ef;
  --ink-sub: #9a9a95;

  --paper: #fffef9; /* 따뜻한 흰 종이. 위에 종이 질감을 곱해서 실제 화면은 이보다 조금 어둡다(2026-10-22 #F2F0EB에서 바꿈) */
  --paper-line: #dcd9d1;
  --paper-sub: #6b6b66;

  --blue: #2f5bff;
  --blue-on-ink: #6f8cff;
  --pen: #e0412b; /* 선생님 펜. 표시·손글씨 메모 전용 예외 색 */
  --navy: #0b0f1e; /* 블루블랙. 3번 하소연 섹션 바탕 */

  --font-head: "Wanted Sans Variable", "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-quote: "AUBE Quote", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue-on-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
/* 종이색 섹션에서는 밝은 블루가 묻히므로 진한 블루로 */
.is-paper :focus-visible { outline-color: var(--blue); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: #2549d9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 연락 아이콘: 전화(수화기)와 카톡(노란 바탕에 검은 말풍선). 번호는 화면에 적지 않고 버튼 글자는 "전화 상담", "카톡 상담"으로 쓴다(박성호 2026-10-23) */
.ico { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.ico--tel { background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ico--kakao { position: relative; width: 1.35em; height: 1.35em; vertical-align: -0.3em; border-radius: 30%; background: #fee500; }
.ico--kakao::before { content: ""; position: absolute; inset: 22% 18% 20%; background: #191919;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 1C5.9 1 1 4.9 1 9.6c0 3 2 5.7 5 7.2l-1.1 4c-.1.4.3.7.6.5l4.7-3.1c.6.1 1.2.1 1.8.1 6.1 0 11-3.9 11-8.7S18.1 1 12 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 1C5.9 1 1 4.9 1 9.6c0 3 2 5.7 5 7.2l-1.1 4c-.1.4.3.7.6.5l4.7-3.1c.6.1 1.2.1 1.8.1 6.1 0 11-3.9 11-8.7S18.1 1 12 1z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 사업자 정보 푸터(광고 검수용): 어두운 바탕에 작게, 최소 13px */
.site-foot { padding: 32px var(--gutter, 20px) calc(40px + env(safe-area-inset-bottom)); background: #0b0b0b; color: #8f8f8a; font-size: 13px; line-height: 1.7; }
.site-foot p { max-width: 1180px; margin: 0 auto; }
.site-foot__biz span, .site-foot__links span { white-space: nowrap; }
.site-foot__biz > * + *::before, .site-foot__links > * + *::before { content: "·"; display: inline-block; margin: 0 8px; color: #555; text-decoration: none; }
.site-foot__biz b { color: #c9c9c4; font-weight: 700; }
.site-foot__links { margin-top: 10px !important; }
.site-foot a { color: #c9c9c4; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .site-foot__biz span { display: block; }
  .site-foot__biz > span::before { content: none; }
}
/* 공식 채널 링크: 손님을 밖으로 내보내므로 작고 조용한 칩으로(새 창). 공식 아이콘·이름·바깥 화살표를 한 줄 가운데에 맞춘다.
   마우스를 올리면 테두리가 그 채널의 색으로 옅게 물들고 화살표가 오른쪽 위로 살짝 나간다 */
.site-foot__ch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px !important; margin-bottom: 14px !important; padding-bottom: 16px; border-bottom: 1px solid #222; }
.site-foot__ch a { --c: #c9c9c4; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 9px; border: 1px solid #262626; border-radius: 10px; background: #121212;
  color: #d6d6d1; font-weight: 600; font-size: 13px; line-height: 1; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.site-foot__ch a::after { content: ""; flex: none; width: 10px; height: 10px; margin-left: 2px; background: currentColor; opacity: .4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8.5 3.5M4.5 3.5h4v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8.5 3.5M4.5 3.5h4v4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.site-foot__ch a:hover, .site-foot__ch a:focus-visible { border-color: color-mix(in srgb, var(--c) 55%, #262626); background: color-mix(in srgb, var(--c) 7%, #121212); color: #fff; outline: none; }
.site-foot__ch a:hover::after, .site-foot__ch a:focus-visible::after { transform: translate(2px, -2px); opacity: .9; }
.site-foot__ch a[data-place^="naver_blog"] { --c: #03c75a; }
.site-foot__ch a[data-place="kakao_channel"] { --c: #fee500; }
.site-foot__ch a[data-place="tistory"] { --c: #eb531f; }
@media (max-width: 860px) {
  .site-foot__ch { display: grid !important; grid-template-columns: 1fr; gap: 6px; }
  .site-foot__ch a { height: 42px; padding-right: 14px; }
  .site-foot__ch a::after { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .site-foot__ch a, .site-foot__ch a::after { transition: none; } }
/* 공식 채널 아이콘(각 서비스의 공식 색과 모양을 단순화). 홈페이지는 지구본 선 아이콘 */
.ch-ico { flex: none; display: block; width: 18px; height: 18px; border-radius: 5px; }
.ch-ico--web { border-radius: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ch-ico--naver { background: #03c75a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14.4 12.4 9.4 5.5H6v13h3.6v-6.9l5 6.9H18v-13h-3.6z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ch-ico--kakao { background: #fee500 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23191919' d='M12 4.5c-4.7 0-8.5 3-8.5 6.6 0 2.3 1.5 4.3 3.8 5.5l-.9 3.4c-.1.3.3.5.5.3l4-2.7c.4 0 .7.1 1.1.1 4.7 0 8.5-3 8.5-6.6S16.7 4.5 12 4.5z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ch-ico--tistory { border-radius: 50%; background: #eb531f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Ccircle cx='7' cy='7.5' r='2'/%3E%3Ccircle cx='12' cy='7.5' r='2'/%3E%3Ccircle cx='17' cy='7.5' r='2'/%3E%3Ccircle cx='12' cy='12.5' r='2'/%3E%3Ccircle cx='12' cy='17.5' r='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
