* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
    background: #f4f1e8;
    background: #e8e3d3;
    font-family: 'futura-pt', sans-serif;
    min-height: 100vh;
    padding: 40px;
    color: #1a1a1a;
    overflow-x: hidden;
    overflow-y: auto;
    /* position: relative; */
}

body {
    /* background-image: url('assets/images/paper.webp');  */
    background-image: url('assets/images/paper.jpeg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
    min-height: 100vh; 
    margin: 0; 
    padding: 0;
    background-blend-mode: color-burn;
}

p {
    font-family: "special elite", serif;
    line-height: 1.5;
    font-size: 16px;
}

a {
    text-decoration: none;
}

#intro {
    /* font-size: 18px; */
    padding: 40px 20px;
    padding: 60px 40px 40px;
    margin: 0 auto;
    max-width: 800px;
    word-wrap: break-word;
    position: relative;
    z-index: 2;
}

#intro p {
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

#intro p.visible {
    opacity: 1;
}

.redacted span {
    position: relative;
    white-space: pre;
    &:after {
        background: black;
        border-radius: 0.1em;
        box-shadow: 0 0 1px rgba(0,0,0,0.35);
        content: " ";
        width: 100%;
        height: 1.2em;
        left: 0;
        position: absolute;
        transform: skewY(-5deg) rotate(5deg);
    }
}

#intro p:last-child {
    text-align: right;
    font-style: italic;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #000;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
    vertical-align: baseline;
    margin-left: 1px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.stain-img {
  position: fixed;
  z-index: 1;
  padding: 0 50px;
  pointer-events: none;
  top: 100px;
  top: 60%;

  img {
    width: 25%;
    mix-blend-mode: color;
    z-index: 1;
    position: relative;
    transform: rotateZ(-40deg);
    opacity: 0.75;
    opacity: 0.6;
    filter: saturate(0.75) blur(0.5px);
    float: right;
    object-fit: contain;
  }
}

.ink-mark {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.ink-mark-1 {
    width: 2px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, #2a2a2a 20%, #2a2a2a 80%, transparent);
    top: 75%;
    left: 120px;
    transform: rotate(25deg);
}

.ink-mark-2 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #2a2a2a, transparent 60%);
    top: 35%;
    left: 30%;
}

.content-below {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    position: relative;
    z-index: 2;
}

.content-below.visible {
    opacity: 1;
    visibility: visible;
}

#book {
    margin: 40px 0 120px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 800px;
    gap: 40px;
    justify-self: center;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s ease-in-out;
}

.book-image img:hover {
    transform: scale(1.05);
}

.book-info {
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 20px;
    padding: 20px 40px;

    h3 {
        /* text-align: center; */
        font-size: 24px;
        line-height: 1.8;
        font-family: "special elite", serif;
        /* margin-bottom: 5px; */
    }

    h4 {
        /* text-align: center; */
        font-size: 16px;
        line-height: 1.6;
        font-family: "lora", sans-serif;
        font-weight: 500;
    }

    p {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.6;
        font-family: "lora", sans-serif;
    }
}

#book-type {
    font-size: 14px;
    line-height: 1.5;
    font-family: "lora", sans-serif;
}

#cta-button {
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    padding: 18px 40px;
    background: transparent;
    background: #fff;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 20px 0;
    display: inline-block;
}

#cta-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 0%;
    background: #1a1a1a;
    z-index: -1;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cta-button:hover {
    cursor: pointer;
    color: #faf8f3;
    background: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 250ms cubic-bezier(0, 0, 0.03, 1) 100ms;
}

#cta-button:hover::before {
    height: 100%;
}

.biobuttonsnav {
    position: fixed;
    z-index: 3;
    bottom: 2rem;
    place-self: center;
    transition: transform 250ms cubic-bezier(0, 0, 0.03, 1) 100ms;
    background: #fff;
    padding: 0.5rem;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    border: 2px solid #1a1a1a;
    opacity: 0;
    animation: navFadeIn 1.4s ease-out forwards;
    animation-delay: 1s;
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0px, 25px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: blur(15px);
    }
    to {
        opacity: 1;
        transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: blur(0px);
    }
}

.biobuttonsnav a {
    transition: transform 250ms cubic-bezier(0, 0, 0.03, 1) 100ms;
    padding: 1rem;
    border-radius: none;
    border: none;
    background-color: unset;
    font-family: "special elite", serif;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 3rem;
    transition: all .2s;
    color: #1a1a1a;
}

.biobuttonsnav a:hover {
    transition: transform 250ms cubic-bezier(0, 0, 0.03, 1) 100ms;
    color: #000;
    background-color: #e8e3d3;
}

@media (max-width: 768px) {
    .biobuttonsnav {
        bottom: 1rem;
        /* bottom: 0.5rem; */
        padding: 0.25rem;
        padding: 0;

        a {
            padding: 0.75rem;
            font-size: 0.8rem;
        }
    }

    #intro {
        padding: 40px;
        /* padding: 30px 40px; */

        p {
            margin-bottom: 1.75rem;
        }
    }

    #book {
        display: block;
    }

    .book-info {
        h3 {
            margin-bottom: 10px;
        }
    }

    .stain-img {
        top: 70%;
        right: -10%;
        padding: 0;

        img {
            width: 50%;
        }
    }
}