:root {
    --bg-color: #f5f5f5;
    --text-color: #1e1e1e;
    --text-color-dark: #6c6c6c;
    --nav-bg: #ffffff;
    --nav-shadow: rgba(0,0,0,0.15);
    --hover-bg: #ffffff;
    --border-color: #eeeeee;
    --progress-bg: #f0f0f0;
    --progress-fill: #4CAF50;
    --post-link: #bfbfbf;
    --font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}

@font-face {
    font-family: 'Cabin';
    src: url('/fonts/Cabin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cabin';
    src: url('/fonts/Cabin.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

[data-theme="dark"] {
    --bg-color: #1d1e20;
    --text-color: #dadadb;
    --text-color-dark: #9b9c9d;
    --nav-bg: #2e2e33;
    --nav-shadow: rgba(0,0,0,0.3);
    --hover-bg: #2e2e33;
    --border-color: #333333;
    --progress-bg: #333;
    --post-link: #666;
    --progress-fill: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    margin-top: 1rem;
    font-size: 34px;
}

a {
    text-decoration: none;
    color: deepskyblue;
}

.title404 {
    margin-bottom: 2rem;
    font-size: 4em;
    text-align: center;
}

.content404 {
    font-size: 1.25em;
    text-align: center;
}

@media (max-width: 1200px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        height: auto;
    }
}
