body {
    background-color: #f0f0f0;
    font-family: "Quicksand", "Quicksand Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-size: 1.1rem;
}

/*
    Typography
*/

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand Fallback';
    src: local('Arial');
    size-adjust: 102%;
    ascent-override: 100%;
    descent-override: 25%;
    line-gap-override: 0%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

p strong {
    font-weight: 600;
}

.sep {
    opacity: 0.4;
    font-size: 1.5em;
    font-weight: 100;
    margin: 0 5px;
}

/*
    Links
*/
a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #177E89;
}

.button {
    background-color: #A9221E;
    border: 2px solid #A9221E;
    color: #fff;
    padding: 14px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.button:hover {
    background: transparent;
    border-color: #A9221E;
    color: #A9221E;
}

.button.alt {
    color: #A9221E;
    background: none
}

.button.alt:hover {
    color: #fff;
    background: #A9221E;
    border-color: #A9221E;
}

/*
    Layout
*/

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/*
    Header
*/

header {
    background-color: #001b24;
    color: #f0f0f0;
    padding: 25px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: #f0f0f0;
}

header h1,
header h2 {
    margin: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    width: 100px;
    height: 100%;
    border-radius: 50%;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

header a:hover img {
    scale: 1.05;
    filter: grayscale(0%);
}

.header-left-text {
    margin-left: 20px;
}

.header-right {
    display: flex;
}

.header-right ul {
    display: flex;
    gap: 50px;
    list-style: none;
    font-size: 1.3rem;
}

.header-right ul li a:hover {
    color: #A9221E;
}

.header-right .button:hover {
    background: #fff;
    color: #A9221E;
    border-color: #fff;
}

@media (max-width: 768px) {
    .header-left, .header-left-text {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .header-left img {
        display: none;
    }
    .header-right {
        display: none;
    }
}

/*
    Main
*/

main {
    padding: 60px 25px;
    color: #001b24;
    text-align: center;
}

/*
    Intro
*/

.intro {
    max-width: 750px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.intro h1 {
    margin-top: 0;
    font-size: 2em;
}

.intro h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.intro h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.intro ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 30px;
}

.intro li {
    margin: 8px 0;
    line-height: 1.6;
}

.intro img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: none;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .intro img {
        display: block;
    }
}

/*
    Bookshelf
*/

.bookshelf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: space-between;
}

.book {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    background: #fafafa;
    border-radius: 10px;
    padding: 30px;
    color: #001b24;
    box-sizing: border-box;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.book a:not(.button) {
    color: inherit;
}

.book.new::after {
    content: 'New';
    position: absolute;
    top: 9px;
    right: -35px;
    background: #A9221E;
    color: #fff;
    padding: 8px 40px;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1;
}

.book .book-title {
    font-size: 1.4em;
    margin: 0 0 25px;
}

.book img {
    width: 100%;
}

.book p {
    font-size: 1.1rem;
    margin: 0;
    height: 100%;
}

.book-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 1024px) {
    .bookshelf {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bookshelf {
        grid-template-columns: repeat(1, 1fr);
    }
    .book {
        width: 100%;
    }
}

/*
    Facts
*/

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: space-between;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    background: #fafafa;
    border-radius: 10px;
    padding: 30px;
    color: #001b24;
    box-sizing: border-box;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.fact p {
    margin: 0;
}

@media (max-width: 1024px) {
    .facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .facts {
        grid-template-columns: repeat(1, 1fr);
    }
    .fact {
        width: 100%;
    }
}

/*
    Footer
*/
footer {
    background-color: #001b24;
    color: #f0f0f0;
    padding: 25px;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p {
    margin: 0;
}

footer a {
    color: #f0f0f0;
}

/*
    Cookie Consent Dialog
*/

#cookie-consent {
    max-width: 600px;
    width: 90%;
    padding: 0;
    border: 2px solid #001b24;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #fff;
    color: #001b24;
}

#cookie-consent::backdrop {
    background: rgba(0, 27, 36, 0.7);
    backdrop-filter: blur(2px);
}

#cookie-consent section {
    padding: 30px;
}

#cookie-consent h2 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #001b24;
}

#cookie-consent p {
    margin: 0 0 25px 0;
    line-height: 1.6;
    color: #001b24;
}

#cookie-consent a {
    color: #177E89;
    text-decoration: underline;
}

#cookie-consent a:hover {
    color: #A9221E;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent-actions button {
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

@media (max-width: 768px) {
    #cookie-consent {
        width: 95%;
        max-width: none;
    }
    
    #cookie-consent section {
        padding: 20px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-consent-actions button {
        width: 100%;
    }
}