/* Дорогами России — стили блога о путешествиях */

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

:root {
    --bg: #fafaf7;
    --surface: #ffffff;
    --text: #2a2a2a;
    --muted: #6b6b6b;
    --accent: #8b6f47;
    --border: #e5e2dc;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

/* === Header === */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 1.75rem;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* === Layout === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.page-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

/* === Hero (главная) === */
.hero {
    background: linear-gradient(135deg, #f5f0e8, #ede7dc);
    padding: 4rem 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-family: 'Georgia', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }
    .page-title {
        font-size: 1.75rem;
    }
}

/* === Article cards (главная) === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.article-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #d4c4a8, #b39d7d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-style: italic;
}

.card-body {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-body h2 {
    font-family: 'Georgia', serif;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    gap: 1rem;
}

/* === Article page === */
.article {
    background: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span::before {
    content: '·';
    margin-right: 1.5rem;
    color: var(--border);
}

.article-meta span:first-child::before {
    content: none;
    margin: 0;
}

.article-cover {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #c9b890, #a08560);
    border-radius: 6px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-style: italic;
}

.article h1 {
    font-family: 'Georgia', serif;
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.article-intro {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
}

.article h2 {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article h3 {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
}

.article p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.article ul, .article ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article li {
    margin-bottom: 0.5rem;
}

.article blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.5rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted);
    background: var(--bg);
    border-radius: 0 4px 4px 0;
}

.article-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-related h3 {
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.article-related ul {
    list-style: none;
    margin: 0;
}

.article-related li {
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .article {
        padding: 1.5rem;
    }
    .article h1 {
        font-size: 1.6rem;
    }
    .article-cover {
        height: 180px;
        font-size: 1.25rem;
    }
}

/* === Footer === */
.site-footer {
    background: #2a2520;
    color: #b8b0a3;
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-inner p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-inner a {
    color: #d4c4a8;
}
