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

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #000;
    color: #e8e8e8;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #efefef;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.65);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    color: #efefef;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.65);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: #efefef;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.hero-cta:hover {
    border-color: #fff;
}

/* Sections */
.section {
    padding: 140px 0;
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.65);
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: #efefef;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.65);
    margin-bottom: 64px;
}

/* Resources */
.resources {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.resource-card {
    display: block;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.3s ease;
}

a.resource-card:hover {
    opacity: 0.8;
}

.resource-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #efefef;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.resource-card p {
    font-size: 16px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.65);
    max-width: 600px;
    line-height: 1.6;
}

.resource-card .arrow {
    display: inline-block;
    margin-top: 16px;
    font-size: 20px;
    color: rgba(232, 232, 232, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}

a.resource-card:hover .arrow {
    transform: translateX(6px);
    color: #efefef;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 40px;
}

.blog-card {
    display: block;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    opacity: 0.8;
}

.blog-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #efefef;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.blog-card .blog-excerpt {
    font-size: 15px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.5);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.35);
}

/* About */
.about-photo {
    margin-bottom: 40px;
}

.about-photo img {
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.about-photo img:hover {
    filter: grayscale(0%);
}

.about-content {
    max-width: 680px;
}

.about-content p {
    font-size: 18px;
    font-weight: 300;
    color: #e8e8e8;
    line-height: 1.8;
    margin-bottom: 28px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.read-more-link {
    display: inline-block;
    margin-top: 32px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(232, 232, 232, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.read-more-link:hover {
    color: #fff;
    border-color: #fff;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.65);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 13px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.25);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #e8e8e8;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(232, 232, 232, 0.35);
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
}

.newsletter-btn {
    padding: 14px 28px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    opacity: 0.85;
}

.newsletter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.newsletter-msg {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.65);
    min-height: 20px;
}

.newsletter-msg.success {
    color: #4ade80;
}

.newsletter-msg.error {
    color: #f87171;
}

/* ── Writings Index Page ── */
.writings-page {
    padding-top: 160px;
    padding-bottom: 140px;
}

.writings-page .section-title {
    margin-bottom: 12px;
}

.writings-page .section-subtitle {
    margin-bottom: 48px;
}

.writings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 72px;
}

.writing-item {
    display: block;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.3s ease;
}

.writing-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.writing-item:hover {
    opacity: 0.75;
}

.writing-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.35);
    margin-bottom: 14px;
}

.writing-item-meta .meta-sep {
    color: rgba(255, 255, 255, 0.2);
}

.writing-item h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: #efefef;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 14px;
}

.writing-item p {
    font-size: 16px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.5);
    line-height: 1.65;
    max-width: 620px;
}

/* ── Article Page ── */
.article-page {
    padding-top: 160px;
    padding-bottom: 140px;
}

.article-header {
    max-width: 720px;
    margin-bottom: 72px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.meta-sep {
    color: rgba(255, 255, 255, 0.25);
}

.article-read-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.article-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.article-body {
    max-width: 680px;
}

.article-body p {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.85;
    margin-bottom: 32px;
}

.article-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-top: 64px;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.article-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #efefef;
    margin-top: 48px;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.article-body blockquote {
    margin: 48px 0;
    padding: 0 0 0 28px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.article-body blockquote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.article-body ul,
.article-body ol {
    margin: 0 0 32px 0;
    padding-left: 24px;
}

.article-body li {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.85;
    margin-bottom: 12px;
}

.article-body code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 8px;
    border-radius: 3px;
    color: #c8c8c8;
}

.article-body pre {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
}

.article-body strong {
    font-weight: 600;
    color: #efefef;
}

.article-body a {
    color: #efefef;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-color: #fff;
}

/* More Writing section */
.more-writing {
    max-width: 680px;
    margin-top: 120px;
    padding-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.more-writing-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.4);
    margin-bottom: 40px;
}

.more-writing-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.more-writing-item {
    display: block;
    transition: opacity 0.3s ease;
}

.more-writing-item:hover {
    opacity: 0.7;
}

.more-writing-item h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #efefef;
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.more-writing-item span {
    font-size: 13px;
    font-weight: 300;
    color: rgba(232, 232, 232, 0.35);
}

/* ── Animations ── */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .section {
        padding: 100px 0;
    }

    .section-label {
        font-size: 14px;
        letter-spacing: 8px;
        margin-bottom: 32px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-logo {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .article-page {
        padding-top: 120px;
        padding-bottom: 100px;
    }

    .writings-page {
        padding-top: 120px;
        padding-bottom: 100px;
    }

    .writing-item {
        padding: 36px 0;
    }

    .article-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }

    .resource-card h3 {
        font-size: 22px;
    }

    .article-header h1 {
        font-size: 32px;
    }
}
