@font-face {
    font-family: YueSong;
    src: url('assets/yuesong.ttf') format('truetype');
    font-display: swap
}

:root {
    --blue: #395676;
    --gold: #d9af59;
    --paper: #fcf9f4;
    --muted: #b7a88f;
    color-scheme: light
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 32px
}

body {
    margin: 0;
    color: var(--blue);
    font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    background: #fff
}

body.modal-open {
    overflow: hidden
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px
}

img {
    display: block;
    max-width: 100%
}

button {
    border: 0
}

button:disabled {
    cursor: default
}

h1,
h2,
h3,
p {
    margin: 0
}

.display,
h1,
h2,
h3,
.stat strong,
.award,
.media-title,
.theme-card,
.site-name {
    font-family: YueSong, "Songti SC", serif;
    font-weight: 400
}

.container {
    width: calc(100% - 48px);
    max-width: 1170px;
    margin-inline: auto
}

.header {
    background: #fff
}

.header-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0
}

.brand img {
    width: 105px;
    height: 59px;
    object-fit: contain
}

.site-name {
    font-size: 24px;
    white-space: nowrap
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
    font-size: 18px
}

nav a {
    padding: 8px 0;
    border-bottom: 1px solid transparent
}

nav a:hover {
    border-color: var(--gold)
}

.hero {
    width: 100%;
    aspect-ratio: 12/5;
    background: url('assets/banner.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #294563;
    overflow: hidden
}

.hero-copy {
    display: grid;
    gap: clamp(22px, 2.2vw, 42px);
    padding: 24px 12px
}

.hero-lotus {
    width: 9.2vw;
    object-fit: contain;
    margin: 0 auto clamp(8px, .9vw, 18px);
}

h1 {
    font-size: clamp(36px, 3.7vw, 76px);
    line-height: 1.25;
    letter-spacing: .03em
}

.hero-theme {
    font-size: clamp(25px, 3vw, 60px);
    color: #82602e;
    letter-spacing: .13em
}

.organizers {
    font-size: clamp(16px, 1.6vw, 32px);
    color: var(--blue);
    line-height: 1.55;
    letter-spacing: .08em
}

main {
    background-image: url('assets/mountains.png');
    background-position: center top;
    background-size: 1920px auto;
    background-repeat: repeat-y
}

section {
    padding-top: 60px
}

.section-heading {
    text-align: center;
    margin-bottom: 48px
}

.section-heading img {
    width: 118px;
    height: 66px;
    object-fit: contain;
    margin: 0 auto 6px
}

.section-heading h2 {
    font-size: 34px;
    line-height: 1.35
}

.section-heading:after {
    content: "";
    display: block;
    width: 52px;
    height: 1px;
    background: #d8d8d8;
    margin: 12px auto 0
}

.overview {
    padding-top: 40px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px
}

.stat {
    text-align: center;
    border: 1px solid #ead4af;
    border-radius: 18px;
    padding: 16px 8px 14px;
    background: #ffffff9c
}

.stat img {
    width: 110px;
    height: 70px;
    object-fit: cover;
    object-position: center 56%;
    margin: 0 auto 4px
}

.stat strong {
    display: block;
    font-size: 40px;
    line-height: 1.3
}

.stat p {
    color: #b0a594;
    font-size: 18px;
    margin-top: 5px
}

.overview-copy {
    font-size: 16px;
    line-height: 1.8;
    padding: 0 14px
}

.overview-copy p {
    text-indent: 2em;
    margin-top: 14px
}

.themes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px
}

.theme-card {
    background: #fcf9f4ed;
    position: relative;
    text-align: center;
    padding: 28px 10px 20px
}

.theme-card:before,
.theme-card:after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px
}

.theme-card:before {
    top: 0;
    left: 0;
    border-left: 2px solid var(--blue);
    border-top: 2px solid var(--blue)
}

.theme-card:after {
    bottom: 0;
    right: 0;
    border-right: 2px solid #d6a333;
    border-bottom: 2px solid #d6a333
}

.theme-card img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    margin: 0 auto 8px
}

.theme-card h3 {
    font-size: 24px
}

.theme-card p {
    font-family: system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    color: #c0a77f;
    margin-top: 7px
}

.books {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 38px
}

.books img {
    width: 100%;
    height: auto
}

.awards {
    padding-top: 80px
}

.award-group+.award-group {
    margin-top: 40px
}

.award-group h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 40px;
    margin-bottom: 26px
}

.award-group h3:before,
.award-group h3:after {
    content: "";
    width: 46px;
    height: 2px;
    background: var(--gold)
}

.award-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 34px;
    max-width: 960px;
    margin: auto
}

.award {
    background: linear-gradient(115deg, #faf6ed, #fcfaf5);
    width: 280px;
    padding: 12px 18px 12px 42px;
    position: relative;
    min-height: 82px;
    border-radius: 3px
}

.award:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 4px;
    background: var(--gold)
}

.award strong {
    font-size: 30px;
    font-weight: 400;
    display: block
}

.award span {
    font-size: 20px;
    color: #748396
}

.award-group:last-child .award-list {
    max-width: 1100px;
    gap: 24px
}

.award-group:last-child .award {
    width: 250px;
    padding-left: 34px
}

.award-group:last-child .award span {
    font-size: 20px
}

.albums {
    --album-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px var(--album-gap)
}

.album {
    background: none;
    padding: 0;
    flex: 0 0 100%;
    min-width: 0
}

.album img {
    width: 100%;
    aspect-ratio: 1.54;
    object-fit: cover;
    border-radius: 9px
}

.album[data-album="2"] img {
    object-position: center top
}

.album .media-title {
    font-size: 22px;
    margin-top: 10px;
    padding: 0
}

.album:hover img,
.video-card:hover .cover img {
    filter: brightness(.92)
}

.subheading {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 30px;
    text-align: center;
    margin: 42px 8px 24px
}

.subheading:before,
.subheading:after {
    content: "";
    height: 1px;
    background: #d8af67;
    flex: 1
}

.subheading span {
    flex-shrink: 0
}

.videos {
    display: grid;
    gap: 20px 28px
}

.ceremonies {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

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

.talks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px
}

.video-card {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9ad59;
    border-radius: 12px;
    background: #f7f2e7;
    text-align: center
}

.cover {
    position: relative;
    display: block;
    background: #e5e9ec;
    aspect-ratio: 16/9;
    overflow: hidden
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border: 3px solid white;
    border-radius: 50%;
    background: #23354e3b;
    box-shadow: 0 1px 8px #0002
}

.play:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 15px;
    border-left: 13px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent
}

.ceremonies .play {
    width: 62px;
    height: 62px
}

.ceremonies .play:after {
    top: 15px;
    left: 22px;
    border-left-width: 18px;
    border-top-width: 13px;
    border-bottom-width: 13px
}

.media-title {
    display: block;
    font-size: 21px;
    line-height: 1.4;
    padding: 7px 5px;
    color: #204f58
}

.ceremonies .media-title {
    font-size: 27px;
    padding: 10px
}

.reviews .media-title {
    font-size: 20px
}

.reports {
    padding-bottom: 80px
}

.report-list {
    border-top: 1px solid #dec18c
}

.report {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 108px;
    padding: 18px 26px;
    border-bottom: 1px solid #dec18c;
    background: #fcf9f4cc
}

.report:hover {
    background: #f7efdf
}

.report-number {
    font-family: YueSong, serif;
    font-style: italic;
    font-size: 36px;
    color: #d0a452;
    line-height: 1;
    border-right: 1px solid #d0a452;
    padding-right: 30px
}

.report-content {
    flex: 1;
    min-width: 0
}

.report h3 {
    font-size: 25px;
    line-height: 1.5
}

.report-source {
    display: inline-block;
    border: 1px solid #e0be83;
    border-radius: 4px;
    padding: 2px 15px;
    font-family: YueSong, serif;
    font-size: 19px;
    margin-top: 4px
}

.report time {
    white-space: nowrap;
    font-family: YueSong, serif;
    font-size: 20px
}

.report-arrow {
    font-size: 30px
}

.footer img {
    width: 100%;
    height: auto
}

.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    margin: 0;
    background: rgba(0, 0, 0, .91);
    color: white;
    overflow: hidden
}

.modal::backdrop {
    background: transparent
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #0009;
    color: white;
    z-index: 5;
    border: 1px solid #ffffff70;
    border-radius: 6px;
    padding: 8px 15px;
    min-height: 44px;
    font-size: 18px
}

.photo-stage {
    position: absolute;
    inset: 64px 5vw 90px;
    display: flex;
    align-items: center;
    justify-content: center
}

.photo-stage>img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.photo-half {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: transparent;
    color: white;
    font-size: 52px;
    text-shadow: 0 2px 8px #000
}

.photo-half.prev {
    left: 0;
    text-align: left;
    padding-left: 10px
}

.photo-half.next {
    right: 0;
    text-align: right;
    padding-right: 10px
}

.photo-half:hover {
    background: #ffffff05
}

.photo-half span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 70px;
    background: #0004;
    border-radius: 6px
}

.photo-footer {
    position: absolute;
    bottom: 14px;
    left: 5%;
    width: 90%;
    text-align: center
}

.photo-counter {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 5px
}

.photo-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 840px;
    margin: auto
}

.photo-dot {
    width: 24px;
    height: 24px;
    padding: 7px;
    background: transparent;
    border-radius: 50%
}

.photo-dot:after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff5c
}

.photo-dot[aria-current=true]:after {
    background: #fff
}

.media-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0009;
    padding: 8px 14px;
    border-radius: 5px;
    pointer-events: none;
    text-align: center
}

.media-status:empty {
    display: none
}

.video-stage {
    position: absolute;
    inset: 70px 5vw 40px;
    display: flex;
    align-items: center;
    justify-content: center
}

.video-stage video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 82dvh;
    object-fit: contain
}

.video-stage .media-status {
    top: 15%
}

@media(min-width:640px) {
    .album {
        flex-basis: calc((100% - var(--album-gap)) / 2)
    }
}

@media(min-width:997px) {
    .albums {
        --album-gap: 28px;
        row-gap: 32px;
        padding: 0 16px
    }

    .album {
        flex-basis: calc((100% - 2 * var(--album-gap)) / 3)
    }

    .album .media-title {
        font-size: 24px;
        margin-top: 12px
    }

    .hero {
        min-height: 420px
    }
}

@media(max-width:996px) {
    .container {
        width: calc(100% - 32px)
    }

    .header-inner {
        padding-block: 15px;
        min-height: 88px;
        flex-direction: column;
        gap: 12px
    }

    .brand img {
        width: 70px;
        height: 40px
    }

    .site-name {
        font-size: 23px
    }

    nav {
        justify-content: center;
        gap: 4px 18px;
        font-size: 15px
    }

    nav a {
        padding: 5px 0
    }

    .hero {
        aspect-ratio: auto;
        min-height: 500px;
        background-position: center bottom
    }

    .hero-lotus {
        width: 92px;
        height: 56px
    }

    h1 {
        font-size: clamp(30px, 5.5vw, 52px)
    }

    .hero-theme {
        font-size: clamp(23px, 4vw, 36px);
        letter-spacing: .06em
    }

    .organizers {
        font-size: clamp(16px, 2.4vw, 22px);
        letter-spacing: 0;
        line-height: 1.8
    }

    .organizers .hosts {
        display: block;
        max-width: 580px;
        margin: auto
    }

    .section-heading {
        margin-bottom: 32px
    }

    .section-heading h2 {
        font-size: 30px
    }

    .section-heading img {
        width: 100px;
        height: 56px
    }

    section {
        padding-top: 50px
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .stat p {
        font-size: 14px
    }

    .stat strong {
        font-size: 34px
    }

    .stat img {
        height: 48px
    }

    .overview-copy {
        font-size: 16px;
        padding: 0
    }

    .themes {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .theme-card {
        padding: 24px
    }

    .theme-card h3 {
        font-size: 30px
    }

    .books {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 12px
    }

    .awards {
        padding-top: 50px
    }

    .award-list,
    .award-group:last-child .award-list {
        gap: 14px
    }

    .award,
    .award-group:last-child .award {
        width: calc(50% - 7px);
        padding: 13px 10px 13px 28px;
        min-height: 85px
    }

    .award:before {
        left: 10px;
        width: 3px
    }

    .award strong {
        font-size: 25px
    }

    .award span,
    .award-group:last-child .award span {
        font-size: 18px
    }

    .award-group h3 {
        font-size: 34px
    }

    .ceremonies {
        grid-template-columns: 1fr
    }

    .reviews,
    .talks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px
    }

    .subheading {
        gap: 15px;
        font-size: 26px;
        margin: 32px 0 20px
    }

    .media-title,
    .reviews .media-title {
        font-size: 19px
    }

    .ceremonies .media-title {
        font-size: 24px
    }

    .report {
        gap: 14px;
        padding: 18px 12px;
        flex-wrap: wrap
    }

    .report-number {
        font-size: 29px;
        padding-right: 14px
    }

    .report-content {
        flex-basis: calc(100% - 65px)
    }

    .report h3 {
        font-size: 21px
    }

    .report-source {
        font-size: 17px
    }

    .report time {
        font-size: 17px;
        margin-left: auto
    }

    .report-arrow {
        font-size: 24px
    }

    .reports {
        padding-bottom: 20px
    }

    .footer {
        overflow: hidden
    }

    .footer img {
        width: 200%;
        max-width: none;
        margin-left: -50%
    }

    .photo-stage {
        inset: 70px 5vw 120px
    }

    .photo-half {
        font-size: 38px
    }

    .photo-half span {
        width: 36px;
        height: 52px
    }

    .photo-half.prev {
        padding-left: 0
    }

    .photo-half.next {
        padding-right: 0
    }

    .photo-dot {
        width: 22px;
        height: 22px;
        padding: 6px
    }

    .photo-footer {
        bottom: 12px
    }

    .video-stage {
        inset: 70px 5vw 45px
    }

    .modal-close {
        right: 14px;
        top: 14px
    }
}

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

.hosts span {
    display: inline-block
}
