@import url("/components/font.css");

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 3vw, 40px);
    background: rgba(247, 249, 255, 0.82);
    border-bottom: 1px solid rgba(0, 56, 255, 0.08);
    backdrop-filter: blur(18px);
    color: #091327;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #091327;
    text-decoration: none;
}

.brand-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    background: center / contain no-repeat url("/assets/logo/logo-emblem-accent-red-64.png");
    filter: drop-shadow(0 4px 10px rgba(0, 56, 255, 0.12));
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: "KOHIBaeumOTF", "RIDIBatang", serif;
    font-size: 0.98rem;
    letter-spacing: 0.16em;
    color: #091327;
}

.brand-copy span {
    font-family: "RIDIBatang", serif;
    font-size: 0.78rem;
    color: #52627c;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 24px;
    color: #52627c;
    font-family: "RIDIBatang", serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.site-nav a {
    position: relative;
    color: inherit;
    text-decoration: none;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: #0038ff;
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
    color: #091327;
}

.local-cache-reset {
    border: 1px solid rgba(0, 56, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0038ff;
    cursor: pointer;
    font: inherit;
    padding: 6px 12px;
}

@media (max-width: 1280px) {
    .site-nav {
        gap: 14px 18px;
        font-size: 1rem;
    }
}

.local-cache-reset:hover,
.local-cache-reset:focus-visible {
    background: #0038ff;
    color: #fff;
    outline: none;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }
}
