:root {
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --accent-color: #1e3a8a;
    --border-color: #e5e7eb;
    --code-bg: #f3f4f6;
    --muted-color: #555;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.75;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 2.5rem 1.5rem;
}

article {
    max-width: 720px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.authors {
    margin: 1rem 0;
}

.author {
    font-weight: 700;
}

.affiliation {
    display: block;
    font-style: italic;
    color: var(--muted-color);
}

.date {
    color: var(--muted-color);
    font-size: 0.95rem;
}

section {
    margin: 2.5rem 0;
}

h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 1rem 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.abstract {
    background: #fafafa;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-color);
    margin: 2rem 0;
}

.abstract h2 {
    margin-top: 0;
}

.abstract p {
    text-align: left;
}

.equation {
    font-family: "Cambria Math", "Times New Roman", serif;
    font-size: 1.05rem;
    text-align: center;
    padding: 1.25rem 1rem;
    margin: 1.5rem 0;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 400px;
}

th, td {
    padding: 0.75rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

th {
    font-weight: 700;
    background: #f9fafb;
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

pre {
    background: var(--code-bg);
    padding: 1.25rem;
    overflow-x: auto;
    border-radius: 4px;
    border-left: 3px solid #d1d5db;
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 1.5rem 0;
}

code {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9em;
}

p code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.5rem 0;
}

.note {
    font-size: 0.87rem;
    color: var(--muted-color);
    font-style: italic;
    margin-top: 1rem;
}

.references ul {
    list-style: none;
    padding: 0;
}

.references li {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
    font-size: 0.92rem;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted-color);
}

footer p {
    text-align: center;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

a {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    body {
        padding: 1.25rem 1rem;
    }

    article {
        max-width: 100%;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.6rem 0.5rem;
    }

    .equation {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.8rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .abstract {
        padding: 1.25rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }
}
