/* =============================================================================
   Typography - Page headers, post content, headings
   ============================================================================= */

/* Page Header (title + subtitle) */
.page-header {
    margin-bottom: 2.5rem;
}

.page-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

.page-tagline {
    color: var(--text-muted);
    text-transform: none;
    font-weight: 400;
}

.page-tagline a {
    color: var(--text-muted);
    text-decoration: none;
}

.page-tagline a:hover {
    color: var(--accent);
}

/* Home Typewriter Effect */
.home-view .page-tagline--typewriter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    white-space: nowrap;
}

.home-view .typewriter__prefix {
    color: var(--text-muted);
}

.home-view .typewriter {
    display: inline-flex;
    align-items: baseline;
}

.home-view .typewriter__text {
    flex: none;
    display: inline-block;
    white-space: nowrap;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.35);
}

.home-view .typewriter__cursor {
    flex: none;
    display: inline-block;
    width: 0.85ch;
    height: 1.2em;
    margin-left: 0.05rem;
    border-radius: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
    opacity: 1;
    transform: translateY(0.05em);
    animation: homeCursorBlink 0.8s ease-in-out infinite;
}

@keyframes homeCursorBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
    }
    50% {
        opacity: 0.2;
        box-shadow: 0 0 2px rgba(22, 163, 74, 0.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-view .typewriter__cursor {
        animation: none;
        opacity: 0.6;
    }
}

/* Bio Section */
.bio {
    margin-bottom: 3rem;
}

.bio p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.bio a {
    color: var(--link);
    text-decoration: none;
}

.bio a:hover {
    text-decoration: underline;
}

/* Post Content */
.post-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.post-content a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--link);
    text-underline-offset: 2px;
}

.post-content a.mention {
    color: var(--text);
    font-weight: 500;
    background: var(--color-mention);
    padding: 0 0.4rem;
    border-radius: 3px;
    text-decoration: none;
}

.post-content a.mention:hover {
    filter: brightness(0.95);
    text-decoration: none;
}

.post-content a.hashtag {
    color: var(--text);
    font-weight: 500;
    background: var(--color-mention);
    padding: 0 0.4rem;
    border-radius: 3px;
    text-decoration: none;
}

.post-content a.hashtag:hover {
    filter: brightness(0.95);
    text-decoration: none;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-sans);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-content h2::before {
    content: 'h2.';
    color: #aaa;
    margin-right: 0.5em;
    font-weight: 400;
}

.post-content h3,
.post-content h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.post-content h3::before {
    content: 'h3.';
    color: #aaa;
    margin-right: 0.5em;
    font-weight: 400;
}

.post-content h4::before {
    content: 'h4.';
    color: #aaa;
    margin-right: 0.5em;
    font-weight: 400;
}

.post-content pre {
    background: #f7f7f7;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.post-content code {
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
}

.post-content blockquote {
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content ol li,
.post-content ul li {
    margin-left: 1rem;
}

/* Clear float after content */
.post-content::after {
    content: "";
    display: table;
    clear: both;
}
