/* Signal Corps Archive - Main Stylesheet */

:root {
    --primary-gold: #C5A572;
    --deep-navy: #1a2332;
    --cream: #F5F3EE;
    --text-dark: #2C3E50;
    --text-muted: #6B7B8C;
    --border-light: #E8E4DC;
    --accent-red: #8B4513;
}

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

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

/* Header */
header {
    background-color: var(--deep-navy);
    padding: 1rem 2rem;
}

.header-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.archive-brand svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-gold);
}

.archive-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-gold);
    letter-spacing: 0.15em;
}

.insignia {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8B9AAB;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.insignia svg {
    width: 18px;
    height: 18px;
    fill: #8B9AAB;
}

/* Navigation */
.main-nav {
    background-color: #243447;
    border-bottom: 1px solid #34495E;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.nav-link {
    padding: 0.875rem 1.5rem;
    color: #A8B5C4;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #2C3E50 100%);
    padding: 3rem 2rem;
    text-align: center;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #A8B5C4;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-gold);
}

h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

h4 {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Summary Block */
.summary-block {
    background: #fff;
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.summary-block h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

/* Doctrine Box */
.doctrine {
    background: var(--deep-navy);
    color: #fff;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.doctrine h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.doctrine ul {
    list-style: none;
    padding-left: 0;
}

.doctrine li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #E8E4DC;
}

.doctrine li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

/* Source List */
.source-list {
    list-style: none;
    padding: 0;
}

.source-list li {
    padding: 1rem;
    background: #fff;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--border-light);
    transition: border-color 0.2s ease;
}

.source-list li:hover {
    border-left-color: var(--primary-gold);
}

.source-list a {
    color: var(--deep-navy);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.source-list a:hover {
    color: var(--primary-gold);
}

.source-category {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Archive Cards */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.archive-card {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.archive-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.archive-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.archive-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-link {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* Evidence Table */
.evidence-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
}

.evidence-table th {
    background: var(--deep-navy);
    color: #fff;
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.evidence-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.evidence-table tr:hover td {
    background: rgba(197, 165, 114, 0.05);
}

/* Footer */
footer {
    background: var(--deep-navy);
    color: #A8B5C4;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section h5 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: #8B9AAB;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #8B9AAB;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid #34495E;
    padding: 1rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #6B7B8C;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}
