@font-face {
    font-family: "GeistMono";
    src: url("/GeistMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "GeistMono";
    src: url("/GeistMono-Light.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
    font-weight: 300;
}

@font-face {
    font-family: "GeistMono";
    src: url("/GeistMono-Bold.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
    font-weight: 700;
}

:root {
    --font: "GeistMono", monospace;
    --background: #ffffff;
    --text: #292929;
    --muted: #777777;
    --border: #e5e5e5;
    --accent: #333333;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    overflow-y: scroll;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-weight: 400;
}

body {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;

    background: var(--background);
    color: var(--text);

    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* HEADER */

header {
    margin: 0 0 2.5rem;
    text-align: left;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

header ul {
    color: var(--muted);
}

header p.url {
    display: none;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.socials li {
    padding: 0;
}

.socials li:not(:last-child)::after {
    content: " · ";
    white-space: pre;
}

/* MAIN CONTENT */

main {
    width: 100%;
}

/* SECTIONS */

section {
    margin-bottom: 2rem;
}

section h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;

    border-bottom: 1px solid var(--border);

    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* GENERAL TEXT */

main p {
    margin: 0 0 0.75rem;
}

strong {
    font-weight: 700;
}

small {
    color: var(--muted);
    font-size: 0.8rem;
}

/* LINKS */

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: #bdbdbd;
    text-underline-offset: 3px;
}

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

/* LISTS */

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

li {
    margin-bottom: 0.35rem;
    padding-left: 0.2rem;
}

/* EXPERIENCE / EDUCATION */

article {
    margin-bottom: 1.5rem;
}

article h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

article .meta-date {
    grid-column: 2;
    grid-row: 1;
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

article .meta-company-name, .meta-tools {
    grid-column: 1;
    grid-row: 2;
    margin: 0.2rem 0 0.6rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.experience-entry-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: baseline;
}

.experience-entry-header h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

/* NAVIGATION */

nav.menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-title {
    font-weight: 700;
}

.menu-title a {
    text-decoration: none;
}

.menu-element {
    color: var(--muted);
    font-style: normal;
}

/* FOOTER */

footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.75rem;
    text-align: left;
}

/* LANGUAGE SWITCH */

.header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: baseline;
}

.header-top h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

.job-title {
    grid-column: 1;
    grid-row: 2;
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.language-switch {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.75rem;
}

.language-switch a {
    color: var(--muted);
    text-decoration: none;
}

.language-switch a[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}

.language-switch a:hover {
    color: var(--text);
    text-decoration: underline;
}

.language-switch span {
    color: var(--border);
}

/* RESPONSIVE */

@media (max-width: 600px) {
    body {
        padding: 2rem 1.1rem;
        font-size: 0.825rem;
    }

    header {
        margin-bottom: 2rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    section {
        margin-bottom: 1.75rem;
    }
}

/* PRINT / PDF */

@media print {
    @page {
        margin: 1.5cm;
    }

    html {
        font-size: 12px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        max-width: none;
        padding: 0;
        background: #ffffff;
        color: #000000;
    }

    header {
        margin: 0 0 1.5rem;
    }

    a {
        color: #000000;
        text-decoration: none;
    }

    a[href^="http"]::after{
        content: ": " attr(href) " ";
    }

    footer {
        display: none;
    }

    .header-top {
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
    }

    .header-top h1 {
        margin: 1rem 0;
    }

    .job-title {
        margin: 0;
        color: #000;
        font-size: 1rem;
    }

    .language-switch {
        display: none;
    }

    header p.url {
        display: block;
        margin: 1rem 0;
        font-size: 0.8rem;
        color: var(--muted);
    }

    .socials {
        display: block;
        margin: 0;
        padding: 0;
        line-height: 1rem;
        list-style: none;
        font-size: 0.80rem;
        color: var(--muted);
    }

    .socials a {
        color: inherit;
    }

    .socials li {
        margin: 0;
        padding: 0;
    }

    .socials li::after {
        content: none !important;
    }
}
