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

body {
    font-family: 'Source Serif Pro', 'Lora', 'Georgia', 'Times New Roman', serif;
    background-color: #FAF8F5;
    color: #2C2C2C;
    line-height: 1.8;
    font-size: 18px;
}

/* Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 80px 50px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 90px;
    padding-bottom: 50px;
    border-bottom: 1px solid #D4CEC4;
}

.title {
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #2C2C2C;
    letter-spacing: -0.01em;
}

.venue {
    font-size: 1.05rem;
    color: #6B5D52;
    margin-bottom: 50px;
    font-style: italic;
    letter-spacing: 0.02em;
}

.decorative-rule {
    width: 120px;
    height: 1px;
    background-color: #8B7355;
    margin: 30px auto;
}

/* Authors */
.authors {
    text-align: center;
    margin-bottom: 45px;
    color: #3D3530;
}

.author-names {
    line-height: 2;
    margin-bottom: 12px;
}

.author-name {
    font-weight: 500;
    font-size: 1.05rem;
    color: #2C2C2C;
}

.author-affiliation {
    font-size: 0.95rem;
    color: #6B5D52;
    font-style: italic;
    line-height: 1.6;
}

.author-separator {
    margin: 0 8px;
    color: #8B7355;
}

/* Links */
.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.link-button {
    display: inline-block;
    padding: 0;
    background-color: transparent;
    color: #6B3A3A;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid #6B3A3A;
    padding-bottom: 2px;
}

.link-button:hover {
    color: #8B7355;
    border-bottom-color: #8B7355;
}

/* Content Sections */
.content-section {
    margin-bottom: 80px;
}

.content-section h2 {
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #2C2C2C;
    letter-spacing: 0;
    border-bottom: 1px solid #E8E4DE;
    padding-bottom: 12px;
}

.content-section h3 {
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #3D3530;
}

.content-section p {
    margin-bottom: 24px;
    line-height: 1.9;
    text-align: justify;
}

/* Method Components */
.method-intro {
    font-style: italic;
    color: #3D3530;
    margin-bottom: 32px;
}

.method-component {
    margin-bottom: 32px;
}

.method-component strong {
    font-weight: 600;
    color: #2C2C2C;
}

/* Results prose */
.results-prose {
    margin: 28px 0;
    line-height: 1.9;
    text-align: justify;
}

/* Tables */
.table-container {
    margin: 50px 0;
    overflow-x: auto;
}

.table-container h3 {
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #3D3530;
    font-weight: 600;
}

.table-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    color: #6B5D52;
    margin-top: 16px;
    line-height: 1.6;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFEFB;
    border: none;
    font-size: 0.95rem;
    margin: 20px 0;
}

.results-table thead {
    background-color: transparent;
    border-bottom: 2px solid #3D3530;
}

.results-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: #2C2C2C;
    border-bottom: none;
}

.results-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #E8E4DE;
    color: #3D3530;
}

.results-table tbody tr:nth-child(even) {
    background-color: #F5F2EB;
}

.results-table tbody tr:last-child td {
    border-bottom: 2px solid #3D3530;
}

.highlight-row {
    background-color: #F5F2EB !important;
}

.highlight-row td {
    font-weight: 600;
    color: #2C2C2C;
}

/* Figures */
.figure-container {
    margin: 60px 0;
    text-align: center;
}

.figure-placeholder {
    background-color: #FFFEFB;
    border: 1px solid #D4CEC4;
    padding: 30px;
    margin-bottom: 20px;
    display: block;
}

.figure-placeholder span {
    display: none;
}

.figure-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figcaption {
    font-size: 0.95rem;
    color: #6B5D52;
    font-style: italic;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Citation Section */
.citation-intro {
    font-style: italic;
    color: #3D3530;
    margin-bottom: 24px;
}

.bibtex {
    background-color: #F5F2EB;
    border: 1px solid #D4CEC4;
    padding: 28px;
    overflow-x: auto;
    margin: 24px 0;
}

.bibtex code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #3D3530;
}

/* Acknowledgments */
.acknowledgments {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #D4CEC4;
}

.acknowledgments h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.acknowledgments p {
    font-size: 0.95rem;
    color: #6B5D52;
    text-align: left;
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 50px;
    margin-top: 70px;
    border-top: 1px solid #D4CEC4;
    color: #8B7355;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 30px;
    }

    .title {
        font-size: 2rem;
    }

    .venue {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    body {
        font-size: 17px;
    }

    .content-section p {
        text-align: left;
    }

    .results-prose {
        text-align: left;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px 12px;
    }

    .figure-placeholder {
        padding: 40px 20px;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 24px;
    }

    .title {
        font-size: 1.7rem;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }

    .figure-placeholder {
        padding: 30px 15px;
        min-height: 200px;
    }
}
