/* 
   Theme: Warm Paper (Nostalgic & Accessible)
   Target Audience: 55+
   Layout: Sidebar Right
*/

:root {
    --bg-paper: #f9f7f1;
    --text-main: #2c2420;
    --text-muted: #5d5650;
    --accent-color: #8b5e3c;
    /* Warm Leather/Wood */
    --accent-secondary: #d4c4a8;
    /* Aged Paper */
    --font-serif: 'Lora', serif;
    --font-heading: 'Merriweather', serif;
    --line-height: 1.8;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: var(--line-height);
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    /* 18px base for readability */
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #5e3a20;
    text-decoration: underline;
}

/* Layout Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
    text-decoration: none !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    background: url('artykuly/images/hero.png') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 36, 32, 0.6);
    /* Overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: #6d462b;
    text-decoration: none;
    color: #fff;
}

/* Article Card */
.article-grid {
    display: grid;
    gap: 2rem;
}

.article-card {
    background: #fff;
    border: 1px solid #e0dfd5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    /* Horizontal layout for list */
}

.article-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-placeholder {
    width: 250px;
    height: auto;
    background-color: #e8e4da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5e3c;
    font-size: 3rem;
    font-weight: bold;
    border-right: 1px solid #e0dfd5;
    flex-shrink: 0;
}

.article-image {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-right: 1px solid #e0dfd5;
    flex-shrink: 0;
}


@media (max-width: 600px) {
    .article-card {
        flex-direction: column;
    }

    .article-placeholder,
    .article-image {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e0dfd5;
    }
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.meta-cats,
a.meta-cats {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 4px 10px;
    background-color: #f4efdf;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #e0dfd5;
}

a.meta-cats:hover {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.article-title {
    font-size: 1.4rem;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-main);
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: bold;
    font-size: 0.95rem;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #e0dfd5;
    /* Border instead of shadow for paper feel */
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 0.5rem;
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed #e0dfd5;
    padding-bottom: 0.5rem;
}

.widget-list li:last-child {
    border: none;
}

/* Single Article */
.single-article header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0dfd5;
    padding-bottom: 1rem;
}

.single-article .lead {
    font-size: 1.25rem;
    font-style: italic;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.single-article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
}

.single-article-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e8e4da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #8b5e3c;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.author-name {
    font-weight: bold;
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #2c2420;
    color: #d4c4a8;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: #fff;
}