
/* ========================================
   SAGA DRAGA – COLOR PALETTE
======================================== */

:root {
    --background: #0c1420;
    --card: #152131;
    --gold: #d4b77c;
    --gold-light: #ead4a2;
    --text: #f0ede6;
    --muted: #b5bfca;
    --border: #344457;

    --heading-font: "Cinzel", Georgia, serif;
    --body-font: Georgia, "Times New Roman", serif;
}


/* ========================================
   GENERAL
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.7;
}

a {
    color: var(--gold);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* ========================================
   NAVIGATION
======================================== */

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 35px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;

    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--gold-light);
}


/* ========================================
   HERO
======================================== */

.hero {
    background: radial-gradient(
        ellipse at center,
        #263c50 0%,
        #152131 40%,
        #0c1420 80%
    );

    border-bottom: 1px solid var(--border);
}

.hero-content {
    text-align: center;
    padding: 95px 20px 120px;
}


/* ========================================
   MAIN GOLDEN TITLE
======================================== */

.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(32px, 8vw, 96px);
    font-weight: 500;

    letter-spacing: 0.09em;
    line-height: 1.2;

    margin: 15px 0;

    color: var(--gold);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {

    .hero h1 {
        background: linear-gradient(
            180deg,
            #fff0c5 0%,
            #e6c78b 30%,
            #b58a40 65%,
            #e5c58a 100%
        );

        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;

        filter: drop-shadow(
            0 3px 8px rgba(0, 0, 0, 0.35)
        );
    }

}


/* ========================================
   HEADINGS AND TYPOGRAPHY
======================================== */

h2 {
    font-family: var(--heading-font);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.4;

    color: var(--gold);

    margin: 10px 0;
}

h3 {
    font-size: 23px;
    font-weight: normal;
    margin: 12px 0;
}

.subtitle {
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 35px;
}

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
}


/* ========================================
   DECORATIVE ORNAMENT
======================================== */

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: var(--gold);
    font-size: 16px;

    margin: 15px auto 25px;
}

.ornament::before,
.ornament::after {
    content: "";
    width: 65px;
    height: 1px;

    background: var(--gold);
    opacity: 0.5;
}


/* ========================================
   SECTIONS
======================================== */

.section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 65px 25px;

    text-align: center;
}


/* ========================================
   BOOK GRID
======================================== */

.book-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 340px)
    );

    justify-content: center;
    align-items: stretch;

    gap: 24px;
    margin-top: 35px;
}


/* ========================================
   BOOK CARDS
======================================== */

.book-card {
    display: flex;
    flex-direction: column;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;

    overflow: hidden;
    text-align: left;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* ========================================
   BOOK IMAGES – 16:9
======================================== */

.cover {
    width: 100%;
    aspect-ratio: 16 / 9;

    position: relative;
    overflow: hidden;
    flex-shrink: 0;

    background: #101c2b;
}

.cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* ========================================
   BOOK CONTENT
======================================== */

.book-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 18px 20px 22px;
}

.language {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;

    color: var(--gold);
    margin-bottom: 6px;
}

.book-content h3 {
    font-size: 19px;
    line-height: 1.4;
    font-weight: normal;

    color: var(--text);

    margin: 5px 0 12px;
}

.book-content p {
    font-size: 15px;
    line-height: 1.6;

    color: var(--muted);

    margin: 0 0 20px;

    flex: 1;
}


/* ========================================
   BUTTONS
======================================== */

.button {
    display: inline-block;

    padding: 12px 25px;

    border: 1px solid var(--gold);
    border-radius: 6px;

    color: var(--gold);
    text-align: center;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

a.button:hover {
    background: var(--gold);
    color: var(--background);
}

.book-content .button {
    align-self: center;

    min-width: 145px;
    padding: 9px 22px;

    border-radius: 25px;
    font-size: 14px;
}

.unavailable {
    opacity: 0.55;
    cursor: default;
}


/* ========================================
   NEXT BOOK
======================================== */

.next-book {
    border-top: 1px solid var(--border);
}

.next-book h3 {
    color: var(--text);
    font-size: 23px;
}

.next-book p:not(.eyebrow) {
    color: var(--muted);
}


/* ========================================
   ABOUT THE AUTHOR
======================================== */

.author {
    border-top: 1px solid var(--border);
}

.author p:not(.eyebrow) {
    max-width: 650px;
    margin: 15px auto;

    color: var(--muted);
}


/* ========================================
   FOOTER
======================================== */

footer {
    padding: 45px 20px 35px;

    text-align: center;

    border-top: 1px solid var(--border);

    color: var(--muted);
    background: #090f19;

    font-size: 13px;
}

.footer-logo {
    width: 75px;
    height: 75px;

    object-fit: contain;

    margin: 0 auto 20px;
}

footer p {
    margin: 5px 0;
}

footer .eyebrow {
    margin-top: 20px;
}

.footer-divider {
    width: 140px;
    height: 1px;

    background: var(--border);

    margin: 25px auto;
}

.publisher {
    display: inline-block;

    margin-top: 12px;

    color: var(--gold);

    transition: color 0.25s ease;
}

.publisher:hover {
    color: var(--gold-light);
}


/* ========================================
   SOCIAL MEDIA
======================================== */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 22px;

    margin: 22px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    font-family: var(--heading-font);
    font-size: 13px;
    letter-spacing: 1px;

    color: var(--gold);

    transition: color 0.25s ease;
}

.social-links a:hover {
    color: var(--gold-light);
}

.social-links svg {
    width: 20px;
    height: 20px;

    flex-shrink: 0;
}

.social-divider {
    color: var(--gold);
    font-size: 10px;
}


/* ========================================
   ACCESSIBILITY
======================================== */

a:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 5px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {

    .hero-content {
        padding: 80px 20px 100px;
    }

    .book-grid {
        gap: 22px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    nav {
        padding: 15px 20px;

        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 15px;
        letter-spacing: 3px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero-content {
        padding: 65px 15px 80px;
    }

    .hero h1 {
        font-size: clamp(30px, 8.5vw, 48px);
        letter-spacing: 0.04em;
    }

    .subtitle {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .section {
        padding: 45px 20px;
    }

    .book-grid {
        grid-template-columns: minmax(0, 340px);
        gap: 25px;
    }

    .book-content {
        padding: 18px;
    }

    .eyebrow {
        letter-spacing: 3px;
    }

    .social-links {
        gap: 18px;
    }

    .social-links a {
        font-size: 12px;
    }

    footer {
        padding: 35px 20px;
    }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

    .book-card:hover {
        transform: none;
    }

}
