@import"https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700;900&family=ZCOOL+XiaoWei&display=swap";

:root {
    font-family: "Noto Serif SC", Songti SC, SimSun, serif;
    color: #f4e4c8;
    background: #4b281c;
    font-synthesis: none;
    --paper: #f1dfc1;
    --ink: #2c1c17;
    --cinnabar: #a73d25;
    --gold: #d79a4b
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    background: #4b281c
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden
}

button,
a {
    font: inherit
}

button {
    color: inherit
}

.experience {
    position: relative;
    min-height: 100%;
    background: #6d3a25
}

.scene-wrap {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #6d3a25
}

.scene-wrap:before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: linear-gradient(#4925183d, #49251861), var(--scene-image, url(../generated/autumn-thoughts/hero.avif));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(24px) saturate(.86);
    transform: scale(1.08)
}

.scene-wrap:after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(24, 12, 8, .55), transparent 24%, transparent 76%, rgba(24, 12, 8, .56)), linear-gradient(0deg, rgba(31, 16, 11, .5), transparent 38%, rgba(39, 18, 11, .12))
}

.scene-wrap canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%
}

.grain {
    position: fixed;
    z-index: 1;
    inset: 0;
    opacity: .13;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")
}

.site-header {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 26px;
    pointer-events: none
}

.seal {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 1px solid rgba(255, 230, 192, .55);
    color: #ffe3b6;
    background: #742d1cc7;
    box-shadow: inset 0 0 0 3px #ffdcaa14, 0 8px 30px #1e0c062e;
    text-decoration: none;
    font-family: Ma Shan Zheng, cursive;
    font-size: 20px;
    pointer-events: auto
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #ffeac9b8;
    font-size: 10px;
    letter-spacing: .16em
}

.header-meta span:first-child {
    color: #ffe3b6;
    font-size: 12px
}

.poem-switch {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(255, 234, 201, .24);
    border-radius: 99px;
    background: #30160f40;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px)
}

.poem-switch a {
    border-radius: 99px;
    padding: 7px 10px;
    color: #ffeac9b8;
    text-decoration: none;
    font-size: 9px;
    letter-spacing: .08em;
    white-space: nowrap
}

.poem-switch a:hover,
.poem-switch a:focus-visible {
    color: #f2d8ae;
    background: #ffffff12
}

.poem-switch a[aria-current="page"] {
    color: #30160f;
    background: #ffeac9d9
}

.soundless-control {
    border: 1px solid rgba(255, 234, 201, .32);
    border-radius: 99px;
    padding: 9px 14px;
    background: #30160f47;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    pointer-events: auto;
    font-size: 11px;
    letter-spacing: .12em;
    transition: .2s ease
}

.soundless-control:hover,
.soundless-control.active {
    color: #3a1f16;
    background: #f0d8b1
}

.autumn-audio {
    --audio-border: rgba(255, 234, 201, .32);
    --audio-color: rgba(255, 234, 201, .82);
    --audio-bg: rgba(48, 22, 15, .28);
    --audio-active-color: #3a1f16;
    --audio-active-bg: #f0d8b1;
    --audio-focus: #f0d8b1;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px)
}

.chapter-nav {
    position: fixed;
    z-index: 8;
    top: 50%;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%)
}

.chapter-nav a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 230, 192, .22);
    border-radius: 50%;
    color: #ffebcd8c;
    background: #2d150e2e;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-decoration: none;
    font-size: 10px;
    transition: .25s ease
}

.chapter-nav a:hover,
.chapter-nav a.active {
    color: #402016;
    background: #f0d8b1;
    transform: scale(1.12)
}

.scene-note {
    position: fixed;
    z-index: 8;
    right: 70px;
    bottom: 26px;
    width: min(340px, calc(100vw - 40px));
    padding: 17px 19px;
    border: 1px solid rgba(255, 227, 185, .25);
    border-radius: 3px;
    color: #f8e6c8;
    background: #321811c7;
    box-shadow: 0 18px 60px #180a064d;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

.scene-note.open {
    opacity: 1;
    transform: none
}

.scene-note-kicker {
    display: block;
    margin-bottom: 4px;
    color: #d7a467;
    font-size: 10px;
    letter-spacing: .15em
}

.scene-note strong {
    font-size: 20px;
    font-weight: 600
}

.scene-note p {
    margin: 7px 0 0;
    color: #ffebcdb8;
    font-size: 12px;
    line-height: 1.75
}

.story {
    position: relative;
    z-index: 3
}

.chapter {
    position: relative;
    display: flex;
    min-height: 110vh;
    align-items: center;
    padding: 12vh clamp(24px, 7vw, 110px);
    pointer-events: none
}

.chapter:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 20% 50%, rgba(39, 18, 12, .4), transparent 50%);
    transition: opacity .8s ease;
    pointer-events: none
}

.chapter.active:before {
    opacity: 1
}

.chapter.align-right {
    justify-content: flex-end
}

.chapter.align-right:before {
    background: radial-gradient(circle at 80% 50%, rgba(39, 18, 12, .44), transparent 50%)
}

.copy {
    position: relative;
    z-index: 1;
    width: min(535px, 48vw);
    pointer-events: auto
}

.hero {
    min-height: 120vh;
    align-items: flex-start;
    padding-top: 19vh
}

.hero-copy {
    width: min(610px, 57vw);
    text-shadow: 0 3px 24px rgba(45, 19, 11, .42)
}

.kicker,
.chapter-number {
    margin: 0 0 16px;
    color: #f1c680;
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase
}

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

h1 {
    margin-bottom: 7px;
    font-family: ZCOOL XiaoWei, "Noto Serif SC", serif;
    font-size: clamp(58px, 8.5vw, 126px);
    font-weight: 400;
    letter-spacing: -.07em;
    line-height: .88
}

h1 em {
    color: #d45b35;
    font-style: normal
}

.author {
    margin: 18px 0 36px;
    color: #ffebccb3;
    font-size: 13px;
    letter-spacing: .28em
}

blockquote {
    margin: 0 0 34px;
    padding: 0;
    font-family: Ma Shan Zheng, cursive;
    font-size: clamp(25px, 3.1vw, 42px);
    line-height: 1.7
}

blockquote span {
    display: block
}

.enter {
    border: 0;
    border-bottom: 1px solid rgba(255, 230, 191, .45);
    padding: 10px 0;
    color: #ffe5ba;
    background: none;
    cursor: pointer;
    letter-spacing: .08em
}

.enter i {
    display: inline-block;
    margin-left: 12px;
    font-style: normal;
    animation: bob 1.8s ease-in-out infinite
}

.scroll-mark {
    position: absolute;
    bottom: 10vh;
    left: clamp(24px, 7vw, 110px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffe9c78c;
    font-size: 10px;
    letter-spacing: .14em
}

.scroll-mark span {
    display: block;
    width: 42px;
    height: 1px;
    background: #ffe6be80
}

.card {
    padding: clamp(26px, 4vw, 54px);
    border: 1px solid rgba(255, 231, 193, .19);
    color: #f7e7cf;
    background: linear-gradient(145deg, #2a140eba, #4422167a);
    box-shadow: 0 28px 90px #1d0c0738;
    opacity: .42;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
    -webkit-backdrop-filter: blur(8px) saturate(.82);
    backdrop-filter: blur(8px) saturate(.82)
}

.chapter.active .card {
    opacity: 1;
    transform: none
}

.card h2,
.reading h2 {
    margin-bottom: 5px;
    font-family: ZCOOL XiaoWei, "Noto Serif SC", serif;
    font-size: clamp(35px, 5vw, 67px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.15
}

.pinyin {
    margin-bottom: 24px;
    color: #c9965f;
    font-size: 10px;
    letter-spacing: .19em;
    text-transform: uppercase
}

.translation {
    margin-bottom: 21px;
    color: #ffe6bd;
    font-size: 17px;
    line-height: 1.75
}

.commentary {
    margin-bottom: 0;
    color: #ffedd1b8;
    font-size: 14px;
    line-height: 2
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 26px 0;
    background: #ffe3b92e
}

.analysis-grid div {
    padding: 15px;
    background: #2d160fe0
}

.analysis-grid b {
    display: block;
    margin-bottom: 3px;
    color: #e9b570;
    font-family: Ma Shan Zheng, cursive;
    font-size: 27px;
    font-weight: 400
}

.analysis-grid span {
    color: #ffecce8c;
    font-size: 10px;
    letter-spacing: .1em
}

.warm-card {
    background: linear-gradient(145deg, #402316c7, #7e48268a)
}

.contrast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 227, 187, .18);
    color: #edbd7e;
    font-size: 12px
}

.contrast i {
    color: #ffe6be59;
    font-style: normal
}

.rhythm {
    display: flex;
    gap: 9px;
    margin-top: 28px
}

.rhythm span {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid rgba(255, 226, 184, .2);
    text-align: center;
    font-family: Ma Shan Zheng, cursive;
    font-size: 22px
}

.sunset-card {
    border-color: #ffa75866;
    box-shadow: inset 0 0 70px #ca51231c, 0 28px 90px #1d0c0740
}

.timebar {
    position: relative;
    height: 33px;
    margin-top: 28px;
    border-bottom: 1px solid rgba(255, 227, 184, .25)
}

.timebar span {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 74%;
    height: 3px;
    background: linear-gradient(90deg, #ffb762, #b83927);
    box-shadow: 0 0 18px #e07b3c
}

.timebar small {
    position: absolute;
    right: 0;
    bottom: 8px;
    color: #ffe6c380;
    letter-spacing: .12em
}

.final-line-card q {
    display: block;
    margin-top: 30px;
    padding-left: 21px;
    border-left: 2px solid #c14c2f;
    color: #f2bd76;
    font-family: ZCOOL XiaoWei, serif;
    font-size: 20px;
    line-height: 1.8
}

.reading {
    min-height: 120vh;
    align-items: flex-end;
    padding-bottom: 9vh;
    background: linear-gradient(0deg, rgba(35, 17, 12, .92) 0, rgba(35, 17, 12, .7) 50%, transparent 100%)
}

.reading-panel {
    width: 100%;
    padding: clamp(28px, 5vw, 66px);
    border-top: 1px solid rgba(255, 229, 190, .22);
    background: #301811b8;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto
}

.reading-heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 50px
}

.reading-heading h2 {
    margin: 0;
    font-size: clamp(39px, 6vw, 82px)
}

.reading-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 44px;
    background: #ffe5bd26
}

.fact {
    min-height: 185px;
    padding: 23px;
    background: #2e160fe6
}

.fact span {
    display: block;
    margin-bottom: 20px;
    color: #d69954;
    font-size: 10px;
    letter-spacing: .24em
}

.fact p {
    margin: 0;
    color: #ffedd0ad;
    font-size: 13px;
    line-height: 1.85
}

.fact b {
    color: #f4d39f;
    font-weight: 600
}

.emotion-arc {
    display: flex;
    height: 41px;
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 230, 192, .15)
}

.emotion-arc span {
    display: grid;
    width: var(--w);
    place-items: center;
    color: #ffeed1c7;
    background: color-mix(in srgb, #a43d28 calc(var(--w) * 2.5), #5c3928);
    font-size: 10px;
    letter-spacing: .08em
}

.reading footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    color: #ffe8c77a;
    font-size: 11px;
    letter-spacing: .1em
}

.reading footer p {
    margin: 0
}

.reading footer button {
    border: 1px solid rgba(255, 226, 185, .25);
    border-radius: 99px;
    padding: 10px 16px;
    background: transparent;
    cursor: pointer
}

.reading footer button:hover {
    color: #402016;
    background: #f0d8b1
}

.focus-scene .story,
.focus-scene .chapter-nav,
.focus-scene .scene-note {
    opacity: .08;
    transition: opacity .3s ease
}

.focus-scene .site-header {
    opacity: .85
}

.loading {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    color: #efd1a1;
    background: #4f291c;
    letter-spacing: .22em;
    font-size: 11px;
    transition: opacity .6s ease
}

.loading:before {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(242, 196, 127, .3);
    border-top-color: #e5aa58;
    border-radius: 50%;
    animation: spin 1.4s linear infinite
}

.loading span {
    margin-top: 95px
}

.loading.done {
    visibility: hidden;
    opacity: 0;
    pointer-events: none
}

.review-mode .site-header,
.review-mode .chapter-nav,
.review-mode .scene-note,
.review-mode .story,
.review-mode .grain {
    display: none
}

@keyframes bob {
    50% {
        transform: translateY(5px)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:860px) {
    .site-header {
        padding: 14px
    }

    .seal {
        width: 43px;
        height: 43px;
        font-size: 18px
    }

    .header-meta span:last-child {
        display: none
    }

    .soundless-control {
        padding: 8px 11px
    }

    .poem-switch a {
        padding: 6px 8px
    }

    .chapter-nav {
        right: 8px
    }

    .chapter-nav a {
        width: 24px;
        height: 24px;
        font-size: 9px
    }

    .chapter {
        min-height: 118vh;
        padding: 16vh 24px 12vh;
        align-items: flex-end
    }

    .hero {
        min-height: 125vh;
        align-items: flex-start;
        padding-top: 18vh
    }

    .copy,
    .hero-copy {
        width: calc(100% - 34px);
        max-width: 560px
    }

    h1 {
        font-size: clamp(54px, 16vw, 84px)
    }

    blockquote {
        font-size: clamp(22px, 6vw, 31px)
    }

    .card {
        padding: 25px;
        background: linear-gradient(145deg, #311710e0, #4b2719bf)
    }

    .card h2 {
        font-size: clamp(32px, 9vw, 51px)
    }

    .scene-note {
        right: 14px;
        bottom: 14px
    }

    .reading {
        padding: 10vh 14px 3vh
    }

    .reading-panel {
        padding: 26px 20px
    }

    .reading-heading {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .reading-content {
        grid-template-columns: 1fr 1fr
    }

    .emotion-arc {
        height: auto;
        flex-wrap: wrap
    }

    .emotion-arc span {
        min-width: 33%;
        min-height: 36px;
        flex-grow: 1
    }
}

@media(max-width:540px) {

    .header-meta,
    #focus-scene {
        display: none
    }



    .hero-copy {
        width: calc(100% - 15px)
    }

    .author {
        margin-bottom: 25px
    }

    .scroll-mark {
        display: none
    }

    .translation {
        font-size: 15px
    }

    .commentary {
        font-size: 13px;
        line-height: 1.9
    }

    .analysis-grid div {
        padding: 12px 8px
    }

    .contrast {
        align-items: flex-start;
        font-size: 10px
    }

    .reading-content {
        grid-template-columns: 1fr
    }

    .fact {
        min-height: auto
    }

    .reading footer {
        align-items: flex-start;
        flex-direction: column
    }
}

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

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}