/* martiallaw.wiki - Legal Serif Authoritative */
/* Colors: #1A1A1A, #2D2D2D, #6B5B4F, #8B0000, #CCCCCC, #D4C5A0, #F5F0E8, #FDFCFA */
/* Fonts: EB Garamond, Space Mono */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.8;
    color: #2D2D2D;
    background: #FDFCFA;
    overflow-x: hidden;
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #FDFCFA;
    border-bottom: 2px solid #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
}

.header-brand {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-size: 14px;
    color: #1A1A1A;
    letter-spacing: 0.15em;
}

.small-caps {
    font-variant: small-caps;
    text-transform: lowercase;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: 'EB Garamond', serif;
    font-size: 14px;
    color: #6B5B4F;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1A1A1A;
}

/* Page Layout */
.page-layout {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 48px;
    min-height: 100vh;
}

/* Timeline Column */
.timeline-column {
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
    padding: 40px 0 40px 24px;
    overflow-y: auto;
}

.timeline-track {
    position: relative;
    padding-left: 16px;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #CCCCCC;
}

.timeline-marker {
    position: relative;
    margin-bottom: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-marker:hover .marker-year {
    color: #1A1A1A;
}

.marker-year {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #CCCCCC;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.marker-year.active {
    color: #1A1A1A;
}

.marker-bar {
    width: 4px;
    background: #CCCCCC;
    border-radius: 1px;
}

.martial-bar {
    background: #8B0000;
    opacity: 0.6;
}

.mono-text {
    font-family: 'Space Mono', monospace;
}

/* Content Column */
.content-column {
    padding: 60px 48px 80px;
    max-width: 700px;
}

/* Article Sections */
.article-section {
    margin-bottom: 48px;
    transition: border-left 0.2s ease;
    padding-left: 0;
}

.article-section.highlighted {
    border-left: 4px solid #8B0000;
    padding-left: 20px;
}

.article-title {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-size: 32px;
    color: #1A1A1A;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-meta {
    font-size: 12px;
    color: #6B5B4F;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
}

.article-body p {
    margin-bottom: 20px;
    text-indent: 1.5em;
}

.article-body p:first-child {
    text-indent: 0;
}

.article-body em {
    font-style: italic;
}

/* Small Caps for proper nouns */
.article-body .small-caps {
    font-variant: small-caps;
    text-transform: lowercase;
    font-weight: 500;
}

/* Subsection Titles */
.subsection-title {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-size: 20px;
    color: #1A1A1A;
    margin: 32px 0 16px;
    text-indent: 0;
}

/* Legal Block Quotes */
.legal-quote {
    margin: 32px 40px;
    padding: 0;
    font-style: italic;
    color: #6B5B4F;
    font-size: 16px;
    line-height: 1.7;
    border-left: none;
    text-indent: 0;
}

/* Citations */
.citation {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #8B0000;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.citation:hover {
    color: #1A1A1A;
}

/* Margin Notes */
.margin-note {
    margin: 24px 0;
    padding: 12px 16px;
    background: #F5F0E8;
    border-left: 2px solid #D4C5A0;
    font-size: 13px;
    color: #6B5B4F;
    line-height: 1.6;
    text-indent: 0;
}

.note-number {
    font-size: 11px;
    color: #8B0000;
    font-weight: 700;
    margin-right: 8px;
}

.note-text {
    font-family: 'EB Garamond', serif;
    font-size: 13px;
}

/* Section Dividers */
.section-divider {
    border: none;
    border-top: 1px solid #CCCCCC;
    margin: 48px 0;
}

/* Margin Column */
.margin-column {
    padding: 60px 24px 80px 0;
}

/* Footer */
.article-footer {
    margin-top: 64px;
    padding-top: 32px;
}

.footer-line {
    width: 100%;
    height: 2px;
    background: #1A1A1A;
    margin-bottom: 24px;
}

.footer-text {
    font-size: 12px;
    color: #6B5B4F;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 13px;
    color: #CCCCCC;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .timeline-column {
        display: none;
    }

    .margin-column {
        display: none;
    }

    .content-column {
        padding: 60px 24px 80px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
    }

    .header-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 12px;
    }

    .article-title {
        font-size: 26px;
    }

    .legal-quote {
        margin: 24px 20px;
    }
}
