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

:root {
    --bg: #0e0e0e;
    --surface: #161616;
    --border: #2a2a2a;
    --text: #e8e8e8;
    --muted: #888;
    --accent: #7c6af7;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 24px 60px;
}

.container {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-domain {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--accent);
}

.hero-domain a {
    color: var(--accent);
    text-decoration: none;
}

.hero-slash {
    color: var(--text);
}

.hero p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 480px;
    margin-top: 4px;
}

/* Section */
section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

/* Post list cards */
.posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--accent);
}

.card h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.empty {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Single post */
.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: -24px;
}

.back-link:hover {
    color: var(--text);
}

.post-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.post-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 8px;
}

.post-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.post-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--muted);
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 48px;
    color: var(--muted);
    font-size: 0.75rem;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
