/* =========================================================================
   Zvondis: a minimal Swiss system.
   One grotesque (Archivo) carries everything through a weight clash.
   A narrow left rail holds the mark and the nav; content hangs from
   column 4 of a strict 12-column grid. One accent, used only for the
   price phrase on Home and the Call button. Hairline rules, no cards.
   ========================================================================= */

:root {
    --paper: #fafaf9;
    --ink: #0c0c0d;
    --mute: #595c62; /* 6.42:1 on paper */
    --rule: #d9dadc; /* decorative hairlines only */
    --field: #7a7d83; /* input borders, 3.95:1 on paper */
    --accent: #1637e0; /* 7.57:1 on paper, both directions */

    --font: "Archivo", "Helvetica Neue", helvetica, arial, sans-serif;

    --gutter: 16px;
    --col-gap: 24px;
    --space-band: 64px;
    --radius: 2px;
    --target: 44px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (width >= 600px) {
    :root {
        --gutter: 32px;
    }
}

@media (width >= 960px) {
    :root {
        --gutter: 56px;
        --space-band: 88px;
    }
}

/* =========================================================================
   Fonts: Archivo variable, self-hosted (OFL, see fonts/archivo-OFL.txt)
   ========================================================================= */

@font-face {
    font-family: Archivo;
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Archivo;
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   Base
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    background: var(--paper);
    color-scheme: light;
    scrollbar-color: var(--mute) var(--paper);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--ink);
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 0.15s var(--ease);
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

strong {
    font-weight: 700;
}

input,
button {
    font: inherit;
    color: inherit;
}

.skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    transform: translateY(-200%);
}

.skip:focus {
    transform: none;
}

@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0s !important;
    }
}

/* =========================================================================
   Frame: 12 columns. Rail = columns 1-3, content = columns 4-12.
   main is a subgrid in both axes, so its lead shares row 1 with the rail
   and every band below can put its heading back in the rail columns.
   ========================================================================= */

.frame {
    padding: 0 var(--gutter) 96px;
}

.rail {
    position: relative;
    padding: 20px 0 8px;
}

.mark {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.lead {
    padding-top: 24px;
}

.bands {
    margin-top: var(--space-band);
}

.band {
    border-top: 1px solid var(--ink);
    padding-top: 14px;
}

.band + .band {
    margin-top: var(--space-band);
}

.band > h2 {
    margin-bottom: 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.band > * + * {
    margin-top: 16px;
}

@media (width >= 960px) {
    .frame {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: auto auto;
        column-gap: var(--col-gap);
    }

    .rail {
        grid-column: 1 / 4;
        grid-row: 1;
        padding-top: 36px;
    }

    .main {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 1 / span 2;
        grid-template-columns: subgrid;
        grid-template-rows: subgrid;
    }

    .lead {
        grid-column: 4 / -1;
        grid-row: 1;
        padding-top: 42px;
    }

    .bands {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: subgrid;
        align-content: start;
    }

    .band {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: subgrid;
        align-content: start;
    }

    .band > h2 {
        grid-column: 1 / 4;
        grid-row: 1;
        margin: 0;
    }

    .band > :not(h2) {
        grid-column: 4 / -1;
    }

    .band > h2 + * {
        margin-top: 0;
    }
}

/* =========================================================================
   Nav: vertical rail on desktop, a wrapped row on phones.
   ========================================================================= */

.rail-nav {
    margin-top: 4px;
}

.rail-nav ul {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: 24px;
}

.nav-link,
.lang-switch {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
    color: var(--mute);
    font-size: 0.9375rem;
    text-decoration: none;
}

.nav-link:hover,
.lang-switch:hover {
    color: var(--ink);
    text-decoration: underline;
}

.nav-link[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 0;
    justify-content: center;
    padding-inline: 8px;
    color: var(--ink);
    font-weight: 700;
}

@media (width >= 960px) {
    .rail-nav {
        margin-top: 16px;
    }

    .rail-nav ul {
        grid-template-columns: none;
    }

    .lang-switch {
        top: 36px;
    }
}

/* With a mouse the rail keeps the sketch's tight 30px rhythm; touch keeps 44px. */
@media (width >= 960px) and (pointer: fine) {
    .nav-link {
        min-height: 30px;
    }
}

/* =========================================================================
   Type
   ========================================================================= */

h1 {
    font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.subtitle {
    margin-top: 20px;
    color: var(--mute);
    font-size: 1.25rem;
    line-height: 1.45;
}

.meta {
    color: var(--mute);
    font-size: 0.9375rem;
}

/* =========================================================================
   Home
   ========================================================================= */

.offer {
    font-size: clamp(2.75rem, 6.4vw, 5.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.offer-ask {
    display: block;
}

.offer em {
    display: block;
    color: var(--accent);
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.035em;
}

.lede {
    margin-top: 32px;
    color: var(--mute);
    font-size: 1.25rem;
    line-height: 1.45;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin-top: 40px;
}

.call {
    display: inline-flex;
    align-items: center;
    min-height: 60px;
    padding: 14px 28px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--paper);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s var(--ease);
}

.call:hover {
    background: var(--ink);
}

.call:active {
    transform: translateY(1px);
}

.call:focus-visible {
    outline-color: var(--ink);
}

.text-cta {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
    font-weight: 700;
}

.lang-hint {
    margin-top: 16px;
    font-size: 0.9375rem;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 48px;
    margin-top: 44px;
    font-size: 0.9375rem;
}

.facts dt {
    color: var(--mute);
    font-size: 0.8125rem;
}

.facts a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
    margin-top: -10px;
    margin-bottom: -10px;
}

/* Rows: a title column and a quieter detail column, hairline between. */
.rows > li {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    column-gap: var(--col-gap);
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.rows > li:first-child {
    padding-top: 0;
}

.row-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.row-title a {
    text-decoration-color: var(--mute);
}

.row-title a:hover {
    text-decoration-color: currentcolor;
}

.row-detail {
    color: var(--mute);
    font-size: 0.9375rem;
}

.row-text {
    grid-column: 1 / -1;
    margin-top: 6px;
    color: var(--mute);
    font-size: 1rem;
}

@media (width < 600px) {
    .rows > li {
        grid-template-columns: 1fr;
    }

    .row-detail {
        margin-top: 2px;
    }
}

.band .more {
    margin-top: 8px;
}

/* =========================================================================
   CV
   ========================================================================= */

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 32px;
    margin-top: 24px;
}

.contact-info a,
.contact-info span {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
}

.contact-info .tel {
    font-weight: 700;
}

.contact-info span {
    color: var(--mute);
}

.entry + .entry {
    margin-top: 32px;
}

.entry-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 24px;
}

.entry-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.entry-date {
    color: var(--mute);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.entry-role {
    display: block;
    color: var(--mute);
}

.entry p {
    margin-top: 8px;
}

.plain-list li + li {
    margin-top: 6px;
}

.group + .group {
    margin-top: 20px;
}

.group-label {
    color: var(--mute);
    font-size: 0.875rem;
}

.inline-list li {
    display: inline;
}

.inline-list li:not(:last-child)::after {
    content: ", ";
}

.lang-row + .lang-row {
    margin-top: 6px;
}

.lang-level {
    color: var(--mute);
}

/* =========================================================================
   Tools: forms stay calm. Labels above fields, native controls.
   ========================================================================= */

.field {
    display: grid;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.fields {
    display: grid;
    gap: 20px;
}

@media (width >= 600px) {
    .fields-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--col-gap);
    }
}

input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"] {
    width: 100%;
    min-height: var(--target);
    padding: 8px 12px;
    border: 1px solid var(--field);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

input:hover {
    border-color: var(--ink);
}

input:focus-visible {
    border-color: var(--ink);
    outline-offset: 0;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: var(--target);
    padding: 10px 22px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    background: var(--mute);
}

.text-link {
    min-height: var(--target);
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    cursor: pointer;
}

.login-form {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.form-error {
    color: var(--ink);
    font-weight: 700;
}

.form-error:empty {
    display: none;
}

/* Semester */

.range-text {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.exam-text:empty {
    display: none;
}

.admin-form {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.progress-headline {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.progress-caption {
    color: var(--mute);
}

.progress-track {
    height: 8px;
    margin-top: 24px;
    border-bottom: 1px solid var(--ink);
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--ink);
}

/* Job Pay */

.contract {
    display: flex;
    flex-wrap: wrap;
    gap: 0 32px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.contract legend {
    margin-bottom: 6px;
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 700;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: var(--target);
    font-weight: 700;
    cursor: pointer;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}

.pay-row > span:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pay-row:first-child {
    padding-top: 0;
}

.pay-row-total {
    border-bottom-color: var(--ink);
    font-weight: 700;
}

.pay-row-total > span:last-child {
    font-size: 1.375rem;
    letter-spacing: -0.01em;
}

.pay-threshold-text {
    margin: 16px 0 4px;
    color: var(--mute);
    font-size: 0.9375rem;
}

.pay-threshold-text:empty {
    display: none;
}

.pay-threshold-over {
    color: var(--ink);
    font-weight: 700;
}

.pay-disclaimer {
    margin-top: 24px;
    color: var(--mute);
    font-size: 0.9375rem;
}

/* =========================================================================
   404
   ========================================================================= */

.lost {
    font-size: clamp(5rem, 16vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.lost span {
    display: block;
    font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.035em;
}
