/*
   DocuPen recruitment page — stylesheet.
   System fonts only. No webfonts, no CDN, no JavaScript.
*/

:root {
    --ink: #1a1a1a;
    --page-bg: #ffffff;
    --surface: #f4f4f2;
    --border: #b9b9b3;
    --border-strong: #8b8b84;
    --accent: #00407a;
    --accent-light: #52bdec;
    --accent-soft: #e6f2fb;
    --link: #00478a;
    --link-visited: #4b2e83;
    --placeholder-bg: #fdf1cf;
    --placeholder-border: #9a6a00;
    --placeholder-text: #5c3d00;
    --alert-bg: #fdecea;
    --alert-border: #b3261e;
    --alert-text: #8c1d18;
    --footer-bg: #1a1a1a;
    --footer-text: #f4f4f2;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --measure: 48rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e8e8e6;
        --page-bg: #14161a;
        --surface: #1c1f24;
        --border: #3a3d42;
        --border-strong: #565b63;
        --accent: #6fb6e8;
        --accent-light: #52bdec;
        --accent-soft: #1c2733;
        --link: #7ab6ff;
        --link-visited: #c6a8ff;
        --placeholder-bg: #3a2c00;
        --placeholder-border: #c98f00;
        --placeholder-text: #f2cf7a;
        --alert-bg: #3a1614;
        --alert-border: #f2766b;
        --alert-text: #ffb4ab;
        --footer-bg: #0b0c0e;
        --footer-text: #f0f0ee;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--page-bg);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--page-bg);
    padding: 0.75em 1.25em;
    z-index: 10;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
}

header, footer {
    padding: 2.5rem 1rem;
}

header {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--page-bg) 55%);
    border-top: 5px solid var(--accent);
    border-bottom: 3px solid var(--accent-light);
}

footer {
    border-top: 3px solid var(--accent);
}

.header__logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.header__logo {
    height: 2rem;
    width: auto;
    display: block;
}

.header__logo--kuleuven {
    height: 3.5rem;
}

h1 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
}

.accent-dot {
    color: var(--accent);
}

.tagline {
    font-size: 1.1rem;
    margin: 0;
    color: var(--ink);
    opacity: 0.8;
    max-width: 34rem;
}

.hook {
    margin: 1.4rem 0 0;
    padding-left: 0.9rem;
    border-left: 4px solid var(--accent-light);
    font-size: 1.3rem;
    line-height: 1.35;
    color: var(--accent);
}

.hook__sub {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
}

h3:first-of-type {
    margin-top: 1.5rem;
}

h4 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
}

main {
    counter-reset: section-count;
}

section {
    counter-increment: section-count;
    padding: 2.75rem 1rem;
    border-bottom: 2px solid var(--border);
}

section:nth-of-type(even) {
    background: var(--surface);
}

section:last-of-type {
    border-bottom: none;
}

section h2::before {
    content: counter(section-count, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

.steps {
    list-style: none;
    counter-reset: step-count;
    margin: 0 0 1.5rem;
    padding-left: 0;
}

.steps li {
    counter-increment: step-count;
    position: relative;
    padding-left: 2.9rem;
    margin-bottom: 1.25rem;
}

.steps li::before {
    content: counter(step-count);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__title {
    margin: 0 0 0.3rem;
}

.step__detail {
    margin: 0;
    font-size: 0.95em;
    opacity: 0.8;
}

.note {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin: 0 0 1.5rem;
}

.note p {
    margin: 0 0 0.6rem;
}

.note--alert {
    background: var(--alert-bg);
    border: 2px solid var(--alert-border);
    border-left-width: 6px;
    color: var(--alert-text);
}

.note--alert p:last-child {
    margin-bottom: 0;
}

.note--contact {
    margin-top: 1.75rem;
    border: 2px solid var(--accent);
    border-left-width: 6px;
}

.note--contact p:last-child {
    margin-bottom: 0;
}

.contact-email {
    font-weight: 700;
    font-size: 1.1em;
    overflow-wrap: anywhere;
}

.note ul {
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
}

.note li {
    margin-bottom: 0.5rem;
}

.team-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.team-card {
    margin-bottom: 0;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    background: var(--page-bg);
    box-shadow: 5px 5px 0 var(--border);
    padding: 1.1rem 1.3rem;
}

.team-card p {
    margin: 0;
}

.team-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.avatar {
    flex-shrink: 0;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    display: block;
}

.team-card__name {
    margin: 0;
}

.team-card__contact {
    font-size: 0.92em;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .team-list {
        grid-template-columns: 1fr;
    }
}

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

a:visited {
    color: var(--link-visited);
}

.tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.88em;
    line-height: 1.3;
    padding: 0.1em 0.5em;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    white-space: nowrap;
}

.tag--accent {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 1rem;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--border);
}

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

th, td {
    text-align: left;
    padding: 0.7em 0.9em;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: var(--accent-soft);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background: var(--surface);
}

summary {
    cursor: pointer;
    font-weight: 600;
}

summary::marker {
    color: var(--accent);
}

details.more {
    margin: 0 0 1.5rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
}

details.more summary {
    color: var(--accent);
}

details.more[open] {
    padding-bottom: 1rem;
}

details.more > *:not(summary) {
    margin-top: 1rem;
    margin-bottom: 0;
}

details.more li {
    margin-bottom: 0.4rem;
}

.faq {
    font-size: 0.92rem;
}

.faq h2 {
    font-size: 1.4rem;
}

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}

.faq details:last-of-type {
    border-bottom: none;
}

.faq summary {
    font-size: 1.02rem;
}

.faq details[open] > summary {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.faq details > *:not(summary) {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7em 1.6em;
    background: var(--accent);
    color: var(--page-bg);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--accent-light);
}

.btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--accent-light);
}

.btn:visited {
    color: var(--page-bg);
}

.placeholder {
    background: var(--placeholder-bg);
    border: 2px solid var(--placeholder-border);
    color: var(--placeholder-text);
    padding: 0.75em 1em;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--placeholder-border);
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }

    header, footer {
        padding: 1.75rem 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .team-card,
    .table-wrap,
    .placeholder {
        box-shadow: 3px 3px 0 var(--border);
    }
}
