:root {
    --text:   #1a1a1a;
    --muted:  #6b7280;
    --border: #e5e7eb;
    --accent: #1d4ed8;
    --bg:     #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 48px;
}
.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.3px;
}
.site-title:hover { color: var(--accent); }
.site-tagline {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Post list ── */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.post-card {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.post-card:first-child { padding-top: 0; }
.post-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.post-card a { color: var(--text); text-decoration: none; }
.post-card a:hover h2 { color: var(--accent); }
.post-card .excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.post-card time {
    color: var(--muted);
    font-size: 0.82rem;
}
.empty { color: var(--muted); padding: 40px 0; }

/* ── Single post ── */
.post-header {
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.post-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -.5px;
}
.post-header time { color: var(--muted); font-size: 0.88rem; }

.post-content { line-height: 1.85; }
.post-content p  { margin-bottom: 20px; }
.post-content h2 { font-size: 1.35rem; margin: 36px 0 14px; }
.post-content h3 { font-size: 1.1rem;  margin: 28px 0 10px; }
.post-content a  { color: var(--accent); }
.post-content ul,
.post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 6px; }

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}
.back-link:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 64px;
    padding: 24px 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ── 404 ── */
.not-found {
    padding: 80px 0;
    text-align: center;
}
.not-found h1 {
    font-size: 5rem;
    color: var(--border);
    margin-bottom: 16px;
}
.not-found p { color: var(--muted); }

/* ── Promo block ── */
.promo-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-top: 3px solid var(--accent);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 44px 0;
    box-shadow: 0 2px 12px rgba(29,78,216,.07);
}
.promo-badge {
    position: absolute;
    top: -11px;
    left: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 20px;
}
.promo-left { flex: 1; }
.promo-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.promo-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.promo-tags span {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 3px 11px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}
.promo-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
.promo-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.promo-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    display: block;
    margin-bottom: 2px;
}
.promo-btn {
    white-space: nowrap;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background .15s;
}
.promo-btn:hover { background: #1e40af; }

@media (max-width: 560px) {
    .post-header h1 { font-size: 1.5rem; }
    .promo-block { flex-direction: column; align-items: flex-start; }
    .promo-right { align-items: flex-start; width: 100%; }
    .promo-btn { width: 100%; text-align: center; }
}
