/* =========================================================
   R.C. JOHANSSON — AUTHOR WEBSITE
   MAIN STYLESHEET
   ========================================================= */


/* ---------------------------------------------------------
   1. GLOBAL VARIABLES
   --------------------------------------------------------- */

:root {
    --bg-main: #0d0e10;
    --bg-secondary: #131519;
    --bg-card: #181a1f;
    --bg-card-hover: #1d2026;

    --text-main: #f1eee8;
    --text-secondary: #aaa8a3;
    --text-muted: #777974;

    --accent: #b8945b;
    --accent-light: #d0ad72;
    --accent-dark: #8f7044;

    --border: #292c31;
    --border-light: #393c42;

    --max-width: 1180px;
    --narrow-width: 780px;

    --header-height: 78px;

    --transition: 0.25s ease;
}


/* ---------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

section {
    scroll-margin-top: var(--header-height);
}


/* ---------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------- */

h1,
h2,
h3 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;
    line-height: 1.15;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 6.7rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.7rem;
}

p {
    color: var(--text-secondary);
}

::selection {
    background: var(--accent);
    color: #111;
}


/* ---------------------------------------------------------
   4. HEADER
   --------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--header-height);

    display: flex;
    align-items: center;

    background: rgba(13, 14, 16, 0.92);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 1000;
}

.nav-container {
    width: min(var(--max-width), calc(100% - 48px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;

    color: var(--text-main);

    white-space: nowrap;
}

.site-logo:hover {
    color: var(--accent-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;

    color: var(--text-secondary);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    transition:
        color var(--transition);
}

.main-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;

    height: 1px;

    background: var(--accent);

    transition:
        right var(--transition);
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after {
    right: 0;
}


/* ---------------------------------------------------------
   5. MOBILE MENU BUTTON
   --------------------------------------------------------- */

.mobile-menu-button {
    display: none;

    width: 38px;
    height: 38px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 1px;

    margin: 6px 0;

    background: var(--text-main);
}


/* ---------------------------------------------------------
   6. HERO
   --------------------------------------------------------- */

.hero {
    min-height: 92vh;

    padding:
        calc(var(--header-height) + 80px)
        24px
        80px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    width: 800px;
    height: 800px;

    top: -320px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(184, 148, 91, 0.10) 0%,
            rgba(184, 148, 91, 0.035) 35%,
            transparent 70%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;

    max-width: 980px;
}

.hero-eyebrow {
    margin-bottom: 22px;

    color: var(--accent);

    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.32em;
}

.hero h1 {
    margin-bottom: 26px;
}

.hero-tagline {
    max-width: 650px;

    margin: 0 auto 42px;

    color: var(--text-secondary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(1.15rem, 2vw, 1.5rem);

    line-height: 1.6;
}


/* ---------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------- */

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-width: 190px;

    padding: 14px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #101112;
}

.button-primary:hover {
    background: var(--accent-light);
}

.button-secondary {
    border-color: var(--border-light);

    background: transparent;

    color: var(--text-main);
}

.button-secondary:hover {
    border-color: var(--accent);

    color: var(--accent-light);
}


/* ---------------------------------------------------------
   8. GENERAL SECTIONS
   --------------------------------------------------------- */

.section {
    padding: 110px 24px;

    border-top: 1px solid var(--border);
}

.section-container {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;
}

.narrow-container {
    max-width: var(--narrow-width);
}

.section-heading {
    margin-bottom: 60px;
}

.section-label {
    margin-bottom: 12px;

    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.book-series {
    color: var(--text-muted);

    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   9. NOW WRITING
   --------------------------------------------------------- */

.now-writing {
    background: var(--bg-secondary);
}

.featured-book {
    display: grid;

    grid-template-columns:
        minmax(220px, 340px)
        1fr;

    gap: clamp(40px, 7vw, 90px);

    align-items: center;
}

.book-cover-placeholder {
    aspect-ratio: 2 / 3;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: 1px solid var(--border-light);

    background:
        linear-gradient(
            145deg,
            #202229,
            #111318
        );

    overflow: hidden;

    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.35);
}

.book-cover-placeholder::before {
    content: "";

    position: absolute;

    inset: 14px;

    border: 1px solid rgba(184, 148, 91, 0.20);
}

.book-cover-placeholder span {
    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;

    z-index: 1;
}

.featured-book-info {
    max-width: 620px;
}

.status-badge {
    display: inline-block;

    margin-bottom: 24px;

    padding: 6px 11px;

    border: 1px solid rgba(184, 148, 91, 0.45);

    color: var(--accent-light);

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.book-description {
    margin-bottom: 36px;

    color: var(--text-main);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(1.25rem, 2vw, 1.65rem);

    line-height: 1.65;
}

.book-details {
    margin-bottom: 35px;

    border-top: 1px solid var(--border);
}

.book-detail {
    padding: 14px 0;

    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.detail-label {
    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-value {
    color: var(--text-main);

    font-size: 0.93rem;
}


/* ---------------------------------------------------------
   10. TEXT LINKS
   --------------------------------------------------------- */

.text-link {
    display: inline-block;

    color: var(--accent-light);

    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.text-link::after {
    content: "  →";

    display: inline-block;

    margin-left: 5px;

    transition:
        transform var(--transition);
}

.text-link:hover::after {
    transform: translateX(5px);
}


/* ---------------------------------------------------------
   11. BOOK GRID
   --------------------------------------------------------- */

.books-section {
    background: var(--bg-main);
}

.book-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 48px;
}

.book-card {
    display: grid;

    grid-template-columns: 210px 1fr;

    gap: 34px;

    padding: 30px;

    border: 1px solid var(--border);

    background: var(--bg-card);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.book-card:hover {
    background: var(--bg-card-hover);

    border-color: var(--border-light);

    transform: translateY(-3px);
}

.book-card .book-cover-placeholder {
    width: 100%;

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.25);
}

.book-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.book-card-content h3 {
    margin-bottom: 8px;
}

.book-card-content .book-series {
    margin-bottom: 22px;
}

.book-card-content > p:not(.book-series) {
    margin-bottom: 24px;

    font-size: 0.94rem;
}

.book-card-content .text-link {
    margin-top: auto;
}


/* ---------------------------------------------------------
   12. FANFICTION
   --------------------------------------------------------- */

.fanfiction-section {
    background: var(--bg-secondary);
}

.fanfiction-feature {
    max-width: 820px;

    padding: 48px;

    border-left: 2px solid var(--accent);

    background:
        linear-gradient(
            90deg,
            rgba(184, 148, 91, 0.055),
            transparent
        );
}

.fanfiction-feature h3 {
    margin-bottom: 8px;

    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.fanfiction-feature .book-series {
    margin-bottom: 24px;
}

.fanfiction-feature p:not(.book-series) {
    max-width: 650px;

    margin-bottom: 28px;
}

.fanfiction-disclaimer {
    max-width: 760px;

    margin-top: 45px;

    color: var(--text-muted);

    font-size: 0.75rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   13. ABOUT
   --------------------------------------------------------- */

.about-section {
    min-height: 500px;

    display: flex;
    align-items: center;
}

.about-section h2 {
    margin-bottom: 30px;
}

.about-section p:not(.section-label) {
    margin-bottom: 28px;

    color: var(--text-secondary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.15rem;

    line-height: 1.85;
}


/* ---------------------------------------------------------
   14. UPDATES
   --------------------------------------------------------- */

.updates-section {
    background: var(--bg-secondary);
}

.updates-list {
    max-width: 860px;

    border-top: 1px solid var(--border);
}

.update-item {
    padding: 32px 0;

    display: grid;

    grid-template-columns:
        150px
        minmax(180px, 280px)
        1fr;

    gap: 30px;

    align-items: baseline;

    border-bottom: 1px solid var(--border);
}

.update-item time {
    color: var(--text-muted);

    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.update-item h3 {
    font-size: 1.25rem;
}

.update-item p {
    font-size: 0.92rem;
}


/* ---------------------------------------------------------
   15. CONTACT
   --------------------------------------------------------- */

.contact-section {
    text-align: center;

    padding-top: 130px;
    padding-bottom: 130px;
}

.contact-section h2 {
    margin-bottom: 24px;
}

.contact-section p:not(.section-label) {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.1rem;
}


/* ---------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------- */

.site-footer {
    padding: 38px 24px;

    border-top: 1px solid var(--border);

    background: #090a0c;
}

.footer-container {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-container p {
    color: var(--text-muted);

    font-size: 0.72rem;
}


/* ---------------------------------------------------------
   17. RESPONSIVE — TABLETS
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .main-nav {
        gap: 20px;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        grid-template-columns:
            minmax(170px, 220px)
            1fr;
    }
}


/* ---------------------------------------------------------
   18. RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

    :root {
        --header-height: 68px;
    }


    .nav-container {
        width: min(100% - 36px, var(--max-width));
    }

.mobile-menu-button {
    display: block;
}

.main-nav {
    display: none;

    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;

    padding: 28px 24px 32px;

    flex-direction: column;
    align-items: center;
    gap: 24px;

    background: rgba(13, 14, 16, 0.98);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.main-nav.is-open {
    display: flex;
}

.mobile-menu-button span {
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

    .hero {
        min-height: 85vh;

        padding-top:
            calc(var(--header-height) + 70px);
    }


    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }


    .button {
        width: 100%;
        max-width: 280px;
    }


    .section {
        padding: 80px 20px;
    }


    .section-heading {
        margin-bottom: 45px;
    }


    .featured-book {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .featured-book > .book-cover-placeholder {
        width: min(280px, 80%);

        margin: 0 auto;
    }


    .book-detail {
        grid-template-columns: 1fr;

        gap: 3px;
    }


    .book-card {
        grid-template-columns: 1fr;

        padding: 24px;
    }


    .book-card .book-cover-placeholder {
        width: min(230px, 75%);

        margin: 0 auto;
    }


    .fanfiction-feature {
        padding: 36px 24px;
    }


    .update-item {
        grid-template-columns: 1fr;

        gap: 8px;

        padding: 28px 0;
    }


    .footer-container {
        flex-direction: column;

        text-align: center;
    }
}


/* ---------------------------------------------------------
   19. VERY SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 440px) {

    h1 {
        font-size: 3rem;
    }


    .site-logo {
        font-size: 0.78rem;

        letter-spacing: 0.13em;
    }


    .hero-tagline {
        font-size: 1.05rem;
    }


    .section {
        padding-left: 17px;
        padding-right: 17px;
    }
}

/* ---------------------------------------------------------
   REAL BOOK COVERS
   --------------------------------------------------------- */

.book-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;

    border: 1px solid var(--border-light);

    background: var(--bg-card);

    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.35);
}

.book-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* =========================================================
   BOOK PAGE
   ========================================================= */


/* ---------------------------------------------------------
   BOOK HERO
   --------------------------------------------------------- */

.book-page-hero {
    padding:
        calc(var(--header-height) + 85px)
        24px
        105px;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(184, 148, 91, 0.07),
            transparent 35%
        ),
        var(--bg-main);

    border-bottom: 1px solid var(--border);
}

.book-page-container {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(260px, 390px)
        1fr;

    gap: clamp(55px, 8vw, 110px);

    align-items: center;
}

.book-page-cover {
    width: 100%;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.48);
}

.book-page-cover img {
    display: block;

    width: 100%;
    height: auto;
}

.book-page-intro {
    max-width: 680px;
}

.book-page-intro h1 {
    margin-bottom: 18px;

    font-size: clamp(3rem, 6vw, 5.6rem);
}

.book-page-subtitle {
    margin-bottom: 30px;

    color: var(--text-muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.05rem;
}

.book-page-status {
    margin-bottom: 6px;
}

.book-page-lead {
    max-width: 640px;

    margin: 18px 0 42px;

    color: var(--text-main);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(1.3rem, 2vw, 1.75rem);

    line-height: 1.65;
}

.book-page-meta {
    border-top: 1px solid var(--border);
}

.book-meta-item {
    padding: 14px 0;

    display: grid;

    grid-template-columns:
        175px
        1fr;

    gap: 20px;

    border-bottom: 1px solid var(--border);
}


/* ---------------------------------------------------------
   SYNOPSIS
   --------------------------------------------------------- */

.book-synopsis {
    background: var(--bg-secondary);
}

.book-synopsis h2 {
    margin-bottom: 38px;
}

.synopsis-text p {
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.12rem;
    line-height: 1.9;
}

.synopsis-text p:first-child {
    color: var(--text-main);

    font-size: 1.25rem;
}


/* ---------------------------------------------------------
   CHARACTERS
   --------------------------------------------------------- */

.book-characters {
    background: var(--bg-main);
}

.character-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 38px;
}

.character-card {
    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--bg-card);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.character-card:hover {
    transform: translateY(-4px);

    border-color: var(--border-light);

    background: var(--bg-card-hover);
}

.character-image-placeholder {
    aspect-ratio: 16 / 10;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background:
        linear-gradient(
            145deg,
            #202229,
            #111318
        );

    border-bottom: 1px solid var(--border);
}

.character-image-placeholder::before {
    content: "";

    position: absolute;

    inset: 14px;

    border: 1px solid rgba(184, 148, 91, 0.17);
}

.character-image-placeholder span {
    position: relative;
    z-index: 1;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.character-card-content {
    padding: 34px;
}

.character-origin {
    margin-bottom: 8px;

    color: var(--accent);

    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.character-card-content h3 {
    margin-bottom: 22px;

    font-size: 2rem;
}

.character-card-content p:not(.character-origin) {
    margin-bottom: 18px;

    font-size: 0.95rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   GALLERY
   --------------------------------------------------------- */

.book-gallery-section {
    background: var(--bg-secondary);
}

.book-gallery-section .section-heading > p:last-child {
    max-width: 600px;
}

.book-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.gallery-placeholder {
    min-height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            #1c1f24,
            #101216
        );
}

.gallery-placeholder::before {
    content: "";

    position: absolute;

    inset: 12px;

    border: 1px solid rgba(184, 148, 91, 0.12);
}

.gallery-placeholder span {
    position: relative;
    z-index: 1;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.gallery-large {
    grid-column: 1 / -1;

    min-height: 470px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #101216;
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 2;
    border: 1px solid rgba(184, 148, 91, 0.14);
    pointer-events: none;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(8, 9, 11, 0.78) 0%,
        rgba(8, 9, 11, 0.28) 35%,
        rgba(8, 9, 11, 0) 62%
    );
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.55s ease,
        filter 0.55s ease;
    filter: brightness(0.94);
}

.gallery-card:hover img {
    transform: scale(1.035);
    filter: brightness(1);
}

.gallery-card:hover::after {
    opacity: 0.9;
}

.gallery-caption {
    position: absolute;
    left: 30px;
    bottom: 25px;
    z-index: 3;
    color: var(--text);
    pointer-events: none;
}

.gallery-caption-title {
    display: block;
    margin-bottom: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-caption-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}


/* ---------------------------------------------------------
   PROJECT STATUS
   --------------------------------------------------------- */

.project-status-section {
    background: var(--bg-main);
}

.project-status-section h2 {
    margin-bottom: 42px;
}

.project-status-box {
    border-top: 1px solid var(--border);
}

.project-status-row {
    padding: 18px 0;

    display: grid;

    grid-template-columns:
        190px
        1fr;

    gap: 30px;

    border-bottom: 1px solid var(--border);
}


/* ---------------------------------------------------------
   FANFICTION NOTICE
   --------------------------------------------------------- */

.fanfiction-notice-section {
    padding-top: 75px;
    padding-bottom: 75px;

    background: var(--bg-secondary);
}

.fanfiction-notice {
    margin-bottom: 14px;

    color: var(--text-muted);

    font-size: 0.78rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   BACK LINK
   --------------------------------------------------------- */

.book-back-section {
    padding: 48px 24px;

    text-align: center;

    border-top: 1px solid var(--border);

    background: var(--bg-main);
}


/* ---------------------------------------------------------
   BOOK PAGE — TABLET
   --------------------------------------------------------- */

@media (max-width: 950px) {

    .book-page-container {
        grid-template-columns:
            minmax(220px, 310px)
            1fr;

        gap: 50px;
    }

    .character-grid {
        gap: 24px;
    }

}


/* ---------------------------------------------------------
   BOOK PAGE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .book-page-hero {
        padding:
            calc(var(--header-height) + 55px)
            20px
            75px;
    }

    .book-page-container {
        grid-template-columns: 1fr;

        gap: 48px;
    }

    .book-page-cover {
        width: min(310px, 82%);

        margin: 0 auto;
    }

    .book-page-intro {
        text-align: left;
    }

    .book-page-intro h1 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
    }

    .book-meta-item {
        grid-template-columns: 1fr;

        gap: 3px;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    .book-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-large {
        grid-column: auto;

        min-height: 320px;
    }

    .gallery-placeholder {
        min-height: 260px;
    }

    .project-status-row {
        grid-template-columns: 1fr;

        gap: 3px;
    }

}

/* ---------------------------------------------------------
   CHARACTER IMAGES
   --------------------------------------------------------- */

.character-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-bottom: 1px solid var(--border);

    background: var(--bg-card);
}

.character-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.language-switcher a {
    color: inherit;
    text-decoration: none;
    opacity: 0.65;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-current {
    color: var(--gold, #b89b6a);
    font-weight: 600;
}