:root {
    --bg-color: #F7F7F5;
    --text-primary: #1A1A1A;
    --text-secondary: #595959;
    --accent-color: #1E5631;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --content-width: 1000px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Premium Page Load Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-header {
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
    font-weight: 600;
}

main {
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
    padding: 6vh 2rem 10vh;
    flex-grow: 1;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

h2 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.author {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2rem;
    display: block;
}

footer {
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-links a:hover { color: var(--accent-color); }

/* Mobile Optimisations */
@media (max-width: 768px) {
    .site-header { 
        flex-direction: column; 
        gap: 1.25rem; 
        padding: 2rem 1.5rem;
    }
    
    /* Native App Swipe Menu */
    .main-nav { 
        flex-wrap: nowrap; 
        gap: 1.5rem; 
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
    }
    .main-nav::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */
    }
    .main-nav a {
        flex-shrink: 0; /* Stops text from squishing */
    }
    
    main {
        padding: 2vh 1.5rem 8vh;
    }
    p {
        max-width: 100%;
    }
    footer { 
        flex-direction: column; 
        gap: 1rem; 
        padding: 2rem 1.5rem;
    }
    .footer-links a { 
        margin-left: 0; 
        margin-right: 1.5rem; 
    }
}
