/* ----- */
/* FONTS */
/* ----- */

@font-face {
font-family: "Charter";
font-style: normal;
font-weight: normal;
font-stretch: normal;
src: url("/fonts/charter_regular.woff2") format("woff2");
}

@font-face {
font-family: "Charter";
font-style: italic;
font-weight: normal;
font-stretch: normal;
src: url("/fonts/charter_italic.woff2") format("woff2");
}

@font-face {
font-family: "Charter";
font-style: normal;
font-weight: bold;
font-stretch: normal;
src: url("/fonts/charter_bold.woff2") format("woff2");
}

@font-face {
font-family: "Charter";
font-style: italic;
font-weight: bold;
font-stretch: normal;
src: url("/fonts/charter_bold_italic.woff2") format("woff2");
}

@font-face {
    font-family: "Special Elite";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/SpecialElite-Regular.ttf") format("truetype");
}


/* -------------- */
/* MAIN VARIABLES */
/* -------------- */

:root {
    --primary-font: "Charter", serif;
    --accent-font: "Special Elite", system-ui;
    --font-color: #0B232C;
    --accent-color: #74497E;
    --hover-color: #231921;
    --dropshadow: #b9bcc1;
    --background-color: #F6F6F4;
    --content-width: 750px;
}


/* ---------------- */
/* GENERAL STYLINGS */
/* ---------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background-color);
    background-image: url("/images/hawk-in-foggy-woods.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    display: grid;
    grid-template-columns: 1fr var(--content-width) 1fr;
    flex: 1;
}

.main-column {
    background-color: var(--background-color);
    padding: 1.5em 0;
}

.body-text {
    margin: 1.5em;
}

img {
    max-width: 100%;
}

.body-text img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    border-radius: 30px;
}

.image-right {
    float: right;
    padding: 0 1em;
}

.image-left {
    float: left;
    padding: 0 1em;
}

p, .body-text li {
    font-family: var(--primary-font);
    color: var(--font-color);
    font-size: 1.2em;
    letter-spacing: 0.5px;
    text-align: justify;
    hyphens: auto;
    line-height: 1.4em;
}

h1, h2, h3 {
    font-family: var(--accent-font);
    font-weight: 400;
    color: var(--font-color);
    filter: drop-shadow(1px 1px 1px var(--dropshadow));
}

a {
    color: var(--accent-color);
    font-weight: bold;
}

a:hover {
    color: var(--hover-color);
    filter: drop-shadow(1px 1px 1px var(--dropshadow));
}

.external-link::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("/images/arrow-square-out.svg") no-repeat center / contain;
    filter: brightness(0) saturate(100%) invert(31%) sepia(12%) saturate(226%) hue-rotate(141deg) brightness(93%) contrast(88%);
    margin-left: 2px;
}

.scribble-loop {
    content: "";
    display: inline-block;
    background: url("/images/scribble-loop.svg") no-repeat center / contain;
}

.scribble-loop-bold {
    content: "";
    display: inline-block;
    background: url("/images/scribble-loop-bold.svg") no-repeat center / contain;
}

.accent-color {
    color: var(--accent-color);
}

.body-separator {
    filter: brightness(0) saturate(100%) invert(35%) sepia(11%) saturate(1905%) hue-rotate(243deg) brightness(93%) contrast(95%);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    border: 0;
    margin: 2em auto;
}

.small, figcaption {
    font-family: var(--primary-font);
    font-style: italic;
    font-size: 1em;
    color: #4C5253;
    margin: 0.2em;

}

.center-align {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button {
    background-color: var(--accent-color);
    font-family: var(--accent-font);
    font-size: 1.1em;
    color: var(--background-color);
    border-radius: 10px;
    border: 2px solid var(--hover-color);
    padding: 1em 0.75em 0.75em;
    margin: 0.5em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover  {
    transform: translateY(-3px);
    filter: drop-shadow(1px 1px 1px var(--dropshadow));
}

 .heading-link {
    margin-bottom: 0em;
 }

 [id] {
    scroll-margin-top: 4em;
}

.body-text figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1.5em 0.25em;
}

.body-text li:not(:last-child) {
    margin-bottom: 0.5em;
}

.main-photo {
    width: 40%;
    height: auto;
}


/* ------ */
/* HEADER */
/* ------ */

header {
    background-color: var(--background-color);
    padding: 1em;
    margin: 0;
    box-shadow: 0 3px 5px rgb(0, 0, 0, 0.4);
    max-height: 5em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 100%;
}

.logo-text {
    font-family: var(--accent-font);
    font-size: 3.5em;
    font-weight: normal;
    filter: drop-shadow(1px 1px 1px var(--dropshadow));
    color: var(--font-color);
    text-decoration: none;
}

.main-byline {
    font-family: var(--primary-font);
    font-style: italic;
    font-size: 1.1em;
    padding-left: 0.3em;
    color: #4C5253;
    vertical-align: 0.10em;
}

.main-nav ul {
    display: flex;
    gap: 1.5em;
    list-style: none;
}

.main-nav li {
    font-family: var(--primary-font);
    font-size: 1.4em;
    font-weight: bold;
}

.main-nav a {
    text-decoration: none;
}

.main-nav-separator {
    width: 24px;
    height: 24px;
}


/* ------ */
/* FOOTER */
/* ------ */

footer {
    background-color:var(--hover-color);
    min-height: 5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: var(--background-color);
    font-size: 0.95em;
    letter-spacing: 0.9px;
}

.footer-text a {
    color: var(--dropshadow);
    text-decoration: none;
}

.footer-text a:hover {
    filter: none;
    text-decoration: underline;
}

.footer-separator {
    filter: brightness(0) saturate(100%) invert(35%) sepia(11%) saturate(1905%) hue-rotate(243deg) brightness(93%) contrast(95%);
    width: 16px;
    height: 16px;
    padding: 0 1em;
    vertical-align: -0.15em;
}


/* -------------------- */
/* SCROLL TO TOP BUTTON */
/* -------------------- */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    border: 2px solid var(--hover-color);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scroll-top-arrow {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("/images/caret-up-bold.svg") no-repeat center / contain;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}


/* ------------- */
/* FORM STYLINGS */
/* ------------- */

input,
textarea,
input[type="text"],
input[type="email"] {
    border: 3px solid var(--dropshadow);
    border-radius: 10px;
    width: 100%;
    min-height: auto;
    line-height: 1.4em;
    font-family: system-ui !important;
    font-size: 1.1em;
    padding: 0.5em;
}

textarea {
    height: 10em;
}

.contact-label {
    font-family: var(--primary-font);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--font-color);
}


/* -------------- */
/* RESPONSIVENESS */
/* -------------- */

@media screen and (max-width: 1250px) {
    header {
        max-height: 9em;
    }
    
    .site-header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    [id] {
        scroll-margin-top: 7em;
    }
}

@media screen and (max-width: 750px) {
    body {
        display: flex;
        flex-direction: column;
        background-image: none;
    }

    main {
        display: flex;
        flex-direction: column;
    }

    header, footer {
        display: flex;
        flex-direction: column;
        max-height: fit-content;
    }

    header {
        position: static;
    }

    .sidebar {
        content: "";
        display: inline-block;
        width: 100%;
        height: 15em;
        background: url("/images/hawk-in-foggy-woods-smaller.jpg");
        background-size: cover;
        background-repeat: no-repeat;
    }

    .main-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.75em;
    }

    .main-nav {
        max-width: 100%;
    }

    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        flex-direction: inherit;
        justify-content: center;
        max-width: 100%;
    }

    .main-nav li {
        flex: 0 1 auto;
    }

    [id] {
        scroll-margin-top: 1em;
    }

    .image-right {
        float: none;
    }

    .main-photo {
        width: 60%;
    }

}

@media screen and (max-width: 400px) {
    .logo-text {
        font-size: 3em;
    }

    .main-nav ul {
        gap: 1em;
    }

    .main-nav li {
        font-size: 1.2em;
    }

    .main-nav-separator {
        width: 16px;
        height: 16px;
        vertical-align: -0.10em;
    }

    .heading-link {
        text-align: left;
    }

    .main-photo {
        width: 80%;
    }
    
    figcaption {
        line-height: 1.4em;
    }
    
    
}
