/* Brutally Simple Academic Portfolio — Minimalist Design */

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fafaf8;
    color: #222;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Typography */

h1, h2, h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: normal;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

strong {
    font-weight: 600;
    color: #000;
}

em {
    font-style: italic;
}

code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95em;
    background-color: #f0f0f0;
    padding: 0.1em 0.3em;
    border-radius: 2px;
}

sup {
    font-size: 0.8em;
    vertical-align: super;
}

/* Header */

header {
    text-align: center;
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #555;
}

.tagline {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.header-links {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.header-links a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.header-links a:hover {
    border-bottom: 1px solid #0066cc;
}

.separator {
    color: #ccc;
    margin: 0 0.5rem;
}

/* Sections */

section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

article {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

article:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

/* Horizontal rules */

hr {
    border: none;
    height: 1px;
    background-color: #d0d0d0;
    margin: 2rem 0;
}

/* Figures & Placeholders */

figure {
    margin: 1.5rem 0;
    padding: 0;
}

.figure-placeholder {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 2rem;
    text-align: center;
    border-radius: 2px;
    color: #999;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figure-placeholder p {
    margin: 0;
    text-align: center;
}

figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Tables */

table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

caption {
    text-align: left;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

thead {
    border-top: 2px solid #000;
    border-bottom: 1px solid #000;
}

thead th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
    background-color: transparent;
}

tbody tr {
    border: none;
}

tbody tr:last-child {
    border-bottom: 2px solid #000;
}

tbody td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border: none;
}

tbody tr:nth-child(odd) {
    background-color: transparent;
}

/* Footer */

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #d0d0d0;
    color: #888;
    font-size: 0.9rem;
}

footer small {
    font-size: 0.85rem;
}

/* Links */

a {
    color: #0066cc;
    text-decoration: none;
}

a:visited {
    color: #004499;
}

/* Responsive adjustments */

@media (max-width: 600px) {
    body {
        padding: 1.5rem 1rem;
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        text-align: left;
    }

    table {
        font-size: 0.85rem;
    }

    thead th,
    tbody td {
        padding: 0.5rem 0.25rem;
    }

    .figure-placeholder {
        min-height: 150px;
        padding: 1.5rem;
    }
}
