* {
    box-sizing: border-box;
}

/* || general */

html {
    /* style */
    background-color: ghostwhite;
}

body {
    margin: 0;
    /* style */
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    color: black;
}

h1 {
    /* placement */
    margin: 0;
    /* style */
    padding: 0;
    font-family: "Caveat";
    font-size: 72px;
}

h2 {
    /* placement */
    width:fit-content;
    margin: -10px auto;
    rotate: -1deg;
    /* style */
    background-color: #8432CC;
    padding: 5px 10px;
    font-family: "Libre Baskerville", serif;
    font-size: 25px;
}

h3 {
    margin: 15px auto;
    /* style */
    font-family: "Libre Baskerville", serif;
    text-transform: lowercase;
    font-size: 25px;
}

h3::before {
    content: "✧";
    padding: 0 10px 0 0;
}

h4 {
    margin: 10px 0;
    font-style: italic;
    font-size: 20px;
}

h5 {
    margin: 10px 0;
    font-family: 'Libre Baskerville';
    font-style: italic;
    color: dimgray;
    font-size: 18px;
}

h5 a {
    color: firebrick;
    text-decoration: 2px underline solid pink;
}

p {
    margin: 10px 15px;
    line-height: 1.5em;
}

img {
    border: 2px solid ghostwhite;
    border-radius: 2%;
    z-index: 1;
}

a {
    /* style */
    color: #8432CC;
    text-decoration: 2px underline solid lavender;
}

hr {
    width: 100%;
    margin: 30px 0;
    border: none;
    border-bottom: 5px solid lavender;
}

hr.small {
    width:80%;
    margin:auto;
}

hr.tl-br {
    width: 100%;
    transform: rotate(1.5deg);
    margin: 40px 0;
}

hr.bl-tr {
    margin: 40px 0;
    transform: rotate(-1.5deg);
}

ol, ul {
    line-height: 1.5em;
}

ol {
    list-style-type: upper-roman;
}

ol ol {
    list-style-type: lower-roman;
}

ul {
    margin-left: 25px;
    padding-left: 25px;
    list-style-type: "✦ ";
}

ul ul {
    padding-left: 10px;
    list-style-type: "✧ "
}

/* || header */

header {
    margin: 0;
    /* style */
    background: center/cover url(../../assets/img/bgs/pexels-kai_dewitt.jpg);
    padding: 25px 0 60px;
    border: 1px solid dimgray;
    text-align: center;
    color: white;
}

nav {
    max-width: 650px;
    margin: auto;
    background: rgba(230,230,250,0.9);
    position: sticky;
    top:0;
    z-index: 2;
    border: 1px solid dimgray;
    border-top: none;
}

nav menu {
    /* placement */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 5px 0;
    margin:0;
    /* style */
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
    list-style-type: none;
}

nav menu a {
    margin:0;
    padding: 5px 10px;
    text-decoration: none;
}

nav menu a:hover {
    background-color: #8432CC;
    padding: 5px 10px;
    color: white;
}

/* || main content */

main {
    /* placement */
    max-width: 650px;
    margin: auto;
    /* style */
    background-color: white;
    padding: 10px 20px;
    border-right: 1px solid dimgray;
    border-left: 1px solid dimgray;
}

/* || home > books */

.book {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.book img {
    max-width: 150px;
    max-height: fit-content;
    display: block;
    box-shadow: -5px 5px rgba(0,0,0,0.25);
    animation: 1s forwards rotate;
}

.book img:hover {
    animation: 0.5s forwards unrotate;
}

@keyframes rotate {
    from {
        rotate: 0;
    }

    to {
        rotate: -5deg;
    }
}

@keyframes unrotate {
    from {
        rotate: -5deg;
    }

    to {
        rotate: 0;
    }
}

.book.right img {
    box-shadow: 5px 5px rgba(0,0,0,0.25);
    animation: 1s forwards rotate_r;
}

.book.right img:hover {
    animation: 0.5s backwards unrotate_r;
}

@keyframes rotate_r {
    from {
        rotate: 0;
    }

    to {
        rotate: 5deg;
    }
}

@keyframes unrotate_r {
    from {
        rotate: 5deg;
    }

    to {
        rotate: 0;
    }
}

.meta {
    width: 300px;
}

.meta p {
    margin: 15px 0;
}

.meta menu {
    /* style */
    padding: 0 0 0 25px;
    list-style-type: "✦";
}

.meta li {
    /* style */
    padding: 0 0 0 5px;
}

/* || home > quote */

blockquote {
    margin: 0;
    /* style */
    padding: 0 20px;
    font-size: 21px;
    text-align: center;
}

blockquote em {
    /* style */
    background: lavender;
    padding: 0 7px;
    font-family: "Caveat";
    font-size: 27px;
    font-style: normal;
    font-weight: bold;
}

.attr {
    margin: 15px 0 0;
    /* style */
    padding: 0;
    text-align: center;
    font-size: 14px;
    color: dimgray;
}

/* || about > profiles */

.profile {
    display: flex;
    gap: 20px;
    margin: 0 30px 25px;
}

.profile img {
    max-width: 150px;
    max-height: fit-content;
    box-shadow: -5px 5px rgba(0,0,0,0.25);
    animation: 1s forwards unrotate;
}

.profile img:hover {
    animation: 1s forwards rotate;
}

.name {
    display: flex;
    justify-content: space-between;
}

.profile p {
    border-left: 1px dashed dimgray;
    padding: 10px 0 10px 20px;
}

/* || about > faq */

details {
    max-width: 85%;
    margin: 20px auto;
}

summary {
    background-color: #8432CC;
    padding: 10px;
    font-weight: bold;
    color: white;
}

summary::marker {
    content: "✧  ";
    white-space: pre;
}

details[open] summary::marker {
    content: "✦  ";
}

.ext {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 7px;
    margin: auto;
    margin-bottom: 15px;
    padding: 0;
    list-style-type: none;
    text-align: center;
    font-size: 20px;
}

/* || books */

.sting {
    display: flex;
    align-items: center;
    margin: -10px 20px 0;
}

.sting img {
    max-width: 150px;
    max-height: fit-content;
    display: block;
    box-shadow: 5px 5px rgba(0,0,0,0.25);
    animation: 1s forwards rotate_r;
}

.sting img:hover {
    animation: 0.5s backwards unrotate_r;
}

.sting.left img {
    box-shadow: -5px 5px rgba(0,0,0,0.25);
    animation: 1s forwards rotate;
}

.sting.left img:hover {
    animation: 0.5s backwards unrotate;
}

/* || blog */

.blog-meta {
    margin: 15px;
    padding: 0;
    font-size: 14px;
    color: dimgray;
    text-align: center;
}

/* || contact */

.contact {
    max-width: 80%;
    margin: -10px auto 0;
    padding: 0;
}

.forms {
    margin: 0;
    padding: 0;
    text-align: left;
}

input {
    display: inline-block;
    margin: 5px 0;
    border: 1px solid dimgray;
    border-radius: 2px;
    font-family: "Libre Franklin";
    font-size: 16px;
}

textarea {
    min-height: 150px;
    min-width: 100%;
    max-width: 100%;
    display: inline-block;
    margin: 5px 0;
    border: 1px solid dimgray;
    border-radius: 2px;
    font-family: "Libre Franklin";
    font-size: 16px;
}

input:focus, input:active, textarea:focus, textarea:active {
    border: 1px solid #8432cc;
    outline: none;
}

button {
    height:fit-content;
    width: fit-content;
    background-color: #8432CC;
    border: 3px outset #8432cc;
    padding: 5px 10px;
    font-weight: bold;
    font-family: "Libre Franklin";
    font-size: 16px;
    color: white;
}

button:active {
    border: 3px inset #8432cc;
}

.submit {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* || footer */

footer {
    /* placement */
    max-width: 650px;
    position: sticky;
    bottom: -1px;
    margin: auto;
    z-index: 1;
    /* style */
    background-color: lavender;
    padding: 5px;
    border: 1px solid dimgray;
    font-size: 13px;
    text-align: center;
    color: dimgray;
}

/* || mobile */

@media (max-width: 550px) {
    .book {
        flex-direction: column
    }

    .book.right {
        flex-direction: column-reverse;
    }

    .profile {
        display: block;
    }

    .sting.left img {
        margin:0 0 25px;
    }

    .submit {
        flex-direction: column;
        gap: 3px;
    }
}
