/* One home composition; one explorer layout for all world categories. */
.home-page main {
    position: relative;
    isolation: isolate;
}
.home-page main::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, #07101235, #07101255 65%, #07101277),
        url('../assets/library-backdrop.webp') left top / cover no-repeat;
}
.home-page .container {
    width: min(1320px, calc(100% - 128px));
}
.home-page .hero {
    min-height: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
}
.home-page .hero::before {
    background: linear-gradient(90deg, #07101260, transparent 70%);
}
.home-page .steam-layer {
    height: 170px;
    bottom: 0;
    opacity: 0.45;
    mask-image: linear-gradient(180deg, transparent, #000 45%, transparent 95%);
}
.home-page .hero-inner {
    min-height: 0;
    padding-block: 60px 35px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}
.home-page .hero-copy {
    max-width: 585px;
    text-shadow: 0 2px 14px #000;
}
.home-page .hero-description {
    font-size: 19px;
    line-height: 1.65;
}
.home-hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1659 / 948;
    margin: 0;
    z-index: 0;
    mask-image: none;
    filter: saturate(0.84);
    border: 1px solid #a77345;
    border-radius: 3px;
    background: #0a1215;
}
.home-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.home-page .hero-buttons {
    flex-wrap: wrap;
}
.home-page .hero-buttons .button {
    min-width: 0;
    padding-inline: 20px;
    font-size: 16px;
}
.home-page .chronicles-section,
.home-page .library-section-theme {
    padding-block: 50px 65px;
    background: none;
    border: 0;
    isolation: auto;
}
.home-page .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding: 0 0 25px;
    margin-bottom: 25px;
    min-height: 0;
    border-bottom: 1px solid #ad77475e;
}
.home-section-heading h2 {
    font: 48px/1.15 var(--body-serif);
    margin: 7px 0 0;
}
.home-section-heading > p {
    color: #d2c4ab;
    font: 15px/1.6 var(--body-serif);
    text-align: right;
    margin: 0;
}
.home-section-heading .eyebrow {
    color: #efb57f;
    font-size: 12px;
    margin: 0;
}
.home-page .chronicles-intro {
    max-width: 900px;
    color: #e4dbcb;
    font-size: 18px;
    margin-bottom: 30px;
}
.chronicle-stories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.chronicle-story {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #a77345;
    background: #0a1215e8;
    border-radius: 3px;
    box-shadow: 0 15px 40px #0004;
    transition: border-color 200ms;
}
.chronicle-story:hover {
    border-color: #efb57f;
}
.chronicle-story-art {
    height: 240px;
    min-height: 0;
    overflow: hidden;
}
.chronicle-story-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: transform 500ms;
}
.chronicle-story:hover img {
    transform: scale(1.03);
}
.chronicle-story-copy {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.chronicle-story-copy h3 {
    font: 33px/1.2 var(--body-serif);
    margin: 10px 0 18px;
}
.chronicle-story-copy > p:not(.eyebrow) {
    font-size: 15px;
    color: #ded8cb;
    line-height: 1.7;
    margin: 0 0 18px;
}
.chronicle-story-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 1.3px;
    color: #efb57f;
}
.story-topics {
    display: block;
    font-size: 12px;
    color: #bfb8a8;
    margin-bottom: 22px;
}
.chronicle-story-copy .text-link {
    margin-top: auto;
    font: 14px var(--body-serif);
}
.home-page .library-section-theme .container {
    width: min(1320px, calc(100% - 128px));
}
.home-page .library-find {
    position: static;
    margin: 0 0 22px;
    font-size: 14px;
}
.home-page .library-find summary {
    font-size: 14px;
}
.home-page .library-find .search-field {
    position: static;
    margin-top: 14px;
    width: min(500px, 100%);
    padding: 12px 15px;
    box-shadow: none;
}
.home-page .library-find input {
    width: 100%;
    min-width: 0;
}
.home-page .library-section > .audio-panel {
    margin: 0 0 32px;
    border-radius: 3px;
    background: #0a1215e8;
}
.home-page .home-chapter-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.home-page .home-chapter-catalog .chapter-card {
    border: 1px solid #a77345;
    border-radius: 3px;
    background: #0a1215ed;
    overflow: hidden;
    box-shadow: 0 15px 40px #0004;
}
.home-page .home-chapter-catalog .chapter-art {
    height: 195px;
}
.home-page .chapter-card-body {
    padding: 23px;
}
.home-page .home-chapter-catalog h3 {
    font: 28px/1.25 var(--body-serif);
    margin-block: 12px 16px;
}
.home-page .chapter-card-body > p {
    font-size: 14px;
    color: #d7d2c6;
    line-height: 1.65;
}
.home-page .chapter-meta {
    font-size: 12px;
    color: #bfb8a8;
}
.home-page .home-chapter-catalog .chapter-pending {
    min-height: 390px;
    padding: 32px;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 20%, #6b432333, transparent), #0a1215ed;
}
.home-page .chapter-pending .pending-mark {
    color: #bb8858;
}
.world-explorer {
    padding-bottom: 70px;
    background: radial-gradient(ellipse at 20% 65%, #39473c33, transparent 70%), #0c1214;
}
.world-panorama {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #ac77475e;
}
.world-panorama > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.world-panorama figcaption {
    margin: 0;
    padding: 12px 24px;
    color: #c7bba4;
    background: #0a1215;
    border-top: 1px solid #a7734544;
    font: italic 14px/1.6 var(--body-serif);
    text-align: center;
}
.illustrated-page {
    padding-bottom: 70px;
    background: radial-gradient(ellipse at 15% 55%, #39473c33, transparent 70%), #0c1214;
}
.page-panorama {
    margin: 0;
    border-bottom: 1px solid #a77345;
}
.page-panorama > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.illustrated-heading {
    padding-block: 42px 30px;
    border-bottom: 1px solid #946a4166;
    margin-bottom: 35px;
}
.illustrated-heading .eyebrow {
    color: #efb57f;
    margin: 0 0 12px;
}
.illustrated-heading h1 {
    font: 48px/1.2 var(--body-serif);
    margin: 0 0 20px;
}
.illustrated-heading > p:last-child {
    max-width: 850px;
    font: 19px/1.7 var(--body-serif);
    color: #ddd3c0;
    margin: 0;
}
.illustrated-content .prose {
    font-size: 17px;
    line-height: 1.85;
}
.illustrated-content .prose h3,
.illustrated-content .prose .section-title {
    font: 30px/1.3 var(--body-serif);
    letter-spacing: 0;
    text-transform: none;
    color: #f2e5ce;
    margin-block: 15px 24px;
}
.illustrated-content .prose h4 {
    font: 25px/1.3 var(--body-serif);
    color: #f2e5ce;
}
.illustrated-content .steam-quote {
    border-left-color: #c78449;
    background: #6e48201c;
    padding: 18px 24px;
    color: #d6c9af;
}
.illustrated-content .world-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.illustrated-content .region,
.illustrated-content .feature-item,
.illustrated-content .donation-item {
    border: 1px solid #a773456e;
    border-radius: 3px;
    background: #091215c9;
    padding: 26px;
    color: #ded6c6;
}
.illustrated-content .region h4 {
    margin-top: 0;
}
.illustrated-content .region > p {
    font: 15px/1.75 var(--sans);
    color: #cfc7b9;
}
.community-hub #chapter-prose {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.community-hub #chapter-prose > .text-part:first-child,
.community-hub #chapter-prose > .world {
    grid-column: 1 / -1;
}
.community-hub #chapter-prose > .text-part {
    margin: 0;
}
.community-hub .feature-item {
    height: calc(100% - 80px);
}
.community-hub .feature-item .read-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #d59050;
    background: #75401c44;
    color: #f0c69a;
    font: 15px var(--body-serif);
    margin-top: 15px;
}
.support-hub .donation-methods {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
}
.support-hub .donation-item:first-child {
    grid-row: span 2;
}
.support-hub .donation-item > p {
    color: #cdc4b4;
    font-size: 15px;
}
.support-hub .donation-item h4 {
    margin-top: 0;
}
.support-hub .wallet-address-container {
    padding: 14px;
    gap: 10px;
}
.support-hub .wallet-address {
    font-size: 13px;
}
.illustrated-end {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 35px;
    margin-top: 35px;
    border-top: 1px solid #946a4166;
}
.explorer-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding-block: 40px 30px;
}
.explorer-heading h1 {
    font: 48px/1.2 var(--body-serif);
    margin: 8px 0 0;
}
.explorer-heading h1 br {
    display: none;
}
.explorer-heading .eyebrow {
    color: #efb57f;
    margin: 0;
}
.explorer-heading .atlas-search {
    display: flex;
    min-width: 270px;
    margin: 0;
}
.explorer-heading .atlas-search input {
    width: 100%;
    min-width: 0;
    font-size: 14px;
}
.explorer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #966e4666;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.explorer-tabs button {
    border: 1px solid #806044;
    border-radius: 2px;
    background: #0a1215;
    color: #e1d7c3;
    font: 17px/1.4 var(--body-serif);
    padding: 12px 22px;
    min-height: 46px;
}
.explorer-tabs button[aria-pressed='true'] {
    border-color: #f1934c;
    background: linear-gradient(135deg, #773912, #302016);
    color: #ffdfb2;
    box-shadow: inset 0 0 0 3px #20150e66;
}
.explorer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 35px;
}
.explorer-stage {
    position: sticky;
    top: 92px;
    min-width: 0;
    scroll-margin-top: 95px;
}
.explorer-art {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid #997046;
    aspect-ratio: 1;
}
.explorer-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.explorer-art figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 65px 28px 28px;
    background: linear-gradient(0deg, #061012f5, #06101288 65%, transparent);
}
.explorer-art figcaption span {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #f4bd8b;
    margin-bottom: 10px;
}
.explorer-art figcaption strong {
    font: 37px/1.2 var(--body-serif);
    color: #fff0d4;
}
.explorer-caption {
    font: italic 14px/1.7 var(--body-serif);
    color: #c2bcae;
    margin: 18px 5px 0;
}
.stage-work-note {
    padding: 12px 16px;
    background: #7b482522;
    border: 1px solid #a7734566;
    color: #edc095;
    font-size: 14px;
}
.explorer-status:not(.sr-only) {
    padding: 12px 16px;
    border: 1px solid #a7734566;
    color: #edc095;
    font-size: 14px;
}
.explorer-dossier {
    min-width: 0;
    scroll-margin-top: 95px;
}
.explorer-dossier > .eyebrow {
    margin: 0 0 17px;
    color: #efb57f;
}
.city-dossier-art {
    width: 100%;
    max-height: 215px;
    object-fit: cover;
    border: 1px solid #926c46;
    margin-bottom: 22px;
}
.explorer-entry h2 {
    font: 38px/1.15 var(--body-serif);
    padding-bottom: 16px;
    margin: 0 0 18px;
    border-bottom: 1px solid #946a4166;
}
.explorer-entry > p:not(.work-note) {
    color: #e0d8c7;
    font: 17px/1.75 var(--body-serif);
    margin: 0 0 22px;
}
.explorer-entry .button {
    margin-bottom: 26px;
    padding-inline: 20px;
}
.explorer-entry .work-note {
    display: inline-block;
    margin: 0 0 22px;
    padding: 8px 13px;
    color: #edc095;
    background: #7b482522;
    border: 1px solid #a7734566;
    font-size: 14px;
}
.explorer-choices {
    border-top: 1px solid #946a4166;
}
.explorer-choice {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 20px;
    gap: 17px;
    align-items: center;
    padding: 17px 10px;
    border-bottom: 1px solid #946a4166;
    transition: background 200ms;
}
.explorer-choice[aria-current] {
    background: linear-gradient(90deg, #89512733, transparent);
    box-shadow: inset 2px 0 #e69a58;
}
.explorer-choice:hover {
    background-color: #8c572222;
}
.explorer-choice img {
    width: 82px;
    height: 66px;
    object-fit: cover;
    border: 1px solid #805c3d;
}
.explorer-choice strong {
    display: block;
    font: 23px/1.3 var(--body-serif);
    margin-bottom: 5px;
}
.explorer-choice small {
    color: #beb8aa;
    font-size: 12px;
}
.choice-emblem {
    display: grid;
    place-items: center;
    height: 66px;
    border: 1px solid #805c3d;
    color: #d09c67;
    font-size: 26px;
    background: radial-gradient(ellipse, #6a452a33, transparent);
}
.choice-mark {
    color: #d5a475;
    font-size: 23px;
}
.explorer-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-block: 20px;
    color: #eac29c;
}
.prose .source-pending {
    padding: 18px 22px;
    border: 1px solid #91674366;
    background: #7a482019;
    text-align: left;
    margin-block: 30px;
}
.prose .source-pending .illustration-placeholder {
    min-height: 0;
    height: auto;
    padding: 0;
    background: none;
    color: #eac29c;
}
.prose .source-pending .image-caption {
    margin: 5px 0 0;
    text-align: left;
}
@media (max-width: 1150px) {
    .home-page .container,
    .home-page .library-section-theme .container {
        width: calc(100% - 80px);
    }
    .chronicle-story {
        grid-template-columns: 1fr;
    }
    .chronicle-story-art {
        height: 230px;
        min-height: 0;
    }
    .home-page .hero-inner {
        min-height: 0;
    }
    .explorer-heading {
        flex-wrap: wrap;
    }
    .explorer-layout {
        gap: 24px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    }
    .explorer-choice {
        grid-template-columns: 62px minmax(0, 1fr) 15px;
        gap: 12px;
    }
    .explorer-choice img {
        width: 62px;
        height: 55px;
    }
    .explorer-choice strong {
        font-size: 20px;
    }
}
@media (max-width: 1050px) {
    .home-page .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .home-page .hero-copy {
        max-width: none;
    }
    .chronicle-stories {
        grid-template-columns: minmax(0, 1fr);
    }
    .chronicle-story {
        display: grid;
        grid-template-columns: 40% minmax(0, 1fr);
    }
    .chronicle-story-art {
        height: 100%;
        min-height: 240px;
    }
    .illustrated-content .world-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .support-hub .donation-methods {
        grid-template-columns: minmax(0, 1fr);
    }
    .support-hub .donation-item:first-child {
        grid-row: auto;
    }
}
@media (max-width: 900px) {
    .home-page .home-chapter-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-hero-visual {
        width: 100%;
        opacity: 1;
    }
    .explorer-tabs button {
        font-size: 15px;
        padding-inline: 16px;
    }
    .explorer-entry h2 {
        font-size: 31px;
    }
}
@media (max-width: 760px) {
    .home-page .container,
    .home-page .library-section-theme .container {
        width: calc(100% - 36px);
    }
    .home-page .hero-inner {
        padding-block: 40px 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .illustrated-heading h1 {
        font-size: 35px;
    }
    .illustrated-heading > p:last-child {
        font-size: 17px;
    }
    .illustrated-page .container {
        width: calc(100% - 36px);
    }
    .community-hub #chapter-prose {
        grid-template-columns: minmax(0, 1fr);
    }
    .community-hub .feature-item {
        height: auto;
    }
    .home-page .hero-copy {
        max-width: none;
    }
    .home-page .hero-description {
        font-size: 17px;
    }
    .home-page .hero-buttons {
        flex-wrap: wrap;
    }
    .home-page .hero-buttons .button {
        min-width: 0;
        font-size: 15px;
    }
    .home-hero-visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        margin: 25px 0 0;
        opacity: 1;
        mask-image: none;
        z-index: 0;
    }
    .home-hero-visual img {
        object-position: center;
    }
    .home-page .chronicles-section,
    .home-page .library-section-theme {
        padding-block: 35px;
    }
    .home-page .home-section-heading {
        align-items: flex-start;
        padding-bottom: 20px;
        gap: 15px;
        flex-wrap: wrap;
    }
    .home-section-heading h2 {
        font-size: 36px;
    }
    .home-section-heading > p {
        text-align: left;
        font-size: 14px;
    }
    .home-section-heading > p br {
        display: none;
    }
    .chronicle-stories {
        grid-template-columns: 1fr;
    }
    .chronicle-story {
        grid-template-columns: 40% 1fr;
    }
    .chronicle-story-art {
        height: auto;
    }
    .chronicle-story-copy {
        padding: 24px 20px;
    }
    .chronicle-story-copy h3 {
        font-size: 29px;
    }
    .world-explorer .container {
        width: calc(100% - 36px);
    }
    .explorer-heading {
        padding-block: 28px 24px;
    }
    .explorer-heading h1 {
        font-size: 34px;
    }
    .explorer-heading h1 br {
        display: block;
    }
    .explorer-heading .atlas-search {
        width: 100%;
        min-width: 0;
    }
    .explorer-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .explorer-stage {
        position: static;
    }
    .explorer-art figcaption strong {
        font-size: 30px;
    }
    .explorer-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }
    .explorer-tabs button {
        padding: 10px 14px;
        font-size: 14px;
    }
    .explorer-choice {
        grid-template-columns: 70px minmax(0, 1fr) 18px;
    }
    .explorer-choice img {
        width: 70px;
        height: 58px;
    }
    .explorer-choice strong {
        font-size: 22px;
    }
}
@media (max-width: 520px) {
    .home-page .home-chapter-catalog {
        grid-template-columns: minmax(0, 1fr);
    }
    .chronicle-story {
        grid-template-columns: minmax(0, 1fr);
    }
    .chronicle-story-art {
        height: 230px;
    }
    .home-page .home-chapter-catalog .chapter-pending {
        min-height: 280px;
    }
    .illustrated-content .world-map {
        grid-template-columns: minmax(0, 1fr);
    }
    .illustrated-content .region,
    .illustrated-content .feature-item,
    .illustrated-content .donation-item {
        padding: 22px;
    }
}
