/* style.css — Clean Publisher Portfolio & Click-to-Expand Charts */

:root {
    --bg-page: #fbfbfa;
    --bg-card: #ffffff;
    --bg-elevated: #f3f3f0;
    --bg-subtle: rgba(0, 0, 0, 0.02);
    
    --text-primary: #111111;
    --text-secondary: #444444;
    --text-muted: #737373;
    
    /* Publisher Crimson Accent Line */
    --accent-signal: #b91c1c; 
    
    --border-light: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    
    --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-serif: 'IBM Plex Serif', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    --shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
    --radius-md: 8px;
    --radius-sm: 4px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(251, 251, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 3rem 0.5rem;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.4rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.brand-signal {
    font-family: var(--font-mono);
    color: var(--accent-signal);
}

.brand-noise {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-secondary);
}

.brand-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-light);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-light);
    overflow-x: auto;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--accent-signal);
}

/* Document Container */
.document-container {
    max-width: 960px;
    margin: 130px auto 5rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Hero / Bio */
.hero-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.hero-meta-tag {
    display: inline-block;
    background: rgba(185, 28, 28, 0.08);
    color: var(--accent-signal);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Section Cards */
.doc-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 3.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.section-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-signal);
    display: inline-block;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.doc-section h1 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
}

.narrative-block {
    margin-bottom: 1.5rem;
}

.narrative-block p, .body-copy {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Signature Red Line Result Box */
.portfolio-result-box {
    border-left: 3px solid var(--accent-signal);
    background: var(--bg-elevated);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0 0 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.portfolio-result-box p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.portfolio-result-box strong {
    color: var(--accent-signal);
}

.portfolio-result-box a {
    color: var(--accent-signal);
    text-decoration: none;
    font-weight: 500;
}

.portfolio-result-box a:hover {
    text-decoration: underline;
}

/* Interactive Hover Tooltip for Peer Feedback */
.peer-feedback-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(185, 28, 28, 0.08);
    color: var(--accent-signal);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(185, 28, 28, 0.2);
    transition: background 0.2s;
}

.peer-feedback-trigger:hover {
    background: rgba(185, 28, 28, 0.15);
}

.peer-feedback-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 0;
    width: 360px;
    background: #0f172a;
    color: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.peer-feedback-tooltip p {
    font-style: italic;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.tooltip-author {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #38bdf8;
    font-style: normal;
    display: block;
}

.peer-feedback-trigger:hover + .peer-feedback-tooltip,
.peer-feedback-tooltip:hover {
    visibility: visible;
    opacity: 1;
}

/* Click-to-Expand Modal Active State */
.expanded-chart {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    background: rgba(11, 15, 25, 0.95) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    cursor: zoom-out !important;
}

.expanded-chart img {
    width: auto !important;
    max-width: 90vw !important;
    max-height: 82vh !important;
    object-fit: contain !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border-radius: 8px;
}

.expanded-chart span {
    color: #f8fafc !important;
    font-size: 0.9rem !important;
    margin-top: 1.25rem !important;
    font-family: var(--font-sans) !important;
}

/* Footnotes & Footer */
.source-foot {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.source-foot a {
    color: var(--accent-signal);
    text-decoration: none;
}

.site-footer {
    text-align: center
