/* ========================================
   YUYA-INSPIRED MINIMAL DARK THEME
   ======================================== */

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

:root {
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --bg-card: #1a1a1a;
    --text: #ffffff;
    --text-muted: #888888;
    --text-subtle: #555555;
    --accent: #ffffff;
    --border: #2a2a2a;
    --gradient-start: #1a1a1a;
    --gradient-end: #0a0a0a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--text);
    color: var(--bg);
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.hero-name {
    animation: fadeInUp 1s ease forwards;
}

.name-first,
.name-last {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.03em;
    margin: 0;
}

.name-first {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.name-last {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
    color: var(--text-muted);
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-contact {
    text-align: right;
}

.email-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.copy-hint {
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.email-link:hover .copy-hint {
    color: var(--text-muted);
}

.hero-intro {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 6rem 3rem;
    border-top: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.show-more {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.show-more:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}

/* ========================================
   CARDS
   ======================================== */

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--text-muted);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-subtle);
    transition: all 0.4s ease;
}

.card:hover .card-placeholder {
    background: linear-gradient(135deg, var(--border) 0%, var(--bg-elevated) 100%);
    color: var(--text-muted);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: flex-end;
}

.about-placeholder {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text);
}

/* ========================================
   POSTS LIST
   ======================================== */

.posts-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.post-item:hover {
    padding-left: 1rem;
}

.post-title {
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.post-item:hover .post-title {
    color: var(--accent);
}

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

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 8rem 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--text);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 3rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-center a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-center a:hover {
    color: var(--text);
}

.footer-right {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--text);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Scroll animations */
.section {
    animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   ARTICLE PAGES
   ======================================== */

.article-hero {
    padding: 10rem 3rem 4rem;
    border-bottom: 1px solid var(--border);
}

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease forwards;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.article-content strong {
    color: var(--text);
    font-weight: 500;
}

.article-content code {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.9em;
    background: var(--bg-card);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.article-content blockquote {
    border-left: 2px solid var(--text-muted);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text);
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header {
    padding: 10rem 3rem 4rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1;
    animation: fadeInUp 0.8s ease forwards;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-info {
        align-items: flex-start;
    }

    .hero-contact {
        text-align: left;
    }

    .email-link {
        align-items: flex-start;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        justify-content: flex-start;
    }

    .cta-section {
        padding: 5rem 1.5rem;
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-hero,
    .page-header {
        padding: 8rem 1.5rem 3rem;
    }

    .article-content {
        padding: 3rem 1.5rem;
    }
}
