/* Font Face Declarations - Bauhaus-inspired typography */
@font-face {
    font-family: 'Untitled Sans';
    src: url('./fonts/Untitled Sans Regular/UntitledSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled Sans';
    src: url('./fonts/Untitled Sans Medium/UntitledSans-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled Sans';
    src: url('./fonts/Untitled Sans Bold/UntitledSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled Sans';
    src: url('./fonts/Untitled Sans Light/UntitledSans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled Sans';
    src: url('./fonts/Untitled Sans Black/UntitledSans-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles - Bauhaus-inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Untitled Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fafafa;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Typography - Bauhaus-inspired hierarchy */
h1 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

a:hover {
    border-bottom-color: #1a1a1a;
    color: #1a1a1a;
}

/* Layout - Bauhaus-inspired spacing */
header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    border-bottom: 1px solid #e5e5e5;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    flex: 1;
}

.header-image {
    margin-left: 40px;
}

.header-image img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.header-image img:hover {
    transform: scale(1.05);
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Entry Styles - Bauhaus-inspired grid */
.entry {
    display: flex;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    align-items: center;
}

.entry:hover {
    background-color: #fafafa;
    margin: 0 -40px;
    padding: 24px 40px;
    border-radius: 8px;
}

.entry:last-child {
    border-bottom: none;
}

.date {
    width: 120px;
    font-size: 0.875rem;
    color: #999;
    flex-shrink: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.company {
    width: 200px;
    font-size: 0.875rem;
    color: #999;
    flex-shrink: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.content {
    font-size: 1rem;
    flex: 1;
    color: #1a1a1a;
}

.content a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    display: block;
    transition: all 0.2s ease;
}

.content a:hover {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: none;
}

.content a h2 {
    margin-bottom: 0;
    text-decoration: none;
    border-bottom: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.content a:hover h2 {
    color: #1a1a1a;
}

.content p {
    margin: 8px 0 0;
    text-decoration: none;
    border-bottom: none;
    color: #666;
}

/* Redacted Content - Bauhaus-inspired */
.redacted-content {
    flex: 0 0 auto;
    width: auto;
}

.redacted-content h2 {
    display: inline;
}

.redacted {
    background-color: #1a1a1a;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* Footer - Bauhaus-inspired */
footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
}

footer p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 32px;
}

.social-links a {
    color: #666;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.social-links a:hover {
    border-bottom-color: #666;
    color: #1a1a1a;
}

/* Responsive Design - Bauhaus-inspired mobile */
@media (max-width: 768px) {
    header {
        padding: 60px 20px 40px;
    }
    
    main {
        padding: 40px 20px;
    }
    
    footer {
        padding: 60px 20px;
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .entry {
        flex-direction: column;
        padding: 20px 0;
        align-items: flex-start;
    }
    
    .entry:hover {
        margin: 0 -20px;
        padding: 20px 20px;
    }
    
    .date, .company, .content {
        width: 100%;
    }
    
    .date, .company {
        margin-bottom: 8px;
        font-size: 0.875rem;
    }
    
    h1 {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.125rem;
    }
    
    .header-image {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 16px 30px;
    }
    
    main {
        padding: 30px 16px;
    }
    
    footer {
        padding: 40px 16px;
    }
    
    h1 {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .entry:hover {
        margin: 0 -16px;
        padding: 20px 16px;
    }
    
    .header-image {
        margin-left: 16px;
    }
}

/* Animations handled by JavaScript for better control */

/* Focus States for Accessibility */
a:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Inline Image Expansion Styles - Bauhaus-inspired */
.expanded-image-container {
    width: 100%;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.expanded-image-container.active {
    opacity: 1;
    max-height: 1000px;
    margin: 24px 0;
}

.expanded-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.expanded-image:hover {
    transform: scale(1.02);
}

/* Section container for Habitat 2.0 */
.section-container {
    position: relative;
}

/* Section divider - Bauhaus-inspired */
hr.section-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 60px 0;
}

.section-divider {
    background-color: #e5e5e5;
    height: 1px;
    width: 100%;
    margin: 60px 0;
    border: none;
}

/* Loading spinner - Bauhaus-inspired */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .entry {
        break-inside: avoid;
    }
    
    .entry.horizontal-rule {
        border-bottom: 1px solid #000;
    }
    
    footer {
        border-top: 1px solid #000;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}