/* DEVLUV 루트 사이트 공용 레이어 — 색 토큰·기본 타이포·버튼·상단 헤더.
   루트의 모든 페이지(index.html, profile.html …)가 이 파일 하나를 링크한다. 헤더 마크업/동작은 /site-header.js.
   페이지 전용 스타일(히어로·섹션 등)은 각 페이지에 둔다. */
/* 색은 로고에서 가져온다: 하트의 빨강, 톱니의 회색. 나머지는 거의 검정과 종이색. */
:root {
  --bg: #0f0f0e;
  --bg-1: #0a0a09;
  --surface: #171716;
  --surface-2: #1d1d1b;
  --surface-3: #262624;
  --line: rgba(236, 235, 232, .10);
  --line-2: rgba(236, 235, 232, .18);
  --line-hot: #e0241b;
  --text: #ecebe8;
  --muted: #a9a7a2;
  --dim: #74726d;
  --steel: #8a8a88;
  --red: #e0241b;
  --red-2: #ef3a30;
  --red-soft: #f08a83;
  --on-red: #fff;
  --display: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --body: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 4px;
  --r-lg: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(17px * var(--ui-scale, 1)); }
body {
  margin: 0; min-width: 320px;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 1rem; line-height: 1.7; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  word-break: keep-all; overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { width: min(100% - clamp(2rem, 7vw, 6rem), 1240px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-size: .92rem; font-weight: 600; letter-spacing: -.01em;
  padding: .8rem 1.25rem; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); }
.btn.red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
/* 로그인 위젯과 공용으로 쓰이는 이름 — 같은 모양으로 맞춘다. */
.pill-btn, .ghost-btn { font: inherit; font-size: .84rem; font-weight: 600; padding: .55rem .95rem; border-radius: var(--r); cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--text); transition: border-color .15s, background .15s; }
.pill-btn { background: var(--red); border-color: var(--red); color: var(--on-red); }
.ghost-btn:hover { border-color: var(--text); }
.pill-btn:hover { background: var(--red-2); }
.pill-btn.sm, .ghost-btn.sm { padding: .45rem .8rem; font-size: .8rem; }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(15, 15, 14, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-inner { display: flex; align-items: center; gap: 1.6rem; height: 64px; }
.brand img { height: 24px; width: auto; }
nav.main { display: flex; gap: 1.6rem; margin-left: 1.2rem; }
nav.main a { font-size: .9rem; font-weight: 500; color: var(--muted); padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
nav.main a:hover { color: var(--text); border-bottom-color: var(--text); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.play-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--text); }
.play-link::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.play-link:hover { color: var(--red-soft); }
.burger { display: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; padding: 0; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; content: ""; }
.burger span::before { position: absolute; top: -5px; }
.burger span::after { position: absolute; top: 5px; }
#authbox { display: flex; align-items: center; gap: .6rem; }
#authbox .who { font-size: .84rem; color: var(--muted); }
#authbox a.who { transition: color .15s; }
#authbox a.who:hover { color: var(--text); }

@media (max-width: 960px) {
  nav.main { display: none; }
  .burger { display: inline-grid; }
  nav.main.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .4rem clamp(1rem, 3.5vw, 3rem) .8rem; }
  nav.main.open a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .play-link { display: none; }
}
@media (max-width: 560px) {
  .site-inner { gap: .8rem; }
}
