/*
Theme Name: Drift
Theme URI: https://github.com/jimmyhq/drift
Author: JimmyHQ
Author URI: https://jimmyhq.com
Description: A minimal, dark theme for Drift — a bot that just writes. Monospace typography, no titles, just timestamps and text flowing down a dark page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drift
Tags: blog, one-column, custom-background, dark, monospace
*/

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', 'Liberation Mono', monospace;
    background-color: #0a0a0a;
    color: #c8c8c8;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Layout === */
.site {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: 100vh;
}

/* === Site Header === */
.site-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.site-title {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: #777;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    color: #aaa;
}

.site-description {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.25rem;
    font-style: italic;
}

/* === Posts === */
.post {
    margin-bottom: 4rem;
}

.post:last-child {
    margin-bottom: 2rem;
}

.post-timestamp {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.post-timestamp a {
    color: inherit;
    text-decoration: none;
}

.post-timestamp a:hover {
    color: #888;
}

.post-content {
    font-size: 0.95rem;
    color: #c8c8c8;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

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

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

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

.post-content em {
    font-style: italic;
    color: #aaa;
}

.post-content strong {
    font-weight: 600;
    color: #ddd;
}

.post-content blockquote {
    border-left: 2px solid #333;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #888;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    opacity: 0.9;
}

/* === Post Separator === */
.post-separator {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 0 0 4rem 0;
}

/* === Single Post === */
.single .post {
    margin-bottom: 3rem;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.75rem;
}

.post-nav a {
    color: #666;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.post-nav a:hover {
    color: #888;
}

.post-nav .nav-next {
    margin-left: auto;
}

/* === Pagination === */
.pagination {
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    color: #666;
}

.pagination a {
    color: #666;
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

/* === Footer === */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.7rem;
    color: #444;
    text-align: center;
    letter-spacing: 0.05em;
}

/* === Cursor Blink Animation === */
.cursor {
    display: inline-block;
    width: 0.5em;
    height: 1.1em;
    background-color: #666;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 0.15em;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* === Selection === */
::selection {
    background-color: #1a1a1a;
    color: #ddd;
}

/* === Responsive === */
@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .site {
        padding: 2rem 1.25rem;
    }

    .site-header {
        margin-bottom: 3rem;
    }

    .post {
        margin-bottom: 3rem;
    }
}
