:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #f5f5f5;
    --background-color: #ffffff;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --hover-color: #333333;
    --spacing-md: 1rem;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    --max-width: 1200px;
    --content-width: 800px;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.content-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
}




/* Main Content */
.main {
    margin-top: 120px;
    padding: var(--spacing-3xl) 0;
}

/* Typography */
.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: 4px;
}

.section-link:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

.section-link::after {
    content: "↗";
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.company-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.project-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.project-description {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--hover-color);
}

/* Lists */
.project-list {
    list-style: none;
    margin-bottom: var(--spacing-2xl);
}

.project-item {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.project-item:last-child {
    border-bottom: none;
}

/* StoryBuild Publishing - Three column layout */
.storybuild .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.storybuild .project-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.storybuild .project-image {
    flex-shrink: 0;
    margin-right: 20px;
}

.storybuild .project-image img {
    width: 80px;
    height: auto;
    display: block;
}

.storybuild .project-text {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.storybuild .project-status {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Other sections - Original modern design layout */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.project-content {
    flex: 1;
}

.project-status {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Links */
.external-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.external-link:hover {
    border-bottom-color: var(--primary-color);
}


/* Responsive */
@media (max-width: 768px) {
    .main {
        margin-top: 140px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .project-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .project-status {
        align-self: flex-start;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .main {
        margin-top: 160px;
    }
}

/* Special styling for status updates */
.status-highlight {
    background-color: #f8f9fa;
    border-left: 3px solid #dc3545;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    margin: var(--spacing-sm) 0;
}

.status-highlight .status-label {
    color: #6c757d;
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-highlight .status-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

/* Override main site styles for Now page - only for main content */
.main {
    text-align: left !important;
}

.main .container {
    text-align: left !important;
}

.main .content-wrapper {
    text-align: left !important;
}

/* Ensure main content text elements are left-aligned */
.main h1, .main h2, .main h3, .main h4, .main h5, .main h6, 
.main p, .main li, .main a, .main span {
    text-align: left !important;
}

/* Small Footer */
#small-footer {
    background: #191919;
    padding: 60px 0px 50px 0px;
}

/* Mobile footer - keep elements on same line */
@media (max-width: 768px) {
    #small-footer {
        padding: 60px 0px 50px 0px !important;
    }
    
    #small-footer .row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    #small-footer .col-md-8,
    #small-footer .col-md-4 {
        flex: 1;
        width: auto;
        white-space: nowrap;
    }
    
    #small-footer p {
        white-space: nowrap;
        margin: 0;
    }
}

/* Book Cover Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-thumbnail {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
    display: block;
}

.modal-thumbnail:hover {
    opacity: 1;
    border-color: #ccc;
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: white;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-thumbnail {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
    }
    
    .modal-thumbnails {
        gap: 8px;
        margin-top: 15px;
    }
}

.project-image img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-image img:hover {
    opacity: 0.8;
}
