/*
  DESIGN BRIEF: THE PROXY

  This world is manuscript pages at 1 AM. A desk lamp. Coffee stains.
  The gap between what we say and what we write.

  FEEL: Literary. Precise. Melancholic. Like finding someone's private notebooks
  after they're gone. The warmth of whiskey and lamplight against institutional cold.

  TEXTURE: Paper. Typewriter keys. Margin notes. Coffee rings.
  The archaeological record of someone working without stopping.

  PALETTE: Warm paper (#f5f2ec), deep brown-black (#1a1610), amber whiskey (#d4a054),
  faded ink (#6b5f50), institutional gray (#8a8680).

  TYPE: Literary serif for manuscripts. Clean sans for the living.
  Monospace for legal documents and spreadsheets.

  MOTIF: Manuscript pages. Margin notes. The Macallan 18 still mostly full.
  Five screenplays nobody knew existed.

  WHAT THIS IS NOT: A slick Hollywood site. A dark thriller. A tech startup.
  This is paper and ink and the things we leave behind.
*/

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200;0,7..72,300;0,7..72,400;1,7..72,200;1,7..72,300&family=IBM+Plex+Mono:wght@300;400&display=swap');

:root {
    --paper: #f5f2ec;
    --paper-light: #faf8f4;
    --ink: #1a1610;
    --ink-faded: #6b5f50;
    --amber: #d4a054;
    --amber-light: #e0b870;
    --brown-black: #2a2418;
    --gray: #8a8680;
    --border-subtle: rgba(26, 22, 16, 0.1);
    --shadow-paper: 0 4px 12px rgba(26, 22, 16, 0.1);
    --shadow-ink: 0 2px 4px rgba(26, 22, 16, 0.2);
    --warm-glow: 0 0 30px rgba(212, 160, 84, 0.2);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes lampFlicker {
    0%, 100% { opacity: 1; }
    95% { opacity: 0.9; }
}

body {
    font-family: 'Literata', serif;
    font-weight: 300;
    background: var(--paper-light);
    color: var(--ink);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Manuscript Background */
.manuscript-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            rgba(26, 22, 16, 0.03) 27px,
            rgba(26, 22, 16, 0.03) 28px
        );
    pointer-events: none;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--ink) 0%, var(--brown-black) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.desk-lamp {
    position: absolute;
    top: -100px;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(212, 160, 84, 0.3) 0%, transparent 70%);
    animation: lampFlicker 10s infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem;
    text-align: center;
    background: var(--paper);
    box-shadow: var(--shadow-paper), var(--warm-glow);
    margin: 2rem;
}

.manuscript-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--ink-faded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    animation: fadeIn 1s ease;
}

.hero-logline {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-faded);
    margin-bottom: 2rem;
    font-style: italic;
    animation: fadeIn 1s ease 0.2s backwards;
}

.author-line,
.date-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--ink-faded);
    margin-top: 0.5rem;
    animation: fadeIn 1s ease 0.4s backwards;
}

/* Format Options */
.format-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeIn 1s ease 0.3s backwards;
}

.format-card {
    background: rgba(245, 242, 236, 0.9);
    padding: 1.5rem;
    border-left: 2px solid var(--amber);
    text-align: left;
}

.format-card h3 {
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.format-card p {
    color: var(--ink-faded);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.format-note {
    font-style: italic;
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
}

.format-link {
    display: inline-block;
    color: var(--amber);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.format-link:hover {
    color: var(--ink);
    transform: translateX(3px);
}

/* Content Section */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--amber);
}

/* Epigraph */
.epigraph-section {
    margin-bottom: 3rem;
    text-align: center;
}

.epigraph {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink-faded);
    padding: 2rem;
    border-left: 3px solid var(--amber);
    background: rgba(245, 242, 236, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

/* Prose Content */
.prose-content {
    line-height: 1.9;
    color: var(--ink);
}

.prose-content p {
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

.prose-content p:first-child {
    text-indent: 0;
}

.prose-content .emphasis {
    font-weight: 400;
    font-style: italic;
    color: var(--amber);
    display: block;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Friends Image Section */
.friends-section {
    margin: 3rem 0;
    text-align: center;
}

.friends-image {
    background: var(--paper);
    padding: 2rem;
    box-shadow: var(--shadow-paper);
    margin-bottom: 3rem;
}

.friends-image img {
    filter: sepia(20%) contrast(1.1);
    border: 1px solid var(--border-subtle);
}

.image-caption {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--ink-faded);
    font-size: 0.95rem;
}

.tattoo-symbolism {
    margin-top: 1.5rem;
}

.symbol-meanings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.symbol-meanings p {
    margin-bottom: 0.5rem;
    color: var(--ink-faded);
    font-size: 0.9rem;
}

.symbol-meanings strong {
    color: var(--amber);
    font-weight: 400;
}

/* Character Cards */
.character-card {
    background: var(--paper);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-paper);
    border-left: 3px solid var(--amber);
    position: relative;
    transition: all 0.3s ease;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at center, rgba(212, 160, 84, 0.05) 0%, transparent 70%);
}

.character-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-paper), var(--warm-glow);
}

.character-name {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    display: inline-block;
    margin-right: 0.5rem;
}

.character-age {
    color: var(--ink-faded);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}

.character-description {
    margin-top: 1rem;
    line-height: 1.8;
    color: var(--ink-faded);
}

/* Scene Cards */
.scene-card {
    background: linear-gradient(to right, var(--paper) 0%, var(--paper-light) 100%);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.scene-card:hover {
    box-shadow: var(--shadow-paper);
}

.scene-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.scene-number {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--amber);
    font-weight: 400;
    font-size: 0.9rem;
}

.scene-location {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink-faded);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scene-description {
    line-height: 1.8;
    color: var(--ink);
}

/* Production Grid */
.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .production-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .production-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.production-card {
    background: var(--paper);
    padding: 1.5rem;
    box-shadow: var(--shadow-paper);
    border-top: 2px solid var(--amber);
}

.production-card h3 {
    font-size: 1.1rem;
    color: var(--amber);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.production-card p {
    color: var(--ink-faded);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

@media (min-width: 1200px) {
    .timeline {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

.timeline-item {
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
}

.timeline-item .season {
    font-weight: 400;
    color: var(--amber);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-item p {
    color: var(--ink-faded);
    line-height: 1.6;
}

/* Screenplay List */
.screenplay-list {
    margin-top: 2rem;
}

.section-intro {
    color: var(--ink-faded);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.screenplay-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.screenplay-card {
    background: linear-gradient(135deg, var(--paper) 0%, rgba(212, 160, 84, 0.05) 100%);
    padding: 1.5rem;
    border-left: 2px solid var(--amber);
    transition: all 0.3s ease;
    position: relative;
}

.screenplay-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-paper);
}

.screenplay-card h3 {
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.screenplay-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--amber);
    display: block;
    margin-bottom: 0.5rem;
}

.screenplay-status {
    color: var(--ink-faded);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bonus Materials */
.bonus-section {
    margin-top: 3rem;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bonus-card {
    display: block;
    text-decoration: none;
    background: var(--paper);
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--amber);
    transition: all 0.3s ease;
}

.bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-paper);
}

.bonus-card h3 {
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.bonus-card p {
    color: var(--ink-faded);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Final Note */
.final-section {
    margin-top: 4rem;
    text-align: center;
}

.final-note {
    background: var(--paper);
    padding: 3rem;
    box-shadow: var(--shadow-paper);
}

.final-note p {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.fade {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink-faded);
    letter-spacing: 0.2em;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--ink) 0%, var(--brown-black) 100%);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
    color: var(--paper);
}

.footer a {
    color: var(--amber);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--amber-light);
}

.footer-link {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

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

    .manuscript-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .production-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .prose-content p {
        text-indent: 1rem;
    }

    .character-card {
        padding: 1.5rem;
    }

    .format-options {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .desk-lamp {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .character-card,
    .scene-card,
    .production-card,
    .screenplay-card {
        border: 2px solid var(--ink);
    }
}