/* BeHappy — 정식 홈페이지 v2
   흰 바탕, 잉크 블랙, Lemon Zing은 Home과 스마일에만. 장식 대신 여백과 타이포로 말한다. */
:root {
  --zing: #FFEA00;
  --ink: #1C1A10;
  --paper: #FFFFFF;
  --graphite: #6E6C62;
  --mist: #EDEDE9;
  --line: rgba(28, 26, 16, 0.14);
  --latin: "Instrument Sans", "Inter Display", "Helvetica Neue", Arial, sans-serif;
  --kr: "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --sans: var(--latin);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.75 var(--kr);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* 12단 그리드 */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.c-full { grid-column: 1 / -1; }
.c-head { grid-column: 1 / span 8; }
.c-text { grid-column: 6 / span 6; }
.c-left { grid-column: 1 / span 5; }
.c-right { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .c-head, .c-text, .c-left, .c-right { grid-column: 1 / -1; }
}

/* ---------- 내비게이션 ---------- */
.nav { position: relative; z-index: 10; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 88px; }
.brand { display: block; width: 132px; text-decoration: none; }
.brand svg { width: 100%; height: auto; overflow: visible; }
.menu { display: flex; gap: clamp(20px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; font: 500 15px/1 var(--latin); letter-spacing: 0.005em; }
.menu a { text-decoration: none; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s ease; }
.menu a:hover, .menu a[aria-current="page"] { background-size: 100% 1.5px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px 0 10px 12px; color: inherit; line-height: 0; }
.menu-btn svg { display: block; }
@media (max-width: 760px) {
  .menu { display: none; }
  .menu-btn { display: block; }
  .menu-btn:active { color: var(--zing); }
  .nav .wrap { height: 72px; }
  .brand { width: 112px; }
}
dialog.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--zing); color: var(--ink); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: fade 0.25s ease-out both; }
dialog.sheet::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet .bar { display: flex; justify-content: space-between; align-items: center; height: 72px; padding-inline: var(--gutter); }
.sheet .bar .menu-btn svg { display: block; }
.sheet nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter) 15vh; }
/* 모바일 메뉴: 메인 카피와 같은 Bricolage Grotesque. 누르거나 올리면 검정 캡슐 안의 노란 글자로 톡 튀어나온다 */
.sheet nav { align-items: flex-start; gap: 0.06em; }
.sheet nav a { font: 800 clamp(3rem, 15vw, 5rem)/1.08 "Bricolage Grotesque", var(--latin); font-variation-settings: "wdth" 80; letter-spacing: -0.035em; text-decoration: none;
  padding: 0 0.18em 0.06em; margin-left: -0.18em; border-radius: 0.16em; transform-origin: left center;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sheet nav a:hover, .sheet nav a:focus-visible, .sheet nav a:active { background: var(--ink); color: var(--zing); transform: translateX(0.12em) rotate(-2deg) scale(1.04); outline: none; }
.sheet nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.1em; }
.sheet .bar .brand { width: 112px; }
.sheet .bar .brand:focus, .sheet .bar .menu-btn:focus { outline: none; }

/* ---------- 타이포 ---------- */
.display {
  margin: 0; font: 600 clamp(3.2rem, 9.4vw, 9.5rem)/0.94 var(--latin);
  font-variation-settings: "wdth" 78; letter-spacing: -0.045em;
}
.display-kr { margin: 0; font: 700 clamp(2.1rem, 5.2vw, 4.8rem)/1.24 var(--kr); letter-spacing: -0.045em; word-break: keep-all; }
.title-kr { margin: 0; font: 700 clamp(1.25rem, 1.9vw, 1.6rem)/1.5 var(--kr); letter-spacing: -0.03em; word-break: keep-all; }
.lead { margin: 0; font: 400 clamp(1.2rem, 1.9vw, 1.6rem)/1.7 var(--kr); letter-spacing: -0.025em; word-break: keep-all; }
.body { margin: 0; font: 400 17px/1.85 var(--kr); letter-spacing: -0.01em; word-break: keep-all; color: #3A3830; max-width: 36em; }
.body + .body { margin-top: 1.1em; }
.small { font: 500 14px/1.6 var(--latin); color: var(--graphite); }

/* 섹션 간격 */
.page-head { padding-block: clamp(56px, 11vw, 168px) clamp(56px, 9vw, 128px); }
.block { padding-block: clamp(64px, 10vw, 152px); }
.block + .block { padding-top: 0; }
.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 푸터 ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.foot .grid { padding-block: 32px 32px; row-gap: 28px; font: 400 14px/1.75 var(--kr); color: var(--graphite); align-items: start; }
.foot .brand { width: 112px; }
.foot .f1 { grid-column: 1 / span 8; }
.foot .f2 { grid-column: 5 / span 3; }
.foot .f3 { grid-column: 8 / span 3; }
.foot .f4 { grid-column: 9 / span 4; text-align: right; align-self: end; }
.foot a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot b { display: block; font-weight: 500; color: var(--ink); }
@media (max-width: 900px) {
  .foot .f1, .foot .f2, .foot .f3, .foot .f4 { grid-column: 1 / -1; text-align: left; }
}

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

/* ---------- 어두운 페이지 (Belife) ---------- */
body.dark { background: var(--ink); color: #FFFFFF; --line: rgba(255, 255, 255, 0.14); --graphite: rgba(255, 255, 255, 0.58); --mist: #2A2619; }
body.dark .body { color: rgba(255, 255, 255, 0.74); }
body.dark :focus-visible { outline-color: var(--zing); }
body.dark .foot { border-top-color: rgba(255, 255, 255, 0.14); }
body.dark .foot .grid { color: rgba(255, 255, 255, 0.55); }
body.dark .foot a, body.dark .foot b { color: #FFFFFF; }
/* 어두운 페이지: 메뉴에 마우스를 올리면 노란색으로 (현재 페이지는 밑줄 유지) */
body.dark .menu a { transition: color 0.18s ease, background-size 0.25s ease; }
body.dark .menu a:hover { color: var(--zing); }
body.dark .menu a:hover:not([aria-current="page"]) { background-size: 0 1.5px; }
body.dark .menu a[aria-current="page"]:hover { background-image: linear-gradient(var(--zing), var(--zing)); }
body.dark .foot a:hover { color: var(--zing); text-decoration: none; }

/* 커서: 기본 스마일, 누를 수 있는 곳에서는 활짝 웃는 스마일 (터치 기기에서는 적용되지 않음) */
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='21.5' fill='%23FFEA00' stroke='%231C1A10' stroke-width='3'/%3E%3Ccircle cx='16.5' cy='19' r='3.2' fill='%231C1A10'/%3E%3Ccircle cx='31.5' cy='19' r='3.2' fill='%231C1A10'/%3E%3Cpath d='M12.5 28.5c3 6.6 20 6.6 23 0' fill='none' stroke='%231C1A10' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, auto; }
a, button, [role="button"], summary, label { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='21.5' fill='%23FFEA00' stroke='%231C1A10' stroke-width='3'/%3E%3Cpath d='M12.5 20.5c1.6-4 6.4-4 8 0M27.5 20.5c1.6-4 6.4-4 8 0' fill='none' stroke='%231C1A10' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M12.5 26.5h23c0 7-5.2 11.5-11.5 11.5s-11.5-4.5-11.5-11.5z' fill='%231C1A10'/%3E%3C/svg%3E") 16 16, pointer; }
