:root {
    --ink: #263b40;
    --teal: #245d65;
    --paper: #fffdf9;
    --cream: #f4ede5;
    --rose: #e8d7cc;
    --line: #d9cec4;
    --muted: #5d696b
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
}

a {
    color: var(--teal);
    text-underline-offset: 5px
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #a77b3d;
    outline-offset: 5px
}

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

h1,
h2,
h3,
.brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(38px, 5.3vw, 74px);
    line-height: 1.06;
    letter-spacing: -2px;
    margin-bottom: 25px
}

h2 {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.16;
    letter-spacing: -1px;
    margin-bottom: 25px
}

h3 {
    font-size: 26px;
    line-height: 1.25
}

p {
    margin-bottom: 24px
}

.wrap {
    max-width: 1160px;
    margin: auto;
    padding-left: 32px;
    padding-right: 32px
}

.section {
    padding-top: 86px;
    padding-bottom: 86px
}

.eyebrow {
    display: block;
    font: 600 12px/1.7 system-ui, sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px
}

.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    background: white;
    padding: 12px;
    z-index: 10
}

.skip:focus {
    top: 12px
}

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

.header-inner {
    max-width: 1320px;
    margin: auto;
    padding: 23px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px
}

.brand {
    color: var(--ink);
    text-decoration: none;
    display: block;
    font-size: 35px;
    line-height: 1.1;
    white-space: nowrap
}

.brand span {
    display: block;
    font: 10px/2 system-ui, sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-top: 7px
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap
}

nav a {
    font-size: 13px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent
}

nav a:hover,
nav a[aria-current] {
    border-color: var(--teal)
}

.hero {
    background: linear-gradient(90deg, rgba(31, 29, 27, .55), rgba(51, 36, 32, .05)), url('/assets/hero.png') center/cover;
    color: white
}

.hero-inner {
    max-width: 1240px;
    margin: auto;
    padding: 50px 60px 24px
}

.slide {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
    min-height: 480px
}

.slide[hidden] {
    display: none
}

.hero .eyebrow {
    color: #f3ddd0
}

.hero h1 {
    max-width: 650px
}

.hero-copy p {
    font-size: 20px;
    max-width: 530px;
    color: #fff9f2
}

.hero-cover {
    display: flex;
    justify-content: center
}

.hero-cover img {
    width: 330px;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px #231c1a70)
}

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

.button {
    display: inline-block;
    padding: 13px 23px;
    background: var(--teal);
    border: 1px solid var(--teal);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: background .15s
}

.button:hover {
    background: #17434a
}

.button.secondary {
    background: transparent;
    color: var(--teal)
}

.button.secondary:hover {
    background: #245d650c
}

.hero .button {
    background: #f4eee6;
    border-color: #f4eee6;
    color: #223d42
}

.hero .button:hover {
    background: white
}

.hero .button.secondary {
    background: transparent;
    color: white;
    border-color: #eadfd6
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    color: #fff5eb
}

.carousel-controls[hidden] {
    display: none
}

.carousel-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff70;
    background: transparent;
    color: white;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer
}

.carousel-controls button:hover {
    background: #ffffff20
}

.carousel-controls span {
    font-size: 13px
}

.carousel-caption {
    margin-left: 8px;
    opacity: .8
}

.section-title {
    max-width: 650px;
    margin: 0 auto 48px;
    text-align: center
}

.section-title p {
    max-width: 610px
}

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

.book-card {
    text-align: center
}

.book-card img {
    height: 330px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 28px;
    object-fit: contain;
    box-shadow: 7px 9px 14px #253a3f20
}

.book-card h3 {
    min-height: 66px;
    margin-bottom: 15px
}

.book-card p {
    font-size: 15px;
    max-width: 250px;
    margin: 0 auto 18px
}

.text-link {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 12px 0
}

.text-link:hover {
    text-decoration: underline
}

.review-band {
    background: var(--cream);
    padding: 65px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

blockquote {
    font: italic 28px/1.5 Georgia, serif;
    max-width: 830px;
    margin: 18px auto 24px
}

.review-band p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.writing-image {
    width: 100%;
    aspect-ratio: 1.15;
    object-fit: cover
}

.signup-band {
    background: #e8eeed;
    padding: 66px 0
}

.signup-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.signup-layout p {
    max-width: 420px
}

.form-placeholder {
    padding: 28px;
    border: 1px dashed #7d9396;
    background: #fffdf980
}

.form-placeholder p {
    font-size: 15px;
    margin-bottom: 0
}

.form-placeholder .eyebrow {
    margin-bottom: 10px;
    font-size: 11px
}

.page-heading {
    padding-top: 70px;
    padding-bottom: 38px;
    text-align: center;
    max-width: 930px
}

.page-heading h1 {
    font-size: clamp(40px, 5vw, 64px)
}

.page-heading p {
    max-width: 740px;
    margin: 0 auto;
    font-size: 19px
}

.book-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 65px;
    padding-bottom: 70px;
    border-top: 1px solid var(--line)
}

.detail-cover img {
    width: 260px;
    box-shadow: 9px 13px 18px #263b4025;
    margin: auto
}

.book-tag {
    font: italic 22px/1.5 Georgia, serif;
    color: var(--teal)
}

details {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0
}

summary {
    cursor: pointer;
    color: var(--teal);
    font-size: 15px;
    font-weight: 600
}

details p:first-of-type {
    margin-top: 24px
}

details p {
    font-size: 16px
}

.narrow {
    max-width: 720px
}

.form-section {
    padding-top: 20px;
    padding-bottom: 90px
}

.mini-covers {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin: 20px auto 40px
}

.mini-covers img {
    width: 26%;
    max-width: 155px;
    box-shadow: 4px 7px 12px #263b4020
}

.muted {
    font-size: 13px;
    color: var(--muted);
    margin-top: 18px
}

.audio-image {
    max-height: 490px;
    object-fit: contain;
    margin: auto
}

.sample-box {
    border-top: 1px solid var(--line);
    padding-top: 25px;
    margin-top: 28px
}

.sample-box h3 {
    font-size: 23px;
    margin-bottom: 12px
}

.sample-box p {
    font-size: 14px
}

.bio p {
    font-size: 17px
}

.vip-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 70px;
    padding-top: 20px
}

.vip-image {
    aspect-ratio: 2.3;
    object-fit: cover;
    width: 100%;
    margin-bottom: 36px
}

.benefits {
    padding-left: 22px;
    font-size: 16px
}

.benefits li {
    padding: 5px 0
}

.vip-form {
    background: var(--cream);
    padding: 35px;
    align-self: start;
    border: 1px solid var(--line)
}

.vip-form p {
    font-size: 15px
}

footer {
    background: #243b40;
    color: #e7e7df;
    padding: 48px 0 20px;
    font-size: 13px
}

footer a {
    color: #e7e7df
}

footer .brand {
    color: white;
    font-size: 31px
}

.footer-inner {
    max-width: 1160px;
    margin: auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px
}

.footer-inner h2 {
    font: 500 12px system-ui, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 5px 0 20px
}

.footer-inner a:not(.brand) {
    display: block;
    text-decoration: none;
    margin-bottom: 12px
}

.footer-inner a:hover {
    text-decoration: underline
}

.footer-inner p {
    margin-top: 18px;
    color: #c6d2d2
}

.legal {
    max-width: 1096px;
    margin: 25px auto 0;
    border-top: 1px solid #ffffff20;
    padding: 22px 0 0;
    font-size: 11px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

@media(max-width:900px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 22px
    }

    .brand {
        text-align: center
    }

    nav {
        justify-content: center;
        gap: 20px
    }

    .hero-inner {
        padding: 40px 32px 25px
    }

    .slide {
        gap: 25px;
        min-height: 410px
    }

    .hero-cover img {
        width: 250px;
        max-height: 360px
    }

    .book-grid {
        gap: 25px
    }

    .book-card img {
        height: 270px
    }

    .split,
    .signup-layout,
    .vip-layout {
        gap: 35px
    }

    .book-detail {
        grid-template-columns: 230px 1fr;
        gap: 40px
    }

    .detail-cover img {
        width: 220px
    }

    .legal {
        margin-left: 32px;
        margin-right: 32px
    }
}

@media(max-width:620px) {
    body {
        font-size: 16px
    }

    .wrap {
        padding-left: 23px;
        padding-right: 23px
    }

    nav {
        gap: 7px 20px
    }

    nav a {
        font-size: 12px;
        padding: 4px 0
    }

    .brand {
        font-size: 31px
    }

    .hero-inner {
        padding: 34px 24px 22px
    }

    .slide {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: unset
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.5px
    }

    .hero-copy p {
        font-size: 17px
    }

    .hero-cover img {
        height: 260px;
        width: auto
    }

    .hero .actions {
        margin: 20px 0 0
    }

    .hero-cover {
        grid-row: 2
    }

    .carousel-controls {
        justify-content: center
    }

    .carousel-caption {
        display: none
    }

    .section {
        padding-top: 55px;
        padding-bottom: 55px
    }

    .section-title {
        margin-bottom: 32px
    }

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

    .book-card img {
        height: 300px
    }

    .book-card h3 {
        min-height: unset
    }

    .book-card p {
        max-width: 300px
    }

    .split,
    .signup-layout,
    .vip-layout,
    .book-detail {
        grid-template-columns: 1fr
    }

    .split {
        gap: 28px
    }

    .writing-image {
        max-height: 300px
    }

    .signup-band {
        padding: 48px 0
    }

    .review-band {
        padding: 43px 0
    }

    blockquote {
        font-size: 23px
    }

    .book-detail {
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 45px
    }

    .detail-cover img {
        width: 220px
    }

    .page-heading {
        padding-top: 48px;
        padding-bottom: 30px
    }

    .page-heading p {
        font-size: 17px
    }

    .vip-form {
        padding: 24px
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 0 23px
    }

    .footer-inner>div:first-child {
        grid-column: 1/-1
    }

    .footer-inner .brand {
        text-align: left
    }

    .legal {
        margin-left: 23px;
        margin-right: 23px
    }

    .button {
        padding: 12px 17px
    }

    .form-section {
        padding-bottom: 55px
    }
}

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

    * {
        transition: none !important
    }
}

.join-nav {
    position: relative
}

.join-toggle {
    font: inherit;
    font-size: 13px;
    color: var(--teal);
    border: 0;
    background: transparent;
    padding: 8px 0;
    cursor: pointer
}

.join-toggle span {
    margin-left: 5px
}

.join-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 170px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px #263b4020;
    padding: 10px 16px;
    z-index: 20
}

.join-menu[hidden] {
    display: none
}

.join-menu a {
    display: block;
    padding: 9px 0
}

.hero[data-book="1"] {
    background: linear-gradient(90deg, rgba(5, 18, 29, .72), rgba(5, 18, 29, .18)), url('/assets/night-sea.webp') center/cover
}

.hero[data-book="2"] {
    background: linear-gradient(90deg, rgba(9, 25, 39, .78), rgba(9, 25, 39, .2)), url('/assets/blizzard.webp') center/cover
}

.hero-join {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center
}

.hero-join p {
    flex-basis: 100%;
    font: italic 18px/1.4 Georgia, serif;
    margin: 0 0 2px;
    color: #fff9f2
}

.hero-join a {
    color: white;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 5px
}

.hero-join a:hover {
    color: #f3ddd0
}

@media(max-width:620px) {
    .join-toggle {
        font-size: 12px;
        padding: 4px 0
    }

    .hero-join {
        margin-top: 22px
    }

    .join-menu {
        right: -10px
    }
}

.hero[data-book="join"] {
    background: linear-gradient(90deg, rgba(35, 30, 20, .78), rgba(35, 30, 20, .1)), url('/assets/reader-bench.webp') center/cover
}

.invitation-slide {
    grid-template-columns: 1fr;
    min-height: 480px
}

.invitation-slide .hero-copy {
    max-width: 650px
}

.invitation-slide h1 {
    max-width: 610px
}

.review-slide[hidden],
.review-controls[hidden] {
    display: none
}

.review-slide {
    min-height: 235px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.review-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 28px
}

.review-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--teal);
    color: var(--teal);
    background: transparent;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer
}

.review-controls button:hover {
    background: #245d6510
}

.review-controls span {
    font-size: 13px
}

@media(max-width:620px) {
    .slide {
        min-height: 560px
    }

    .invitation-slide {
        min-height: 560px
    }

    .hero[data-book="join"] {
        background-position: 62% center
    }

    .review-slide {
        min-height: 350px
    }
}

/* Responsive navigation and reader pages */
.nav-toggle {
    display: none
}

.newsletter-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 55px;
    align-items: center;
    padding-top: 20px
}

.newsletter-layout>div {
    min-width: 0
}

.newsletter-image {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    object-position: 65% center
}

.contact-section {
    text-align: center
}

.reveal-email {
    font-family: inherit;
    cursor: pointer
}

.email-details {
    margin-top: 24px
}

.email-details[hidden] {
    display: none
}

.contact-email {
    font-size: 20px;
    overflow-wrap: anywhere
}

.hamburger {
    display: grid;
    gap: 4px;
    width: 21px
}

.hamburger span {
    display: block;
    height: 2px;
    background: currentColor
}

.nav-toggle {
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--teal);
    font: 500 14px system-ui, sans-serif;
    cursor: pointer
}

@media(max-width:900px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between
    }

    .header-inner .brand {
        text-align: left
    }

    .nav-toggle {
        display: flex
    }

    #main-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 10px
    }

    #main-navigation.is-open {
        display: flex
    }

    #main-navigation>a {
        font-size: 16px;
        padding: 12px 4px;
        min-height: 44px
    }

    .join-toggle {
        font-size: 16px;
        min-height: 44px;
        padding: 12px 4px;
        width: 100%;
        text-align: left
    }

    .join-menu {
        position: static;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        margin: 0 0 10px 4px;
        padding: 0 16px
    }

    .join-menu a {
        font-size: 15px;
        min-height: 44px;
        padding: 10px 0
    }

    .newsletter-layout {
        gap: 30px
    }
}

@media(max-width:620px) {
    .header-inner {
        padding: 17px 23px
    }

    .brand span {
        font-size: 9px;
        letter-spacing: 1px
    }

    .newsletter-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 10px
    }

    .newsletter-image {
        aspect-ratio: 1.5;
        max-height: 320px
    }

    .header-inner .brand {
        font-size: 29px
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 43px)
    }

    .slide,
    .invitation-slide {
        min-width: 0
    }

    .hero-copy {
        min-width: 0
    }

    .carousel-controls {
        gap: 14px
    }
}

@media(max-width:360px) {
    .header-inner {
        padding-left: 16px;
        padding-right: 16px;
        gap: 8px
    }

    .nav-toggle {
        gap: 7px;
        padding: 9px
    }

    .brand span {
        letter-spacing: .5px
    }

    .hero-inner {
        padding-left: 20px;
        padding-right: 20px
    }
}

/* Original feather branding and image-led reader invitations */
.header-inner .header-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left
}

.brand-feather {
    width: 60px;
    height: 50px;
    object-fit: contain;
    flex: none
}

.reader-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 390px;
    padding: 64px 0;
    text-align: center;
    overflow: hidden;
    background: #243b40
}

.reader-hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2
}

.reader-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 25, 27, .66), rgba(12, 25, 27, .53), rgba(12, 25, 27, .66));
    z-index: -1
}

.reader-hero-copy {
    width: 100%;
    max-width: 1000px;
    color: #fff
}

.reader-hero .eyebrow {
    color: #fff1df
}

.reader-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    text-wrap: balance;
    text-shadow: 0 2px 12px #0004
}

.reader-hero p {
    max-width: 690px;
    margin: 0 auto;
    font-size: 19px;
    text-wrap: balance
}

.newsletter-signup {
    padding-top: 48px;
    padding-bottom: 65px
}

.vip-layout {
    padding-top: 55px
}

@media(max-width:620px) {
    .brand-feather {
        width: 42px;
        height: 40px
    }

    .header-inner .header-brand {
        gap: 8px;
        font-size: 26px
    }

    .header-brand span {
        font-size: 8px;
        letter-spacing: .6px
    }

    .reader-hero {
        min-height: 330px;
        padding: 48px 0
    }

    .reader-hero h1 {
        letter-spacing: -1px;
        margin-bottom: 20px
    }

    .reader-hero p {
        font-size: 17px
    }

    .reader-hero>img {
        object-position: 60% center
    }

    .newsletter-signup {
        padding-top: 35px
    }

    .vip-layout {
        padding-top: 40px
    }
}

@media(max-width:360px) {
    .brand-feather {
        width: 34px;
        height: 34px
    }

    .header-inner .header-brand {
        font-size: 24px
    }

    .header-brand span {
        font-size: 7px
    }
}

/* Series updates: book covers beside the signup form */
.series-signup-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 80px
}

.series-signup-layout>div {
    min-width: 0
}

.series-signup-layout .mini-covers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0
}

.series-signup-layout .mini-covers img {
    width: calc((100% - 36px)/3);
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 10px 12px #263b4026)
}

.series-signup-box .form-placeholder {
    margin: 0 0 20px
}

.series-signup-box>.muted {
    margin-bottom: 0;
    font-size: 14px
}

.series-signup-box iframe {
    max-width: 100%
}

@media(max-width:760px) {
    .series-signup-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 55px
    }

    .series-signup-layout .mini-covers {
        max-width: 520px;
        width: 100%;
        margin: auto;
        gap: 14px
    }

    .series-signup-layout .mini-covers img {
        width: calc((100% - 28px)/3)
    }

    .series-signup-box {
        width: 100%;
        max-width: 520px;
        margin: auto
    }
}

/* Align legal text with the footer columns and use compact playback icons. */
footer .legal {
    max-width: 1160px;
    margin: 25px auto 0;
    padding: 22px 32px 0
}

.carousel-controls [data-pause] {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.pause-icon {
    display: block;
    width: 10px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor
}

.play-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
    margin-left: 2px
}

@media(max-width:620px) {
    footer .legal {
        padding-left: 23px;
        padding-right: 23px
    }
}

/* Compact reader headers bring signup content into view sooner. */
.reader-hero {
    min-height: 260px;
    padding: 36px 0
}

.reader-hero .eyebrow {
    margin-bottom: 12px
}

.reader-hero h1 {
    margin-bottom: 18px
}

.newsletter-signup {
    padding-top: 32px
}

.vip-layout {
    padding-top: 32px
}

@media(max-width:620px) {
    .reader-hero {
        min-height: 240px;
        padding: 30px 0
    }

    .reader-hero h1 {
        font-size: clamp(34px, 8vw, 44px);
        margin-bottom: 16px
    }

    .reader-hero .eyebrow {
        margin-bottom: 10px
    }

    .newsletter-signup,
    .vip-layout {
        padding-top: 28px
    }
}

.cover-caption {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    margin: 16px 0 0
}

.book-in-progress {
    border-top: 1px solid var(--line)
}

/* Accessible, medium-size retailer selection dialogs. */
.purchase-dialog {
    width: min(560px, calc(100vw - 36px));
    max-height: calc(100dvh - 40px);
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 24px 80px #0005;
    overflow: auto
}

.purchase-dialog::backdrop {
    background: #10282bc4
}

.purchase-dialog h2 {
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -.5px;
    margin-bottom: 15px;
    padding-right: 20px
}

.purchase-dialog .eyebrow {
    margin-bottom: 12px;
    padding-right: 28px
}

.purchase-dialog>p {
    font-size: 16px;
    margin-bottom: 22px
}

.purchase-close {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font: 28px/1 system-ui;
    cursor: pointer
}

.purchase-close:hover {
    background: var(--cream)
}

.retailer-options {
    display: grid;
    gap: 12px
}

.retailer-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none
}

.retailer-option:hover {
    border-color: var(--teal);
    background: var(--cream)
}

.retailer-option strong {
    display: block;
    font-size: 18px
}

.retailer-option span span {
    display: block;
    font-size: 13px;
    color: var(--muted)
}

.purchase-dialog .purchase-note {
    margin: 20px 0 0;
    font-size: 12px;
    color: var(--muted)
}

.purchase-open {
    overflow: hidden
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0
}

@media(max-width:620px) {
    .purchase-dialog {
        padding: 30px 22px;
        width: calc(100vw - 28px)
    }

    .purchase-dialog h2 {
        font-size: 27px
    }

    .retailer-option {
        padding: 15px
    }
}

button[data-buy-book] {
    font-family: inherit;
    line-height: inherit;
    cursor: pointer
}

.purchase-fallback[open] {
    display: block;
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1000;
    box-shadow: 0 0 0 100vmax #10282bc4
}

.sample-box audio {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 18px 0
}

.audio-sample-link {
    display: inline-block;
    font-size: 13px
}

/* Keep artwork aligned with the introduction; sample spans a separate row. */
.audiobook-intro {
    padding-bottom: 34px
}

.audiobook-intro>div {
    min-width: 0
}

.audiobook-intro .audio-image {
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: 420px
}

.audiobook-sample {
    display: block;
    padding-bottom: 64px
}

.audiobook-sample .sample-box {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 28px
}

.audiobook-sample audio {
    width: 100%;
    min-width: 0
}

.audiobook-sample .audio-sample-link {
    overflow-wrap: anywhere
}

@media(max-width:760px) {
    .audiobook-intro {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 32px;
        padding-bottom: 28px
    }

    .audiobook-intro .audio-image {
        max-width: 300px;
        max-height: 360px
    }

    .audiobook-sample {
        padding-bottom: 44px
    }

    .audiobook-sample .sample-box {
        padding-top: 24px
    }
}

/* Tighter heading-to-content spacing on audiobook and author pages. */
.compact-page-heading {
    padding-bottom: 16px
}

.compact-page-heading h1 {
    margin-bottom: 16px
}

.compact-page-heading+.audiobook-intro,
.compact-page-heading+.bio {
    padding-top: 24px
}

@media(max-width:760px) {
    .compact-page-heading {
        padding-bottom: 12px
    }

    .compact-page-heading+.audiobook-intro,
    .compact-page-heading+.bio {
        padding-top: 18px
    }
}

/* Compensate for transparent margins in the first two carousel mockups. */
.slide[data-book="1"] .hero-cover img {
    height: 502px;
    width: auto;
    max-height: 502px
}

.slide[data-book="2"] .hero-cover img {
    height: 498px;
    width: auto;
    max-height: 498px
}

@media(max-width:900px) {
    .slide[data-book="1"] .hero-cover img {
        height: 380px;
        max-height: 380px
    }

    .slide[data-book="2"] .hero-cover img {
        height: 377px;
        max-height: 377px
    }
}

@media(max-width:620px) {
    .slide[data-book="1"] .hero-cover img {
        height: 322px;
        max-height: 322px
    }

    .slide[data-book="2"] .hero-cover img {
        height: 319px;
        max-height: 319px
    }
}

/* Book release signup form */


.book-signup-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 35px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-signup-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.book-signup-form input[type="text"],
.book-signup-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.book-signup-form input:focus-visible {
  outline: 3px solid #a77b3d;
  outline-offset: 2px;
}

.book-signup-form .signup-consent {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 4px 0;
}

.book-signup-form button {
  width: 100%;
  padding: 13px 23px;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 0;
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s;
}

.book-signup-form button:hover {
  background: #17434a;
}

.book-signup-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#book-signup-message {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 620px) {
  .book-signup-form {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-signup-form button {
    transition: none;
  }
}

.book-signup-form .book-signup-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 4px;
}

.book-signup-form .book-signup-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}


/* Smooth hero carousel: horizontal movement and background crossfade. */
.hero { position: relative; isolation: isolate; }
.hero-inner { position: relative; z-index: 1; }
.hero-slide-stage {
  display: grid;
  overflow: hidden;
}
.hero-slide-stage > .slide {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 800ms ease-in-out, opacity 800ms ease-in-out, visibility 0s linear 800ms;
}
.hero-slide-stage > .slide.is-current {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition: transform 800ms ease-in-out, opacity 800ms ease-in-out;
}
.hero-slide-stage > .slide.is-leaving {
  visibility: visible;
  opacity: 0.4;
  transform: translateX(-100%);
  transition: transform 800ms ease-in-out, opacity 800ms ease-in-out;
}
.hero-transition-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(31,29,27,.55), rgba(51,36,32,.05)), url('/assets/hero.png') center/cover;
  transition: opacity 800ms ease-in-out;
}
.hero-transition-bg.is-visible { opacity: 1; }
.hero-transition-bg[data-book="1"] {
  background: linear-gradient(90deg, rgba(5,18,29,.72), rgba(5,18,29,.18)), url('/assets/night-sea.webp') center/cover;
}
.hero-transition-bg[data-book="2"] {
  background: linear-gradient(90deg, rgba(9,25,39,.78), rgba(9,25,39,.2)), url('/assets/blizzard.webp') center/cover;
}
.hero-transition-bg[data-book="join"] {
  background: linear-gradient(90deg, rgba(35,30,20,.78), rgba(35,30,20,.1)), url('/assets/reader-bench.webp') center/cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide-stage > .slide,
  .hero-slide-stage > .slide.is-current,
  .hero-slide-stage > .slide.is-leaving,
  .hero-transition-bg { transition: none !important; }
}
/* Keep an outgoing slide from jumping back across the screen after its exit. */
.hero-slide-stage > .slide:not(.is-current):not(.is-leaving) {
  visibility: hidden;
  transition: none;
}
