:root {
    --bg: #11171f;
    --panel: #1a222c;
    --text: #f3eae0;
    --muted: #c0b8b0;
    --gold: #d9bb87;
    --line: #ffffff20;
    --serif: Georgia,'Times New Roman',serif;
    --sans: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
}

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

a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

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

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

h1,h2,h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(2.7rem,5.9vw,5.4rem);
    letter-spacing: -.045em;
}

h2 {
    font-size: clamp(2rem,3.8vw,3.3rem);
    letter-spacing: -.025em;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin: 0 0 1.15rem;
}

p:last-child {
    margin-bottom: 0;
}

.wrap {
    width: min(1160px,calc(100% - 64px));
    margin: auto;
}

.skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: var(--gold);
    color: var(--bg);
    padding: 10px;
    z-index: 20;
}

.skip:focus {
    top: 10px;
}

header {
    background: #11171ff5;
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font: 1.65rem var(--serif);
    letter-spacing: -.04em;
    white-space: nowrap;
}

.brand img {
    width: 38px;
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 27px;
    align-items: center;
    flex-wrap: wrap;
    font-size: .85rem;
}

.nav-links a {
    color: var(--muted);
    padding: 8px 0;
}

.nav-links a[aria-current=page] {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

.eyebrow {
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    display: flex;
    align-items: center;
    background: #171c23;
}

.hero-art {
    position: absolute;
    inset: 0 0 0 38%;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    opacity: .96;
}

.hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#11171f 0%,#11171ff7 28%,#11171fc9 43%,#11171f20 73%,#11171f30 100%),linear-gradient(0deg,#11171f 0%,transparent 22%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
    padding: 78px 0 95px;
}

.hero-copy {
    max-width: 600px;
}

.hero h1 em {
    color: var(--gold);
    font-weight: 400;
}

.lead {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 650px;
}

.hero .lead {
    max-width: 480px;
    color: #e1d8cf;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    background: var(--gold);
    color: #17191e;
    font-weight: 680;
    font-size: .86rem;
    border: 1px solid var(--gold);
    border-radius: 3px;
}

.btn:hover {
    background: #ead1a9;
    text-decoration: none;
}

.btn.secondary {
    background: transparent;
    color: var(--gold);
    border-color: #d9bb8780;
}

.btn.secondary:hover {
    background: #d9bb871a;
}

.section {
    padding: 72px 0;
}

.section.tinted {
    background: #171e28;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.heading-row h2 {
    margin: 0;
}

.heading-row p {
    margin: 8px 0 0;
    color: var(--muted);
}

.themes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    border: 1px solid #d9bb8750;
    color: #e0c9a6;
    padding: 5px 12px;
    font-size: .75rem;
    letter-spacing: .025em;
    border-radius: 2px;
}

.band {
    padding: 22px 0;
    border-block: 1px solid var(--line);
    background: #171e28;
}

.band .themes {
    justify-content: center;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
}

.card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%,#65544944,#10151d 80%);
    height: 345px;
    padding: 22px;
}

.card-art img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px #0007);
}

.card-art:hover img {
    filter: drop-shadow(0 12px 15px #000b) brightness(1.06);
}

.card-body {
    padding: 24px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: start;
}

.card-body h3 {
    font-size: 1.65rem;
}

.card-body h3 a {
    color: var(--text);
}

.small {
    font-size: .8rem;
    color: var(--muted);
}

.card-body p {
    color: var(--muted);
    font-size: .95rem;
}

.card-body .text-link {
    margin-top: auto;
    font-size: .86rem;
    font-weight: 650;
}

.status {
    font-size: .69rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.teaser-art {
    position: relative;
    height: 100%;
    aspect-ratio: 8/11;
    overflow: hidden;
    border: 1px solid #d9bb8755;
    background: #171d28;
}

.teaser-art img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: none;
}

.teaser-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    padding: 16% 8% 12%;
    background: linear-gradient(#0e131b66,transparent 36%,transparent 65%,#101720c9);
}

.teaser-text b {
    font: clamp(1.3rem,2.6vw,2.35rem)/1.15 var(--serif);
    color: #f3e7d4;
    text-shadow: 0 2px 8px #111;
}

.teaser-text span {
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

.intro {
    padding: 70px 0 58px;
    background: radial-gradient(ellipse at 75% 0%,#59434855,transparent 65%),#171e28;
    border-bottom: 1px solid var(--line);
}

.intro h1 {
    font-size: clamp(2.6rem,5vw,4.6rem);
}

.crumb {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 52px;
    align-items: center;
}

.feature-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 4px;
    object-position: 50% 49%;
    border: 1px solid var(--line);
}

.series-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.series-card>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 440px;
}

.series-info {
    padding: 40px;
    align-self: center;
}

.book-main {
    display: grid;
    grid-template-columns: minmax(250px,370px) minmax(0,1fr);
    gap: 65px;
    align-items: start;
}

.book-main h1 {
    font-size: clamp(2.6rem,4.6vw,4.15rem);
}

.cover-frame {
    padding: 24px;
    background: radial-gradient(ellipse,#52483b55,#10151d 85%);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.cover-frame>img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px #0008);
}

.cover-frame .teaser-art {
    width: 100%;
}

.quote {
    font: italic 1.55rem/1.45 var(--serif);
    color: var(--gold);
    border-left: 2px solid #d9bb8780;
    padding: 0 0 0 20px;
    margin: 22px 0 25px;
}

.book-copy p {
    color: #dad1c8;
}

.book-copy .themes {
    margin: 25px 0;
}

.note {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 12px;
}

.series-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.future {
    border: 1px solid var(--line);
    padding: 30px 34px;
    background: #1a222c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.future h3 {
    margin-bottom: 6px;
}

.future p {
    color: var(--muted);
    max-width: 620px;
}

.about-mark {
    display: grid;
    place-items: center;
    min-height: 340px;
    background: radial-gradient(ellipse,#61485455,transparent 70%),#171e28;
    border: 1px solid var(--line);
}

.about-mark img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

.foot {
    padding: 42px 0 25px;
    border-top: 1px solid var(--line);
    background: #0e141b;
}

.foot-main {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.foot .brand {
    font-size: 1.45rem;
}

.foot-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .85rem;
}

.foot p {
    color: var(--muted);
    font-size: .85rem;
    margin-top: 12px;
}

.copyright {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 20px;
    font-size: .75rem;
    color: var(--muted);
}

@media(max-width:850px) {
    .book-grid {
        gap: 15px;
    }

    .card-art {
        height: 270px;
        padding: 15px;
    }

    .card-body {
        padding: 18px;
    }

    .book-main {
        gap: 30px;
        grid-template-columns: minmax(200px,32%) 1fr;
    }

    .feature {
        gap: 25px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero {
        min-height: 560px;
    }

}

@media(max-width:630px) {
    .wrap {
        width: calc(100% - 36px);
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }

    .nav-links {
        gap: 18px;
        font-size: .8rem;
    }

    .nav-links a {
        padding: 5px 0;
    }

    .hero {
        min-height: 640px;
        align-items: end;
    }

    .hero-art {
        inset: 0;
        width: 100%;
        height: 100%;
        object-position: 50% 20%;
        opacity: .9;
    }

    .hero:after {
        background: linear-gradient(0deg,#11171f 0%,#11171f 18%,#11171fef 39%,#11171f60 73%,#11171f10 100%);
    }

    .hero .wrap {
        padding: 230px 0 43px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .section {
        padding: 48px 0;
    }

    .heading-row {
        display: block;
    }

    .heading-row>a {
        display: inline-block;
        margin-top: 13px;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .card-art {
        height: 345px;
    }

    .card-body {
        padding: 23px;
    }

    .feature,.series-card,.book-main {
        grid-template-columns: 1fr;
    }

    .series-info {
        padding: 25px;
    }

    .series-card>img {
        max-height: 280px;
    }

    .cover-frame {
        max-width: 335px;
        margin: auto;
        width: 100%;
    }

    .book-main h1 {
        font-size: 2.8rem;
    }

    .intro {
        padding: 40px 0;
    }

    .future {
        display: block;
        padding: 25px;
    }

    .future .btn {
        margin-top: 18px;
    }

    .about-mark {
        min-height: 220px;
    }

    .foot-links {
        gap: 16px;
    }

    .teaser-text b {
        font-size: 1.85rem;
    }

}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

}

/* Book trailers: responsive on desktop and Samsung/mobile browsers */
.book-trailer {
    display: block;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.trailer-frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0e141b;
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 24px;
}

.trailer-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-fallback {
    margin-top: 14px;
    font-size: .9rem;
    color: var(--muted);
}

@media (max-width: 630px) {
    .book-trailer {
        width: 100%;
    }
}
