* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #0b0d10;
    color: #e8e8e8;
    line-height: 1.7;
}

a {
    color: inherit;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            180deg,
            rgba(5, 7, 9, 0.35),
            #0b0d10
        );
}

.nav {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 28px 0;

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

.logo {
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.16em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    opacity: 0.75;
}

.nav-links a:hover {
    opacity: 1;
}

.hero-content {
    width: min(1000px, 90%);
    margin: auto;
    padding: 80px 0 160px;
}

.eyebrow,
.section-label,
.card-type {
    font-family: Arial, sans-serif;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.65;
}

h1 {
    margin: 10px 0 20px;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.95;
    font-weight: normal;
}

.subtitle {
    max-width: 650px;
    font-size: 1.35rem;
    color: #b9bdc2;
}

.button {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 24px;

    border: 1px solid #777;

    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;

    transition: 0.2s;
}

.button:hover {
    background: #e8e8e8;
    color: #0b0d10;
}

.section {
    padding: 120px max(5%, calc((100% - 1200px) / 2));
}

.section-dark {
    background: #11151a;
}

.section h2 {
    margin-top: 5px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: normal;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.card {
    min-height: 320px;
    padding: 40px;
    border: 1px solid #292e35;
    background: #101318;
}

.card h3 {
    font-size: 2rem;
    font-weight: normal;
}

.card p {
    color: #b9bdc2;
}

.card-type {
    color: #e8e8e8 !important;
}

.wide-text {
    max-width: 800px;
    font-size: 1.2rem;
    color: #b9bdc2;
}

footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid #24282e;
    color: #777;
    font-family: Arial, sans-serif;
}

@media (max-width: 700px) {
    .nav-links {
        gap: 14px;
        font-size: 0.85rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}
@media (max-width: 900px) {
    .nav {
        align-items: flex-start;
        gap: 24px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px 18px;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .nav {
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    h1 {
        font-size: clamp(3.2rem, 18vw, 6rem);
    }

    .hero-content {
        padding-top: 40px;
    }
}
/* Internal pages */

.inner-header {
    min-height: 65vh;
    background:
        linear-gradient(
            180deg,
            #090b0e,
            #0b0d10
        );
}

.page-heading {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0 120px;
}

.page-heading h1 {
    font-size: clamp(4rem, 10vw, 8rem);
}

.active {
    opacity: 1 !important;
}


/* Books */

.book-feature {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: clamp(50px, 8vw, 120px);
    align-items: center;
}

.book-feature.reverse {
    grid-template-columns: 1fr minmax(240px, 380px);
}

.book-feature.reverse .book-cover-placeholder {
    order: 2;
}

.book-cover-placeholder {
    aspect-ratio: 2 / 3;
    border: 1px solid #353b43;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            145deg,
            #171b20,
            #0d1014
        );

    color: #666;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.book-info {
    max-width: 680px;
}

.book-info h2 {
    margin: 8px 0 30px;
    line-height: 1.05;
}

.book-description {
    max-width: 650px;
    font-size: 1.2rem;
    color: #b9bdc2;
}

.book-status {
    margin-top: 35px;
    padding-top: 20px;

    border-top: 1px solid #292e35;

    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #777;
}


@media (max-width: 750px) {
    .book-feature,
    .book-feature.reverse {
        grid-template-columns: 1fr;
    }

    .book-feature.reverse .book-cover-placeholder {
        order: 0;
    }

    .book-cover-placeholder {
        width: min(320px, 100%);
    }
}
/* Universe */

.universe-intro {
    min-height: 600px;
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #292e35;
    border-left: 1px solid #292e35;
}

.lore-card {
    min-height: 330px;
    padding: 45px;

    border-right: 1px solid #292e35;
    border-bottom: 1px solid #292e35;
}

.lore-number {
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #626871;
}

.lore-card h3 {
    margin: 35px 0 20px;
    font-size: 2.2rem;
    font-weight: normal;
}

.lore-card p {
    max-width: 450px;
    color: #aeb3b9;
}

.universe-quote {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.universe-quote blockquote {
    max-width: 950px;
    margin: 20px 0 0;

    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.2;
}

@media (max-width: 700px) {
    .lore-grid {
        grid-template-columns: 1fr;
    }

    .lore-card {
        min-height: auto;
    }
}
/* Characters */

.character-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #292e35;
    border-left: 1px solid #292e35;
}

.character-card {
    min-height: 420px;
    padding: 40px;

    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 35px;

    border-right: 1px solid #292e35;
    border-bottom: 1px solid #292e35;
}

.character-portrait {
    width: 110px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #353b43;
    background: linear-gradient(145deg, #171b20, #0d1014);

    font-size: 3rem;
    color: #555b63;
}

.character-era {
    margin-top: 0;

    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;

    color: #6f757d;
}

.character-content h2 {
    margin: 15px 0 25px;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: normal;
}

.character-content p:last-child {
    max-width: 430px;
    color: #aeb3b9;
}

.characters-note h2 {
    line-height: 1.05;
}


@media (max-width: 900px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 550px) {
    .character-card {
        grid-template-columns: 1fr;
    }

    .character-portrait {
        width: 90px;
        height: 120px;
    }
}
/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 18px;
}

.gallery-placeholder {
    min-height: 280px;

    display: flex;
    align-items: flex-end;

    padding: 30px;

    border: 1px solid #292e35;

    background:
        linear-gradient(
            145deg,
            #171b20,
            #0d1014
        );

    overflow: hidden;
}

.gallery-placeholder span {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #737981;
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

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

    .gallery-large {
        grid-column: span 2;
    }
}

@media (max-width: 550px) {
    .gallery-grid {
        display: block;
    }

    .gallery-placeholder {
        margin-bottom: 18px;
    }
}
/* Author */

.author-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: clamp(50px, 8vw, 120px);
    align-items: start;
}

.author-photo-placeholder {
    aspect-ratio: 4 / 5;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #353b43;

    background:
        linear-gradient(
            145deg,
            #171b20,
            #0d1014
        );

    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #666;
}

.author-text {
    max-width: 700px;
}

.author-text h2 {
    margin-top: 5px;
}

.author-text p:not(.section-label) {
    font-size: 1.15rem;
    color: #b9bdc2;
}

@media (max-width: 750px) {
    .author-layout {
        grid-template-columns: 1fr;
    }

    .author-photo-placeholder {
        width: min(320px, 100%);
    }
}
/* Real book covers */

.book-cover img,
.story-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.book-cover {
    width: 100%;
    max-width: 380px;
}

.book-cover img {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.world-stories-heading {
    margin-bottom: 70px;
}

.story-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(25px, 4vw, 55px);
}

.story-book{
    display:block;
    text-decoration:none;
    color:inherit;
}

.story-book:hover{
    transform:translateY(-6px);
    transition:.25s;
}

.story-cover {
    margin-bottom: 28px;
    overflow: hidden;
    background: #0b0d10;
}

.story-cover img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.story-book:hover .story-cover img {
    transform: scale(1.025);
}

.story-label {
    margin: 0 0 8px;

    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.16em;

    color: #6f757d;
}

.story-book h3 {
    margin: 0;

    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: normal;
}

.story-subtitle {
    margin-top: 5px;
    font-size: 1.1rem;
    color: #aeb3b9;
}

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

@media (max-width: 550px) {
    .story-books {
        grid-template-columns: 1fr;
    }
}
/* Hero artwork */

.hero {
    position: relative;
    isolation: isolate;

    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 9, 0.97) 0%,
            rgba(5, 7, 9, 0.82) 38%,
            rgba(5, 7, 9, 0.35) 70%,
            rgba(5, 7, 9, 0.25) 100%
        ),
        linear-gradient(
            0deg,
            #0b0d10 0%,
            transparent 35%
        ),
        url("images/covers/kharakternyky-part-1.jpg");

    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15),
            transparent 40%,
            #0b0d10 100%
        );
}

.hero .nav,
.hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-left: max(5%, calc((100% - 1200px) / 2));
    margin-right: auto;
}

.hero-content h1 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-content .subtitle {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

@media (max-width: 700px) {
    .hero {
        background-position: 58% center;
    }
}
/* Hero final tuning */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 9, 0.94) 0%,
            rgba(5, 7, 9, 0.72) 32%,
            rgba(5, 7, 9, 0.18) 68%,
            rgba(5, 7, 9, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            #0b0d10 0%,
            rgba(11, 13, 16, 0.7) 10%,
            transparent 32%
        ),
        url("images/covers/kharakternyky-part-1.jpg");

    background-size: cover;
    background-position: center 42%;
}

.hero::after {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            transparent 55%,
            rgba(11, 13, 16, 0.8) 100%
        );
}

.hero-content {
    width: min(900px, 90%);
    padding-top: 40px;
    padding-bottom: 120px;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 7.2rem);
    max-width: 900px;
}

.hero-content .subtitle {
    max-width: 620px;
}
/* Home page */

.home-book-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: clamp(60px, 9vw, 140px);
    align-items: center;
}

.home-book-cover img {
    display: block;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.home-book-content {
    max-width: 720px;
}

.text-link {
    display: inline-block;
    margin-top: 25px;

    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;

    text-decoration: none;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.text-link:hover {
    border-color: #ddd;
}

.home-section-heading {
    margin-bottom: 65px;
}

.home-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(25px, 4vw, 55px);
}

.home-story img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;

    transition: transform 0.3s ease;
}

.home-story:hover img {
    transform: translateY(-6px);
}

.home-story h3 {
    margin: 22px 0 0;

    font-size: 2rem;
    font-weight: normal;
}

.home-story p {
    margin-top: 3px;
    color: #888e95;
}

.home-more {
    margin-top: 50px;
}

.home-universe {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 60px;

    min-height: 650px;
    align-items: center;
}

.home-universe-number {
    font-size: clamp(8rem, 20vw, 18rem);
    line-height: 1;

    color: #161b20;
}

.home-universe-content {
    max-width: 750px;
}

.home-character-list {
    margin: 60px 0 35px;
    border-top: 1px solid #292e35;
}

.home-character-list div {
    display: grid;
    grid-template-columns: 80px 1fr;

    padding: 25px 0;

    border-bottom: 1px solid #292e35;
}

.home-character-list span {
    font-family: Arial, sans-serif;
    color: #5f656d;
}

.home-character-list strong {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: normal;
}

.home-author {
    min-height: 500px;
}

@media (max-width: 750px) {

    .home-book-layout {
        grid-template-columns: 1fr;
    }

    .home-book-cover {
        width: min(320px, 100%);
    }

    .home-stories {
        grid-template-columns: 1fr;
    }

    .home-universe {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-universe-number {
        font-size: 8rem;
    }
}

/* ==========================================
   BOOK LINKS
========================================== */

.story-book{
    display:block;
    color:inherit;
    text-decoration:none;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.story-book:hover{

    transform:translateY(-8px);

}

.story-book img{

    transition:transform .25s ease;

}

.story-book:hover img{

    transform:scale(1.03);

}