/* Home styles. Generated from main.css by tools/split-discovery-css.php. */

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 72px;
    align-items: center;
    width: min(var(--max-width), calc(100% - 40px));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 96px 0 84px;
}

.landing-hero__copy {
    max-width: 780px;
}

.landing-hero h1 {
    max-width: 11ch;
    margin: 0 0 24px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 6.4rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.94;
}

.landing-hero p,
.split-section p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

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

.chaptertrail-landing-header {
    margin: -22px -26px 0;
    overflow: hidden;
    line-height: 0;
    border-radius: 17px 17px 0 0;
}

.chaptertrail-landing-header img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.chaptertrail-proof-band {
    margin: 0 -26px 28px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

body.chaptertrail-site .site-main > .chaptertrail-proof-band:first-child {
    margin-top: -22px;
}

.chaptertrail-landing-header + .chaptertrail-proof-band {
    border-top-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.chaptertrail-proof-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.chaptertrail-proof-stats > div {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 4px 18px;
    border-left: 1px solid var(--line);
    text-align: center;
}

.chaptertrail-proof-stats > div:first-child {
    border-left: 0;
}

.chaptertrail-proof-stats dt {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
}

.chaptertrail-proof-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.chaptertrail-author-invite {
    width: 100%;
    margin: 0;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.chaptertrail-author-invite__summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    list-style: none;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.6vw, 2.55rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-shadow:
        0 0 10px color-mix(in srgb, var(--gold) 70%, transparent),
        0 0 22px color-mix(in srgb, var(--gold) 45%, transparent),
        0 0 42px color-mix(in srgb, var(--gold) 28%, transparent);
    transition: color 160ms ease, text-shadow 160ms ease;
}

.chaptertrail-author-invite__summary:hover,
.chaptertrail-author-invite__summary:focus-visible {
    color: color-mix(in srgb, var(--gold) 72%, white);
    text-shadow:
        0 0 12px color-mix(in srgb, var(--gold) 85%, transparent),
        0 0 28px color-mix(in srgb, var(--gold) 55%, transparent),
        0 0 52px color-mix(in srgb, var(--gold) 35%, transparent);
}

.chaptertrail-author-invite__summary::-webkit-details-marker {
    display: none;
}

.chaptertrail-author-invite__summary::after {
    content: "⌄";
    display: inline-block;
    color: inherit;
    font-family: inherit;
    font-size: 0.7em;
    line-height: 1;
    text-shadow: inherit;
    transform: translateY(-1px);
    transition: transform 160ms ease;
}

.chaptertrail-author-invite__panel[open] .chaptertrail-author-invite__summary::after {
    transform: rotate(180deg) translateY(-1px);
}

.chaptertrail-author-invite__copy {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0 8px;
}

.chaptertrail-author-invite h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 3.4vw, 2.35rem);
    letter-spacing: 0;
    line-height: 1.08;
}

.chaptertrail-author-invite p {
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.chaptertrail-author-invite__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.chaptertrail-trending {
    padding-top: 4px;
}

.chaptertrail-traveled {
    padding-top: 4px;
}

.chaptertrail-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.chaptertrail-section-heading h1,
.chaptertrail-section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    line-height: 1;
}

.chaptertrail-section-heading h1 {
    font-size: 3.6rem;
}

.chaptertrail-section-heading h2 {
    font-size: 2.15rem;
}

.chaptertrail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.4fr);
    gap: 18px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(222, 216, 202, 0.72);
}

.fiction-row h3,
.random-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.12;
}

.fiction-row h3 a,
.random-card h3 a {
    text-decoration: none;
}

.fiction-row span,
.fiction-row small,
.random-card span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.chaptertrail-random {
    padding: 18px 0 4px;
    border-top: 1px solid rgba(222, 216, 202, 0.72);
}

.random-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.random-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-height: 148px;
    padding: 12px;
    border: 1px solid rgba(222, 216, 202, 0.72);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.random-card img {
    width: 88px;
    height: 132px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--surface-warm-strong);
}

.random-card p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.random-card__author {
    margin: 4px 0 0;
    color: var(--wine);
    font-size: 0.86rem;
    font-weight: 800;
}

.random-card .landing-fiction-meta {
    margin-top: 4px;
}

.story-stack {
    position: relative;
    min-height: 520px;
}

.cover-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 260px;
    min-height: 380px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cover-card::before {
    position: absolute;
    inset: 18px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
}

.cover-card::after {
    position: absolute;
    inset: auto -60px -80px auto;
    width: 180px;
    height: 180px;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.cover-card--green {
    background: linear-gradient(145deg, #2f6f5e, #193d39);
}

.cover-card--blue {
    background: linear-gradient(145deg, #285c7e, #162f55);
}

.cover-card--wine {
    background: linear-gradient(145deg, var(--wine), var(--plum));
}

.cover-card--1 {
    top: 20px;
    left: 18px;
    z-index: 3;
}

.cover-card--2 {
    top: 92px;
    right: 8px;
    z-index: 2;
}

.cover-card--3 {
    bottom: 0;
    left: 94px;
    z-index: 1;
}

.cover-card span {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cover-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    line-height: 1.02;
}

.cover-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.metric-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.metric-band div {
    padding: 24px;
    background: var(--surface);
}

.metric-band strong {
    display: block;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    line-height: 1;
}

.metric-band span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 750;
}

.cms-section {
    padding: 56px 48px;
}

.cms-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.shelf,
.split-section,
.author-platform-section,
.principles-section,
.final-cta {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.section-heading h2,
.split-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    letter-spacing: 0;
    line-height: 1.02;
}

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

.story-card,
.author-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.story-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 22px;
}

.story-card__tag,
.admin-badge {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--surface-warm);
    color: #725115;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.story-card h3 {
    margin: 24px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.story-card h3 a,
.author-card h3 a {
    text-decoration: none;
}

.story-card__author {
    margin: 0 0 16px;
    color: var(--wine);
    font-weight: 700;
}

.story-card p:not(.story-card__author) {
    color: var(--muted);
    line-height: 1.65;
}

.story-card span:last-child {
    margin-top: auto;
    color: var(--blue);
    font-size: 0.86rem;
    font-weight: 750;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 36px;
    align-items: center;
}

.author-platform-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
}

.author-platform-section__copy h2,
.principles-section h2,
.final-cta h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    letter-spacing: 0;
    line-height: 1.04;
}

.author-platform-section__copy p,
.final-cta p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

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

.author-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
}

.author-card__avatar {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 850;
}

.author-card h3 {
    margin: 0 0 6px;
}

.author-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 1040px) {
.random-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.landing-hero {
        min-height: auto;
    }

.story-stack {
        min-height: 430px;
        max-width: 620px;
    }
}

@media (max-width: 900px) {
.chaptertrail-columns,
    .landing-hero,
    .split-section,
    .author-platform-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
.site-header,
    .cms-section,
    .site-footer {
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
    }

.chaptertrail-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

.chaptertrail-landing-header {
        margin: 0;
        border-radius: 0;
    }

.chaptertrail-proof-band {
        margin: 0 0 18px;
        padding: 4px 0 14px;
    }

.chaptertrail-proof-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.chaptertrail-proof-stats > div:nth-child(odd) {
        border-left: 0;
    }

.chaptertrail-proof-stats > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
        padding-top: 14px;
        margin-top: 10px;
    }

.chaptertrail-landing {
        padding: 16px 16px 18px;
    }

.chaptertrail-section-heading h1 {
        font-size: 2.6rem;
    }

.chaptertrail-section-heading h2 {
        font-size: 1.85rem;
    }

.random-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

.random-card img {
        width: 78px;
        height: 117px;
    }

.landing-hero {
        min-height: auto;
        padding-top: 48px;
        gap: 34px;
    }

.landing-hero h1 {
        font-size: 3.8rem;
    }

.story-stack {
        min-height: auto;
        display: grid;
        gap: 14px;
    }

.cover-card {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 250px;
    }
}

.chaptertrail-section-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.discovery-filter-trigger { position: relative; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(31,54,93,.16); border-radius: 999px; background: rgba(255,255,255,.76); color: var(--ink); text-decoration: none; }
.discovery-filter-trigger:hover, .discovery-filter-trigger.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.discovery-filter-trigger__icon { display: block; width: 16px; height: 16px; fill: currentColor; }
.discovery-filter-trigger__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.discovery-filter-trigger__count { position: absolute; top: -6px; right: -6px; display: grid; min-width: 17px; height: 17px; place-items: center; border: 1px solid #fff; border-radius: 999px; background: var(--wine); color: #fff; font-size: .66rem; font-weight: 850; line-height: 1; }

.home-shelf-grid { display: grid; grid-template-columns: repeat(auto-fit, 220px); gap: 18px; align-items: start; margin-top: 14px; }
.home-shelf-grid--random, .home-shelf-grid--rise { justify-content: center; }
.home-shelf-grid--rise { grid-template-columns: 220px; }
.home-rise-scroll { max-height: calc((320px * 5) + (18px * 4)); overflow: auto; scrollbar-gutter: stable; }
.home-bookmarks-scroll { max-height: 700px; overflow: auto; scrollbar-gutter: stable; }
.home-rise-scroll .home-shelf-grid { padding-right: 8px; }
.home-bookmarks-scroll .home-shelf-grid {
    grid-template-columns: 220px;
    justify-content: center;
}
.home-shelf-card { position: relative; width: 220px; height: 320px; isolation: isolate; overflow: hidden; border: 1px solid rgba(23,32,38,.13); border-radius: 8px; background: var(--surface-card); box-shadow: 0 14px 34px rgba(24,32,43,.05); }
.home-shelf-card__cover { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; background: #1f2a35; }
.home-shelf-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-shelf-card .fiction-peek-card__bottom { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: grid; gap: 4px; padding: 44px 12px 12px; background: linear-gradient(180deg,rgba(10,16,24,0),rgba(10,16,24,.82) 54%,rgba(10,16,24,.96)); color: #fff; pointer-events: none; }
.home-shelf-card .fiction-peek-card__bottom strong { overflow: hidden; color: #fff; font-size: .94rem; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.home-shelf-card .fiction-peek-card__rating { color: #62b7ff; font-size: .8rem; font-weight: 850; }
.home-shelf-card .fiction-peek-card__rating--empty, .home-shelf-card .fiction-peek-card__count { color: rgba(255,255,255,.78); }
.home-shelf-card__rank { position: absolute; top: 10px; left: 10px; z-index: 3; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 999px; background: #efc20f; color: #3a2a00; font-weight: 900; }
.home-shelf-card__copy { position: absolute; top: 0; right: 0; bottom: 0; left: 1%; z-index: 4; display: flex; flex-direction: column; gap: 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid rgba(255,255,255,.48); background: rgba(255,253,248,.58); box-shadow: 0 20px 44px rgba(24,32,43,.18), inset 0 1px 0 rgba(255,255,255,.62); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); pointer-events: none; transform: translateX(100%); transition: transform 180ms ease; }
.home-shelf-card:hover, .home-shelf-card:focus-within { z-index: 8; }
.home-shelf-card:hover .home-shelf-card__copy, .home-shelf-card:focus-within .home-shelf-card__copy { pointer-events: auto; transform: translateX(0); }
.home-shelf-card__copy h3, .home-shelf-card__copy p { margin: 0; }
.home-shelf-card__copy h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.12; }
.home-shelf-card__copy h3 a { color: inherit; text-decoration: none; }
.home-shelf-card__copy p, .home-shelf-card__updated { color: var(--muted); }
.home-shelf-card__author { color: var(--wine) !important; font-size: .9rem; font-weight: 800; }
.home-shelf-card__synopsis { flex: 0 0 auto; line-height: 1.48; }
.home-shelf-card__synopsis.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: none;
}
.cover-card__more { display: none; }
.home-shelf-card__chapters, .home-shelf-card .landing-fiction-meta { margin-top: auto; }
.home-shelf-card__chapters { display: grid; gap: 5px; }
.home-shelf-card__updated { font-size: .82rem; font-weight: 800; }

@media (max-width: 760px) {
    .chaptertrail-landing .chaptertrail-list-panel,
    html[data-color-scheme="dark"] .chaptertrail-landing .chaptertrail-list-panel {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .home-shelf-grid,
    .home-shelf-grid--rise,
    .home-shelf-grid--random,
    .home-shelf-grid--recent,
    .home-bookmarks-scroll .home-shelf-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .home-bookmarks-scroll, .home-rise-scroll { max-height: none; overflow: visible; }
    .home-shelf-card { display: grid; grid-template-columns: 1fr; gap: 0; width: 100%; height: auto; min-height: 0; padding: 0; }
    .home-shelf-card__cover { position: relative; width: 100%; height: auto; aspect-ratio: 2 / 3; }
    .home-shelf-card__copy,
    html[data-color-scheme="dark"] .home-shelf-card__copy {
        position: static;
        min-width: 0;
        padding: 14px;
        overflow: visible;
        border: 0;
        border-top: 1px solid var(--line);
        background: var(--surface-card);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
        transform: none;
    }
    .home-shelf-card__chapters { display: none; }
    .home-shelf-card__synopsis.is-collapsible:not(.is-expanded) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
    }
    .home-shelf-card__synopsis.is-expanded {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        line-clamp: none;
    }
    .cover-card__more { display: inline-flex; width: max-content; padding: 0; border: 0; background: none; color: var(--green); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 850; }
}
