:root {
    --cream: #f9f7f2;
    --oxblood: #4a0404;
    --gold: #c5a059;
    --slate: #2d3436;
    --text: #1a1a1a;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #f9f7f2;
}

body {
    background-color: var(--cream);
    color: var(--text);
    font-family: "EB Garamond", serif, "Times New Roman";
    margin: 0;
    padding: 0;
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 4px solid var(--oxblood);
}

.brand-logo-img {
    max-width: 100%;
    margin-bottom: 40px;
}

.meta-info {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.issue-tag {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 10px;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-link {
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.7rem;
    opacity: 0.6;
}

.glass-link {
    color: var(--sidebar-text);
    text-decoration: underline;
    display: block;
    margin-bottom: 5px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
}

.edition-header {
    background: var(--oxblood);
    color: var(--cream);
    padding: 10px 40px;
    font-family: monospace;
    font-size: 0.75rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
}

.section-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    margin-bottom: 40px;
}

.hero-content {
    color: white;
}

.section-title {
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-description {
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.9;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 40px 60px 40px;
}

.article-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--oxblood);
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.article-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.article-title a {
    color: var(--text);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--oxblood);
}

.article-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center; align-items: center;
}
.modal-content {
    background-color: var(--cream);
    color: var(--text);
    width: 90%; max-width: 1000px; height: 85vh;
    overflow-y: auto;
    padding: 40px;
    border: 5px solid var(--oxblood);
}
.modal-close {
    float: right; font-size: 2rem; border: none; background: none; cursor: pointer;
}
