/*
Theme Name: Daring Fireball
Theme URI:
Author: Liam
Description: A minimal dark theme inspired by Daring Fireball.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: daringfireball
*/

/* ── Reset & Base ─────────────────────────────────────────── */

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

html {
    font-size: 18px;
}

body {
    background-color: #1a1a1a;
    color: #dadada;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────────────────────── */

#wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────── */

#header {
    padding: 40px 0 24px;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.custom-logo-link img {
    display: block;
    height: 52px;
    width: auto;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header h1 {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: -0.02em;
}

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

#header h1 a:hover {
    color: #fff;
}

#header .tagline {
    font-size: 0.78rem;
    color: #777;
    margin-top: 4px;
    font-style: italic;
}

/* ── Navigation ───────────────────────────────────────────── */

#nav {
    margin-top: 12px;
}

#nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

#nav ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

#nav ul li a:hover {
    color: #dadada;
}

/* ── Posts ────────────────────────────────────────────────── */

.post {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #2a2a2a;
}

.post:last-of-type {
    border-bottom: none;
}

/* Article posts */
.post.type-article .post-title {
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 8px;
}

.post.type-article .post-title a {
    color: #e8e8e8;
    text-decoration: none;
}

.post.type-article .post-title a:hover {
    color: #fff;
}

/* Linked list posts — title links off-site */
.post.type-link .post-title {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 8px;
}

.post.type-link .post-title a {
    color: #e8e8e8;
    text-decoration: none;
}

.post.type-link .post-title a::after {
    content: ' ★';
    color: #555;
    font-size: 0.7em;
    vertical-align: super;
}

.post.type-link .post-title a:hover {
    color: #fff;
}

/* Post meta */
.post-meta {
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 14px;

}

.post-meta a {
    color: #666;
    text-decoration: none;
}

.post-meta a:hover {
    color: #999;
}

/* Post content */
.post-content {
    font-size: 0.95rem;
    color: #c8c8c8;
}

.post-content p {
    margin-bottom: 1em;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: #a0b4cc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: #c8daf0;
}

.post-content blockquote {
    border-left: 3px solid #444;
    padding-left: 16px;
    margin: 1.2em 0;
    color: #999;
    font-style: italic;
}

.post-content code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.82em;
    background: #252525;
    padding: 1px 5px;
    border-radius: 3px;
    color: #c8c8c8;
}

.post-content pre {
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 1.2em 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.8rem;
}

.post-content h2, .post-content h3 {
    color: #e0e0e0;
    margin: 1.5em 0 0.5em;
    line-height: 1.25;
}

.post-content h2 { font-size: 1.15rem; }
.post-content h3 { font-size: 1rem; }

.post-content ul, .post-content ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}

.post-content li {
    margin-bottom: 0.3em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2em 0;
    border-radius: 3px;
}

.post-content hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2em 0;
}

/* Read more link on truncated posts */
.read-more {
    color: #777;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

/* "Permalink" / source link at bottom of linked posts */
.post-source {
    margin-top: 12px;
    font-size: 0.78rem;

}

.post-source a {
    color: #666;
    text-decoration: none;
}

.post-source a:hover {
    color: #999;
}

/* ── Single Post ──────────────────────────────────────────── */

.single-post-header {
    margin-bottom: 28px;
}

.single-post-header h1 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #e8e8e8;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* ── Pagination ───────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: space-between;
    padding: 32px 0 48px;

    font-size: 0.82rem;
}

.pagination a {
    color: #777;
    text-decoration: none;
}

.pagination a:hover {
    color: #dadada;
}

/* ── Footer ───────────────────────────────────────────────── */

#footer {
    border-top: 1px solid #2a2a2a;
    padding: 24px 0 40px;
    font-size: 0.72rem;
    color: #555;

}

#footer a {
    color: #666;
    text-decoration: none;
}

#footer a:hover {
    color: #999;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 480px) {
    html { font-size: 16px; }

    #header { padding: 28px 0 18px; }

    .post.type-article .post-title { font-size: 1.2rem; }
    .post.type-link .post-title    { font-size: 1.05rem; }
}
