@font-face {
    font-family: plexMono;
    src: url(/fonts/IBMPlexMono-Regular.ttf);
}

:root {
    --bg: #f4f4f6;
    --text: #191a1d;
    --muted: #4e5461;
    --paper: #ffffff;
    --line: #d9dce3;
    --brand: #693a9d;
    --brand-dark: #3a0066;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

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

.wrap {
    width: min(860px, calc(100% - 24px));
    margin: 0 auto;
    padding-bottom: 40px;
}

.top {
    text-align: center;
    padding: 20px 0 8px;
}

.top img {
    width: min(360px, 90vw);
    height: auto;
}

.paper {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
}

h1,
h2,
h3 {
    margin: 0 0 8px;
    line-height: 1.3;
}

h1 {
    font-size: clamp(30px, 4.3vw, 44px);
}

h2 {
    font-size: clamp(22px, 3vw, 30px);
}

h3 {
    font-size: 19px;
}

p,
li,
summary,
textarea,
input,
button {
    font-size: 16px;
}

.muted {
    color: var(--muted);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.btn {
    border: 2px solid var(--brand);
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-block;
}

.btn:hover,
.btn:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    color: var(--brand);
}

.link {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grid article {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    background: #fafbff;
}

.roles-head {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.chip {
    display: inline-block;
    border: 1px solid #b6b8c4;
    border-radius: 999px;
    padding: 6px 12px;
    background: #f2f4f8;
    color: var(--text);
    text-decoration: none;
}

.roles {
    display: grid;
    gap: 12px;
}

.role {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    background: #fcfcff;
}

.role-head {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: start;
    justify-content: flex-end;
}

summary {
    cursor: pointer;
    color: var(--brand);
    margin-top: 6px;
}

.details {
    border-top: 1px dashed var(--line);
    margin-top: 8px;
    padding-top: 10px;
}

textarea {
    width: 100%;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    color: var(--text);
    background: #fbfbfd;
}

details {
    margin-bottom: 6px;
}

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

    .role-head {
        grid-template-columns: 1fr;
    }

    .actions {
        justify-content: flex-start;
    }
}
