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

:root {
    --bg: #0a0a0a;
    --text: #fff;
    --muted: #b3b3b3;
    --accent: #fff;
    --link-color: #fff;
    
    /* Light theme for inner pages */
    --light-bg: #f5f3f0;
    --light-text: #2c2c2c;
    --light-muted: #666;
    --light-accent: #8b7355;
    --light-link: #6b5344;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    font-weight: 300;
    font-size: 16px;
}

/* ==================== */
/* HOMEPAGE - Dark with background image */
/* ==================== */
body.home {
    background-color: var(--bg);
    background-image: url('../images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
}

body.home::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.33);
    z-index: 0;
}

body.home a {
    color: var(--link-color);
    text-decoration: underline;
}

/* ==================== */
/* INNER PAGES - Light paper texture */
/* ==================== */
body:not(.home) {
    background-color: var(--light-bg);
    background-image: url('../images/paper-texture.png');
    background-repeat: repeat;
    color: var(--light-text);
}

body:not(.home) a {
    color: var(--light-link);
    text-decoration: underline;
    transition: opacity 0.2s;
}

body:not(.home) a:hover {
    opacity: 0.7;
}

body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3,
body:not(.home) h4 {
    color: var(--light-text);
}

body:not(.home) p,
body:not(.home) li {
    color: var(--light-muted);
}

body:not(.home) strong {
    color: var(--light-text);
}

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

/* Homepage nav - transparent overlay */
body.home nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2.5vw 3vw;
    z-index: 100;
    background: transparent;
}

body.home nav ul a {
    color: var(--text);
    text-decoration: none;
}

/* Inner pages nav - solid light */
body:not(.home) nav {
    position: sticky;
    top: 0;
    background: rgba(245, 243, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    z-index: 100;
}

body:not(.home) nav ul a {
    color: var(--light-text);
    text-decoration: none;
}

body:not(.home) nav ul a:hover,
body:not(.home) nav ul a.active {
    color: var(--light-link);
}

nav .nav-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav .nav-logo {
    text-decoration: none;
}

nav .nav-logo img {
    height: 115px;
    max-height: 115px;
    width: auto;
    display: block;
}

body:not(.home) nav .nav-logo img {
    height: 80px;
    max-height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==================== */
/* HERO (Homepage) */
/* ==================== */
.hero-fullscreen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 3vw;
    padding-bottom: 8vh;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-content h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero-content .links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.hero-content .links a {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text);
    text-decoration: underline;
}

.hero-content .mission {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.9;
    font-weight: 300;
}

/* ==================== */
/* MAIN CONTENT (Inner pages) */
/* ==================== */
main:not(.hero-fullscreen) {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* ==================== */
/* TYPOGRAPHY */
/* ==================== */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 300; }
h2 { font-size: 2rem; font-weight: 300; }
h3 { font-size: 1.5rem; font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 400; }

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin: 0 0 1.5rem 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

/* ==================== */
/* SECTIONS & CALLOUTS */
/* ==================== */
section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

body.home section {
    border-bottom-color: #333;
}

section:last-child {
    border-bottom: none;
}

.callout {
    background: rgba(139, 115, 85, 0.1);
    border-left: 3px solid var(--light-accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

body.home .callout {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--text);
}

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

/* ==================== */
/* FOOTER */
/* ==================== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid #ddd;
}

body.home footer {
    color: var(--muted);
    border-top-color: #333;
}

body:not(.home) footer {
    color: var(--light-muted);
    background: rgba(0,0,0,0.02);
}

/* ==================== */
/* MOBILE */
/* ==================== */
@media (max-width: 768px) {
    body.home nav {
        padding: 6vw 4vw;
    }
    
    nav .nav-inner {
        flex-direction: column;
        text-align: center;
    }
    
    nav .nav-logo img {
        height: 60px;
        max-height: 60px;
    }
    
    body:not(.home) nav .nav-logo img {
        height: 50px;
        max-height: 50px;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    nav ul a {
        font-size: 0.8rem;
    }
    
    .hero-fullscreen {
        padding: 2rem 1.5rem;
        padding-bottom: 6vh;
        align-items: flex-end;
    }
    
    .hero-content h4 {
        font-size: 1.25rem;
    }
    
    main:not(.hero-fullscreen) {
        padding: 2rem 1.5rem 3rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}
