/* ===== THE ARCHIVIST — GALLERY AESTHETIC (CURATOR STYLE) ===== */

/*
  DESIGN PHILOSOPHY: Matching The Curator's gallery aesthetic

  This is The Archivist reimagined as a gallery piece. The conspiracy
  thriller content remains, but presented with the same elegant minimalism
  as The Curator. Both films deal with "nice bows" - the comfortable lies
  we tell ourselves. They exist in the same universe of elegant menace.

  PALETTE: Gallery white, barely-there crimson, deep black text
  TYPE: Playfair Display for headers, Crimson Text for body
  TEXTURE: White space IS the texture. Clean, precise, unsettling.
*/

:root {
    /* Gallery Palette (matching The Curator) */
    --white: #ffffff;
    --off-white: #fafafa;
    --gallery-gray: #f8f8f8;
    --text-black: #0a0a0a;
    --text-gray: #333333;
    --text-muted: #666666;
    --crimson-hint: rgba(139, 0, 0, 0.08);
    --crimson-accent: rgba(139, 0, 0, 0.15);
    --crimson-text: rgba(139, 0, 0, 0.7);
    --border-light: rgba(0, 0, 0, 0.08);

    /* Evidence accents (subtle) */
    --evidence-red: rgba(139, 0, 0, 0.3);
    --pin-shadow: rgba(0, 0, 0, 0.1);
}

/* ===== GLOBAL RESET & BASE STYLES ===== */

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

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    background: var(--white);
    overflow-x: hidden;
}

/* ===== REMOVE EVIDENCE BOARD OVERLAY ===== */
.evidence-overlay {
    display: none;
}

/* ===== HERO SECTION - MINIMAL GALLERY ===== */

.hero {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.evidence-board {
    position: relative;
    max-width: 900px;
    text-align: center;
}

/* Hide the conspiracy board elements */
.evidence-pin,
.newspaper-clipping,
.research-note {
    display: none;
}

/* Case File Header - Gallery Style */
.case-file-header {
    padding: 3rem 2rem;
    background: transparent;
    position: relative;
}

.evidence-tag {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.case-number {
    color: var(--crimson-text);
}

.classification {
    color: var(--text-muted);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-black);
    margin-bottom: 1rem;
    text-transform: none;
}

.case-subject {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.case-details {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.stamp-overlay {
    display: none;
}

/* ===== NAVIGATION - GALLERY TABS ===== */

.section-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    position: relative;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 102;
}

.menu-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-black);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Nav Items Container */
.nav-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-link:hover {
    color: var(--text-black);
}

.nav-link:focus {
    outline: none;
    color: var(--text-black);
}

/* ===== MAIN CONTENT ===== */

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.treatment-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.treatment-section:last-child {
    border-bottom: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-black);
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--crimson-accent);
    margin: 2rem auto;
}

/* Content Boxes */
.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.logline-box,
.philosophy-box {
    background: var(--gallery-gray);
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.subsection-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    font-weight: 400;
}

.logline {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-gray);
}

.philosophy-box p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.philosophy-box p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-black);
    padding-top: 1rem;
    border-top: 1px solid var(--crimson-hint);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.detail-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--crimson-text);
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item p {
    color: var(--text-gray);
}

/* Character Cards - Gallery Style */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.character-card {
    background: var(--gallery-gray);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.character-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.character-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.character-role {
    color: var(--crimson-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.character-bio {
    line-height: 1.7;
    color: var(--text-gray);
}

/* Structure Timeline - Minimal */
.timeline-container {
    position: relative;
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-light);
}

.timeline-event {
    position: relative;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--white);
}

.timeline-event:nth-child(even) {
    text-align: right;
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--crimson-accent);
    border-radius: 50%;
}

.timeline-event:nth-child(odd)::before {
    right: -6px;
}

.timeline-event:nth-child(even)::before {
    left: -6px;
}

.event-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--crimson-text);
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Production Grid */
.production-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.production-item {
    padding: 2rem;
    background: var(--gallery-gray);
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.7;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list strong {
    color: var(--text-black);
    font-family: 'Playfair Display', serif;
}

/* Footer */
.site-footer {
    background: var(--gallery-gray);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Case Closed Section - Styled as subtle gallery note */
.case-closed {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.status-indicator {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--crimson-text);
    margin-right: 1rem;
}

.status-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.footer-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-note p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.footer-note p:last-child {
    margin-bottom: 0;
}

/* Add link back to hub */
.site-footer::after {
    content: "Created by Dan Lawless";
    display: block;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Mobile nav overlay */
    .nav-items {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 101;
    }

    .nav-items.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .details-grid,
    .character-grid {
        grid-template-columns: 1fr;
    }

    .timeline-event {
        text-align: left !important;
    }
}