@font-face {
    font-family: 'Cal Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/Cal_Sans/CalSans-Regular.ttf) format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent-color: light-dark(#7c3131, #c47f7f);
    --body-color: light-dark(#444, #ddd);
    --background-color: light-dark(#f4f4f4, #121212);
    --body-font: 'Helvetica', sans-serif;
    --title-font: 'Cal Sans', sans-serif;
    color-scheme: light dark;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

p,
ul,
ol,
blockquote {
    margin-top: 0;
    margin-bottom: 1em;
}

body {
    width: 80%;
    margin: 40px auto;
    max-width: min(50%, 750px);
    min-width: 300px;
    line-height: 1.6;
    font-size: 18px;
    color: var(--body-color);
    padding: 0 30px;
    background-color: var(--background-color);
    font-family: var(--body-font);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-family: var(--title-font);
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

a {
    color: var(--accent-color);
    text-decoration: dotted underline;
}

a:hover {
    text-decoration: underline;
}

.brief {
    font-style: italic;
    font-weight: 600;
    font-family: var(--title-font);
    color: var(--accent-color);
}

time {
    cursor: help;
}

time:hover {
    text-decoration: dotted underline;
}

time::after {
    content: "ⓘ";
    vertical-align: super;
    font-size: 0.7em;
    color: var(--accent-color);
}

time:hover::after {
    content: " (" attr(human-date) ")";
}

footer {
    margin-top: auto;
    padding-top: 3em;
    font-family: var(--body-font);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.text-block {
    flex: 1 1 0;
    min-width: min(500px, 100%);
}

.image-block {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 175px;
    object-fit: cover;
    object-position: left;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}


.profile-pic-link {
    display: inline-block;
    clip-path: circle(50% at 50% 50%);
}

@media (max-width: 750px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .image-block {
        width: 100%;
    }
}

.icon {
    height: 1em;
    vertical-align: middle;
}

.poetry {
    font-style: italic;
    margin-left: 2em;
}

/* make .transparent a class, not a custom element */
.transparent,
.transparent a {
    color: transparent;
    text-decoration: none;
    pointer-events: none;
    user-select: none;
}

label {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.caw {
    position: relative;
    display: inline-block;
}

.caw::after {
    content: "";
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.crow:hover {
    transform: rotate(-10deg);
    transition: transform 0.2s ease-in-out;
}

.crow:hover+.caw::after {
    content: "caw!";
    top: -1.5em;
    left: 10px;
    opacity: 1;
    animation: caw-animation 1.5s forwards;
}

@keyframes caw-animation {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }

    20% {
        transform: scale(1.2) rotate(-10deg);
        opacity: 1;
    }

    80% {
        transform: rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}