/* haemin/way v6 공통 틀 — 홈(/ko/, v5 시안)과 나머지 한국어 화면이 같은 위 줄·메뉴·바닥을 쓴다.
   손으로 쓰는 파일(생성 아님). 결정: docs/decisions/2026-11-17-site-redesign-v6-preview.md
   v5 언어: 검은 바탕, 강조 C(아쿠아 사파이어) 하나, Pretendard 굵게, 기울임·명조 없음, 유리 창.
   홈의 v5 style.css 와 이름이 겹치지 않게 모든 틀 규칙은 hw- 로 시작한다. */
:root {
  --hw-bg: #05060a;
  --hw-fg: #f3f6fa; --hw-fg-2: rgba(232, 238, 247, .74); --hw-fg-3: rgba(232, 238, 247, .58);
  --hw-line: rgba(255, 255, 255, .09); --hw-line-2: rgba(255, 255, 255, .16);
  --hw-acc-hi: #7df0ff; --hw-acc: #2bb7ff; --hw-acc-deep: #1d6bff; --hw-acc-ink: #031626;
  --hw-gx: clamp(16px, 5.4vw, 104px);
  --hw-nav-h: clamp(60px, 9.5vh, 86px);
  --hw-f: "PretendardV", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --hw-ease: cubic-bezier(.2, .9, .1, 1);
}

.hw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hw-skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--hw-fg); color: var(--hw-bg); font: 600 15px/1.2 var(--hw-f); text-decoration: none; }
.hw-skip:focus, .hw-skip:hover { top: 12px; color: var(--hw-bg); }

/* ── 위 줄 ── */
.hw-nav { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: var(--hw-nav-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--hw-gx);
  font-family: var(--hw-f); letter-spacing: -.01em; color: var(--hw-fg); transition: background .3s; }
.hw-nav.scrolled, .hw-nav.is-open { background: color-mix(in srgb, var(--hw-bg) 78%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hw-nav a, .hw-sheet a, .hw-foot a { text-decoration: none; }
.hw-nav :is(button, a):focus-visible, .hw-sheet :is(button, a):focus-visible, .hw-foot a:focus-visible { outline: 2px solid var(--hw-acc-hi); outline-offset: 3px; border-radius: 8px; }
.hw-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; color: var(--hw-fg); }
.hw-brand:hover { color: var(--hw-fg); }
.hw-brand s { text-decoration: none; color: var(--hw-acc); margin: 0 1px; font-weight: 500; }
/* 로고: 운영 사이트와 같은 둥근 레서판다 표시 + 가는 강조 색 고리(v5 결정 9) */
.hw-mark { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--hw-acc) 70%, transparent); background: #111; }
.hw-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; display: block; max-width: none; border-radius: 0; }

.hw-menu { margin-left: clamp(16px, 6vw, 160px); }
.hw-menubar { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); list-style: none; margin: 0; padding: 0; }
.hw-item { position: relative; margin: 0; padding: 0; }
.hw-top { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font: 500 16px/1 var(--hw-f); letter-spacing: -.01em; color: var(--hw-fg-2); white-space: nowrap; transition: color .15s, background .15s; }
.hw-top:hover, .hw-top[aria-expanded="true"] { color: var(--hw-fg); background: rgba(255, 255, 255, .06); }
.hw-item.is-here > .hw-top { color: var(--hw-fg); }
.hw-item.is-here > .hw-top::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--hw-acc); box-shadow: 0 0 8px var(--hw-acc); }
.hw-caret { width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--hw-ease); }
.hw-top[aria-expanded="true"] .hw-caret { transform: translateY(3px) rotate(-135deg); }

.hw-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; font: 650 15px/1 var(--hw-f); white-space: nowrap;
  color: var(--hw-acc-ink); background: var(--hw-acc); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 8px 30px -8px color-mix(in srgb, var(--hw-acc) 70%, transparent);
  transition: transform .18s var(--hw-ease), box-shadow .18s; }
.hw-cta:hover { color: var(--hw-acc-ink); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .34) inset, 0 10px 38px -6px color-mix(in srgb, var(--hw-acc) 85%, transparent); }

/* 내림 메뉴: v5 유리 창 */
.hw-dd { position: absolute; left: -12px; top: calc(100% + 10px); z-index: 31; min-width: 300px; padding: 10px; border-radius: 20px;
  background: linear-gradient(180deg, #0e131b, #080b11);   /* 위 줄의 흐림 안에서는 겹친 흐림이 안 먹어 불투명하게 */
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px var(--hw-line-2) inset; }
.hw-dd::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(128deg, rgba(125, 240, 255, .5), rgba(255, 255, 255, .08) 26%, transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hw-dd[hidden] { display: none; }
.hw-dd-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15.5rem); gap: 6px; width: min(680px, calc(100vw - 2 * var(--hw-gx))); }
.hw-dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hw-dd-list li { margin: 0; }
.hw-ddl { display: grid; gap: 3px; padding: 12px 14px; border-radius: 13px; color: var(--hw-fg); transition: background .15s; }
.hw-ddl:hover { background: rgba(255, 255, 255, .06); color: var(--hw-fg); }
.hw-ddl b { display: flex; align-items: center; gap: 8px; font: 650 15.5px/1.35 var(--hw-f); letter-spacing: -.015em; }
.hw-ddl small { font: 400 13.5px/1.45 var(--hw-f); color: var(--hw-fg-3); }
.hw-ddl[aria-current="page"] { background: color-mix(in srgb, var(--hw-acc) 12%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hw-acc) 34%, transparent) inset; }
.hw-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font: 600 11.5px/1 var(--hw-f); letter-spacing: 0; color: var(--hw-fg-2);
  box-shadow: 0 0 0 1px var(--hw-line-2) inset; background: rgba(255, 255, 255, .05); white-space: nowrap; }
.hw-dd-recent { padding: 12px 12px 10px 16px; border-left: 1px solid var(--hw-line); }
.hw-dd-cap { margin: 0 0 8px; font: 500 12.5px/1.3 var(--hw-f); color: var(--hw-fg-3); }
.hw-dd-recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hw-dd-recent li { margin: 0; }
.hw-dd-recent a { display: block; padding: 7px 0; font: 500 14px/1.45 var(--hw-f); color: var(--hw-fg-2); }
.hw-dd-recent a:hover { color: var(--hw-fg); }

/* 휴대폰 메뉴 단추 */
.hw-burger { all: unset; box-sizing: border-box; cursor: pointer; display: none; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 12px; color: var(--hw-fg); }
.hw-lines, .hw-lines::before, .hw-lines::after { display: block; width: 20px; height: 1.6px; border-radius: 2px; background: currentColor; }
.hw-lines { position: relative; }
.hw-lines::before, .hw-lines::after { content: ""; position: absolute; left: 0; }
.hw-lines::before { top: -6px; } .hw-lines::after { top: 6px; }

/* 전체 메뉴 시트(휴대폰) */
.hw-sheet { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--hw-gx) calc(28px + env(safe-area-inset-bottom));
  background: rgba(5, 6, 10, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-family: var(--hw-f); color: var(--hw-fg); }
.hw-sheet[hidden] { display: none; }
.hw-sheet-top { display: flex; align-items: center; justify-content: space-between; height: var(--hw-nav-h); }
.hw-sheet-close { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-right: -8px; border-radius: 999px;
  font: 500 15px/1 var(--hw-f); color: var(--hw-fg-2); box-shadow: 0 0 0 1px var(--hw-line-2) inset; }
.hw-sheet-nav { display: grid; padding-top: 8px; }
.hw-sg-cap { margin: 22px 0 6px; font: 500 13px/1.3 var(--hw-f); color: var(--hw-fg-3); }
.hw-sg { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hw-line); }
.hw-sg li { margin: 0; border-bottom: 1px solid var(--hw-line); }
.hw-sg-solo { margin-top: 22px; }
.hw-sgl { display: grid; gap: 3px; padding: 15px 2px; color: var(--hw-fg); }
.hw-sgl b { display: flex; align-items: center; gap: 8px; font: 650 18px/1.35 var(--hw-f); letter-spacing: -.02em; }
.hw-sgl small { font: 400 13.5px/1.45 var(--hw-f); color: var(--hw-fg-3); }
.hw-sgl[aria-current="page"] b { color: var(--hw-acc); }
.hw-sheet-cta { margin-top: 28px; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; font: 650 17px/1 var(--hw-f); color: var(--hw-acc-ink); background: var(--hw-acc); }
.hw-sheet-cta:hover { color: var(--hw-acc-ink); }
html.hw-locked, html.hw-locked body { overflow: hidden; }

/* ── 바닥 ── */
.hw-foot { position: relative; z-index: 2; padding: 26px var(--hw-gx) 40px; font-family: var(--hw-f); }
.hw-foot-in { max-width: 1280px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--hw-line); display: flex; justify-content: space-between; align-items: center; gap: 12px 22px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.5; color: var(--hw-fg-3); }
.hw-foot .hw-brand { font-size: 16px; }
.hw-foot .hw-mark { width: 24px; height: 24px; }
.hw-foot-note { margin: 0; font-size: 12.5px; color: var(--hw-fg-3); }
.hw-foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hw-foot-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--hw-fg-2); }
.hw-foot-nav a:hover { color: var(--hw-fg); }

/* ── dev.haeminway.com 에서만 쓰는 조각(같은 문법) ── */
.hw-sub { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--hw-line-2); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--hw-fg-3); }
.hw-lang { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px;
  font: 600 13px/1 var(--hw-f); letter-spacing: .04em; color: var(--hw-fg-2); box-shadow: 0 0 0 1px var(--hw-line-2) inset; }
.hw-lang:hover { color: var(--hw-fg); background: rgba(255, 255, 255, .06); }
.hw-lang + .hw-cta { margin-left: 10px; }
.hw-dd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(720px, calc(100vw - 2 * var(--hw-gx))); }
.hw-dd-two .hw-dd-cap { padding: 8px 14px 0; }
.hw-dd-col2 { border-left: 1px solid var(--hw-line); padding-left: 6px; }
.hw-ddl-more b { font-size: 14px; color: var(--hw-acc); }
@media (max-width: 1180px) { .hw-sub { display: none; } }
@media (max-width: 899px) { .hw-lang { display: none; } }

/* ── 글·목록 화면의 배경 빛(8차): 홈과 같은 빛(/landing-v6/page-light.js, WebGL). 글자는 글 블록 뒤의 옅은 어두운 층(global.css .shell-v6)으로 지킨다 ── */
.hw-light { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.gl-no .hw-light { display: none; }
@media print { .hw-light { display: none !important; } }

/* ── 폭에 따라 ── */
@media (max-width: 1100px) { .hw-menu { margin-left: clamp(12px, 3vw, 40px); } }
@media (max-width: 899px) {
  .hw-menu, .hw-cta { display: none; }
  .hw-burger { display: grid; margin-left: auto; }
}
@media (max-width: 640px) {
  .hw-brand { font-size: 17px; }
  .hw-foot { padding-bottom: 56px; }
  .hw-foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-nav, .hw-top, .hw-caret, .hw-cta, .hw-ddl { transition: none; }
}
@media print {
  .hw-nav, .hw-sheet, .hw-skip, .hw-foot { display: none !important; }
}
