@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 17px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    border-bottom: 1px solid #333;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo:hover {
    text-decoration: line-through;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: #888;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero */
.hero {
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px dashed #333;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Posts */
.posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-card {
    padding-bottom: 2.5rem;
    border-bottom: none;
    position: relative;
    padding-left: 1rem;
}

.post-card::before {
    content: '~';
    position: absolute;
    left: -0.5rem;
    top: 0.3rem;
    color: #444;
    font-size: 1rem;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card .date {
    font-size: 0.8rem;
    color: #555;
    display: block;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.post-card h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.post-card h2 a:hover {
    color: #fff;
    text-decoration: none;
}

.post-card p {
    color: #aaa;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 400;
    color: #777;
    border-bottom: 1px dotted #555;
    padding-bottom: 2px;
}

.read-more:hover {
    color: #fff;
    border-color: #fff;
}

/* Post Page */
.post-content {
    max-width: 680px;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header .date {
    font-size: 0.85rem;
    color: #555;
    display: block;
    margin-bottom: 1rem;
    font-style: italic;
}

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.post-body p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.post-body blockquote {
    border-left: 3px solid #eee;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #aaa;
}

.back-link {
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

.back-link:hover {
    color: #aaa;
}

/* About Page */
.about-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.about-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* Footer */
footer {
    border-top: none;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: #444;
    font-style: italic;
}

/* Ads */
.ad-container {
    background: #151515;
    border: 1px dashed #333;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
    min-height: 90px;
}

.ad-container.banner {
    min-height: 90px;
}

.ad-container.rectangle {
    min-height: 250px;
}

.ad-container.in-feed {
    min-height: 120px;
}

.ad-label {
    font-size: 0.65rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Settings */
.settings-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
    z-index: 100;
}

.settings-btn:hover {
    border-color: #555;
    color: #888;
}

.settings-panel {
    position: fixed;
    bottom: 4.5rem;
    right: 1.5rem;
    background: #151515;
    border: 1px solid #333;
    padding: 1.25rem;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.settings-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-panel h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-transform: lowercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

.settings-option label {
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 36px;
    height: 18px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    transition: 0.2s;
    border-radius: 18px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background: #666;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: #444;
}

input:checked + .toggle-slider:before {
    transform: translateX(18px);
    background: #999;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 2rem 1.5rem;
    }

    nav {
        padding: 1rem 1.5rem;
    }
}
