/* colours */
:root {
    --rose: #d67b76;
    --bone: #fdf4f5;
    --mint: #c5e8c7;
    --jade: #57a597;
    --aloe: rgb(87,165,151, 0.7);
    --crow: rgba(0, 0, 0, 0.9);
    /* 
    --rose-rgb: rgb(214,123,118);
    --bone-rgb: rgb(253,244,245);
    --mint-rgb: rgb(197,232,199);
    --jade-rgb: rgb(87,165,151);
    */
}


/* composition and typography */
@font-face {
    font-family: Titillium;
    src: url('../lib/Titillium/Titillium-Regular.otf') format("opentype");
    size-adjust: 105%;
}
body {
    font-family: Titillium, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: var(--crow);
    background-color: var(--jade);
    background-image: linear-gradient(
        var(--bone),
        var(--jade)
    );
    /* background-image: url(/img/webdesign/sky-mobile.webp); */
    background-size: cover;
    background-attachment: fixed;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.75rem;
    z-index: 1;
}
h1, h2, .subtitle, .quote, a, label, input, textarea, footer p {
    font-family: Titillium, sans-serif;
}
h1 {
    font-size: 3rem;
    line-height: 3.5rem;
    margin: 2rem auto;
    max-width: calc(320px - 2rem);
    text-align: center;
    color: var(--jade);
}
h2 {
    font-size: 1.75rem;
    line-height: 2.5rem;
    margin-block-end: 0;
}
@media screen and (min-width: 750px) {
    h1 {
        font-size: 7vw;
        line-height: 8vw;
        transition: ease-out 0.75s;
    }
    h2 {
        font-size: 4vw;
        line-height: 5vw;
        transition: ease-out 0.75s;
    }
}
@media screen and (min-width: 900px) {
    h1 {
        font-size: 6vw;
        line-height: 7vw;
        transition: ease-out 0.75s;
    }
    h2 {
        font-size: 3.75vw;
        line-height: 5vw;
        transition: ease-out 0.75s;
    }
}
@media screen and (min-width: 1200px) {
    h1 {
        font-size: 4.5rem;
        line-height: 6rem;
        transition: ease-out 0.75s;
    }
    h2 {
        font-size: 2.75rem;
        line-height: 4rem;
        transition: ease-out 0.75s;
    }
}
li a, 
.subtitle, 
input[type="submit"], 
footer p {
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}
.subtitle {
    margin: 0.25rem 0 0.75rem 0;
}
p {
    margin-top: 1rem;
    margin-block-end: 0;
}
a {
    color: var(--rose);
    text-decoration: none;
    text-align: center;
    line-height: 1rem;
}
a:hover {
    color: var(--jade);
}
a:active {
    color: var(--bone);
}
header li:hover,
footer li:hover  {
    color: var(--jade);
}
header li:active,
footer li:active {
    background-color: var(--crow);
}
header, footer {
    z-index: 2;
}
.grecaptcha-badge {
    display: none;
}
/* @keyframes slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-2000px, 0, 0);
    }
}*/
/* div.foreground { */
    /* background-image: url(/img/webdesign/farclouds.svg); */
    /* background-attachment: fixed; */
    /* background-repeat: repeat-y; */
    /* background-size: cover; */
    /* z-index: 2; */
/* } */





/* header */
header {
    background-color: var(--crow);
    display: flex;
    flex-wrap: wrap;
    /* position: fixed; */
    top: 0;
    max-width: 100vw;
    right: 0;
    padding: 0.75rem 0;
}
@media screen and (max-width: 700px) {
    header {
        flex-direction: column;
        justify-content: center;
    }
}
@media screen and (min-width: 701px) {
    header {
        flex-direction: row;
        padding: 0.5rem 0 1rem 0;
        justify-content: space-evenly;
    }
    nav {
        margin-top: 2rem;
        width: 50vw;
        max-width: 25rem;
    }
}
header img {
    flex-basis: 45%;
    width: 15rem;
    height: 8rem;
}
nav ul {
    padding: 0;
    margin: auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 20rem;
}
li {
    display: flex;
    border-radius: 0.5rem 0 0.5rem 0;
}
header a {
    padding: 0.5rem;
    margin: 0.25rem;
    padding: 0.25rem;
}
header svg {
    max-width: 50px;
    max-height: 50px;
    margin: 0.5rem;
    fill: var(--rose);
}
header li:hover {
    background-color: var(--jade);
}
header li:hover a {
    color: var(--bone);
}
header li:active {
    background-color: var(--crow);
}
header form a:hover svg {
    fill: var(--jade);
}
header form a:active svg {
    fill: var(--crow);
}


/* widgets */
/* div.sidebar {
    display: flex;
    flex-direction: column;
    background-color: rgba(0,0,0,0.8);
    max-width: 75%;
    border-radius: 3rem 0.25rem 3rem 0.25rem;
    padding: 2rem 0 1rem 0;
    margin: 7rem auto;
    margin-bottom: 20rem;
} */
/* @media screen and (max-width: 300px) {
    div div {
        display: flex;
        flex-wrap: wrap;
    }
    div div img {
        max-width: 300px;
        display: flex;
    }
} */


main {
    height: fit-content;
    width: calc(100vw - 2.5rem);
    /* max-width: calc(100vw - 6rem); */
    /* max-width: 90vw; */
    /* max-width: 2000px; */
    /* padding: 0 1.5rem; */
    margin: 0 auto;
    position: absolute;
    z-index: 1;
    bottom: 0;
}
main > * {
    max-width: calc(100vw - 2.5rem);
    margin-left: 1.5rem;
}
@media screen and (max-width: 351px) {
    main {
        top: 5rem;
    }
}
@media screen and (max-width: 700px) {
    main {
        top: 17rem;
    }
}
@media screen and (min-width: 701px) {
    main {
        top: 12rem;
    }
}

@media screen and (max-width: 600px) {
    main {
        padding-bottom: 11rem;
    }
}
@media screen and (min-width: 601px) {
    main {
        padding-bottom: 7rem;
    }
}


/* form globals */
form {
    margin: 1rem auto;
}
label {
    margin: 1rem 0 0.25rem 0;
    flex-basis: 100%;
}
input, 
textarea {
    border: unset;
    display: flex;
    flex-basis: 100%;
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    line-height: 2rem;
    border: none;
    border-radius: 0.5rem 0 0 0;
    background-color: var(--bone);
}
input:focus, 
textarea:focus {
    outline: none;
}
input[type="submit"] {
    line-height: 1.5rem;
    font-size: 1.25rem;
    width: fit-content;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem 0 0.5rem 0;
    background-color: var(--bone);
    color: var(--rose);
}
input[type="submit"]:hover, 
#search-form div:hover {
    color: var(--jade);
    cursor: pointer;
}
input[type="submit"]:active, 
input#search:active {
    background-color: var(--crow);
    color: var(--bone);
}


/* search form */
#search-form {
    display: flex;
    flex-wrap: nowrap;
    /* max-width: calc(100vw - 1.5rem); */
    /* max-width: 90vw; */
    max-width: 80vw;
    margin: 1rem auto;
    justify-self: center;
}
@media screen and (min-width: 701px) {
    #search-form {
        margin-left: unset;
        margin-right: unset;
    }
}
#search-form label {
    display: none;
}
#search-form input[type="text"] {
    line-height: 1.5rem;
}
#search-form input[type="submit"] {
    border-radius: 0 0 0.5rem 0;
    height: 2.5rem;
    width: 2.5rem;
    background-color: var(--rose);
    background-image: url(../img/icons/search-optimized.svg);
    background-repeat: no-repeat;
    background-position: 7px 6px;
    text-indent: 17px;
}
#search-form input[type="submit"]:hover {
    fill: var(--jade);
}
#search-form input[type="submit"]:active {
    fill: var(--crow);
}


/* contact form */
#contact-form {
    min-width: calc(320px - 3rem);
    width: calc(100vw - 3rem);
    max-width: 800px;
    margin: 0 auto;
    margin-top: 1rem;
    padding-left: 1.5rem;
}
#contact-form input, 
#contact-form textarea {
    width: calc(100% - 1.5rem);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem 0 0.5rem 0;
}
#contact-form input[type="submit"] {
    margin-top: 2rem;
    max-width: fit-content;
    background-color: var(--crow);
}
#contact-form input[type="submit"]:hover {
    color: var(--bone);
    background-color: var(--jade);
}
#contact-form input[type="submit"]:active {
    color: var(--bone);
    background-color: var(--crow);
}
p#successmessage, 
p#errormessage {
    text-align: center;
    color: var(--bone);
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 3rem;
}
p#errormessage {
    color: var(--rose);
}


/* about */
#about {
    min-width: calc(320px - 3rem);
    width: calc(100vw - 4rem);
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
}
#about ol {
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style-type: square;
}
#about ol li {
    padding-left: 1.5rem;
    padding-bottom: 0.75rem;
}
#about p:last-of-type {
    padding-bottom: 0.5rem;
}


/* projects grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1.5rem;
}
.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.card p {
    max-width: 95ch;
}
@media screen and (min-width: 750px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card {
        grid-column: span 1;
    }
    .fw {
        grid-column: span 2;
    }
}
@media screen and (min-width: 1600px) {
    .grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .card {
        grid-column: span 4;
    }
    .fw {
        grid-column: span 8;
    }
}


/* footer */
footer {
    background-color: var(--crow);
    position: fixed;
    bottom: 0 !important;
    right: 0;
    left: 0;
    /* margin-top: 110vh; */
    max-width: 100vw;
    padding: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
@media screen and (max-width: 600px) {
    footer {
        flex-direction: column;
    }
}
footer div {
    display: flex;
    flex-wrap: wrap;
    /* justify-self: flex-end; */
    margin: 0;
    flex-basis: 45%;
    justify-content: center;
}
footer p {
    flex-basis: 45%;
    color: var(--bone);
    text-align: center;
    margin: 0.5rem;
    align-self: center;
}
footer svg {
    max-width: 50px;
    max-height: 50px;
    margin: 0.5rem;
    fill: var(--rose);
}
footer a:hover svg {
    fill: var(--jade);
}
footer a:active svg {
    fill: var(--crow);
}

