/* Explainer Blog — Minimalist Editorial Design */
/* novinky.inspiruj.se */

:root {
    --text: #1a1a1a;
    --text-secondary: #666;
    --bg: #fafaf8;
    --accent: #c45a3c;
    --border: #e5e5e0;
    --max-width: 680px;
    --font-body: 'Georgia', 'Times New Roman', serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

/* Header */

.site-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.site-header h1 {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-header h1 a {
    color: var(--text);
    text-decoration: none;
}

.site-header .tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-family: var(--font-ui);
}

/* Main content */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Article list (index page) */

.article-list {
    list-style: none;
}

.article-list li {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.article-list li:first-child {
    padding-top: 0;
}

.article-list .date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-list h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0.3rem 0 0.5rem;
}

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

.article-list h2 a:hover {
    color: var(--accent);
}

.article-list .excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-list .thumb {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Single article page */

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header .date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0.5rem 0 0;
}

.article-hero {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    margin: 1.5rem 0 2rem;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-source {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.article-source a:hover {
    text-decoration: underline;
}

/* Navigation */

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

/* Footer */

.site-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

/* Archive page styling */

.archive-year {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-year:first-child {
    margin-top: 0;
}

/* Responsive */

@media (max-width: 600px) {
    html { font-size: 16px; }
    .article-header h1 { font-size: 1.6rem; }
    .article-list h2 { font-size: 1.2rem; }
    main { padding: 1.5rem 1rem 3rem; }
}

/* Print */

@media print {
    .site-header, .site-footer, .back-link { display: none; }
    body { background: white; }
    main { max-width: 100%; padding: 0; }
}
