@font-face {
    font-family: "ABC Gravity Cyrillic";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233950/ABCGravityCyrillic-XCompressed-Trial.woff2) format("woff2");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "ABC Gravity Cyrillic Compressed";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233950/ABCGravityCyrillic-Compressed-Trial.woff2) format("woff2");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "ABC Oracle Variable";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233948/ABCOracleVariable-Trial.woff2) format("woff2");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "ABC Oracle";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233950/ABCOracle-Regular-Trial.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "ABC Oracle";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233950/ABCOracle-Light-Trial.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "ABC Oracle";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233950/ABCOracle-Bold-Trial.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "ABC Arizona Sans Compressed";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233949/ABCArizonaSans-Bold-Trial.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "ABC Arizona Sans Compressed";
    src: url(https://res.cloudinary.com/apth60tu/raw/upload/v1790233948/ABCArizonaSans-Light-Trial.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-width: 960px;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #000000;
    color: #f4d7c4;
    font-family: Arial, Helvetica, sans-serif;
}

#cover {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background-color: #000000;
}

/* Header */
header {
    position: fixed;
    top: 24px;
    left: 48px;
    right: 48px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: transparent;
}

nav ul {
    display: flex;
    gap: 46px;
    list-style: none;
}

nav a {
    color: #d7d7d7;
    font-family: "ABC Oracle Variable", Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-decoration: none;
}

nav a:hover {
    color: #ffffff;
}

header > a {
    color: #ffffff;
    font-family: "ABC Gravity Cyrillic", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
}

/* Main title */
#cover h1 {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f4d7c4;
    font-family: "ABC Gravity Cyrillic", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: min(50vw, 95vh);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.015em;
    text-align: center;
    user-select: none;
}

/* Homepage subtitle */
#cover div {
    position: absolute;
    left: 50%;
    bottom: 4vh;
    z-index: 3;
    width: 520px;
    margin-left: -260px;
    transform: scaleX(0.78);
    transform-origin: center;
    color: #f4d7c4;
    font-family: "ABC Arizona Sans Compressed", "Arial Narrow", Arial, sans-serif;
    font-size: 33px;
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.025em;
    text-align: center;
}

#cover p:nth-child(2) {
    font-weight: 300;
}

/* Introduction */
#introduction {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background-color: #020202;
}

#introduction p {
    position: relative;
    z-index: 2;
    width: 56.25vw;
    max-width: 1080px;
    color: #fee0ce;
    font-family: "ABC Gravity Cyrillic Compressed", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(32px, 3.333vw, 64px);
    font-weight: 900;
    line-height: 0.90625;
    letter-spacing: 0.02em;
    text-align: center;
}

#introduction strong {
    color: #f95137;
    font-weight: 900;
}

#introduction img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

/* Xiang embroidery gallery */
#xiang-embroidery {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    padding-top: 6.8vh;
    background-color: #020202;
    opacity: 1;
    isolation: isolate;
    color: #fee0ce;
    text-align: center;
}

#xiang-embroidery h2 {
    font-family: "ABC Gravity Cyrillic Compressed", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(66px, 5.2vw, 100px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.01em;
}

#xiang-embroidery > figure {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 68vh;
    min-height: 460px;
    margin: 5vh auto 0;
    overflow: hidden;
}

#xiang-embroidery > figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#xiang-embroidery > p,
#hunan-opera > p,
#xiaoyu-bamboo > p {
    color: #fee0ce;
    font-family: "ABC Oracle", Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 1.45vw, 28px);
    font-weight: 300;
    line-height: 1;
    text-align: center;
}

#xiang-embroidery > p span,
#xiang-embroidery > p strong,
#hunan-opera > p span,
#hunan-opera > p strong,
#xiaoyu-bamboo > p span,
#xiaoyu-bamboo > p strong {
    display: block;
}

#xiang-embroidery > p strong,
#hunan-opera > p strong,
#xiaoyu-bamboo > p strong {
    margin-top: 4px;
    font-weight: 700;
}

#xiang-embroidery > p em,
#hunan-opera > p em,
#xiaoyu-bamboo > p em {
    color: #f95137;
    font-style: normal;
}

#xiang-embroidery > p {
    margin-top: 3.2vh;
}

/* Xiang embroidery introduction */
#embroidery-story {
    display: grid;
    grid-template-columns: minmax(0, 2.56fr) minmax(360px, 1fr);
    align-items: start;
    column-gap: 2.5vw;
    width: 100%;
    padding: 2.45vw;
    background-color: #020202;
    color: #fee0ce;
}

#embroidery-story > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25vw;
    align-items: start;
}

#embroidery-story figure {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

#embroidery-story figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#embroidery-story .square {
    grid-column: 1;
    grid-row: 7;
    aspect-ratio: auto;
}

#embroidery-story .tall {
    grid-column: 2;
    grid-row: 6 / span 2;
    aspect-ratio: auto;
}

#embroidery-story .square img,
#embroidery-story .tall img {
    height: auto;
    object-fit: contain;
}

#embroidery-story > article,
#opera-details > article,
#bamboo-story article {
    color: #fee0ce;
    font-family: "ABC Oracle", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

#embroidery-story > article,
#opera-details > article {
    font-size: clamp(14px, 1.04vw, 20px);
    line-height: 1.18;
    letter-spacing: 0.01em;
}

#embroidery-story > article p,
#opera-details > article p,
#bamboo-story article p {
    margin: 0;
}

#embroidery-story > article strong,
#opera-details > article strong,
#bamboo-story article strong {
    font-weight: 700;
}

/* Hunan opera */
#hunan-opera {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    isolation: isolate;
    background-color: #020202;
    color: #fee0ce;
}

#hunan-opera > video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

#hunan-opera > img {
    position: absolute;
    bottom: 27vh;
    left: 50%;
    z-index: 1;
    display: block;
    width: min(29vw, 560px);
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
}

#hunan-opera h2 {
    position: absolute;
    top: 70%;
    left: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    column-gap: 1.4vw;
    transform: translate(-50%, -50%) scaleX(1.35);
    font-family: "ABC Gravity Cyrillic Compressed", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(112px, 11.5vw, 220px);
    font-weight: 900;
    line-height: 0.78;
    letter-spacing: 0;
    white-space: nowrap;
}

#hunan-opera h2 span {
    color: #f95137;
}

#hunan-opera h2 strong {
    color: #fee0ce;
    font-weight: 900;
}

#hunan-opera > p {
    position: absolute;
    bottom: 6.5vh;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Xiang opera introduction and clips */
#opera-details {
    display: grid;
    grid-template-columns: 36vw 25vw;
    align-items: start;
    justify-content: center;
    column-gap: 12vw;
    width: 100%;
    min-height: 100vh;
    padding: 5.5vw 0 19vw;
    background-color: #020202;
    color: #fee0ce;
}

#opera-details > div {
    display: grid;
    gap: 0.65vw;
}

#opera-details figure {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #020202;
}

#opera-details figure img,
#opera-details figure video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

#opera-details figure img {
    z-index: 1;
    opacity: 1;
}

#opera-details figure video {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

#opera-details figure:hover img {
    opacity: 0;
}

#opera-details figure:hover video {
    opacity: 1;
}

#opera-details > article {
    padding-top: 2.8vw;
    text-align: center;
}

/* Xiaoyu bamboo craft */
#bamboo-chapter {
    display: grid;
    grid-template-columns: 100%;
    background-color: #020202;
}

#bamboo-chapter > div {
    grid-row: 1 / span 2;
    grid-column: 1;
    z-index: 3;
    min-height: 0;
    padding-top: 12vh;
    pointer-events: none;
}

#xiaoyu-bamboo {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    isolation: isolate;
    background-color: #020202;
    color: #fee0ce;
}

#xiaoyu-bamboo > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.lamp {
    position: sticky;
    top: 12vh;
    margin-left: 11.7vw;
    width: min(34.375vw, 660px);
    aspect-ratio: 660 / 836;
    pointer-events: auto;
}

.lamp img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.lamp img:first-of-type {
    z-index: 1;
    opacity: 1;
}

.lamp img:last-of-type {
    z-index: 2;
    opacity: 0;
}

.lamp span {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    cursor: pointer;
    clip-path: polygon(
        50% 0%, 65% 2%, 78% 8%, 89% 18%, 96% 31%, 99% 46%,
        97% 60%, 91% 70%, 83% 75%, 85% 76%, 87% 79%, 91% 97%,
        82% 97%, 78% 94%, 70% 94%, 66% 97%, 34% 97%, 30% 94%,
        22% 94%, 18% 97%, 9% 97%, 13% 79%, 15% 76%, 17% 75%,
        9% 70%, 3% 60%, 1% 46%, 4% 31%, 11% 18%, 22% 8%, 35% 2%
    );
}

.lamp span:hover ~ img:first-of-type {
    opacity: 0;
}

.lamp span:hover ~ img:last-of-type {
    opacity: 1;
}

#xiaoyu-bamboo h2 {
    position: absolute;
    top: 29.2vh;
    left: 73vw;
    z-index: 2;
    margin: 0;
    transform: translateX(-50%) scaleX(1.5);
    color: #fee0ce;
    font-family: "ABC Gravity Cyrillic", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(82px, 6.8vw, 130px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

#xiaoyu-bamboo h2 span,
#xiaoyu-bamboo h2 strong {
    display: block;
}

#xiaoyu-bamboo h2 strong {
    font-weight: 900;
}

#xiaoyu-bamboo > p {
    position: absolute;
    top: 66vh;
    left: 61vw;
    z-index: 2;
    width: 29vw;
    margin: 0;
}

/* Xiaoyu bamboo craft introduction */
#bamboo-story {
    grid-row: 2;
    grid-column: 1;
    display: grid;
    grid-template-columns: min(34.375vw, 660px) 25vw;
    align-items: start;
    column-gap: 15vw;
    width: 100%;
    min-height: 145vh;
    padding: 15.5vh 0 20vh 11.7vw;
    background-color: #020202;
    color: #fee0ce;
}

#bamboo-story article {
    grid-column: 2;
    width: 100%;
    font-size: clamp(15px, 1.04vw, 20px);
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
}

/* Footer */
footer {
    width: 100%;
    height: 49vh;
    min-height: 420px;
    padding: 7vh 3.4vw;
    background-color: #f95137;
}

footer a {
    display: inline-block;
    transform: scaleX(1.12);
    transform-origin: left top;
    color: #fee0ce;
    font-family: "ABC Gravity Cyrillic", Impact, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(76px, 5.2vw, 100px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

/* Media query */
@media (max-height: 760px) {
    header {
        top: 18px;
    }

    #cover h1 {
        font-size: min(50vw, 88vh);
    }

    #cover div {
        bottom: 2vh;
        font-size: 28px;
    }

    #xiang-embroidery {
        padding-top: 4vh;
    }

    #xiang-embroidery > figure {
        height: 65vh;
        margin-top: 4vh;
    }

    #xiang-embroidery > p {
        margin-top: 2vh;
    }
}

@media (max-width: 900px) {
    body {
        min-width: 0;
        width: 100%;
    }

    #cover {
        width: 100%;
        min-height: 100svh;
    }

    header {
        top: 2.5vh;
        left: 4vw;
        right: 4vw;
        column-gap: 3vw;
    }

    nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    nav ul {
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: start;
        gap: 1vh 3.5vw;
    }

    nav a {
        font-size: 2.75vw;
        line-height: 1.1;
    }

    header > a {
        flex: 0 0 auto;
    }

    #cover h1 {
        font-size: min(42vw, 72vh);
    }

    #cover div {
        bottom: 4vh;
        width: 86vw;
        margin-left: 0;
        transform: translateX(-50%) scaleX(0.78);
        font-size: 6.5vw;
        line-height: 1.02;
        letter-spacing: -0.025em;
    }

    #introduction {
        height: auto;
        min-height: 100svh;
        padding: 18vh 6vw 12vh;
    }

    #introduction p {
        width: 88vw;
        max-width: none;
        font-size: 5.6vw;
    }

    #xiang-embroidery {
        height: 100svh;
        min-height: 100svh;
        padding-top: 13vh;
    }

    #xiang-embroidery h2 {
        font-size: 12vw;
    }

    #xiang-embroidery > figure {
        height: 58svh;
        min-height: 0;
        margin-top: 4vh;
    }

    #xiang-embroidery > p {
        margin-top: 2.8vh;
        font-size: 4vw;
    }

    #embroidery-story {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 7vw;
        padding: 10vh 4vw;
    }

    #embroidery-story > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3vw;
    }

    #embroidery-story figure {
        aspect-ratio: auto;
    }

    #embroidery-story figure img {
        height: auto;
        object-fit: contain;
    }

    #embroidery-story .square,
    #embroidery-story .tall {
        grid-column: auto;
        grid-row: auto;
    }

    #embroidery-story > article {
        font-size: 4vw;
        line-height: 1.2;
        letter-spacing: 0.005em;
        text-align: center;
    }

    #hunan-opera {
        min-height: 100svh;
    }

    #hunan-opera > img {
        bottom: 27vh;
        width: 56vw;
    }

    #hunan-opera h2 {
        column-gap: 1.8vw;
        font-size: 15vw;
    }

    #hunan-opera > p {
        bottom: 6vh;
        font-size: 3.8vw;
    }

    #opera-details {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 7vw;
        padding: 12vh 4vw 16vh;
    }

    #opera-details > div {
        gap: 2vw;
    }

    #opera-details > article {
        padding-top: 0;
        font-size: 4vw;
        line-height: 1.2;
    }

    #xiaoyu-bamboo {
        min-height: 100svh;
    }

    .lamp {
        top: 12vh;
        margin-left: 3vw;
        width: 46vw;
    }

    #xiaoyu-bamboo h2 {
        top: 28vh;
        left: 75vw;
        transform: translateX(-50%) scaleX(1.1);
        font-size: 11vw;
    }

    #xiaoyu-bamboo > p {
        top: 62vh;
        left: 50vw;
        width: 47vw;
        font-size: 3.4vw;
        line-height: 1.05;
    }

    #bamboo-story {
        grid-template-columns: 46vw 44vw;
        column-gap: 4vw;
        min-height: 145vh;
        padding: 12vh 0 14vh 3vw;
    }

    #bamboo-story article {
        font-size: 3.1vw;
        line-height: 1.14;
    }

    footer {
        height: 42vh;
        min-height: 0;
        padding: 6vh 7vw;
    }

    footer a {
        font-size: 15vw;
    }
}
