:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --bg-hover: #1a1a1a;
    --fg: #f5f5f5;
    --fg-muted: #a3a3a3;
    --fg-faint: #525252;
    --accent: #ffffff;
    --border-light: #222222;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --font-mono: 'Courier New', Courier, monospace;
    --max-width: 1000px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    background: var(--bg);
    min-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) var(--bg);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-faint);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 4rem 1.5rem;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
}

.skip-link:focus {
    top: 1rem;
    background: var(--bg-hover);
    padding: 0.5rem;
    color: var(--accent);
    z-index: 100;
}

h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}


.page-back {
    margin-bottom: 2.5rem;
}

.page-back a {
    color: var(--fg-faint);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, gap 0.2s ease;
    letter-spacing: 0.01em;
}

.page-back a:hover {
    color: var(--fg-muted);
    gap: 0.6rem;
}

.page-hero {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
    font-size: 2.25rem;
    color: var(--fg);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.page-hero-desc {
    color: var(--fg-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content h2 {
    font-size: 1.1rem;
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    color: var(--fg);
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: var(--fg-faint);
    transition: text-decoration-color 0.2s;
}

.page-content a:hover {
    text-decoration-color: var(--accent);
}

.page-content.article-content {
    margin-top: 3rem;
    padding-top: 2.5rem;
}

.page-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

.page-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.page-gallery img:hover {
    opacity: 0.92;
}

@media (max-width: 600px) {
    body {
        padding: 3rem 1.25rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}