@font-face {
    font-family: Inter;
    src: url("/fonts/Inter-VariableFont_opsz,wght.ttf");
}
@font-face {
    font-family: Inter;
    font-style: italic;
    src: url("/fonts/Inter-Italic-VariableFont_opsz\,wght.ttf");
}

:root {
    font-size: 20px;
    --dark-green: #00933d;
    --light-green: #e4f8e4;
    --separator-width: 600px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 37px;
    font-family: Inter;
}

a {
    color: var(--dark-green);
    text-decoration: none;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 0 40px;
    margin-bottom: 10px;
    width: var(--separator-width);
    max-width: 100%;
    border-bottom: 1px solid var(--dark-green);
}

blockquote {
    border-left: 4px solid #aaa;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1em;
    color: #000000aa;
}

#blog-title {
    font-size: 2.75rem;
    color: var(--dark-green);
}

#blog-subtitle {
    display: flex;
    margin: 12px 0 26px;
}
#blog-subtitle > span {
    position: relative;
    display: block;
    text-align: center;
    width: 100px;
}
#blog-subtitle > span:not(:last-of-type)::after {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: var(--dark-green);
    transform: skewX(-15deg);
}

#contact {
    display: flex;
    align-items: center;
}
#contact > a {
    text-decoration: none;
    text-align: center;
}
#contact > a:not(:last-of-type) {
    margin-right: 25px;
}

#contact img {
    width: 35px;
}

main {
    width: 100%;
    max-width: 1100px;
    line-height: 1.5em;
}

code.hljs {
    background-color: #f4f4f4;
    font-size: 0.85rem;
    line-height: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1.5em 0 0;
    font-weight: 600;
    line-height: 1.3em;
}

:is(h2, h3, h4, h5, h6) > a {
    color: initial;
}
:is(h1, h2, h3, h4, h5, h6) > a::after {
    content: "#";
    visibility: hidden;
    margin-left: 0.35em;
    height: 100%;
    color: var(--dark-green);
}
:is(h1, h2, h3, h4, h5, h6) > a:hover::after {
    visibility: visible;
}

h1 {
    color: var(--dark-green);
    font-weight: 700;
}

figure {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
figure > :is(img, video) {
    display: block;
    max-height: 600px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px #00000044);
}
figure > figcaption {
    text-align: center;
    font-style: italic;
    margin-top: 1em;
    font-size: 0.9rem;
    line-height: 1.5em;
}

hr {
    border: none;
    position: relative;
    height: 1px;
    margin: 30px 0;
}
hr::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-color: #000000bb;
}

footer {
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: calc(2.4rem + 10px);
    padding: 50px 0;
    font-size: 0.9rem;
    line-height: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--separator-width);
    max-width: 100%;
    height: 1px;
    background-color: var(--dark-green);
}

footer > p {
    margin: 0;
}

.collection-item {
    display: block;
    color: initial;
}
.collection-item > h2 {
    transition: color 0.15s;
}
.collection-item:hover > h2 {
    color: var(--dark-green);
}
.collection-item > .post-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.post-date {
    font-size: 0.9em;
    color: #000000aa;
}
h1 + .post-date {
    margin-top: 0;
}
h2 + .post-date {
    margin: 0 0 -0.4em;
}

details > nav > ul {
    margin: 0;
}

details > summary {
    cursor: pointer;
    color: var(--dark-green);
    font-weight: 600;
}

.panel-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.2rem 0;
}

.panel-toggle > form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5em;
    max-width: 100%;
}

.panel-toggle > form > span {
    margin-right: 0.8ch;
}

.panel-toggle > form > div {
    text-align: center;
}

.panel-toggle > form > div > input {
    margin-right: 0.2ch;
}

.panel-toggle > form > div > input + label:not(:last-of-type) {
    margin-right: 0.3ch;
}

.panel > figure {
    margin: 0;
}

@media screen and (max-width: 768px) {
    :root {
        font-size: 17px;
    }

    body {
        margin: 0 24px;
    }

    .panel-toggle > form {
        flex-direction: column;
    }

    .panel-toggle > form > span {
        margin-right: 0;
    }
}
