/* ---------- reset ---------- */

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

/* ---------- tokens ---------- */

:root {
    --ink: #3f3f3f;
    --ink-soft: #6b6b6b;
    --ink-strong: #1f1f1f;
    --rule: rgba(63, 63, 63, 0.15);
    --paper: #fdfdfc;

    --measure: 62ch;
    --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* 62.5% keeps 1rem = 10px for easy maths */
html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Rubik', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.6rem, 0.9rem + 0.5vw, 1.85rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
}

/* ---------- links ---------- */

a:link,
a:visited {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 63, 63, 0.45);
    transition: color 0.25s ease, border-color 0.25s ease;
}

a:hover,
a:active {
    color: var(--ink-strong);
    border-bottom-color: transparent;
}

a:focus-visible {
    outline: 2px solid var(--ink-strong);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- layout ---------- */

.page {
    max-width: 108rem;
    margin-inline: auto;
    padding: clamp(4rem, 10vw, 9rem) var(--gutter);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
}

/* ---------- identity card ---------- */

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.card__img {
    width: clamp(11rem, 20vw, 14rem);
    height: clamp(11rem, 20vw, 14rem);
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.6rem;
}

.card__name {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink-strong);
    line-height: 1.3;
}

.card__role {
    font-size: 1.4rem;
    color: var(--ink-soft);
    line-height: 1.3;
}

/* ---------- bio ---------- */

.bio {
    max-width: var(--measure);
}

.bio__heading {
    font-size: clamp(2.6rem, 1.6rem + 2.4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink-strong);
    margin-bottom: 2.4rem;
    text-wrap: balance;
}

.bio__text + .bio__text {
    margin-top: 1.8rem;
}

.mark {
    font-size: 60%;
    vertical-align: super;
    line-height: 0;
}

/* ---------- profile links ---------- */

.profiles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;

    margin-top: 3.2rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--rule);

    font-size: 1.5rem;
}

/* ---------- side-by-side once there's room ---------- */

@media (min-width: 56em) {
    .page {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: clamp(4rem, 7vw, 7rem);
    }

    .card {
        position: sticky;
        top: clamp(4rem, 10vw, 9rem);
    }
}

/* ---------- preferences ---------- */

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

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #c9c7c3;
        --ink-soft: #96938e;
        --ink-strong: #f2f0ed;
        --rule: rgba(201, 199, 195, 0.18);
        --paper: #161614;
    }

    a:link,
    a:visited {
        border-bottom-color: rgba(201, 199, 195, 0.45);
    }

    a:focus-visible {
        outline-color: var(--ink-strong);
    }
}



/**,*/
/**::after,*/
/**::before {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*html {*/
/*    box-sizing: inherit;*/
/*    font-size: 62.5%;*/
/*}*/

/*body {*/
/*    font-size: 1.8rem;*/
/*    line-height: 1.3;*/
/*    font-weight: 400;*/
/*    color: #555;*/
/*    font-family: 'Rubik', sans-serif;*/
/*}*/

/*a:link,*/
/*a:visited {*/
/*    text-decoration: none;*/
/*    font-style: italic;*/
/*    color: #555;*/
/*    border-bottom: 1px solid rgba(85, 85, 85, 0.4);*/
/*    transition: all 0.3s;*/
/*}*/
/*a:hover,*/
/*a:active {*/
/*    color: #333;*/
/*    border-bottom: 1px solid transparent;*/
/*}*/

/*.header {*/
/*    max-width: 120rem;*/
/*    margin: 9rem auto;*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/
/*.header__photo {*/
/*    min-width: 19%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/
/*.header__img {*/
/*    height: 12rem;*/
/*    margin-bottom: 2rem;*/
/*    border-radius: 50%;*/
/*}*/
/*.header__description {*/
/*    padding: 4rem;*/
/*}*/
/*.header__description::after {*/
/*    content: '';*/
/*    display: block;*/
/*    margin: 0 auto;*/
/*    padding-top: 6rem;*/
/*    width: 90%;*/
/*    border-bottom: 1px solid rgba(85, 85, 85, 0.15);*/
/*}*/
/*.header__text:not(:last-child) {*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.heading-1 {*/
/*    font-size: 1.6rem;*/
/*    display: block;*/
/*    text-align: center;*/
/*}*/
/*.heading-1 span {*/
/*    display: block;*/
/*    font-size: 1.4rem;*/
/*    color: #666;*/
/*    font-weight: 400;*/
/*}*/

/*.heading-2 {*/
/*    font-size: 3.2rem;*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.sub{*/
/*    font-size: 70%;*/
/*}*/