@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,500;1,400&display=swap");

:root {
    --bg: #09090e;
    --sidebar-bg: #0d0d16;
    --accent: #c8a84b;
    --accent-dim: rgba(200, 168, 75, 0.1);
    --accent-glow: rgba(200, 168, 75, 0.04);
    --text: #e8e3d8;
    --muted: #54505f;
    --border: #181826;
    --sidebar-w: 290px;
}

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

html,
body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Lora", Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────── */
#layout {
    display: flex;
    height: 100vh;
}

/* ── Sidebar ──────────────────────────── */
#sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sidebar-header {
    padding: 30px 26px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.logo-mark {
    color: var(--accent);
    font-size: 13px;
    line-height: 1;
}

#sidebar-header h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

#article-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* ── Sidebar items ────────────────────── */
.article-item {
    padding: 14px 26px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition:
        background 0.18s,
        border-color 0.18s;
    animation: fadeSlide 0.3s ease both;
}

.article-item:hover {
    background: var(--accent-dim);
    border-left-color: rgba(200, 168, 75, 0.4);
}

.article-item.active {
    background: var(--accent-dim);
    border-left-color: var(--accent);
}

.article-item-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 5px;
}

.article-item-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ── Main content ─────────────────────── */
#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#article-frame {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg);
}

/* ── Empty / error states ─────────────── */
.status-text {
    padding: 22px 26px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* ── Animations ───────────────────────── */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
