:root {
    --bg-color: #121315;
    --text-main: #c0c9db;
    --text-muted: #9daccc;
    --text-more-muted: rgba(139, 153, 185, 0.747);
    --border-color: #384c65;
    --photo-bg: #f0f0f0;
    --caption-color: #9daccc;
    --text-post-bg: rgb(16, 18, 20);
    --text-post-color: #9daccc;
    --text-post-border: #384c65;
}

body.light-mode {
    --bg-color: #fafafa;
    --text-main: #384c65;
    --text-muted: #485f88;
    --text-more-muted: rgba(91, 110, 144, 0.647);
    --border-color: #eeeeee;
    --photo-bg: #e0e0e0;
    --caption-color: #121524;
    --text-post-bg: #f5f5f5;
    --text-post-color: #121524;
    --text-post-border: #c5c9d8;
}

body {
    font-family: "Tomorrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease-in-out;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 80px 0 40px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

@media (500px > width) {
    h1 {
        font-size: 24px;
        font-weight: 500;
        letter-spacing: 0.02em;
        margin: 0;
        font-family: 'Bitcount Grid Double', monospace;
    }
}

@media (width >= 500px) {
    h1 {
        font-size: 32px;
        font-weight: 500;
        letter-spacing: 0.02em;
        margin: 0;
        font-family: 'Bitcount Grid Double', monospace;
    }
}


#theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 4px;
}

.description {
    color: var(--text-more-muted);
    max-width: 450px;
    font-size: 14px;
    font-family: 'Tomorrow', Georgia, serif;
    margin-top: 14px;
}

#feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 100px;
}

.post {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 24px;
}

/* date */
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Bitcount Grid Double', monospace;
}

.post-time {
    color: var(--text-more-muted);
    font-weight: 700;
}

.post-time::before {
    content: '•';
    display: inline-block;
    margin: 0 8px 0 0;
    color: var(--text-more-muted);
}

.line {
    height: 1px;
    flex-grow: 1;
    background-color: var(--border-color);
}

.photo-container {
    background-color: var(--photo-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.photo-container img {
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
}

.photo-container img:hover {
    transform: scale(1.02);
}

.caption {
    font-style: normal;
    font-size: 14px;
    color: var(--caption-color);
    white-space: pre-wrap;
}

.enter-symbol {
    opacity: 0.4;
    color: var(--text-muted);
    font-size: 14px;
    vertical-align: baseline;
    font-style: normal;
}

.text-post-content {
    font-size: 14px;
    color: var(--caption-color);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

