:root {
    /* --primary: #53adad; */
    /* --primary: #735b32; */
    --primary: white;
    /* --dark: #367574; */
    --dark: #000;
    --bg: #ebf6fd;
}

* {
    margin: 0;
    font-family: "Red Hat Display", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, button, nav * {
    font-family: "DM Mono", monospace;
    font-weight: normal;
    font-size: 1.15rem;
}

noscript {
    font-family: inherit;
}

button, nav * {
    cursor: pointer;
}

section, body {
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

body {
    display: block;
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    box-sizing: border-box;
    background: var(--dark);
    color: white;
}

nav h3 {
    font-weight: 600;
}

section#splash {
    flex-direction: row;
    background: url(paper.jpg);
    background-size: 256px;
    overflow: hidden;
}

#splash > div {
    height: 80vh;
}

#splash-left {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 5px;
}

#splash-left > h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 4rem;
}

#splash-heading::after {
    content: attr(data-cursor);
    position: absolute;
    user-select: none;
}

#splash-left > p {
    max-width: 700px;
    font-size: 1.1rem;
}

#splash-left > div.btn-group {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    background: var(--primary);
    color: black;
    font-size: 1.3rem;
    font-weight: 200;
    cursor: pointer;
    font-weight: 500;
}

div.btn-group {
    display: flex;
    gap: 10px;
}

button.inverted {
    background: var(--dark);
    color: white;
}

#splash-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #splash-right > div {
    background: white;
    width: 70%;
    max-width: 440px;
    aspect-ratio: 1/1.2;
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%) rotate(2deg);
    box-shadow: 10px 10px 0 var(--dark);
} */

section.recent {
    background: url(paper2.webp);
    background-size: 256px;
    padding-top: 3%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    overflow: hidden;
    flex-wrap: wrap;
}

section.recent {
    padding-bottom: 0px;
}

section.recent.inverted {
    padding: 60px 0 100px 0;
}

#divider {
    position: absolute;
    width: 100%;
    transform: translateY(-40%);
}

#awards {
    width: 400px;
    max-width: calc(100vw - 20px);
}

.recent h2 {
    font-size: 2rem;
    color: white;
    background: black;
    box-sizing: border-box;
    font-weight: normal;
    width: auto;
    text-align: left;
    padding-left: 0;
    position: relative;
}

.recent h2::after {
    content: "";
    position: absolute;
    width: calc(40vw + 0.3px);
    height: 100%;
    background: black;
    left: 0;
    top: 0;
    transform: translateX(-40vw);
}

.recent.inverted h2 {
    background: white;
    color: black;
}

.recent.inverted h2::after {
    background: white;
    left: calc(100% + 40vw);
}
.recent.inverted h2::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 100%;
    background: white;
    left: 0;
    top: 0;
    transform: translateX(-30px);
}

.recent h3 {
    font-size: 1.5rem;
}

.recent-right {
    flex: 6;
}

.recent p {
    padding-top: 1rem;
    box-sizing: border-box;
    max-width: calc(100% - 30px);
}

.recent button {
    font-size: 1.2rem;
    margin: 20px 0
}

.recent.inverted {
    overflow: hidden;
}

.recent-left div {
    aspect-ratio: 0.65;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 300px;
    border-radius: 5px;
    width: 80%;
    transition: 0.5s;
}
.recent-left div:first-of-type {
    transform: rotate(0deg) translateX(-15%);
    z-index: 2;
    position: absolute;
}

.recent-left.inView div:first-of-type {
    transform: rotate(5deg) translateX(-15%);
}

.recent.inverted .recent-left div:first-of-type {
    transform: rotate(0deg);
    z-index: 2;
    position: absolute;
}

.recent.inverted .recent-left.inView div:first-of-type {
    transform: rotate(-5deg);
}

.recent-left div:last-of-type {
    transform: rotate(0deg) translateX(-20%);
    width: 60%;
    max-width: 250px;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.recent-left.inView div:last-of-type {
    transform: rotate(-8deg) translateX(-80%);
}

.recent.inverted .recent-left div:last-of-type {
    transform: rotate(0deg) translateX(20%);
    width: 60%;
    max-width: 250px;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.recent.inverted .recent-left.inView div:last-of-type {
    transform: rotate(8deg) translateX(70%);
}

.recent-left div:last-of-type::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
}

.recent-left {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: end;
    z-index: 1;
}

.recent.inverted .recent-left {
    justify-content: start;
}

.recent.inverted .recent-right {
    padding-left: 30px;
}

section#about, section#non-fiction {
    flex-direction: row;
    background: url(paper.jpg);
    background-size: 256px;
    overflow: hidden;
    padding-top: 3%;
    box-sizing: border-box;
    padding: 100px 30px;
    width: 100%;
    /* height: auto; */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

section#non-fiction {
    background: url(paper2.webp);
}

#about h2, #non-fiction h2, #short-stories h2 {
    font-size: 2rem;
    background: black;
    color: white;
    position: relative;
    width: 50%;
    max-width: 400px;
    min-width: fit-content;
    /* padding-right: 20px; */
    padding: 10px 20px 10px 0;
}

#about h2::after, #non-fiction h2::after, #short-stories h2::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 100%;
    background: black;
    left: 0;
    top: 0;
    transform: translateX(-30px);
}

#about-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 1000px;
    max-width: calc(100% - 30px);
}

#about-photo {
    width: 250px;
    height: 365px;
    transform: translateX(30px);
    background-image: url(steph.png);
    background-size: cover;
    position: relative;
    margin: 15px;
    border: 0px solid #ffffff;
    transition: 0.5s;
    -webkit-mask: conic-gradient(at 50px 50px, #0000 75%, #000 0) 0 0 / calc(100% - 50px) calc(100% - 50px), linear-gradient(#000 0 0) content-box;
    filter: brightness(0.2);
    }
    
#about-photo.inView {
    margin: 0px;
    border: 15px solid #ffffff;
    transform: translateX(30px) rotate(5deg);
    animation: brightnessPulse 1s;
    filter: brightness(1);
    }
    
    @keyframes brightnessPulse {
    0% {
      filter: brightness(2);
    }
    100% {
      filter: brightness(1);
    }
  }

#quote p {
    text-align: center;
    width: 100vw;
    padding-left: 30px;
    margin-top: 100px;
    font-size: 1.1rem;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#quote i {
    max-width: 700px;
}

#quote i::before {
    content: "❝";
    position: absolute;
    left: 50%;
    transform: translate(-50%, -5rem);
    font-size: 5rem;
}


/* new */
#non-fiction {
    padding: 2rem;
    /* max-width: 1200px; */
    margin: 0 auto;
}

#book-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    margin: 2rem 0;
    scrollbar-width: thin;
}

book-scroller .book-container {
    flex: 0 0 auto;
    width: 177px;
    height: 245px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

#book-scroller .book-container:hover {
    transform: scale(1.05);
}

#book-display {
    min-height: 500px;
    background: #cacaca;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.book-container img {
    height: inherit;
}

.book-container {
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 500px;
    transform: scale(0.9) rotate(3deg);
    height: 245px;
    min-width: 177px;
    position: relative;
    overflow: hidden;
}

.book-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Recommendations section */
#recommendations {
    background: url(paper.jpg);
    background-size: 256px;
    padding: 0 30px 100px 30px;
    display: flex;
    justify-content: center;
}

.paper1 {
    background: url(paper.jpg) !important;
    background-size: 256px !important;
}

#recommendations-content {
    max-width: 800px;
    width: 100%;
}

#recommendations h2 {
    font-size: 2rem;
    background: black;
    color: white;
    position: relative;
    width: 50%;
    max-width: 400px;
    min-width: fit-content;
    padding: 10px 20px 10px 0;
    margin-bottom: 20px;
}

#recommendations h2::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 100%;
    background: black;
    left: 0;
    top: 0;
    transform: translateX(-30px);
}

#recommendations p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#recommendations ul {
    list-style-type: none;
    padding-left: 0;
}

#recommendations li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

#recommendations li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dark);
    font-size: 1.5rem;
    line-height: 1;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 30px;
    text-align: center;
}