:root {
    --accent: #e73e3b;
    --text: #282828;
    --muted: #6b6b6b;
    --background: #eeeeee;
    --surface: #ffffff;
    --dark: #282828;
    --rule: #cccccc;
    --shadow: 0 0 16px 3px rgba(0, 0, 0, 0.08);
}

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

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 15px/1.7 "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.4; margin: 0 0 0.75em; }
p { margin: 0 0 1em; }
a { color: var(--text); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px dotted var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: 0.75rem 1rem; background: var(--surface); }

.card { background: var(--surface); box-shadow: var(--shadow); }

/* Header */
.site-header {
    position: relative;
    z-index: 1;
    padding: 20px 0 10px;
    background: var(--surface);
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.site-title { margin: 0; font-size: 50px; font-weight: 800; line-height: 1.5; }
.site-title a { color: var(--accent); }
.site-description { max-width: 720px; margin: 0 auto 10px; }

/* Post title band */
.hero {
    position: relative;
    padding: 40px 0;
    background: rgba(231, 62, 59, 0.6);
    color: #fff;
}
.hero h1 { margin: 0; font-size: 25px; font-weight: 600; }
.hero h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 18px;
    border-radius: 100px;
    background: #fff;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 70px;
    margin-bottom: 70px;
}

/* Post list */
.post-summary { display: grid; margin-bottom: 50px; }
.post-summary.has-thumbnail { grid-template-columns: 1fr 1fr; }
.post-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-summary-body { padding: 0 15px; }
.post-title { margin: 30px 0; font-size: 20px; }
.post-date {
    margin: 0;
    padding: 10px 0;
    border-top: 1px dashed var(--rule);
    font-size: 13px;
}

.pagination { text-align: center; }
.pagination a, .pagination span {
    display: inline-block;
    margin: 0 5px 10px;
    padding: 10px 20px;
    background: var(--surface);
    font-size: 20px;
    font-weight: 700;
}
.pagination .current, .pagination a:hover { background: var(--accent); color: #fff; }

/* Single post */
.post { padding: 15px; }
.post-cover { display: block; margin: 0 auto; }
.post-meta { margin: 0; padding: 18px; background: var(--accent); color: #fff; font-size: 13px; }
.post-body { margin: 20px 0; }
.post-body p { text-align: justify; }
.post-body a { text-decoration: underline; color: var(--accent); }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.5rem; }
.post-body ul, .post-body ol { padding-left: 32px; line-height: 2; }
.post-body figure { margin: 0 0 1em; text-align: center; }
.post-body figcaption { color: var(--muted); font-size: 13px; }
.post-body blockquote {
    margin: 0 0 1em;
    padding: 1em 1.5em;
    border-left: 7px solid var(--accent);
    background: #eeeeee;
    font-style: italic;
}
.post-body iframe { max-width: 100%; }
.post-body hr { border: 0; border-top: 1px dashed var(--rule); }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 30px 11px; }
.post-nav a { display: flex; align-items: center; gap: 10px; }
.post-nav-next { margin-left: auto; text-align: right; }
.post-nav strong { display: block; font-size: 16px; }
.post-nav .arrow { padding: 10px 14px; background: var(--accent); color: #fff; font-size: 20px; }

/* Sidebar */
.widget { padding: 30px; margin-bottom: 30px; }
.widget h2 { font-size: 30px; }

/* Footer */
.site-footer { padding: 20px 0; background: var(--dark); color: #fff; }

@media (max-width: 991px) {
    .layout { grid-template-columns: 1fr; margin-top: 20px; }
    .site-title { font-size: 34px; }
}

@media (max-width: 600px) {
    .post-summary.has-thumbnail { grid-template-columns: 1fr; }
    .post-summary-body { padding-bottom: 20px; text-align: center; }
    .post-title { margin: 20px 0; font-size: 23px; }
    .widget { text-align: center; }
    .post-nav { flex-direction: column; }
    .site-footer { text-align: center; }
}
