/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Courier+Prime:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #2A2A2A;
    background: #F5F3EE;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Container */
.container {
    position: relative;
    min-height: 100vh;
}

/* ASCII Sky Pattern */
.ascii-sky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Hero Section */
.hero-section {
    padding: 120px 40px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ascii-quote {
    margin: 0 auto 40px;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #6A6A6A;
    font-style: italic;
}

.ascii-quote pre {
    display: inline-block;
    text-align: center;
    margin: 0;
}

.site-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.site-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 300;
    color: #6A6A6A;
    letter-spacing: 2px;
}

.main-nav {
    margin-top: 30px;
}

.nav-link {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 13px;
    color: #6A6A6A;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #2A2A2A;
    border-color: #2A2A2A;
    background: rgba(0, 0, 0, 0.02);
}

/* Main Content */
.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px 80px;
    position: relative;
    z-index: 1;
}

/* Prose Content */
.prose {
    font-size: 19px;
    line-height: 1.8;
    color: #2A2A2A;
}

.prose p {
    margin-bottom: 1.5em;
}

.greeting {
    font-size: 22px;
    margin-bottom: 1.2em;
}

.prose strong {
    font-weight: 600;
    color: #1A1A1A;
}

.prose em {
    font-style: italic;
    color: #3A3A3A;
}

.prose h2 {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 4em 0 2em 0;
    color: #1A1A1A;
    text-align: center;
}

/* Timeline */
.timeline {
    margin: 2em 0;
}

.timeline-item {
    margin-bottom: 2.5em;
}

.year {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #8B7355;
    display: inline-block;
    margin-right: 8px;
}

.timeline-item p {
    display: inline;
    margin: 0;
}

/* Links */
.link {
    color: #2A2A2A;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: #8B7355;
    transition: all 0.2s ease;
}

.link:hover {
    color: #8B7355;
    text-decoration-color: #2A2A2A;
}

/* ASCII Art */
.ascii-art,
.ascii-divider {
    margin: 4em 0;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.3;
    color: #6A6A6A;
    text-align: center;
    overflow-x: auto;
}

.ascii-art.small {
    font-size: 10px;
}

.ascii-art pre,
.ascii-divider pre {
    display: inline-block;
    text-align: left;
    margin: 0;
}

/* Closing */
.closing {
    margin-top: 3em;
    font-style: italic;
}

.signature {
    font-style: italic;
    margin-top: 0.5em;
    color: #6A6A6A;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
}

.ascii-ground {
    margin-bottom: 30px;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.15);
}

.ascii-ground pre {
    display: inline-block;
    text-align: center;
    margin: 0;
}

.site-footer p {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #8A8A8A;
}

/* ============================================ */
/* INDEX PAGE SIDEBAR STYLES */
/* ============================================ */

.index-page {
    display: flex;
    min-height: 100vh;
    background: #F5F3EE;
}

.index-page .ascii-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #F5F3EE;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 120px 20px 40px;
}

.index-page .sidebar-nav {
    margin-top: 0;
}

.index-page .sidebar-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    color: #6A6A6A;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    padding: 0;
    border: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.index-page .sidebar-link:hover {
    color: #2A2A2A;
}

.index-page .main-content {
    margin-left: 280px;
    flex: 1;
    position: relative;
}

.index-page .container {
    position: relative;
    min-height: 100vh;
}

/* ============================================ */
/* SPEAKING PAGE STYLES */
/* ============================================ */

.speaking-page {
    display: flex;
    min-height: 100vh;
    background: #F5F3EE;
}

/* Fixed ASCII Sidebar */
.ascii-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #F5F3EE;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.microphone-art {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.2;
    color: #6A6A6A;
    text-align: center;
}

/* Main Content */
.speaking-content {
    margin-left: 280px;
    flex: 1;
    padding: 60px 80px 80px;
    max-width: 900px;
}

.speaking-header {
    margin-bottom: 60px;
}

.back-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #6A6A6A;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
    transition: color 0.2s ease;
    text-align: left;
}

.back-link:hover {
    color: #2A2A2A;
}

.page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: #1A1A1A;
}

.page-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 300;
    color: #6A6A6A;
    letter-spacing: 2px;
}

/* Content */
.content-wrapper {
    max-width: 700px;
}

.section-heading {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #1A1A1A;
    text-align: center;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    margin-bottom: 60px;
}

.timeline-year {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 30px;
    text-align: left;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 60px;
    bottom: 0;
    width: 2px;
    background: #8B7355;
    opacity: 0.3;
}

/* Talks List */
.talks-list {
    margin-bottom: 60px;
}

.talk-item {
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #8B7355;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.talk-month {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: #6A6A6A;
    min-width: 80px;
    flex-shrink: 0;
    margin-top: 8px;
}

.talk-content {
    flex: 1;
}

.talk-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #1A1A1A;
}

.talk-link {
    color: #2A2A2A;
    text-decoration: none;
    border-bottom: 1px solid #8B7355;
    transition: all 0.2s ease;
}

.talk-link:hover {
    color: #8B7355;
    border-bottom-color: #2A2A2A;
}

.talk-event {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: #6A6A6A;
    margin: 0;
}

/* Closing Text */
.closing-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19px;
    line-height: 1.8;
    color: #2A2A2A;
    text-align: center;
    margin-bottom: 60px;
}

/* Footer */
.page-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.page-footer p {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    color: #8A8A8A;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1024px) {
    .ascii-sidebar {
        width: 200px;
    }

    .speaking-content {
        margin-left: 200px;
        padding: 50px 40px 60px;
    }

    .microphone-art {
        font-size: 10px;
    }

    /* Index page responsive */
    .index-page .ascii-sidebar {
        width: 200px;
    }

    .index-page .main-content {
        margin-left: 200px;
    }

    .index-page .ascii-art {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 24px 60px;
    }

    .site-title {
        font-size: 42px;
    }

    .site-tagline {
        font-size: 16px;
    }

    .content {
        padding: 0 24px 60px;
    }

    .prose {
        font-size: 18px;
    }

    .greeting {
        font-size: 20px;
    }

    .prose h2 {
        font-size: 12px;
        margin: 3em 0 1.5em 0;
    }

    .ascii-art,
    .ascii-divider {
        font-size: 9px;
    }

    /* Speaking page mobile */
    .ascii-sidebar {
        display: none;
    }

    .speaking-content {
        margin-left: 0;
        padding: 40px 24px 60px;
    }

    /* Index page mobile */
    .index-page .ascii-sidebar {
        display: none;
    }

    .index-page .main-content {
        margin-left: 0;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .talk-item {
        flex-direction: column;
        gap: 8px;
    }

    .timeline-dot {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .talk-month {
        min-width: auto;
        margin-top: 0;
    }

    .timeline-line {
        display: none;
    }

    .talk-title {
        font-size: 20px;
    }

    .talk-event {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 36px;
    }

    .prose {
        font-size: 17px;
    }

    .ascii-art,
    .ascii-divider {
        font-size: 8px;
        margin: 3em 0;
    }

    .page-title {
        font-size: 32px;
    }

    .talk-title {
        font-size: 18px;
    }

    .closing-text {
        font-size: 17px;
    }
}