/* Minimal cleaned custom styles for the site.
   Kept rules that affect layout, typography, links, and article list.
   Removed redundant selectors and combined similar rules for clarity. */

:root {
    /* Prefer PaperMod theme variables if present; otherwise use local greyscale fallbacks.
       PaperMod commonly exposes variables like --tm-col-text, --tm-col-subtle, etc.
       Using fallbacks keeps this file safe when the theme directory is missing. */
    --text: var(--tm-col-text, #111);
    --muted: var(--tm-col-subtle, #666);
    --accent: var(--tm-col-accent, #444);
    --border: var(--tm-border, #d0d0d0);
    --bg: var(--tm-bg, #fff);
}

/* Base */
html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.site-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header and navigation */
.header-main {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    gap: 15px;
}

.nav-menu a {
    color: var(--accent);
    text-decoration: none;
}

.nav-menu a:hover,
.article-title:hover,
a:hover { color: var(--text); text-decoration: underline; }

.nav-menu li.current a { font-weight: 700; color: var(--text); }

/* Links */
a { color: var(--accent); }

/* Content typography */
p, li, blockquote { color: var(--text); }
h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--text);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    margin-top: 50px;
}

/* Recent articles / list */
.recent-articles { margin: 0 auto 60px; padding: 0 20px; max-width: 800px; }
.recent-articles h2 { font-size: 2rem; margin-bottom: 30px; text-align: left; border-bottom: 2px solid var(--border); padding-bottom: 10px; color: var(--text); }

.articles-list { display: flex; flex-direction: column; gap: 15px; }
.article-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.article-meta { font-size: 0.9rem; color: var(--muted); }
.article-item p { margin: 0; line-height: 1.6; color: var(--text); }

.article-title { white-space: nowrap; margin-right: 10px; color: var(--accent); text-decoration: none; flex-shrink: 0; }
.article-line { flex-grow: 1; background-color: var(--border); height: 1px; margin: 0 10px; }
.article-date { white-space: nowrap; color: var(--muted); font-size: 0.9rem; flex-shrink: 0; }
