/*
 * mosesfrost.com — cyberpunk text-first stylesheet
 * Designed to be fast on 56k, readable in Lynx, parseable by AI.
 * Neon colors on black. Text is king.
 */

/* ---------- Palette ---------- */
:root {
    --bg: #0a0a0f;
    --bg-alt: #0f0f18;
    --fg: #d0d0d8;
    --fg-dim: #6a6a80;
    --pink: #ff2d95;
    --cyan: #00f0ff;
    --green: #39ff14;
    --purple: #bf5af2;
    --yellow: #ffe600;
    --border: rgba(255, 45, 149, 0.15);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --reading: 42rem;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Links ---------- */
a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: var(--pink);
}

/* ---------- Navigation ---------- */
.site-nav {
    max-width: var(--reading);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1rem;
    color: var(--fg-dim);
    font-size: 0.875rem;
}

.site-nav a {
    color: var(--fg-dim);
}

.site-nav a:hover {
    color: var(--cyan);
}

.nav-brand {
    font-weight: 800;
    color: var(--fg) !important;
    letter-spacing: -0.02em;
}

.nav-sep {
    color: var(--fg-dim);
    margin: 0 0.25rem;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--reading);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ---------- Hero ---------- */
.hero {
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    color: var(--fg-dim);
    font-size: 1.05rem;
}

/* ---------- Content typography ---------- */
h1,
h2,
h3,
h4 {
    color: var(--fg);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 2rem 0 0.75rem;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
}

hr {
    border: none;
    height: 1px;
    background: #1a1a24;
    margin: 2rem 0;
}

ul,
ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.35rem;
}

li a {
    text-decoration: none;
}

strong {
    color: var(--fg);
}

code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--green);
    background: rgba(57, 255, 20, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

pre {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
    color: var(--fg);
    font-size: 0.85rem;
}

blockquote {
    border-left: 3px solid var(--pink);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--fg-dim);
    font-style: italic;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
}

/* ---------- Post layout ---------- */
.post {
    padding: 2rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--fg);
}

.post-meta {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--fg-dim);
    margin-top: 0.25rem;
}

.post-content {
    line-height: 1.8;
}

.post-content a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 240, 255, 0.3);
    text-underline-offset: 3px;
}

.post-content a:hover {
    text-decoration-color: var(--cyan);
}

.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--fg-dim);
}

/* ---------- Page layout ---------- */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Footer ---------- */
.site-footer {
    max-width: var(--reading);
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--fg-dim);
}

.ai-notice {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--fg-dim);
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 30em) {
    .hero {
        padding: 2rem 0 1rem;
    }

    .hero-name {
        font-size: 1.75rem;
    }
}

/* ---------- Podcast / Video ---------- */
.podcast-player {
    margin: 1.5rem 0;
}

.podcast-player audio {
    width: 100%;
    max-width: 500px;
}

.episode-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.video-embed {
    margin: 1.5rem 0;
}

/* ---------- Print ---------- */
@media print {
    body {
        background: #fff;
        color: #111;
    }

    a {
        color: #111;
    }

    .site-nav,
    .site-footer {
        display: none;
    }
}