/* ===== PITTSBURGH COMPACT — FORENSIC INFRASTRUCTURE DESIGN ===== */
/* Design philosophy: ProPublica investigative journalism meets Penn Station wayfinding */
/* Color system: concrete, steel, safety orange — infrastructure, not SaaS */

/* ===== CSS VARIABLES ===== */
:root {
    /* Infrastructure palette */
    --concrete: #1a1a1a;
    --steel: #2d3436;
    --safety-orange: #ffb81c;
    --concrete-light: #4a4a4a;
    --document-white: #fafafa;
    --redaction-bar: #000000;
    --highlight-yellow: #fff34d;
    
    /* Typography scale - brutalist sizing */
    --type-hero: clamp(3rem, 8vw, 7rem);
    --type-data: clamp(2rem, 5vw, 4rem);
    --type-h2: clamp(1.5rem, 3vw, 2.5rem);
    --type-body: 1.125rem;
    --type-small: 0.875rem;
    
    /* Spacing system */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Layout */
    --max-width: 1200px;
    --grid-gap: 2rem;
}

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

/* ===== BASE STYLES ===== */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--type-body);
    line-height: 1.6;
    color: var(--concrete);
    background: var(--document-white);
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION — PERMANENT INFRASTRUCTURE ===== */
nav {
    background: var(--concrete);
    color: white;
    padding: var(--space-md) 0;
    border-bottom: 8px solid var(--safety-orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--safety-orange);
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

/* ===== HERO — MAKE THE GAP SPATIAL ===== */
.hero {
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
    border-bottom: 4px solid var(--concrete);
    text-align: center;
}

.hero h2 {
    font-size: var(--type-hero);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.subtitle {
    font-size: var(--type-h2);
    color: var(--steel);
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* ===== FORENSIC DATA CALLOUT ===== */
.data-callout {
    background: var(--concrete);
    color: white;
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-left: 8px solid var(--safety-orange);
}

.data-callout-number {
    font-size: var(--type-hero);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-sm);
    color: var(--safety-orange);
}

.data-callout-label {
    font-size: var(--type-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ===== EXECUTIVE SUMMARY — DOCUMENT AESTHETIC ===== */
.executive-summary {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: white;
    border: 2px solid var(--concrete);
}

.executive-summary h3 {
    font-size: var(--type-h2);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 4px solid var(--concrete);
}

.executive-summary p {
    margin-bottom: var(--space-md);
}

.executive-summary strong {
    font-weight: 900;
    color: var(--concrete);
    background: var(--highlight-yellow);
    padding: 0 4px;
}

/* ===== REDACTION BAR STYLE (for emphasis) ===== */
.redacted {
    background: var(--redaction-bar);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    font-weight: 900;
    display: inline-block;
}

/* ===== ARCHIVE NOTE — OFFICIAL DOCUMENT STAMP ===== */
.archive-note {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--document-white);
    border: 2px solid var(--concrete);
    border-left: 8px solid var(--safety-orange);
    font-size: var(--type-small);
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== COMPACT BOX — THE MANDATE ===== */
.compact-box {
    background: var(--concrete);
    color: white;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    text-align: center;
    border: 8px solid var(--safety-orange);
}

.compact-statement {
    font-size: var(--type-data);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.compact-statement strong {
    color: var(--safety-orange);
    font-size: 1.2em;
}

/* ===== FORMULA BOX — FORENSIC MATH ===== */
.formula {
    background: white;
    border: 4px solid var(--concrete);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.formula p {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* ===== DATA TABLE — LEDGER STYLE ===== */
.data-table {
    margin: var(--space-lg) 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

thead {
    background: var(--concrete);
    color: white;
}

th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--type-small);
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--concrete-light);
}

tbody tr:nth-child(odd) {
    background: var(--document-white);
}

tbody tr:hover {
    background: var(--highlight-yellow);
}

/* Highlight critical data rows */
tbody tr.critical td {
    font-weight: 900;
    color: var(--safety-orange);
}

/* ===== AMENDMENT BOX — LEGISLATIVE LANGUAGE ===== */
.amendment-box {
    background: var(--document-white);
    border: 2px solid var(--concrete);
    border-left: 8px solid var(--steel);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* ===== POSTS SECTION — CHRONOLOGICAL RECORD ===== */
.posts {
    margin-top: var(--space-xl);
}

.post {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--concrete-light);
}

.post-header {
    margin-bottom: var(--space-md);
}

.post-date {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--space-xs);
    color: var(--safety-orange);
}

.post-context {
    font-size: var(--type-small);
    color: var(--steel);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.linkedin-embed {
    margin: var(--space-md) 0;
}

.embed-placeholder {
    background: var(--document-white);
    border: 2px dashed var(--concrete-light);
    padding: var(--space-lg);
    text-align: center;
}

.post-divider {
    border: none;
    border-top: 4px solid var(--concrete);
    margin: var(--space-xl) 0;
}

/* ===== PAGE HEADERS ===== */
.page-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 4px solid var(--concrete);
}

.page-header h2 {
    font-size: var(--type-hero);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.page-header p {
    font-size: var(--type-h2);
    color: var(--steel);
    font-weight: 300;
}

/* ===== CONTENT SECTIONS ===== */
.content h3 {
    font-size: var(--type-h2);
    font-weight: 900;
    text-transform: uppercase;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 4px solid var(--concrete);
}

.content h4 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content p {
    margin-bottom: var(--space-md);
}

.content strong {
    font-weight: 900;
}

.content ul,
.content ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content li {
    margin-bottom: var(--space-sm);
}

.content a {
    color: var(--concrete);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.content a:hover {
    color: var(--safety-orange);
}

/* ===== CALL TO ACTION ===== */
.cta {
    text-align: center;
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 4px solid var(--concrete);
    border-bottom: 4px solid var(--concrete);
}

.btn {
    display: inline-block;
    background: var(--concrete);
    color: white;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-sm);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px solid var(--concrete);
    transition: all 0.2s;
}

.btn:hover {
    background: var(--safety-orange);
    border-color: var(--safety-orange);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--concrete);
    border: 3px solid var(--concrete);
}

.btn-secondary:hover {
    background: var(--concrete);
    color: white;
}

/* ===== FOOTER — PERMANENT RECORD ===== */
footer {
    background: var(--concrete);
    color: white;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    margin-top: var(--space-xl);
    border-top: 8px solid var(--safety-orange);
}

footer p {
    margin-bottom: var(--space-sm);
    font-size: var(--type-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

footer a {
    color: var(--safety-orange);
    text-decoration: underline;
    font-weight: 900;
}

footer a:hover {
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: var(--space-sm);
    }
}

/* ===== PRINT STYLES — ARCHIVE-READY ===== */
@media print {
    nav,
    .cta {
        display: none;
    }
    
    body {
        font-size: 11pt;
        line-height: 1.5;
    }
    
    .hero,
    .page-header {
        page-break-after: avoid;
    }
    
    .post {
        page-break-inside: avoid;
    }
    
    footer {
        background: white;
        color: black;
        border-top: 2px solid black;
    }
}
