@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');
:root {
    --bg: #fbf9f5;
    --text: #222220;
    --accent: #555550;
    --border: #e2ded4;
    --meta: #767670;
    --font: 'Exo 2', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}

[data-theme="dark"] {
    --bg: #141413;
    --text: #e6e4df;
    --accent: #a0a09a;
    --border: #2a2a28;
    --meta: #8c8c86;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.8;
    font-size: 1rem;
    padding: 2rem 1rem;
    max-width: 68ch;
    margin: 0 auto;
    transition: background-color 0.2s ease, color 0.2s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.site-title {
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--text);
}

.entry-list { list-style: none; }
.entry-item { margin-bottom: 3.5rem; }

.entry-title {
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.entry-title a {
    color: var(--text);
    text-decoration: none;
}

.entry-title a:hover {
    text-decoration: underline;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--meta);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.entry-tags a {
    color: var(--meta);
    text-decoration: none;
    margin-right: 0.5rem;
}

.entry-tags a:hover { text-decoration: underline; }

.audio-indicator {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--meta-color, #666);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.4rem;
}

[data-theme="dark"] .audio-indicator {
    background: rgba(255, 255, 255, 0.08);
}

.entry-excerpt, .entry-content {
    white-space: pre-line;
    word-break: break-word;
}

audio {
    width: 100%;
    margin: 1.5rem 0;
    height: 40px;
    filter: sepia(20%) grayscale(80%);
}

footer {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--meta);
    text-align: center;
}

/* Admin Styles */
.admin-form input[type="text"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    margin-bottom: 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
}

.admin-form button {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th, .table td {
    border-bottom: 1px solid var(--border);
    padding: 0.6rem;
    text-align: left;
    font-size: 0.9rem;
}