/* continua.club - Soft Serif Editorial Blog */
/* Palette: #faf8f3, #2c2c2c, #1a1a1a, #8b5e3c, #e0d8cc, #5c4a3a */

:root {
    --cream: #faf8f3;
    --text: #2c2c2c;
    --headline: #1a1a1a;
    --accent: #8b5e3c;
    --rule: #e0d8cc;
    --quote: #5c4a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION (0-100vh)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--cream);
    position: relative;
    padding: 60px 24px;
}

.hero-inner {
    max-width: 600px;
}

.est-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeSlideUp 1s ease 0.3s forwards;
}

.club-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--headline);
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeSlideUp 1.2s ease 0.5s forwards;
}

.club-sub {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeSlideUp 1s ease 0.8s forwards;
}

/* Ornamental Rule in Hero - animates width */
.ornamental-rule {
    width: 0;
    height: 1px;
    background: var(--rule);
    margin: 2rem auto;
    position: relative;
    animation: ruleExtend 1.5s ease 1.2s forwards;
}

.ornamental-rule .fleuron {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cream);
    padding: 0 12px;
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    animation: fadeIn 0.6s ease 2.2s forwards;
}

.hero-invite {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0;
    max-width: 380px;
    margin: 0 auto;
    animation: fadeSlideUp 1s ease 1.6s forwards;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
}

.scroll-hint-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.scroll-arrow {
    animation: bobDown 2s ease-in-out infinite;
}

/* ============================================
   CONTENT FRAME
   ============================================ */
.content-frame {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 0;
    border-left: 1px solid rgba(224, 216, 204, 0.4);
    border-right: 1px solid rgba(224, 216, 204, 0.4);
    position: relative;
}

/* Reading Progress Bar */
.reading-progress {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 2px;
    background: var(--rule);
    margin-bottom: 3rem;
}

.reading-progress-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.08s linear;
}

/* ============================================
   FEATURED ARTICLE
   ============================================ */
.featured-article {
    padding: 0 0 2rem;
}

.article-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 1rem;
}

.article-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    color: var(--headline);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.avatar-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--accent);
    flex-shrink: 0;
    background: transparent;
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 400;
}

.article-body {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.continue-reading {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--accent);
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s ease;
}

.continue-reading:hover {
    color: var(--quote);
}

/* Pull Quote */
.pull-quote {
    border-left: 3px solid var(--accent);
    padding: 1.25rem 0 1.25rem 1.5rem;
    margin: 2.5rem 0;
}

.quote-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--quote);
    line-height: 1.65;
}

/* ============================================
   ORNAMENTAL RULES (between articles)
   ============================================ */
.ornamental {
    border: none;
    border-top: 1px solid var(--rule);
    width: 60%;
    margin: 2.5rem auto;
    position: relative;
}

.ornamental::after {
    content: '\2767';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    padding: 0 14px;
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   ARTICLE CARDS (Archive)
   ============================================ */
.archive-section {
    padding: 0;
}

.article-card {
    padding: 0.5rem 0 1rem;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateX(4px);
}

.card-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--headline);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.card-headline:hover {
    color: var(--accent);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.75;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community-section {
    padding: 2rem 0 3rem;
    text-align: center;
}

.community-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--headline);
    margin-bottom: 1.75rem;
}

.members-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.member-avatar {
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.member-avatar:hover {
    transform: scale(1.15);
    border-color: var(--quote);
}

.member-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--accent);
    margin-left: 0.5rem;
}

.community-text {
    font-family: 'Lora', serif;
    font-size: 0.92rem;
    color: var(--text);
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.join-cta {
    display: inline-block;
    padding: 0;
}

.join-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.join-text:hover {
    color: var(--quote);
    border-color: var(--quote);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 2.5rem 0 3rem;
    text-align: center;
    border-top: 1px solid var(--rule);
}

.footer-ornament {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.footer-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: var(--rule);
    letter-spacing: 0.05em;
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ruleExtend {
    from { width: 0; }
    to { width: 60%; }
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .content-frame {
        border: none;
    }

    .hero-section {
        min-height: 90vh;
        padding: 40px 20px;
    }

    .club-name {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .article-headline {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .members-row .avatar-ring {
        width: 34px;
        height: 34px;
        font-size: 0.6rem;
    }

    .pull-quote {
        margin: 1.5rem 0;
        padding-left: 1rem;
    }

    .quote-text {
        font-size: 1.05rem;
    }

    .ornamental {
        width: 80%;
    }

    .scroll-hint {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 17px;
    }

    .content-frame {
        padding: 0 16px;
    }

    .card-headline {
        font-size: 1.15rem;
    }

    .article-card:hover {
        transform: none;
    }
}
