@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@300;400&display=swap');

:root {
    --bg: #1a1a1a;
    --text: #e8e8e8;
    --text-muted: #707070;
    --accent: #c9a87c;
    --border: rgba(255, 255, 255, 0.1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

::selection {
    background: rgba(201, 168, 124, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(201, 168, 124, 0.3);
    color: #ffffff;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    margin: 0;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: opacity 0.25s ease;
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeIn 0.6s ease-out both;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: none;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
    animation: fadeIn 0.4s ease-out both;
}

.back-link:hover {
    color: var(--text);
    transform: translateX(-3px);
    border-bottom: none;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
}

footer {
    margin-top: 80px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.3px;
}

footer nav {
    display: flex;
    gap: 24px;
}

footer a {
    color: var(--text-muted);
    border-bottom: none;
    font-size: 13px;
}

footer a:hover {
    color: var(--accent);
    border-bottom: none;
}

body.is-leaving {
    opacity: 0;
    transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .entry,
    .section-label {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .back-link {
        margin-bottom: 32px;
    }

    .page-title {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        margin-top: 48px;
    }
}
