:root {
    --color-bg: #d2cedb;
    --color-text: #2a2432;
    --color-text-muted: #5a5260;
    --color-link: #7c5daa;
    --color-link-hover: #5e4388;
    --color-link-underline: rgba(124, 93, 170, 0.5);

    /* Font: uncomment one. */
    /* --font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; */
    --font-family: 'Roboto Mono', ui-monospace, Consolas, monospace;
}

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

body {
    font-family: var(--font-family);
    font-size: 0.8125rem;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.card {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
}

.card-photo figure {
    margin: 0;
    width: 210px;
    max-width: 100%;
}

.card-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.card-photo figcaption {
    margin-top: 0.85rem;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    text-align: center;
    letter-spacing: 0.02em;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    margin-bottom: 2rem;
}

.bio p {
    margin-bottom: 1em;
    max-width: 70ch;
}

.bio p:last-child {
    margin-bottom: 0;
}

.bio a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--color-link-underline);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.bio a:hover,
.bio a:focus {
    color: var(--color-link-hover);
    text-decoration-color: currentColor;
}

hr {
    border: none;
    border-top: 1px solid rgba(42, 36, 50, 0.15);
    margin: 1.5rem 0;
}

.news h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.85rem;
}

.news ul {
    list-style: none;
    padding: 0;
    max-width: 70ch;
}

.news li {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0.6em;
}

.news li:last-child {
    margin-bottom: 0;
}

.news-date {
    flex: 0 0 8ch;
    color: var(--color-text-muted);
    font-size: 0.9em;
    white-space: nowrap;
}

.news a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--color-link-underline);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.news a:hover,
.news a:focus {
    color: var(--color-link-hover);
    text-decoration-color: currentColor;
}

.links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
}

.links a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--color-link-underline);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.links a:hover,
.links a:focus {
    color: var(--color-link-hover);
    text-decoration-color: currentColor;
}

.links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-photo figure {
        width: 180px;
    }

    .bio p {
        margin-left: auto;
        margin-right: auto;
    }

    .news {
        text-align: left;
    }

    .news ul {
        margin-left: auto;
        margin-right: auto;
    }

    .links ul {
        justify-content: center;
    }
}
