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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* ===== HEADER ===== */
header {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

h1 a {
    text-decoration: none;
    color: #000;
}

h1 a:hover {
    color: #666;
}

.tagline {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ===== BACK LINK (Post pages) ===== */
.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    color: #000;
}

/* ===== POST CARDS (Index page) ===== */
.post {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.post:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000;
    text-decoration: none;
    display: inline-block;
}

.post-title:hover {
    color: #666;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
}

.post-excerpt {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.read-more:hover {
    color: #666;
}

/* ===== ARTICLE (Post pages) ===== */
article {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #e0e0e0;
}

h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    font-weight: 500;
}

h2:first-of-type {
    margin-top: 0;
}

p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

li {
    margin-bottom: 10px;
}

strong {
    color: #000;
}

/* ===== CODE STYLING ===== */
code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #c7254e;
}

pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    white-space: pre;
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
    display: block;
    white-space: pre;
}

.code-block {
    display: block;
    white-space: pre;
    overflow-x: auto;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
}

.code-block code {
    display: block;
    white-space: inherit;
    background: transparent;
    padding: 0;
    color: #333;
}


/* ===== BLOCKQUOTE ===== */
blockquote {
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin: 30px 0;
    color: #666;
    font-style: italic;
    line-height: 1.8;
}

blockquote p {
    margin-bottom: 10px;
    color: #666;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 80px;
}


article a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

article a:hover {
    color: #666;
}

article h2 {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

article h2:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.inline-image-row {
    margin: 16px 0;
    text-align: center;
}

.inline-image {
    display: inline-block;
    max-width: 100%;
    width: min(420px, 100%);
    height: auto;
    border-radius: 12px;
}

