/* =========================================
   INTERNSHIP APPLICATION TRACKER
   Swiss Career Dossier
   ========================================= */

:root {
    --canvas: #f4f3ed;
    --surface: #fafaf7;
    --ink: #0b0b0c;
    --graphite: #343438;
    --muted: #74746f;
    --line: #cbcbc3;

    --blue: #2754ff;
    --blue-dark: #1735b5;
    --blue-soft: #e8edff;

    --danger: #b42318;
    --danger-soft: #fdecea;

    --success: #176b46;
    --success-soft: #e8f5ee;

    --white: #ffffff;

    --page-width: 1240px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: var(--canvas);
    color: var(--ink);

    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select,
input[type="checkbox"] {
    cursor: pointer;
}


/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}


/* HEADER */

.site-header {
    border-bottom: 2px solid var(--ink);
}

.header-inner {
    max-width: var(--page-width);

    margin: 0 auto;
    padding: 18px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.brand {
    color: var(--ink);

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -0.6px;

    text-decoration: none;
}

.brand span {
    color: var(--blue);
}

.header-meta {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* MAIN */

main {
    max-width: var(--page-width);

    margin: 0 auto;
    padding: 0 32px 80px;
}


/* HERO */

.hero {
    min-height: 440px;

    display: grid;

    grid-template-columns: 1.45fr 0.55fr;

    border-bottom: 2px solid var(--ink);
}

.hero-main {
    padding: 65px 55px 55px 0;

    border-right: 1px solid var(--line);
}

.hero-stat {
    padding: 65px 0 55px 35px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

.eyebrow {
    margin: 0 0 22px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;

    margin: 0;

    font-size: clamp(64px, 9vw, 118px);
    font-weight: 800;

    line-height: 0.86;

    letter-spacing: -0.065em;
}

.hero-copy {
    max-width: 620px;

    margin: 32px 0 0;

    color: var(--graphite);

    font-size: 18px;

    line-height: 1.65;
}

.stat-label {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.hero-number {
    margin: 8px 0 auto;

    color: var(--blue);

    font-size: 86px;
    font-weight: 800;

    line-height: 0.9;

    letter-spacing: -5px;
}

.hero-stat-copy {
    max-width: 220px;

    margin: 30px 0 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;
}


/* SHARED SECTION HEADER */

.section-top {
    padding: 20px 0;

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

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.section-number {
    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.section-title {
    margin: 0;

    color: var(--ink);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


/* SUMMARY */

.summary-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    border-bottom: 2px solid var(--ink);
}

.summary-item {
    min-height: 185px;

    padding: 28px 22px;

    border-right: 1px solid var(--line);

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

.summary-item:last-child {
    border-right: none;
}

.summary-primary {
    background: var(--blue);
    color: var(--white);
}

.summary-number {
    margin: 0;

    font-size: clamp(54px, 6vw, 84px);
    font-weight: 800;

    line-height: 0.9;

    letter-spacing: -5px;
}

.summary-label {
    max-width: 120px;

    margin: 30px 0 0;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    line-height: 1.35;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.summary-primary .summary-label {
    color: var(--white);
}


/* MANAGE APPLICATIONS */

.workspace {
    display: grid;

    grid-template-columns: 0.78fr 1.22fr;

    border-bottom: 2px solid var(--ink);
}


/* FORM PANEL */

.form-panel {
    padding: 45px 40px 50px 0;

    border-right: 1px solid var(--line);
}

.record-panel {
    padding: 45px 0 50px 40px;
}

.form-panel h3,
.record-panel h3 {
    margin: 0 0 12px;

    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -1.8px;
}

.section-copy {
    max-width: 440px;

    margin: 0 0 32px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


/* FORM FIELDS */

.field {
    margin-bottom: 19px;
}

.field label,
.filter-control label {
    display: block;

    margin-bottom: 7px;

    color: var(--ink);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px 2px;

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

    border-radius: 0;

    background: transparent;
    color: var(--ink);

    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #92928c;
}

input:focus,
select:focus,
textarea:focus {
    border-bottom: 3px solid var(--blue);
}

textarea {
    min-height: 85px;

    resize: vertical;
}


/* CHECKBOX */

.checkbox-row {
    margin: 28px 0;

    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--ink);

    font-size: 12px;
    font-weight: 700;
}

.checkbox-row input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--blue);
}


/* FORM MESSAGE */

.form-message {
    min-height: 22px;

    margin: 0 0 12px;

    font-size: 12px;

    line-height: 1.5;
}

.form-message.error {
    padding: 10px 12px;

    background: var(--danger-soft);
    color: var(--danger);

    border-left: 3px solid var(--danger);
}

.form-message.success {
    padding: 10px 12px;

    background: var(--success-soft);
    color: var(--success);

    border-left: 3px solid var(--success);
}


/* PRIMARY BUTTON */

.primary-button {
    width: 100%;

    padding: 15px 20px;

    border: 2px solid var(--ink);

    border-radius: 0;

    background: var(--ink);
    color: var(--white);

    font-weight: 800;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}

.primary-button:hover {
    border-color: var(--blue);

    background: var(--blue);
}


/* RECORD HEADING */

.record-heading-row {
    margin-bottom: 28px;

    display: grid;

    grid-template-columns: 1fr 180px;

    gap: 30px;

    align-items: end;
}

.filter-control select {
    padding-top: 9px;
    padding-bottom: 9px;
}


/* APPLICATION LIST */

.application-list {
    border-top: 2px solid var(--ink);

    min-height: 285px;
}


/* EMPTY STATE */

.empty-state {
    min-height: 285px;

    padding: 42px 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;
}

.empty-label {
    margin: 0 0 16px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.empty-state h4 {
    margin: 0 0 10px;

    font-size: 26px;
    font-weight: 800;

    letter-spacing: -0.8px;
}

.empty-state p:last-child {
    max-width: 430px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;
}


/* APPLICATION RECORDS */

.application-record {
    display: grid;

    grid-template-columns: 42px 1fr 120px;

    gap: 20px;

    padding: 26px 0;

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

    align-items: start;
}

.application-number {
    margin: 0;

    color: var(--blue);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

.application-company {
    margin: 0;

    color: var(--ink);

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.8px;
}

.application-role {
    margin: 5px 0 13px;

    color: var(--graphite);

    font-size: 14px;
}

.application-meta {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* APPLICATION NOTES */

.application-notes {
    max-width: 520px;

    margin: 14px 0 0;
    padding-left: 14px;

    border-left: 2px solid var(--line);

    color: var(--graphite);

    font-size: 13px;
    line-height: 1.6;
}


/* APPLICATION ACTIONS */

.application-actions {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 12px;
}


/* STATUS SELECT */

.application-status-select {
    width: 120px;

    padding: 8px 6px;

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

    border-radius: 0;

    background: transparent;
    color: var(--ink);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    cursor: pointer;
}

.application-status-select:focus {
    border: 2px solid var(--blue);
}


/* APPLICATION FOLLOW-UP */

.application-followup {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 14px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.application-followup input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: var(--blue);
}


/* DELETE BUTTON */

.delete-button {
    width: 120px;

    padding: 8px 10px;

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

    border-radius: 0;

    background: transparent;
    color: var(--danger);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.delete-button:hover {
    background: var(--danger);
    color: var(--white);
}


/* RESET */

.reset-section {
    padding: 30px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.reset-section p {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;
}

.reset-button {
    padding: 11px 17px;

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

    border-radius: 0;

    background: transparent;
    color: var(--ink);

    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.reset-button:hover {
    background: var(--ink);
    color: var(--white);
}


/* FOOTER */

footer {
    max-width: var(--page-width);

    margin: 0 auto;

    padding: 24px 32px;

    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;

    gap: 20px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

footer p {
    margin: 0;
}


/* TABLET */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-main {
        border-right: none;
    }

    .hero-stat {
        padding: 30px 0 40px;

        border-top: 1px solid var(--line);

        display: grid;

        grid-template-columns: 1fr auto;

        gap: 20px;

        align-items: end;
    }

    .hero-number {
        grid-column: 1;

        margin-top: 8px;
    }

    .hero-stat-copy {
        grid-column: 2;
        grid-row: 1 / 3;

        align-self: end;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-item {
        border-bottom: 1px solid var(--line);
    }

    .workspace {
        grid-template-columns: 1fr;
    }

    .form-panel {
        padding-right: 0;

        border-right: none;
        border-bottom: 2px solid var(--ink);
    }

    .record-panel {
        padding-left: 0;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .header-inner,
    main,
    footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .header-meta {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-main {
        padding-top: 45px;
        padding-right: 0;
    }

    .hero h1 {
        font-size: 64px;

        letter-spacing: -4px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .hero-stat {
        display: block;
    }

    .hero-stat-copy {
        margin-top: 25px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-item {
        min-height: 135px;

        border-right: none;
    }

    .section-top {
        align-items: flex-start;
    }

    .record-heading-row {
        grid-template-columns: 1fr;
    }

    .form-panel,
    .record-panel {
        padding-top: 38px;
        padding-bottom: 40px;
    }

    .empty-state {
        min-height: 235px;
    }

    .application-record {
        grid-template-columns: 34px 1fr;
    }

    .application-actions {
        grid-column: 2;

        align-items: flex-start;
    }

    .application-status-select,
    .delete-button {
        width: 150px;
    }

    .application-notes {
        max-width: 100%;
    }

    .reset-section,
    footer {
        flex-direction: column;

        align-items: flex-start;
    }

    .reset-button {
        width: 100%;
    }

}
