/* styles.css — Academic Oldschool Typography + restrained lavender-pink */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --bg:            #f8f5f9;
    --bg-soft:       #f3eef4;
    --surface:       #ffffff;
    --text:          #2a2433;
    --text-secondary:#5c5166;
    --accent:        #8b4a7a;
    --accent-dark:   #6d3860;
    --accent-light:  #e9d8e6;
    --border:        #e0d4e2;
    --radius:        4px;
}

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

body {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1.05rem;
    min-height: 100vh;
}

header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Source Sans 3', system-ui, sans-serif;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--accent);
    font-family: 'Source Sans 3', system-ui, sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

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

main {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 2.25rem 2.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 1px 8px rgba(139, 74, 122, 0.05);
    border: 1px solid var(--border);
}

h1 {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h2 {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: var(--accent);
    margin: 2rem 0 0.9rem;
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 0.35rem;
    font-weight: 600;
    font-size: 1.4rem;
}

h3 {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: var(--text);
    margin: 1.25rem 0 0.6rem;
    font-weight: 600;
    font-size: 1.15rem;
}

.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.card, .department {
    background: var(--bg-soft);
    padding: 1.1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 3px;
    border-left: 3px solid var(--accent);
}

.document {
    background: #fbf9fc;
    border: 1px solid var(--border);
    padding: 1.1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 0.98rem;
}

pre {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

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

th, td {
    border: 1px solid var(--border);
    padding: 0.7rem 0.85rem;
    text-align: left;
}

th {
    background: var(--bg-soft);
    color: var(--text);
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-weight: 600;
}

.note {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1.25rem;
    font-size: 0.98rem;
}

ul, ol {
    margin-left: 1.6rem;
    margin-bottom: 1.1rem;
}

li {
    margin-bottom: 0.35rem;
}

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Source Sans 3', system-ui, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    main {
        padding: 1.5rem 1.25rem;
        margin: 1.25rem;
    }
    h1 {
        font-size: 1.65rem;
    }
}
