/* --- 1. Variables & Soft Design --- */
:root {
    --text-main: #1a1a1a;
    --text-muted: #555;
    --accent: #2563eb;
    --white: #ffffff;
    --max-content-width: 1100px;
    --h1-size: clamp(2.2rem, 8vw, 4rem);
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fdfdfd;
    overflow-x: hidden;
}

.max-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- 2. Master Navigation (Logo Left, Links Right) --- */
nav {
    display: flex;
    justify-content: space-between; /* Logo far left, Links far right */
    align-items: center; /* Perfect vertical center */
    padding: 1.5rem 0;
    width: 100%;
}

.logo {
    font-weight: 900;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: #000;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-right {
    display: flex; 
    gap: 1rem; 
    align-items: center;
    justify-content: flex-end;
}

/* --- 3. Unified Link Styling (Force Fonts & Colors) --- */
.nav-link, 
.footer-nav a,
.opt-out-link {
    font-family: "Inter", -apple-system, sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover, 
.footer-nav a:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Specific button styling for "Subscribe" in header */
.nav-btn {
    background: #000;
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    font-family: "Inter", sans-serif !important;
    line-height: 1;
}

/* --- 4. Responsive Banner Engine --- */
.banner-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #000;
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.banner-wrapper picture { width: 100%; max-width: 1920px; }
.banner-img { width: 100%; height: auto; display: block; object-fit: cover; }

/* --- 5. Content Typography --- */
h1 {
    font-size: var(--h1-size);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 { margin-bottom: 1rem; font-weight: 800; font-size: 1.8rem; }
h3 { margin-bottom: 0.75rem; font-size: 1.3rem; font-weight: 700; }

.hero-text {
    font-size: 1.4rem;
    color: var(--text-muted); 
    max-width: 850px; 
    margin-bottom: 2rem;
    line-height: 1.4;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 1rem;
}

.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

/* --- 6. Community Hub & Substack Sections --- */
.community-hub {
    margin: 2.5rem 0;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.hub-col h4 { font-size: 0.75rem; color: #000; margin-bottom: 1rem; text-transform: uppercase; }
.hub-links { display: flex; flex-direction: column; gap: 0.6rem; }
.hub-link { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.hub-link:hover { color: #000; }

.substack-wrapper {
    background: #f8fafc;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 1.5rem;
}

.substack-iframe-container {
    width: 100%;
    max-width: 480px;
    margin: 1rem auto 0;
    min-height: 320px;
}

/* --- 7. Standardized Footer --- */
footer {
    padding: 2rem 0;
    border-top: 1px solid #eee;
    margin-top: 3rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.opt-out-link {
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* --- 8. Mobile Adjustments --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .nav-right {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    h1 { font-size: 1.9rem; }
    .content-grid { grid-template-columns: 1fr; gap: 2rem; }
}