/* BDO Grotesk Font Family for Article Titles */
@font-face {
    font-family: 'BDOGrotesk';
    src: url('../fonts/BDOGrotesk-Medium-BF648a656f49882.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDOGrotesk';
    src: url('../fonts/BDOGrotesk-DemiBold-BF648a656f04a15.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

/* NeubauGrotesk Font Family */
@font-face {
    font-family: 'NeubauGrotesk';
    src: url('../fonts/NBGrotesk-UltraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'NeubauGrotesk';
    src: url('../fonts/NBGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeubauGrotesk';
    src: url('../fonts/NBGrotesk-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'NeubauGrotesk';
    src: url('../fonts/NBGrotesk-Black.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Hacker News inspired styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'NeubauGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff !important;
    color: #000;
    line-height: 1.4;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Main title - much larger */
header h1.main-title {
    font-family: 'NeubauGrotesk', sans-serif;
    font-size: 52px;
    font-weight: 600;
    margin-bottom: -7px;
    line-height: 1.1;
}

/* Title link styling */
header h1.main-title .title-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

header h1.main-title .title-link:hover {
    color: #9C9C9C;
    text-decoration: none;
}

/* Subtitle with NB Grotesk Semibold font */
header h2.subtitle-title {
    font-family: 'NeubauGrotesk', sans-serif;
    font-size: 28.3px;
    font-weight: 300;
    margin-bottom: 5px;
    color: #cf8e03;
    letter-spacing: 0.08em;
    margin-left: 3px;
}

/* Mobile responsive adjustments for title and subtitle */
@media (max-width: 768px) {
    header h1.main-title {
        font-size: clamp(40px, 10vw, 52px);
        line-height: 1.1;
        word-wrap: break-word;
        hyphens: none;
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: -3px;
    }
    
    header h2.subtitle-title {
        font-size: clamp(21.8px, 5vw, 28.3px);
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: none;
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

.subtitle {
    font-size: 14px;
    color: #ccc;
}

.contact-disclaimer {
    font-size: 12px;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 0;
    margin-left: 3px;
}

.contact-disclaimer a {
    color: #fff;
    text-decoration: none;
}

.contact-disclaimer a:hover {
    color: #9C9C9C;
    text-decoration: none;
}

.quantum-salon-link {
    color: #cf8e03;
    text-decoration: none;
    font-weight: 500;
}

.quantum-salon-link:hover {
    color: #b87a02;
    text-decoration: underline;
}

.beta-banner {
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.beta-banner p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.beta-banner a {
    color: #cf8e03;
    text-decoration: none;
    font-weight: 500;
}

.beta-banner a:hover {
    text-decoration: underline;
}

.year-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    flex-wrap: wrap;
}

.year-tab {
    display: inline-block;
    padding: 8px 16px;
    background-color: #9C9C9C;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
    border: none;
}

.year-tab:hover {
    background-color: #7a7a7a;
    color: #fff;
    text-decoration: none;
}

.year-tab.active {
    background-color: #cf8e03;
    color: white;
}

.year-tab.active:hover {
    background-color: #b87a02;
    color: white;
}

.articles-container {
    /* Container for all articles */
}

.year-section {
    margin-bottom: 30px;
    transition: opacity 0.2s ease-in-out;
}

.month-section {
    margin-bottom: 18px;
    transition: opacity 0.2s ease-in-out;
}

.new-section {
    margin-bottom: 30px;
    transition: opacity 0.2s ease-in-out;
}

.new-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #cf8e03;
    display: inline-block;
}

.past-week-section {
    margin-bottom: 30px;
    transition: opacity 0.2s ease-in-out;
}

.past-week-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #cf8e03;
    display: inline-block;
}

.last-week-section {
    margin-bottom: 30px;
    transition: opacity 0.2s ease-in-out;
}

.last-week-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #cf8e03;
    display: inline-block;
}

.article-snippet {
    color: #999;
    font-style: italic;
    margin-left: 12px;
}

.month-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #cf8e03;
    display: inline-block;
}

.articles {
    list-style: none;
}

.article {
    background-color: white;
    margin-bottom: 6px;
    padding: 8px 12px;
    border-left: 4px solid #cf8e03;
    transition: opacity 0.2s ease-in-out;
}

/* Quantum Salon specific styling */
.article[data-source="Quantum Salon"] {
    border-left-color: #9C9C9C;
}

.article[data-source="Quantum Salon"] .source {
    color: #cf8e03;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.title {
    color: #000;
    text-decoration: none;
    font-family: 'BDOGrotesk', 'NeubauGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.title:hover {
    text-decoration: underline;
    color: #cf8e03;
}

.source {
    color: #9C9C9C;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.published {
    font-weight: 500;
}

.snippet {
    color: #999;
    font-style: italic;
    margin-left: 12px;
}

.no-articles {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background-color: white;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .source {
        align-self: flex-start;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .article {
        background-color: #2a2a2a;
        border-left-color: #cf8e03;
    }
    
    .title {
        color: #e0e0e0;
    }
    
    .source {
        background-color: #3a3a3a;
        color: #9C9C9C;
    }
    
    .no-articles {
        background-color: #2a2a2a;
        color: #ccc;
    }
    
    .beta-banner p {
        color: #ccc;
    }
    
    .quantum-salon-link {
        color: #cf8e03;
    }
    
    .quantum-salon-link:hover {
        color: #ffd700;
    }
    
    .snippet {
        color: #ccc;
    }
    
    .year-tab {
        background-color: #3a3a3a;
        color: #ccc;
        border-color: #555;
    }
    
    .year-tab:hover {
        background-color: #4a4a4a;
        color: #fff;
    }
    
    .year-tab.active {
        background-color: #cf8e03;
        color: white;
        border-color: #cf8e03;
    }
    
    .year-tab.active:hover {
        background-color: #b87a02;
        color: white;
    }
    
    .month-heading {
        color: #e0e0e0;
        border-bottom-color: #cf8e03;
    }
    
    .last-week-heading {
        color: #e0e0e0;
        border-bottom-color: #cf8e03;
    }
    
    .article-snippet {
        color: #ccc;
    }
    
    /* Quantum Salon specific styling in dark mode */
    .article[data-source="Quantum Salon"] {
        border-left-color: #9C9C9C;
    }
    
    .article[data-source="Quantum Salon"] .source {
        color: #cf8e03;
    }
}