:root {
  color-scheme: light dark
}

body {
    font-size: 16px;
    font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    line-height: 1.4;
    color: light-dark(#222222, #e7e7e7);
    background-color: light-dark(#e7e7e7, #222222);
}

a {
    display: inline-block;
    color: light-dark(#006e36, #74e082)
}

/* ---------------------------------------------------------------------
 Responsive Media
------------------------------------------------------------------------ */
img, audio, canvas, video, picture {
    max-width: 100%; /* media should never overflow its container */
}

img {
    height: auto;
}
/* ---------------------------------------------------------------------
 Headings
------------------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  line-height: 1;
}

/* ---------------------------------------------------------------------
 Container
------------------------------------------------------------------------ */
.site {
    margin-inline: auto;
    margin-block-end: 1.5rem;
    padding-inline: 1.25rem;
    max-width: 1536px;
}

/* ---------------------------------------------------------------------
 Header
------------------------------------------------------------------------ */
.site-hd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block-start: 1.5rem;
}

.site-hd-face {
    & img {
        border-radius: 50%;
        width: 200px;
        border: 2px solid #333333;
        box-shadow: 2px 2px 2px light-dark(#969696, #000000);
    }

    & figcaption {
        font-size: 0;
    }
}

.site-hd-title {
    margin-block-start: 1.5rem;
    text-align: center;

    & > * + * {
        margin-block-start: 0.5rem;
    }
}

.site-hd-title-main {
    font-size: clamp(2.5rem, 2.237rem + 1.316vw, 3.5rem) /* 40 to 56 */ ;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 light-dark(#ededed, #000000), 3px 3px 3px light-dark(#b7b7b7, #000000);
}

.site-hd-title-sub {
    font-weight: 700;
    font-size: clamp(1.5rem, 1.368rem + 0.658vw, 2rem) /* 24 to 32 */;
    letter-spacing: 0.35rem;
    line-height: 1.2;
    text-shadow: 1px 1px 0 light-dark(#ededed, #000000), 3px 3px 4px light-dark(#b7b7b7, #000000);
}

/* ---------------------------------------------------------------------
 Main Content
------------------------------------------------------------------------ */

.site-bd {
    margin-block-start: 1.5rem;
}

.site-bd > * + * {
    margin-block-start: 1.5rem;
    border-block-start: 1px solid light-dark(#656565, #e7e7e7);
    padding-block-start: 1.5rem;
}

.site-bd-item > * + * {
    margin-block-start: 1.5em;
}

.site-bd-item-hd {
    margin-block-end: 1rem;
    font-size: clamp(2rem, 1.868rem + 0.658vw, 2.5rem); /* 32 to 40 */
}

/* ---------------------------------------------------------------------
 Post/Item
------------------------------------------------------------------------ */
.post {
    & > * + * {
        margin-block-start: 1rem;
    }

    & .post-hd {
        font-size: clamp(1.5rem, 1.368rem + 0.658vw, 2rem); /* 24 to 32 */

        & .post-hd-title {

        }

        & .post-hd-date {
            margin-block-start: 1rem;
            font-size: clamp(1.25rem, 1.184rem + 0.329vw, 1.5rem); /* 24 to 20 */
        }
    }

    & .post-title {

    }

    & .post-bd {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: 1fr;
        grid-row-gap: 1.5rem;

        p {
            max-width: 75ch;
        }

        ul {
            list-style-type: square;
            padding-inline-start: 1.5rem;
        }

    }

    & .post-extra {
        & > * {
            margin-block-start: 1rem;
        }

        ul {
            list-style-type: square;
            padding-inline-start: 1.5rem;
        }
    }
}

@media (min-width: 769px) {
    .site-hd {
        flex-direction: row;
    }

    .site-hd-title {
        margin-block-start: 0;
        margin-inline-start: 1.5rem;
        text-align: left;

        & > * + * {
            margin-block-start: 0.75rem;
        }
    }

    .post {
        & .post-hd {
            display: flex;

            & .post-hd-date {
                margin-block-start: 0;
                margin-inline-start: 1.5rem;
            }
        }

        & .post-bd {
            grid-template-columns: repeat(2, 1fr);
            grid-column-gap: 1.5rem;

            p {
                max-width: 75ch;
            }
    }
}

@media (min-width: 769px) and (max-width: 1535px) {
    .site { padding: 0 0.75rem; }
}

@media (min-width: 1536px) {
    .site { padding: 0; }
}
