/* Christian Kyle Ranon — Student Site Styles */
/* Design: clean, academic, accessible, print-friendly */

:root {
    --primary: #1a365d;
    --accent: #c53030;
    --text: #2d3748;
    --text-light: #4a5568;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #e2e8f0;
    --max-width: 720px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    padding: 0 1.5rem;
}

/* Header */
header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--primary);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 400;
}

nav {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

nav a:hover,
nav a[href^="#"] {
    border-bottom-color: var(--primary);
}

.lang-switch {
    margin-top: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lang-switch a {
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    border-bottom: none;
    background: var(--bg-alt);
}

.lang-switch a:hover {
    background: var(--border);
}

/* Main content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 0;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    color: var(--text);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--border);
    transition: text-decoration-color 0.2s;
}

a:hover {
    text-decoration-color: var(--primary);
}

/* Intro section */
.intro p {
    font-size: 1.05rem;
    color: var(--text);
}

/* Research section */
.research ul {
    list-style: none;
    margin-left: 0;
}

.research li {
    padding-left: 1.5rem;
    position: relative;
}

.research li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    border-left: 3px solid var(--border);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* Roles / involvement */
.role {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.role h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.title {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* Competency grid */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.comp {
    background: var(--bg-alt);
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.comp h4 {
    margin-top: 0;
    color: var(--primary);
}

.comp p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Projects */
.project {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.project:last-child {
    border-bottom: none;
}

.meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: var(--bg-alt);
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.contact-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--primary);
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.availability {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

/* Footer */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

footer .small {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #a0aec0;
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        padding: 0;
    }
    nav, footer {
        display: none;
    }
    section {
        margin-bottom: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 0 1rem;
    }
    header h1 {
        font-size: 1.6rem;
    }
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .comp-grid {
        grid-template-columns: 1fr;
    }
}
