@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --blue: #005da9;
    --red: #d51130;
    --ink: #202a33;
    --muted: #4f5c66;
    --line: #dce2e8;
    --paper: #fff;
    --background: #f4f4f4;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #a20d24;
    outline-offset: 3px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 188px;
    height: auto;
}

.topbar {
    display: flex;
    width: calc(100% - 28px);
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px auto 0;
    padding: 14px clamp(16px, 4vw, 44px);
    background: var(--red);
    border-radius: 5px;
}

.account {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logout {
    color: #fff;
    font-weight: 700;
    letter-spacing: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.login-layout {
    display: grid;
    min-height: calc(100vh - 94px);
    place-items: center;
    width: min(520px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
}

.login-panel {
    width: 100%;
    padding: clamp(28px, 7vw, 50px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgb(28 42 56 / 7%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(30px, 7vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.intro {
    margin: 14px 0 0;
    color: var(--blue);
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.login-form label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid #84919b;
    border-radius: 3px;
    font: inherit;
}

.login-form input:focus {
    border-color: var(--blue);
}

.button {
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    margin-top: 14px;
    color: #fff;
    background: var(--blue);
}

.button-primary:hover {
    background: #004b89;
}

.form-message {
    margin: 22px 0 0;
    padding: 12px 14px;
    color: #8c1024;
    background: #fff2f3;
    border-left: 3px solid var(--red);
}

.login-footnote {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.board {
    width: min(1120px, calc(100% - 48px));
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) 0 84px;
}

.board-heading {
    max-width: 680px;
    margin-bottom: 42px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    min-height: 228px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgb(28 42 56 / 5%);
    text-decoration: none;
    transition: box-shadow 150ms ease, transform 150ms ease;
}

a.service-card:hover {
    box-shadow: 0 12px 28px rgb(28 42 56 / 11%);
    transform: translateY(-2px);
}

a.service-card:focus-visible {
    outline-offset: 5px;
}

.service-card-planned {
    color: #4f5c66;
    background: #eceeef;
    border-color: #cbd1d5;
    box-shadow: none;
}

.service-status {
    margin-bottom: 18px;
    padding: 3px 9px;
    color: #fff;
    background: var(--blue);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-card-planned .service-status {
    color: #343e47;
    background: #d5dadd;
}

.service-title {
    color: var(--blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.service-description {
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
}

.service-action {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.service-action span {
    color: var(--red);
    font-size: 19px;
    line-height: 1;
}

.site-footer {
    padding: 22px 24px;
    color: var(--muted);
    background: #eaedef;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 720px) {
    .topbar {
        min-height: 72px;
        padding: 12px 14px;
    }

    .brand img {
        width: clamp(112px, 35vw, 148px);
    }

    .account {
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
        font-size: 10px;
        letter-spacing: 0.04em;
        text-align: right;
    }

    .board {
        width: calc(100% - 36px);
        padding: 48px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        min-height: 208px;
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
