@import url('../fonts/fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
}

:root {
    --main-width: 45%;
    --main-font: Radley, serif;
    --secondary-font: Montserrat, sans-serif;
    --font-size: 16px;
    --main-bg: #fff;
    --main-color: #333;
    --border-color: #e3e3e3;
}

html {
    font-size: var(--font-size);
}

body {
    background: var(--main-bg);
    color: var(--main-color);
    font: 1rem/1.6 var(--main-font);
}

a {
    color: inherit;
    text-decoration: none;
}

.site {
    margin: 2rem auto;
    padding: 1rem;
}

@media screen and (min-width: 768px) {
    .site {
        max-width: var(--main-width);
    }
}

.site-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.site-title {
    font-size: 5rem;
    line-height: 1;
    color: #000;
    font-weight: 800;
    font-family: var(--secondary-font);
    text-transform: lowercase;   
}

.site-title a:after {
    content: '.';
}

.site-info {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.site-description {
    margin-bottom: 2rem;
}

.post {
    text-align: center;
    margin: 1rem 0;
}

.post .post-title {
    font-size: 1.87rem;
    font-weight: 500;
    color: #000;   
}

.post .post-title a:hover {
    color: #8c8c8c;
    border-bottom: 2px solid;
}

.post .post-date {
    display: block;
    font-size: 1.2rem;
    color: #767676;
    font-style: italic;
}

.post-content .post-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 500;
    color: #000; 
    font-family: var(--secondary-font);  
}

.post-meta {
    text-align: center;
    color: #767676;
    font-size: 1.4rem;
}

.post-content {
    font-size: 1.2rem;
}

.post-content p:not([class]),
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 1.1rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 500;
}

.post-content h2 {
    font-size: 1.87rem;
}

.post-content h3 {
    font-size: 1.67rem;
}

.post-content h4 {
    font-size: 1.47rem;
}

.post-content h5 {
    font-size: 1.27rem;
}

.post-content h6 {
    font-size: 1.17rem;
}

.post-content pre {
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.85rem;
}

.post-content pre code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 1rem;
    background-color: #f5f5f5;
}

.post-content blockquote {
    margin: 1rem 0 1rem 2.5rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--border-color);
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 2.5rem;
}

.pagination {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.3rem;
}

.pagination a {
    padding-bottom: 3px;
    border-bottom: 1px solid;
    color: #000;
}

.pagination a:hover {
    color: #8c8c8c;
}