/* ============================================================
   FLAT-FILE BLOG — STYLESHEET
   ============================================================ */

:root {
    --color-bg: #fafaf9;
    --color-surface: #ffffff;
    --color-text: #1f2320;
    --color-text-muted: #6b7280;
    --color-border: #e7e5e4;
    --color-accent: #2f6f4f;
    --color-accent-dark: #234f38;
    --color-error-bg: #fdecec;
    --color-error-text: #a12a2a;
    --font-serif: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 10px;
    --max-width: 720px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* ---------------- Header / Footer ---------------- */

.site-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.site-title:hover {
    text-decoration: none;
    color: var(--color-accent);
}

.site-footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.site-nav {
    margin-top: 10px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

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

.site-main {
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.site-main-narrow {
    max-width: var(--max-width);
}

.site-main-wide {
    max-width: 1120px;
}

/* ---------------- Section headings ---------------- */

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.featured-section {
    margin-bottom: 56px;
}

.more-section {
    margin-bottom: 40px;
}

.archive-title {
    margin-bottom: 32px;
}

/* ---------------- Homepage hero ---------------- */

.hero {
    background: linear-gradient(135deg, #f4f6f4, #eef2ee);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 56px 40px;
    margin-bottom: 48px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.hero-content {
    font-size: 1.1rem;
    color: #3a3f3c;
    max-width: 640px;
    margin: 0 auto;
}

.hero-content p {
    margin: 0 0 12px;
}

/* ---------------- Featured links (homepage) ---------------- */

.featured-links-section {
    margin-bottom: 48px;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.link-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--color-text);
}

.link-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0 0 14px;
}

/* ---------------- Author bio (homepage) ---------------- */

.author-section {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 48px;
}

.author-portrait {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.author-bio h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.author-bio p {
    margin: 0;
    color: #3a3f3c;
}

/* ---------------- Featured books (homepage) ---------------- */

.featured-books {
    margin-bottom: 8px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.book-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.book-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.book-cover {
    width: 110px;
    height: 165px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    background: #eee;
}

.book-card-body {
    display: flex;
    flex-direction: column;
}

.book-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 0 0 4px;
}

.book-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0 0 10px;
}

.book-desc {
    font-size: 0.92rem;
    color: #3a3f3c;
    margin: 0 0 14px;
}

/* ---------------- Buy buttons (brand-tinted) ---------------- */

.buy-btn {
    display: inline-block;
    align-self: flex-start;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none !important;
}

.buy-btn-amazon {
    background: #E47911;
}

.buy-btn-amazon:hover {
    background: #c6660b;
}

.buy-btn-lulu {
    background: #00A19A;
}

.buy-btn-lulu:hover {
    background: #00847e;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------------- Astrology Journals page ---------------- */

.journals-intro {
    text-align: center;
    margin-bottom: 40px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 10px;
}

.journals-heading {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    margin: 0 0 12px;
}

.journals-subheading {
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zodiac-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.zodiac-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.zodiac-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    max-width: 100px;
    margin: 0 auto 14px;
    background: #eee;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.zodiac-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.zodiac-blurb {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0 0 16px;
    flex: 1;
}

.zodiac-card .btn-row {
    justify-content: center;
}

/* ---------------- Read More / excerpt page ---------------- */

.excerpt-section {
    text-align: center;
}

.excerpt-quote {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: #3a3f3c;
    border: none;
    max-width: 600px;
    margin: 20px auto 28px;
    padding: 0;
}

/* ---------------- Featured (latest 3) grid ---------------- */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.featured-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.featured-thumb-link {
    display: block;
}

.featured-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.featured-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-thumb-placeholder span {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-latest {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.featured-card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.3;
}

.featured-card-title a {
    color: var(--color-text);
}

.featured-card-title a:hover {
    text-decoration: none;
}

/* ---------------- Secondary post grid ---------------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.post-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.badge-category {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.post-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.post-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-thumb-placeholder span {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.post-card-body {
    padding: 16px 18px 20px;
}

.post-card-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.3;
}

.post-card-title a {
    color: var(--color-text);
}

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

.post-card-date {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.post-card-excerpt {
    margin: 0 0 12px;
    color: #3a3f3c;
    font-size: 0.95rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
}

/* ---------------- Single post ---------------- */

.post-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 32px;
    flex-wrap: wrap;
}

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

.tag-category {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
}

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

.post-content p {
    margin: 0 0 20px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-serif);
    margin: 36px 0 14px;
    line-height: 1.3;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 12px 0;
    display: block;
}

.post-content blockquote {
    border-left: 3px solid var(--color-accent);
    margin: 20px 0;
    padding: 4px 20px;
    color: var(--color-text-muted);
    font-style: italic;
}

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

.not-found {
    text-align: center;
    padding: 60px 0;
}

/* ---------------- Comments ---------------- */

.comments-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comments-heading {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin: 0 0 24px;
}

.no-comments {
    color: var(--color-text-muted);
}

.comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment {
    display: flex;
    gap: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.comment-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.comment-text {
    color: #33372f;
}

/* ---------------- Comment form ---------------- */

.comment-form-wrap h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin: 0 0 16px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.comment-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
}

.comment-form input[type="text"],
.comment-form input[type="number"],
.comment-form textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fdfdfc;
    color: var(--color-text);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.12);
}

.comment-form textarea {
    resize: vertical;
}

.captcha-box {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f4f6f4;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
}

.captcha-box label {
    margin-top: 0;
}

.captcha-step2 {
    margin-top: 12px;
}

.comment-form button {
    align-self: flex-start;
    margin-top: 20px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.comment-form button:hover {
    background: var(--color-accent-dark);
}

.form-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ---------------- Mobile responsiveness ---------------- */

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .site-main {
        padding: 24px 16px 60px;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .featured-grid,
    .post-grid,
    .link-cards,
    .book-grid {
        grid-template-columns: 1fr;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 36px 22px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .book-card {
        flex-direction: column;
    }

    .book-cover {
        width: 100%;
        height: 220px;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .comment-form {
        padding: 18px;
    }
}
