/* 공통: 리셋 · 폰트 · 상단 연락처 바 */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.62);
  --blue: #2360f9;
  /* 1u = 16:9 캔버스 기준 가로 1% (창 비율이 달라도 비율 유지) */
  --u: min(1vw, 1.7778vh);
  --font: Pretendard, -apple-system, 'system-ui', system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  /* 모든 사진 공통 코너 라운드 */
  --r: max(5px, calc(var(--u) * .733));
}

html, body { height: 100%; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 0 1.2em;
  padding: max(12px, calc(var(--u) * 1.5)) max(20px, calc(var(--u) * 5));
  font-size: max(11px, calc(var(--u) * 0.9));
  line-height: 1.4;
  color: var(--fg);
  pointer-events: none;
}
.topbar b { font-weight: 700; }
.topbar a { pointer-events: auto; opacity: 0.85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  :root { --u: clamp(11px, 3.7vw, 15px); }
  .topbar { padding: 12px 20px 16px; font-size: 11px; background: linear-gradient(#000 65%, transparent); }
}
