/* Shellder Post Stylesheet — shared across all /posts/ pages */
/* Design: dark, minimal, sans-serif. Matches shellders.com language. */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid #222;
    background: #111;
    position: sticky;
    top: 0;
    z-index: 10;
}
nav a.logo { font-size: 1.5rem; text-decoration: none; color: #e5e5e5; }
nav a { color: #666; text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
nav a:hover { color: #e5e5e5; }

/* ---- Container ---- */
.container {
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* ---- Article Header ---- */
.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}
.post-meta {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-meta .separator { color: #333; }
.post-meta .category {
    background: #1a1a1a;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.post-lede {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ---- Article Body ---- */
.post-body {
    font-size: 1.05rem;
    line-height: 1.75;
}
.post-body p {
    margin-bottom: 1.4rem;
}
.post-body h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}
.post-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}
.post-body a {
    color: #58a6ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(88, 166, 255, 0.3);
    transition: border-color 0.15s;
}
.post-body a:hover {
    border-bottom-color: #58a6ff;
}
.post-body blockquote {
    border-left: 3px solid #333;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: #999;
    font-style: italic;
    background: #111;
    border-radius: 0 4px 4px 0;
}
.post-body ul, .post-body ol {
    margin: 1rem 0 1.4rem 1.5rem;
}
.post-body li {
    margin-bottom: 0.4rem;
}
.post-body code {
    background: #1a1a1a;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}
.post-body pre {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.post-body pre code {
    background: none;
    padding: 0;
}
.post-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1.5rem 0;
}
.post-body .callout {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.post-body .callout strong {
    color: #f97316;
}

/* ---- Article Footer ---- */
.post-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-tags {
    display: flex;
    gap: 0.4rem;
}
.tag {
    background: #1a1a1a;
    color: #666;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
}
.post-source {
    font-size: 0.8rem;
    color: #555;
}
.post-source a { color: #666; text-decoration: none; }
.post-source a:hover { color: #e5e5e5; }

/* ---- Post Navigation ---- */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #111;
}
.post-nav a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
}
.post-nav a:hover { color: #e5e5e5; }

/* ---- Site Footer ---- */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #222;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}
.footer-links a { color: #555; text-decoration: none; }
.footer-links a:hover { color: #e5e5e5; }
.site-footer p a { color: #555; text-decoration: none; }

/* ---- Posts Index (listing page) ---- */
.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .subtitle {
    color: #888;
    font-size: 1.05rem;
}
.post-list { list-style: none; }
.post-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #111;
}
.post-item:first-child { padding-top: 0; }
.post-item a {
    text-decoration: none;
    display: block;
}
.post-item a:hover .post-title { color: #58a6ff; }
.post-item .post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 0.35rem;
    transition: color 0.15s;
}
.post-item .post-date {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.4rem;
}
.post-item .post-excerpt {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}
.post-item .post-tags { margin-top: 0.5rem; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .container { padding: 1.5rem 1rem 2rem; }
    h1 { font-size: 1.6rem; }
    nav { padding: 0.75rem 1rem; gap: 1rem; }
    .post-footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
