html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f6f3ee;
    color: #252525;
    margin: 0;
}

body {
    min-height: 100vh;
}

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.site-header,
.site-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem max(1rem, calc((100% - 1100px) / 2));
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e7e0d8;
    flex-wrap: wrap;
}

.site-brand {
    align-items: center;
    color: #302820;
    display: inline-flex;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 600;
    gap: .6rem;
    text-decoration: none;
}

.site-brand-mark {
    height: 2.5rem;
    width: 2.5rem;
}

.site-tagline {
    color: #685f58;
    flex: 1;
    font-size: .92rem;
}

.site-header nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer {
    align-items: flex-start;
    background: #302820;
    color: #f6f3ee;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.site-footer p {
    color: #d9cec2;
    margin: .35rem 0 0;
}

.site-footer a {
    color: #fff;
}

.site-footer small {
    color: #d9cec2;
    width: 100%;
}

.hero,
.adventure-detail,
.not-found-panel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.hero {
    padding-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero h1,
.adventure-detail h1 {
    color: #302820;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -.025em;
}

.adventure-detail > header > p:not(.eyebrow) {
    max-width: 760px;
}

.adventure-meta {
    color: #7b5d43;
    font-size: .95rem;
    font-weight: 700;
    margin-top: 1rem;
}

.adventure-theme {
    color: #685f58;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 1.55;
}

.not-found-panel {
    max-width: 700px;
    text-align: center;
}

.not-found-panel h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin: .25rem 0 .75rem;
}

.not-found-panel > p:not(.eyebrow) {
    color: #685f58;
    font-size: 1.08rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 38rem;
}

.not-found-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.featured-adventure {
    align-items: stretch;
    background: #e8dfd3;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgb(48 40 32 / 10%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    margin: 0 auto 3rem;
    max-width: 1100px;
    overflow: hidden;
}

.featured-adventure-copy {
    align-self: center;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.featured-adventure h2 {
    color: #302820;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 500;
    margin: .25rem 0 .75rem;
}

.featured-adventure-theme {
    color: #403a35;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 38rem;
}

.featured-adventure img {
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    width: 100%;
}

.adventure-grid-section {
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    padding: 0 1rem 1.25rem;
}

.section-heading h2 {
    color: #302820;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0 0 .35rem;
}

.section-heading p {
    color: #685f58;
    margin: 0;
}

.adventure-section-header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.discovery-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
}

.sort-controls {
    background: #e8dfd3;
    border-radius: 999px;
    display: inline-flex;
    padding: .2rem;
}

.sort-button,
.surprise-button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
}

.sort-button {
    background: transparent;
    border-radius: 999px;
    color: #685f58;
    padding: .45rem .7rem;
}

.sort-button.selected {
    background: #302820;
    color: #fff;
}

.surprise-button {
    background: #fff;
    border: 1px solid #d9cec2;
    border-radius: 999px;
    color: #302820;
    padding: .55rem .8rem;
}

.sort-button:hover,
.surprise-button:hover {
    color: #7b5d43;
}

.sort-button.selected:hover {
    color: #fff;
}

.sort-button:focus-visible,
.surprise-button:focus-visible {
    outline: 3px solid #0071c1;
    outline-offset: 2px;
}

.start-reading-button {
    align-items: center;
    background: #302820;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    gap: .5rem;
    margin-top: .5rem;
    padding: .75rem 1.1rem;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.start-reading-button:hover {
    background: #554434;
    color: #fff;
    transform: translateY(-1px);
}

.start-reading-button:focus-visible {
    outline: 3px solid #0071c1;
    outline-offset: 3px;
}

.hero > p:last-child {
    color: #685f58;
    font-size: 1.08rem;
    max-width: 680px;
}

.eyebrow {
    color: #7b5d43;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.adventure-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.adventure-card {
    color: inherit;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.adventure-card:hover {
    box-shadow: 0 14px 32px rgb(0 0 0 / 14%);
    color: inherit;
    transform: translateY(-3px);
}

.adventure-card img,
.scene img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.adventure-card-copy {
    padding: 1rem;
}

.adventure-card-copy h2 {
    font-size: 1.15rem;
    margin: 0 0 .4rem;
}

.adventure-card-copy p,
figcaption {
    color: #685f58;
    margin: 0;
}

.adventure-card-theme {
    display: -webkit-box;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.4;
    margin-bottom: .65rem !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.adventure-card-meta {
    font-size: .9rem;
}

.scene-list {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    max-width: 700px;
    margin: 2rem auto 0;
    min-width: 0;
    scroll-margin-top: 1rem;
}

.scene-progress {
    align-items: center;
    background: rgb(246 243 238 / 94%);
    border: 1px solid #e7e0d8;
    border-radius: .8rem;
    display: grid;
    gap: .65rem;
    grid-template-columns: auto minmax(100px, 1fr) auto;
    margin: 2rem auto 0;
    max-width: 700px;
    padding: .7rem .9rem;
    position: sticky;
    top: 4.5rem;
    z-index: 5;
}

.scene-progress > div:first-child {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    white-space: nowrap;
}

.scene-progress strong {
    color: #302820;
    font-size: .9rem;
}

.scene-progress span {
    color: #685f58;
    font-size: .8rem;
}

.scene-progress-track {
    background: #d9cec2;
    border-radius: 999px;
    height: .35rem;
    overflow: hidden;
}

.scene-progress-track span {
    background: #7b5d43;
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.scene-progress a,
.next-scene-link {
    color: #7b5d43;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.scene-progress a:hover,
.next-scene-link:hover {
    color: #302820;
    text-decoration: underline;
}

.scene {
    margin: 0;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: 6rem;
}

.scene img {
    border-radius: 1rem;
    aspect-ratio: 2 / 3;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.scene-image-button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 1rem;
    cursor: pointer;
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.scene-image-button:focus-visible {
    outline: 3px solid #0071c1;
    outline-offset: 4px;
}

.scene-details {
    color: #403a35;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: .25rem .25rem 0;
}

.scene-interaction-hint {
    color: #685f58;
    font-size: .9rem;
    margin: .5rem .25rem 0;
}

.next-scene-link {
    display: inline-flex;
    gap: .4rem;
    margin-top: 1rem;
}

@media (max-width: 620px) {
    .featured-adventure {
        grid-template-columns: 1fr;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .featured-adventure img {
        max-height: 360px;
        order: -1;
    }

    .scene-progress {
        grid-template-columns: 1fr auto;
        top: 7.5rem;
    }

    .scene-progress-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .scene-list {
        scroll-margin-top: 12rem;
    }

    .scene {
        scroll-margin-top: 12rem;
    }

    .adventure-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .discovery-controls {
        justify-content: flex-start;
    }
}

.social-links {
    margin: 3rem auto 0;
    max-width: 700px;
    padding-bottom: 2rem;
}

.social-links h2 {
    color: #302820;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.social-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.social-link-list a {
    background: white;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgb(0 0 0 / 8%);
    padding: .65rem 1rem;
    text-decoration: none;
}

.adventure-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin: 2rem auto 0;
    max-width: 700px;
}

.next-adventure {
    background: #ebe4da;
    border-radius: 1rem;
    margin: 3rem auto 0;
    max-width: 700px;
    padding: 1.5rem;
}

.next-adventure h2 {
    color: #302820;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 .4rem;
}

.next-adventure p {
    color: #685f58;
    margin: 0 0 1rem;
}

.secondary-action {
    align-items: center;
    background: #fff;
    border: 1px solid #d8cabb;
    border-radius: 999px;
    color: #302820;
    display: inline-flex;
    font-weight: 700;
    gap: .5rem;
    padding: .7rem 1rem;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.secondary-action:hover {
    background: #f6f3ee;
    border-color: #bba996;
    color: #302820;
    transform: translateY(-1px);
}

.secondary-action:focus-visible {
    outline: 3px solid #0071c1;
    outline-offset: 3px;
}

.share-button {
    background: #302820;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    padding: .7rem 1rem;
}

.share-button:hover {
    background: #554434;
}

@media (max-width: 700px) {
    .site-tagline {
        flex-basis: 100%;
        order: 3;
    }
}

.text-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.text-page h1,
.text-page h2 {
    color: #302820;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

.text-page p {
    line-height: 1.65;
}

figcaption {
    padding: .75rem .25rem;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yM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NjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-screen {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.loading-brand {
    display: block;
    height: 2.6rem;
    margin-bottom: 1.4rem;
    width: 2.6rem;
}

.loading-progress {
    display: block;
    height: 8rem;
    width: 8rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(27, 110, 194, .14);
    stroke-width: .6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%;
    transition: stroke-dasharray .05s ease-in-out;
}

.loading-progress-text {
    margin-top: -5.25rem;
    min-height: 1.25rem;
    text-align: center;
    font-weight: bold;
    width: 8rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.loading-caption {
    color: #685f58;
    font-size: .95rem;
    margin: 3.75rem 0 0;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}