/* Header + fullscreen nav (공통) */

/* =========================================================
   Header / Nav tokens (모든 페이지 동일)
   ========================================================= */
.header,
.navOverlay {
    --bg: #fff8f3;
    --ink: #111;
    --muted: #6b665e;
    --accent: #ff761a;
    --line: rgba(17, 17, 17, .12);
    --pad: clamp(16px, 3.2vw, 40px);
}

/* =========================================================
   Header
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    font-family: "SUIT", "Suit", -apple-system, "Noto Sans KR", sans-serif;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.header__inner {
    width: 90%;
    margin: 0 auto;
}

.header.is-line {
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 0;
}

.menu-btn {
    justify-self: start;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    padding-left: 0;
}

.menu-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
    outline-offset: 4px;
}

.header .logo {
    justify-self: center;
    user-select: none;
    width: clamp(108px, 12vw, 270px);
    min-width: 108px;
    max-width: 270px;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.right-rail {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rail-open {
    text-orientation: mixed;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    padding: 6px 4px;
    cursor: pointer;
    user-select: none;
}

.rail-open>div:last-child {
    padding-left: 40px;
}

.rail-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.rail-icon svg {
    width: 16px;
    height: 16px;
}

.top-btn {
    position: fixed;
    right: clamp(14px, 2.2vw, 28px);
    bottom: clamp(16px, 3.2vw, 32px);
    z-index: 35;
    width: clamp(42px, 4vw, 52px);
    height: clamp(42px, 4vw, 52px);
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 90%, #fff);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, border-color .2s ease;
}

.top-btn.is-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.top-btn:hover {
    border-color: color-mix(in srgb, var(--ink) 45%, var(--line));
}

.top-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
    outline-offset: 3px;
}

/* =========================================================
   Fullscreen Nav Overlay
   ========================================================= */
.navOverlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    font-family: "SUIT", "Suit", -apple-system, "Noto Sans KR", sans-serif;
    display: none;
    flex-direction: column;
    background: var(--bg);
    padding: 0;
    overflow: auto;
}

.navOverlay.is-open {
    display: flex;
}

.navOverlay__head {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.navOverlay__body {
    flex: 1 1 auto;
    width: 90%;
    margin: 0 auto;
    padding-top: 2em;
    min-height: 0;
}

.navOverlay__grid {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(20px, 4vw, 64px);
    align-items: start;
}

.navList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.navItem {
    font-size: clamp(28px, 4.2vw, 54px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.navItem small {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.navItem:hover {
    color: var(--accent);
}

.navMeta {
    color: var(--muted);
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.7;
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

.navMeta b {
    color: var(--ink);
}

/* about.css `.pill`(토글 UI)와 클래스 충돌 방지 — 내비 소셜 전용 */
.navMeta__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    margin-top: 14px;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
    width: fit-content;
}

body.is-lock {
    overflow: hidden;
}

@media (max-width: 900px) {
    .rail-open {
        display: none;
    }

    .navOverlay__grid {
        grid-template-columns: 1fr;
    }

    .navMeta {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 16px;
    }

    .top-btn {
        right: 12px;
        bottom: 12px;
    }
}
