@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Lekton:ital,wght@0,400;0,700;1,400&display=swap');
@font-face {
    font-family: "Univers LT Std";
    src: url("./fonts/roman.woff") format('woff');
}

@font-face {
    font-family: "Stempel Garamond LT Pro";
    src: url("./fonts/garamond.woff2") format('woff2');
}

@font-face {
    font-family: "Garamond";
    src: url("./fonts/garamond.woff2") format('woff2');
}

@font-face {
    font-family: "Stempel Garamond LT Pro Italic";
    src: url("./fonts/garamond-italic.woff") format('woff');
}

@font-face {
    font-family: "Italic";
    src: url("./fonts/garamond-italic.woff") format('woff');
}

@font-face {
    font-family: "Beautifully Delicious";
    src: url("./fonts/Beautifully-Delicious-script-bold.woff2") format('woff2');
    font-weight: bold;
    font-style: normal;
}

#navbar-iframe {
    display: none;
}

::-moz-selection { /* Code for Firefox */
    color: #000000;
    background: #dae9ff;
}

::selection {
    color: #000000;
    background: #dae9ff;
}

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

body {
    font-family: "Univers LT Std", sans-serif;
    background-color: #f6f6f6;
    color: #202122;
    line-height: 1.6;
    font-size: 14px;
    background-size: 1px 10px;
    background-image: repeating-linear-gradient(to top right, #f3f3f3, #ffffff 50%);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="24" viewBox="0 0 20 24"><path fill="white" stroke="black" stroke-width="1" d="M0,0 L0,16 L4,12 L7,20 L9,19 L6,11 L11,11 Z"/></svg>'), auto;
}

.header {
    max-width: 1000px;
    max-height: 60px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 100px;
    margin: auto;
    margin-top: 100px;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 3.2rem;
    font-weight: bold;
    color: #424344;
    text-decoration: none;
    font-family: "Beautifully Delicious", sans-serif;
    line-height: 0.6;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: #424344;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Univers LT Std", sans-serif;
    padding: 3px;
    background: transparent;
    box-shadow: none;
    border-radius: 3px;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-radius 0.3s ease,
        color 0.2s ease;
}

/* Base hover shape */
.nav a:hover {
    color: #000000;
    border-radius: 100px;
}

/* 1st link — #cdcdff */
.nav a:nth-child(1):hover {
    background: rgba(205, 205, 255, 0.7);
    box-shadow:
        rgba(205, 205, 255, 0.9) 0 0 20px,
        rgba(205, 205, 255, 0.9) 0 0 10px;
}

/* 2nd link — #c1ff72 */
.nav a:nth-child(2):hover {
    background: rgba(193, 255, 114, 0.7);
    box-shadow:
        rgba(193, 255, 114, 0.9) 0 0 20px,
        rgba(193, 255, 114, 0.9) 0 0 10px;
}

/* 3rd link — #ff66c4 */
.nav a:nth-child(3):hover {
    background: rgba(255, 102, 196, 0.7);
    box-shadow:
        rgba(255, 102, 196, 0.9) 0 0 20px,
        rgba(255, 102, 196, 0.9) 0 0 10px;
}

/* 4th link — #f9f3a9 */
.nav a:nth-child(4):hover {
    background: rgba(249, 243, 169, 0.7);
    box-shadow:
        rgba(249, 243, 169, 0.9) 0 0 20px,
        rgba(249, 243, 169, 0.9) 0 0 10px;
}

.soft {
    text-shadow: 0 0 15px #ff66c4;
    /* animation: glow 3s linear infinite; */
    /* -webkit-animation: glow 3s linear infinite; */
}

@keyframes glow {
    0% { text-shadow: 0 0 15px #ff66c4; }
    50% { text-shadow: none; }
    100% { text-shadow: 0 0 15px #ff66c4; }
}

@-webkit-keyframes glow {
    0% { text-shadow: 0 0 15px #ff66c4; }
    50% { text-shadow: none; }
    100% { text-shadow: 0 0 15px #ff66c4; }
}

.container {
    max-width: 1040px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.sidebar {
    background-color: white;
    border: 1px solid #000000;
    height: fit-content;
    position: static;
    top: 2rem;
    padding: 15px;
    font-size: 14px;
}

.sidebar h3 {
    font-size: 13px;
    font-weight: normal;
    padding: 5px;
    text-align: center;
    background-color: #fffde8;
    margin-top: 0px;
    margin-bottom: 15px;
}

.sidebar img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.sidebar a {
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: -.01em;
}

.sidebar a:hover {
    text-decoration: underline;
}

.sidebar td {
    padding: 0px 10px;
    vertical-align: top;
}

.sidebar td:first-child {
    letter-spacing: .05em;
    font-weight: bold;
    text-transform: uppercase;
    width: 40%;
    font-size: 12px;
    padding: 10px 10px;
}

.main-content {
    background-color: white;
    border: 1px solid #000000;
    padding: 2rem;
}

.main-content h2 {
    font-size: 1.5rem;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: -0.5px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #c6cad0;
    padding-bottom: -.01em;
    font-weight: 400;
}

.main-content h3 {
    font-size: 1.2rem;
    font-family: "Stempel Garamond LT Pro Italic", serif;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: normal;
    letter-spacing: -0.12px;
}

.main-content p {
    margin-bottom: 1rem;
}

.main-content a {
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-color: #fccae9;
    color: #000000;
    font-style: italic;
    transition: 0.5s ease;
}

.main-content a:hover {
    color: #ff66c4;
    text-decoration: underline;
    text-decoration-color: #000;
}

.book-grid,
.grid-3col {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.book-grid {
    margin-bottom: 30px;
}

.grid-3col .card {
    width: 180px;
}

.book-card {
    background-color: #f8f9fa;
    border: 1px solid #c6cad0;
    padding: 5px;
    text-align: center;
    width: 130px;
}

.book-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: grayscale(20%) brightness(1) contrast(1);
}

img:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
}

.card {
    background-color: #f8f9fa;
    border: 1px solid #c6cad0;
    text-align: center;
    position: relative;
}

.card-imgwrap {
    background: #ffffff;
    padding: 5px;
}

.card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: grayscale(100%) brightness(0.9) contrast(1.2);
}

.card-img img:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
}

.card-label {
    font-size: 13px;
    line-height: 1.5;
    padding: 5px;
}

.pquote-box {
    background-color: #f7fbff;
    border: 1px solid #b7b7b7;
    padding: 20px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 400px;
    margin-bottom: 10px;
}

.quote-box {
    background-color: #fffff1;
    border: 1px solid #b7b7b7;
    padding: 20px;
    font-size: 12px;
    line-height: 1.5;
    margin: 5px;
    max-width: 400px;
    float: right;
}

.quote-box em {
    font-style: italic;
}

ul {
    list-style-type: none;
    margin-left: 25px;
    margin-bottom: 10px;
}

li {
    font-size: 13px;
    line-height: 1.54;
    margin-bottom: 3px;
    position: relative;
    padding-left: 20px;
}

li:before {
    content: "✿";
    position: absolute;
    left: 0;
    color: #000000;
}

blue {
    text-shadow: 0 0 15px #0ec0ff;
    /* animation: glow 3s linear infinite; */
    /* -webkit-animation: glow 3s linear infinite; */
}

pink {
    text-shadow: 0 0 15px #ff66c4;
    /* animation: glow 3s linear infinite; */
    /* -webkit-animation: glow 3s linear infinite; */
}

green {
    text-shadow: 0 0 15px #00ff00;
    /* animation: glow 3s linear infinite; */
    /* -webkit-animation: glow 3s linear infinite; */
}

u {
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-color: #00ff00;
}

.decorative-butterfly {
    position: absolute;
    mix-blend-mode: darken;
    z-index: -10;
    top: 300px;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.2;
    object-fit: cover;
    pointer-events: none;
}

.footer {
    background: #f9f9f9;
    font: normal 12px 'Georgia', serif;
    color: #999;
    border: 1px solid #999;
    margin: 10px 0 0;
    padding: 10px;
}

@keyframes fade {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.copy {
    margin-right: 300px;
}

.copy img {
    width: 350px;
}

@media (max-width: 768px) {
    .header {
        max-width: calc(100% - 2rem);
        margin-left: auto;
        margin-right: auto;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 1rem auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        position: static;
        order: 1; /* Sidebar comes first */
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-top: -45px;
        padding-left: 0;
        padding-right: 0;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .copy {
        margin-right: 0;
    }

    .main-content {
        padding: 1rem;
        order: 2; /* Main content comes after sidebar */
    }

    .quote-box {
        float: none;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .grid-3col .card {
        width: 250px;
    }

    .copy img {
        width: 250px;
    }

    body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .decorative-butterfly {
        width: 100vw; /* Don't exceed viewport */
        left: 0;
    }

    .grid-3col, .book-grid, .copy img {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .book-card, .card {
        width: 30%;
        max-width: 100%;
    }

    .footer {
        order: 3; /* Ensure footer comes after main content */
        margin-top: 2rem;
    }

    .container, .footer {
        display: flex;
        flex-direction: column;
    }
}
