@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, serif;
    color: #e9edf0;
    background: #0b1114;
    font-synthesis: none;
    --bronze: #bc8750;
    --silver: #dfe8ed;
    --ink: #0b1114
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    background: #0b1114
}

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

button,
a {
    font: inherit
}

.rb-page {
    min-height: 100%;
    background: #0b1114
}

.rb-scene {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #10171b
}

.rb-scene:before {
    content: "";
    position: absolute;
    inset: -38px;
    background-image: linear-gradient(#080e116b, #080e1185), var(--rb-image, url(../generated/chibi/hero.avif));
    background-position: center;
    background-size: cover;
    filter: blur(26px) saturate(.72);
    transform: scale(1.08)
}

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

.rb-veil {
    position: fixed;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #03080bbd, #03080b14 48%, #03080b59), linear-gradient(0deg, rgba(4, 9, 12, .6), transparent 45%, rgba(4, 9, 12, .18))
}

.rb-grain {
    position: fixed;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    opacity: .1;
    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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

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

.rb-mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(220, 231, 235, .4);
    color: #dbe7eb;
    background: #0c171c9e;
    font-family: Ma Shan Zheng, cursive;
    font-size: 18px;
    text-decoration: none;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px)
}

.rb-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    letter-spacing: .15em;
    color: #e1ebef80
}

.rb-meta b {
    color: #e2e9eb;
    font-size: 12px;
    font-weight: 500
}

.poem-switch {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(220, 231, 235, .22);
    border-radius: 99px;
    background: #080f1247;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px)
}

.poem-switch a {
    border-radius: 99px;
    padding: 7px 10px;
    color: #e6edf0b3;
    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: #080f12;
    background: #e6edf0d9
}

.rb-audio {
    --audio-border: rgba(220, 231, 235, .24);
    --audio-color: rgba(230, 237, 240, .76);
    --audio-bg: rgba(8, 15, 18, .3);
    --audio-active-color: #132027;
    --audio-active-bg: #d8bd92;
    --audio-focus: #d8bd92;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px)
}

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

.rb-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #e6edf061;
    text-decoration: none;
    font-size: 9px
}

.rb-nav i {
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: .25s ease
}

.rb-nav a.active {
    color: #e5c89d
}

.rb-nav a.active i {
    width: 34px
}

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

.rb-section {
    position: relative;
    display: flex;
    min-height: 116vh;
    align-items: center;
    padding: 14vh clamp(25px, 7vw, 110px);
    pointer-events: none
}

.rb-section.rb-right {
    justify-content: flex-end
}

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

.rb-hero-copy {
    width: min(660px, 57vw);
    pointer-events: auto;
    text-shadow: 0 4px 35px rgba(0, 0, 0, .5)
}

.rb-kicker,
.rb-index {
    margin: 0 0 17px;
    color: #c69a67;
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase
}

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

h1 {
    margin: 0;
    font-family: ZCOOL XiaoWei, "Noto Serif SC", serif;
    font-weight: 400;
    line-height: .88
}

h1 span {
    display: block;
    font-size: clamp(62px, 9vw, 132px);
    letter-spacing: -.07em
}

h1 em {
    display: block;
    margin-top: 12px;
    color: #dfd4c2;
    font-size: clamp(29px, 4vw, 55px);
    font-style: normal;
    letter-spacing: .16em
}

.rb-author {
    margin: 24px 0 42px;
    color: #e6eef18c;
    font-size: 13px;
    letter-spacing: .36em
}

.rb-opening-line {
    max-width: 620px;
    color: #f0e1c9;
    font-family: Ma Shan Zheng, cursive;
    font-size: clamp(25px, 3vw, 43px);
    line-height: 1.55
}

.rb-intro {
    max-width: 510px;
    margin: 23px 0 31px;
    color: #e5edf0ab;
    font-size: 13px;
    line-height: 1.9
}

#rb-enter {
    border: 0;
    border-bottom: 1px solid rgba(220, 231, 235, .35);
    padding: 9px 0;
    color: #dae5e9;
    background: none;
    cursor: pointer;
    letter-spacing: .12em
}

#rb-enter span {
    display: inline-block;
    margin-left: 10px;
    animation: rb-bob 1.7s ease-in-out infinite
}

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

.rb-scroll i {
    width: 45px;
    height: 1px;
    background: #e1ebee59
}

.rb-card {
    width: min(560px, 48vw);
    padding: clamp(28px, 4vw, 55px);
    border: 1px solid rgba(215, 228, 233, .16);
    color: #eaf0f2;
    background: linear-gradient(145deg, #070f13d6, #111d22ad);
    box-shadow: 0 28px 100px #00000045;
    opacity: .36;
    transform: translateY(25px);
    transition: opacity .75s ease, transform .75s ease;
    -webkit-backdrop-filter: blur(10px) saturate(.72);
    backdrop-filter: blur(10px) saturate(.72);
    pointer-events: auto
}

.rb-section.active .rb-card {
    opacity: 1;
    transform: none
}

.rb-card h2 {
    margin-bottom: 20px;
    font-family: ZCOOL XiaoWei, "Noto Serif SC", serif;
    font-size: clamp(34px, 4.5vw, 62px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.035em
}

.rb-translation {
    margin-bottom: 24px;
    color: #dbc6a8;
    font-size: 15px;
    line-height: 1.9
}

.rb-analysis {
    margin-bottom: 0;
    color: #e1ebefad;
    font-size: 13px;
    line-height: 2
}

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

.rb-keywords span {
    padding: 14px 10px;
    background: #070f13db;
    color: #e1ebee8c;
    font-size: 9px;
    text-align: center
}

.rb-keywords b {
    display: block;
    margin-bottom: 5px;
    color: #d5a770;
    font-family: Ma Shan Zheng, cursive;
    font-size: 22px;
    font-weight: 400
}

.rb-contrast,
.rb-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 27px;
    padding-top: 18px;
    border-top: 1px solid rgba(220, 231, 235, .14);
    color: #c7a577;
    font-size: 11px
}

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

.rb-verbs {
    display: flex;
    gap: 9px;
    margin: 25px 0
}

.rb-verbs span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(225, 235, 239, .23);
    border-radius: 50%;
    color: #d9e4e8;
    font-family: Ma Shan Zheng, cursive;
    font-size: 26px
}

.rb-card q {
    display: block;
    margin-top: 28px;
    padding-left: 20px;
    border-left: 2px solid #a96a42;
    color: #e0bc89;
    font-family: Ma Shan Zheng, cursive;
    font-size: 24px;
    line-height: 1.65
}

.rb-portrait {
    display: flex;
    gap: 8px;
    margin-top: 27px
}

.rb-portrait span {
    border: 1px solid rgba(220, 231, 235, .17);
    padding: 9px 12px;
    color: #e6edf0a6;
    font-size: 10px
}

.rb-fire-card {
    border-color: #c7683757;
    box-shadow: inset 0 0 70px #993a1917, 0 28px 100px #0000004d
}

.rb-scale i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #b57a4c, #dce7eb26)
}

.rb-moon-card q {
    color: #d9e6ed;
    border-left-color: #9cb9c7
}

.rb-ending {
    margin: 18px 0 0;
    color: #e1ebef94;
    font-size: 12px;
    line-height: 1.9
}

.rb-reading {
    min-height: 120vh;
    align-items: flex-end;
    padding-bottom: 7vh;
    background: linear-gradient(0deg, rgba(4, 10, 13, .95), rgba(4, 10, 13, .72) 60%, transparent)
}

.rb-reading-panel {
    width: 100%;
    padding: clamp(30px, 5vw, 66px);
    border-top: 1px solid rgba(220, 231, 235, .16);
    background: #081115c2;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto
}

.rb-reading-title {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 45px
}

.rb-reading-title h2 {
    margin: 0;
    font-family: ZCOOL XiaoWei, serif;
    font-size: clamp(43px, 6vw, 84px);
    font-weight: 400;
    line-height: 1.08
}

.rb-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 42px;
    background: #dce7eb21
}

.rb-facts article {
    min-height: 205px;
    padding: 23px;
    background: #070f13f0
}

.rb-facts span {
    color: #a9774e;
    font-size: 9px;
    letter-spacing: .22em
}

.rb-facts h3 {
    margin: 17px 0 12px;
    color: #e2e9ec;
    font-size: 21px;
    font-weight: 500
}

.rb-facts p {
    margin: 0;
    color: #e2ebee99;
    font-size: 12px;
    line-height: 1.9
}

.rb-arc {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 29px;
    color: #c4a47b;
    font-size: 10px;
    letter-spacing: .08em
}

.rb-arc i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #be854c80, #dce7eb26)
}

.rb-reading footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 29px;
    color: #e1ebee73;
    font-size: 11px
}

.rb-reading footer p {
    margin: 0
}

.rb-reading footer button {
    border: 1px solid rgba(220, 231, 235, .2);
    border-radius: 99px;
    padding: 10px 15px;
    color: #dbe5e8;
    background: transparent;
    cursor: pointer
}

.rb-loading {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    color: #c8d6dc;
    background: #0b1114;
    letter-spacing: .24em;
    font-size: 10px;
    transition: opacity .6s ease
}

.rb-loading i {
    position: absolute;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(210, 226, 232, .16);
    border-top-color: #ba8a58;
    border-radius: 50%;
    animation: rb-spin 1.5s linear infinite
}

.rb-loading span {
    margin-top: 110px
}

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

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

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

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

    .rb-mark {
        width: 44px;
        height: 44px
    }

    .rb-meta span {
        display: none
    }

    .rb-nav {
        right: 7px
    }

    .rb-nav a span {
        display: none
    }

    .rb-section {
        min-height: 120vh;
        padding: 16vh 23px 11vh;
        align-items: flex-end
    }

    .rb-hero {
        align-items: flex-start;
        padding-top: 18vh
    }

    .rb-hero-copy,
    .rb-card {
        width: calc(100% - 30px);
        max-width: 590px
    }

    .rb-card {
        padding: 25px;
        background: linear-gradient(145deg, #070f13e6, #111d22cc)
    }

    .rb-reading {
        padding: 10vh 13px 3vh
    }

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

    .rb-reading-title {
        grid-template-columns: 1fr;
        gap: 9px
    }

    .rb-facts {
        grid-template-columns: 1fr 1fr
    }

    .rb-arc {
        flex-wrap: wrap
    }

    .rb-arc i {
        min-width: 25%
    }
}

@media(max-width:540px) {
    .rb-meta {
        display: none
    }

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

    h1 span {
        font-size: 17vw
    }

    .rb-opening-line {
        font-size: 7vw
    }

    .rb-scroll {
        display: none
    }

    .rb-card h2 {
        font-size: 9vw
    }

    .rb-keywords,
    .rb-facts {
        grid-template-columns: 1fr
    }

    .rb-facts article {
        min-height: auto
    }

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

    .rb-arc span {
        width: 42%
    }
}

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

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