/* Preview Stylesheet - New Minimal Aesthetic */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* CSS Custom Properties - Warm Soft Neutrals */
:root {
    --bg: #faf8f5;
    --bg-alt: #f5f2ed;
    --text: #2c2416;
    --text-muted: #6b6152;
    --text-light: #9a9080;
    --link: #2c2416;
    --link-underline: rgba(44, 36, 22, 0.25);
    --link-underline-hover: rgba(44, 36, 22, 0.8);
    --divider: #e8e4dc;
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --bg: #161615;
    --bg-alt: #1e1e1c;
    --text: #e8e6e3;
    --text-muted: #a0a09a;
    --text-light: #6a6a65;
    --link: #e8e6e3;
    --link-underline: rgba(232, 230, 227, 0.25);
    --link-underline-hover: rgba(232, 230, 227, 0.8);
    --divider: #2a2a28;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

/* Links - Subtle Underline */
a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

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

/* Container - Medium Width */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation - Minimal Inline */
.nav {
    padding: 3rem 0 2rem;
}

.nav-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
}

.nav-logo:hover {
    text-decoration: underline;
    text-decoration-color: var(--link-underline-hover);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

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

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

.nav-toggle {
    display: none;
}

/* Theme Toggle - Flat SVG Icons */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.theme-toggle:hover {
    color: var(--text);
}

.theme-icon-light {
    display: block;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

/* Header - Simple */
.header {
    padding: 4rem 0;
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.header-tagline {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Page Header - For subpages */
.page-header {
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Sections - Very Generous Spacing */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: transparent;
}

.section h2 {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.section h2::after {
    display: none;
}

/* Divider - Subtle horizontal line */
.divider {
    height: 1px;
    background: var(--divider);
    margin: 2rem 0;
}

/* About */
.about-content {
    max-width: 600px;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Blog - Title + Date Only */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-card {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--divider);
}

.blog-card:first-child {
    border-top: 1px solid var(--divider);
}

.blog-card:hover {
    box-shadow: none;
    transform: none;
}

.blog-card h3 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.blog-card h3 a {
    color: var(--text);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    margin-left: 1rem;
}

.blog-excerpt {
    display: none;
}

.loading {
    color: var(--text-muted);
    font-style: normal;
}

/* Projects */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-card {
    padding: 1.5rem 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--divider);
}

.project-card:first-child {
    border-top: 1px solid var(--divider);
}

.project-card:hover {
    box-shadow: none;
    transform: none;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: left;
    border-top: none;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mobile Styles */
@media (max-width: 600px) {
    .nav {
        padding: 2rem 0 1.5rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .header {
        padding: 2rem 0;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .blog-card {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .blog-meta {
        margin-left: 0;
    }
}

/* Preview Toggle Banner */
.preview-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.preview-banner button {
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-banner button:hover {
    background: #e5e5e5;
}
