/* Narrative Ape Productions - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fbf7f2;
    color: #4e342e;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

/* Header - TIGHT SPACING - Velvet Colors */
header {
    background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
    color: white;
    padding: 0.8rem 2rem;
    margin: 0 -20px 0;
    text-align: center;
    border-bottom: 1px solid #d7ccc8;
}

h1 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin: 0.3rem 0 0.1rem 0;
    line-height: 1.2;
    white-space: nowrap;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: #efebe9;
    margin: 0.1rem 0 0.2rem 0;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
}

/* Mobile text sizing */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .tagline { font-size: 0.9rem; }
}

/* Content Sections - ZERO GAPS */
.c-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(139, 110, 99, 0.1);
    margin-bottom: 0;
    border: 1px solid #e0d6d1;
    border-top: none;
}

.c-section:first-of-type {
    margin-top: 0;
    border-top: 1px solid #e0d6d1;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.c-section:last-of-type {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.c-section h2 {
    color: #5d4037;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d7ccc8;
    padding-bottom: 0.5rem;
    font-weight: 400;
}

.c-section h3 {
    color: #5d4037;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

/* Horizontal Projects Scroller */
.projects-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0; /* no right padding */
    scrollbar-width: thin;
    scrollbar-color: #a1887f #f5f5f5;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    margin: 0 auto;
}

.projects-scroller::-webkit-scrollbar { height: 6px; }
.projects-scroller::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.projects-scroller::-webkit-scrollbar-thumb {
    background: #a1887f;
    border-radius: 3px;
}

.project-card-scroller {
    background: white;
    border: 1px solid #e0d6d1;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 280px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    scroll-snap-align: start;
}

.project-card-scroller:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 110, 99, 0.15);
    border-color: #a1887f;
}

.project-card-scroller h3 {
    color: #5d4037;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.project-status {
    display: inline-block;
    background: #efebe9;
    color: #8d6e63;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* trailing gap so last card doesn't hug the edge */
.projects-scroller::after {
    content: "";
    flex: 0 0 1rem;
}

/* Single-card case: remove scroll and center */
.projects-scroller:not(:has(.project-card-scroller:nth-child(2))) {
    overflow-x: visible;
    justify-content: center;
    scroll-snap-type: none;
}

/* Responsive foreshadowing (peek) */

/* Tablet: 2 full cards + peek of 3rd */
@media (min-width: 600px) and (max-width: 999px) {
    .projects-scroller {
        max-width: 632px; /* 2 cards + gap + peek */
    }
}

/* Desktop: 3 full cards + peek of 4th */
@media (min-width: 1000px) {
    .projects-scroller {
        max-width: 936px; /* 3 cards + 2 gaps + peek */
    }
}

/* Navigation */
nav {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.nav-link {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background: #8d6e63;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.nav-link:hover {
    background: #6d4c41;
    transform: translateY(-1px);
}

/* Hashtags */
.hashtag {
    color: #8d6e63;
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* Paragraph styling */
p {
    margin-bottom: 1rem;
    color: #5d4037;
}
