/* 홈(sign.html) 기준 공통 스타일: 흰 바탕, 검정 글자, 가는 선, 12칸 그리드, 신호색(노랑)은 아주 작게만 */
:root {
  --bg: #F5F5F3; --ink: #111111; --ink-2: #3A3A3A; --muted: #8A8A86; --line: #D9D9D5; --line-2: #111111;
  --signal: #FFC400; --on-ink: #F5F5F3; --on-ink-muted: #9A9A96; --pic: #EAEAE7;
  --sans: "Geist", "Pretendard Variable", sans-serif; --kr: "Pretendard Variable", "Pretendard", sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --m: clamp(16px, 3vw, 48px); --max: 1600px; --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--kr); word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img, video { display: block; width: 100%; height: 100%; object-fit: contain; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 상단바 */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, transform .5s var(--ease); }
/* 내려갈 땐 위로 숨고, 조금이라도 올리면 다시 내려옴 */
.top.hide { transform: translateY(-100%); }
.top.scrolled { background: var(--bg); }
.top .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: center; height: 56px; font: 500 14px/1 var(--sans); }
.top .mark { grid-column: span 3; display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.top .mark i { width: 8px; height: 8px; background: var(--ink); }
.top nav { grid-column: span 9; display: flex; justify-content: flex-end; gap: 28px; }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top nav a:hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }

/* 페이지 머리: 큰 제목(가는 굵기) + 오른쪽 작은 정보 */
.p-title { font: 500 clamp(56px, 8vw, 136px)/.92 var(--sans); letter-spacing: -0.055em; }
.h2 { font: 500 clamp(28px, 2.6vw, 40px)/1 var(--sans); letter-spacing: -0.04em; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; font: 400 14px/1.4 var(--sans); }
.meta dt { color: var(--muted); } .meta dd { margin: 0; }

/* 하단: 선 하나 + 인사 + 메일 */
.end { margin-top: clamp(120px, 18vh, 200px); padding-bottom: var(--m); }
.end-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.end .hello { grid-column: 1 / span 6; color: var(--ink-2); }
.end .mail { grid-column: 7 / span 6; justify-self: end; font: 500 16px/1.4 var(--sans); letter-spacing: -0.01em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.end .mail:hover { background-size: 100% 1px; }

@media (max-width: 900px) {
  .top .mark { grid-column: span 4; } .top nav { grid-column: span 8; gap: 18px; }
  .end .hello, .end .mail { grid-column: 1 / -1; } .end .mail { justify-self: start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
