:root {
    color-scheme: dark;
    --accent: rgba(0,200,200,0.6);
    --accent-light: rgba(0,200,200,0.3);
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { min-height: 100vh; background: #000; }
::selection { background: rgba(0,200,200,0.25); color: #fff; }

.hidden { display: none !important; }

mark.search-highlight {
    background: rgba(0,200,200,0.25);
    color: #fff;
    border-radius: 2px;
    padding: 1px 2px;
}

/* back-link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    transition: all 0.3s;
}
.back-link:hover { color: #fff; border-color: rgba(255,255,255,0.3); outline: 2px solid rgba(0,200,200,0.6); outline-offset: 2px; }
.back-link:focus-visible { outline: 2px solid rgba(0,200,200,0.6); outline-offset: 2px; }
.back-link svg { width: 16px; height: 16px; }

/* header */
.header {
    width: min(100%, 640px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.title-area { text-align: right; }
.title-label {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-bottom: 4px;
}
.title-date {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

/* search */
.search-wrap {
    max-width: 1024px;
    margin: 0 auto 32px;
    width: 100%;
}
.search-wrapper { position: relative; }
.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    background: #0a0a0a;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.search-input::placeholder { color: rgba(255,255,255,0.25); }
.search-input:focus { border-color: rgba(255,255,255,0.4); }
.search-input:hover { outline: 2px solid rgba(0,200,200,0.6); outline-offset: 2px; }
.search-input:focus-visible { outline: 2px solid rgba(0,200,200,0.6); outline-offset: 2px; }
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.25);
    pointer-events: none;
    transition: color 0.3s;
}
.search-input:focus ~ .search-icon,
.search-input:not(:placeholder-shown) ~ .search-icon { color: rgba(255,255,255,0.5); }

/* footer */
.footer {
    margin-top: 60px;
    color: rgba(255,255,255,0.2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 2;
}
.footer span { white-space: nowrap; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

/* animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 560px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .title-area { text-align: left; }
    .footer {
        font-size: 9px;
        letter-spacing: 0.05em;
        margin-top: 40px;
        padding: 0 16px;
    }
}
