/* ── Featured image ─────────────────────────────────────────────────────── */

.post-featured-img {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 6px;
    overflow: hidden;
}

.post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Post title ─────────────────────────────────────────────────────────── */

.post-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.3em;
}

.post-date {
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ── Post body typography ────────────────────────────────────────────────── */

.post-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    word-break: break-word;
}

.post-body p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

.post-body h2 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-top: 2.2em;
    margin-bottom: 0.6em;
}

.post-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
}

.post-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}

.post-body ul,
.post-body ol {
    padding-left: 1.6em;
    margin-bottom: 1.4em;
}

.post-body li {
    margin-bottom: 0.1em;
}

.post-body li > p {
    margin-bottom: 0;
}

.post-body blockquote {
    margin: 1.75em 0;
    padding: 0.75em 1.5em;
    border-left: 4px solid #3b82f6;
    color: #aaaaaa;
    font-style: italic;
}

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

.post-body div[data-youtube-video],
.post-body .youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1.75em 0;
    border-radius: 6px;
    overflow: hidden;
}

.post-body div[data-youtube-video] iframe,
.post-body .youtube-wrapper iframe,
.post-body iframe[src*="youtube"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 6px;
}

/* ── Mixcloud / generic audio embeds ─────────────────────────────────────── */

.post-body iframe[src*="mixcloud"] {
    display: block;
    width: 100%;
    height: 120px;
    border: none;
    border-radius: 6px;
    margin: 1.75em 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.75em auto;
    border-radius: 4px;
}

.post-body a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.post-body a:hover {
    color: #60a5fa;
}

.post-body strong,
.post-body b {
    font-weight: 700;
    color: #ffffff;
}

.post-body em,
.post-body i {
    font-style: italic;
}

.post-body pre {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1em 1.25em;
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-size: 0.875em;
    line-height: 1.5;
}

.post-body code {
    background: #1e1e1e;
    border-radius: 3px;
    padding: 0.15em 0.4em;
    font-size: 0.875em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #e0e0e0;
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

.post-body hr {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 2.5em 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

.post-body th,
.post-body td {
    padding: 0.5em 0.8em;
    border: 1px solid #2a2a2a;
    text-align: left;
    vertical-align: top;
}

.post-body th {
    background: #1a1a1a;
    font-weight: 600;
    color: #ffffff;
}

.post-body figure {
    margin: 1.75em 0;
}

.post-body figcaption {
    font-size: 0.85em;
    color: #666666;
    text-align: center;
    margin-top: 0.5em;
}
