/*
Theme Name: Minimal Story Feed
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Minimal, mobile-first WordPress theme for displaying full blog posts in a clean chronological feed.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: minimal-story-feed
*/

:root {
    --page-bg: #f5f5f3;
    --card-bg: #ffffff;
    --text: #161616;
    --muted: #6e6e6e;
    --divider: #d9d9d9;
    --content-width: 720px;
    --outer-padding: 16px;
    --inner-padding: 14px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100%, calc(var(--content-width) + (var(--outer-padding) * 2)));
    margin: 0 auto;
    padding: 20px var(--outer-padding) 32px;
}

.feed {
    display: block;
}

.post-card {
    background: var(--card-bg);
    padding: var(--inner-padding);
    margin: 0 0 24px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03);
}

.post-card:last-child {
    margin-bottom: 0;
}

.post-thumbnail {
    margin: 0 0 18px;
}

.post-thumbnail img {
    width: 100%;
}

.post-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
}

.post-content {
    font-size: 0.9rem;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content > *:last-child {
    margin-bottom: 0;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin: 0 0 1em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    line-height: 1.2;
    margin: 1.1em 0 0.5em;
    font-weight: 400;
}

.post-content img {
    margin: 1rem auto;
}

.post-meta-wrap {
    margin-top: 20px;
}

.post-divider {
    border: 0;
    border-top: 1px solid var(--divider);
    margin: 0 0 14px;
}

.post-date {
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
    font-family: Arial, Helvetica, sans-serif;
}

.pagination .page-numbers {
    min-width: 42px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--divider);
    color: var(--text);
    font-size: 0.95rem;
}

.pagination .page-numbers.current {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.no-posts {
    background: #ffffff;
    padding: 28px 18px;
    text-align: center;
    font-size: 1.05rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    :root {
        --outer-padding: 24px;
        --inner-padding: 22px;
    }

    .site-shell {
        padding-top: 32px;
        padding-bottom: 40px;
    }

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

    .post-date {
        font-size: 1rem;
    }
}
