/* yongzoon.net — airy minimalist magazine */

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

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

body {
    background: #FAFAFA;
    color: #444444;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.8;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===== Masthead ===== */
.masthead {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 3rem 2rem 1.75rem;
}

.masthead-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.site-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 36px;
    color: #1A1A1A;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.site-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #888888;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

.nav-link:hover {
    color: #2563EB;
}

/* ===== Content ===== */
.content-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===== Featured Article ===== */
.featured-article {
    margin-bottom: 2.5rem;
}

.post-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    display: block;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 32px;
    color: #1A1A1A;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.featured-excerpt {
    color: #444444;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2563EB;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.read-link:hover {
    text-decoration: underline;
    text-decoration-color: #2563EB;
    text-underline-offset: 4px;
}

/* ===== Divider ===== */
.divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin-bottom: 1.75rem;
}

/* ===== Tag Filter ===== */
.tag-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag-filter-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.25rem;
}

.tag-btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #888888;
    background: transparent;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag-btn:hover {
    color: #2563EB;
    border-color: #2563EB;
}

.tag-btn.active {
    color: #2563EB;
    border-color: #2563EB;
    background: #EEF2FF;
}

/* ===== Post List ===== */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #E5E7EB;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item.hidden {
    display: none;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 22px;
    color: #1A1A1A;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.post-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    text-decoration: underline;
    text-decoration-color: #2563EB;
    text-underline-offset: 4px;
}

.post-excerpt {
    font-size: 16px;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #888888;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tag.evergreen {
    border-color: #10B981;
    color: #10B981;
}

/* ===== Backlinks ===== */
.backlinks {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem 2rem 2.5rem;
}

.backlinks-heading {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.backlink-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.backlink-pill {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #2563EB;
    background: #EEF2FF;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.backlink-pill:hover {
    background: #DBEAFE;
}

/* ===== Footer ===== */
.footer {
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 680px;
    margin: 0 auto;
}

/* Newsletter */
.footer-subscribe {
    margin-bottom: 2rem;
}

.subscribe-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 20px;
    color: #1A1A1A;
    margin-bottom: 0.35rem;
}

.subscribe-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #888888;
    margin-bottom: 1rem;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-input {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 8px 14px;
    flex: 1;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-input:focus {
    border-color: #2563EB;
}

.subscribe-input::placeholder {
    color: #888888;
}

.subscribe-btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    background: #2563EB;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.subscribe-btn:hover {
    background: #1D4ED8;
}

.subscribe-confirm {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #10B981;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 0.85rem;
}

.flink {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #2563EB;
}

.flink svg {
    flex-shrink: 0;
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #888888;
    font-style: italic;
}

/* ===== Fade-in Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger post items */
.post-item.fade-in:nth-child(1) { transition-delay: 0s; }
.post-item.fade-in:nth-child(2) { transition-delay: 0.06s; }
.post-item.fade-in:nth-child(3) { transition-delay: 0.12s; }
.post-item.fade-in:nth-child(4) { transition-delay: 0.18s; }
.post-item.fade-in:nth-child(5) { transition-delay: 0.24s; }
.post-item.fade-in:nth-child(6) { transition-delay: 0.30s; }
.post-item.fade-in:nth-child(7) { transition-delay: 0.36s; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .masthead {
        padding: 2rem 1.25rem 1.25rem;
    }

    .site-name {
        font-size: 28px;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .content-inner {
        padding: 2rem 1.25rem;
    }

    .featured-title {
        font-size: 26px;
    }

    .post-title {
        font-size: 20px;
    }

    .backlinks {
        padding: 1rem 1.25rem 2rem;
    }

    .tag-filter {
        gap: 0.4rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-btn {
        width: 100%;
    }
}
