:root {
    color-scheme: dark;
    --gold: #f5da9a;
    --soft-gold: #ffe8b1;
    --body: #f4e5da;
    --burgundy: #351012;
    --deep-burgundy: #260c0d;
    --display: "Noto Serif SC", "Songti SC", SimSun, serif;
    --sans: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--body);
    background: var(--deep-burgundy);
    font-family: var(--sans);
    line-height: 1.6;
}

h1, h2, p {
    margin: 0;
}

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

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid #ffe7ae;
    outline-offset: 4px;
}

.masthead {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #ad7946;
    background: #480b0d;
}

.masthead__inner {
    width: min(100% - 8vw, 1440px);
    min-height: 62px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: clamp(112px, 10.2vw, 164px);
    min-height: 44px;
}

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

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    position: relative;
    display: grid;
    min-height: 44px;
    align-items: center;
    padding-inline: clamp(12px, 2.2vw, 36px);
    color: var(--soft-gold);
    font-family: var(--display);
    font-size: clamp(0.875rem, 1.45vw, 1.4rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:last-child {
    padding-right: 0;
}

.main-nav a + a::before {
    position: absolute;
    inset: 28% auto 28% 0;
    width: 1px;
    background: #ad7946;
    content: "";
}

.main-nav a:hover,
.contact-email:hover,
.legal a:hover {
    color: #fff4db;
    text-decoration: underline;
    text-underline-offset: .25em;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    align-items: start;
    min-height: clamp(36rem, 50vw, 62rem);
    background: var(--burgundy);
    border-bottom: 1px solid #ad7946;
}

.hero__art, .hero__art img, .hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__art {
    z-index: -2;
}

.hero__art img {
    object-fit: cover;
    object-position: center;
}

.hero::before {
    z-index: -1;
    background: linear-gradient(90deg, transparent 26%, #2209084d 42%, #2209084d 58%, transparent 74%),
        linear-gradient(180deg, transparent 76%, #3510129c 100%);
    content: "";
    pointer-events: none;
}

.hero__content {
    display: grid;
    justify-items: center;
    width: min(48.5vw, 820px);
    padding-block: clamp(2.15rem, 3.55vw, 4.8rem) 3rem;
    text-align: center;
}

.hero h1 {
    width: 100%;
    line-height: 1;
}

.hero h1 img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 14px #1604038f);
}

.hero__genre, .hero__line, .hero__action, .section-title {
    font-family: var(--display);
    font-weight: 700;
}

.hero__genre {
    display: flex;
    align-items: center;
    gap: clamp(9px, 1.3vw, 20px);
    margin-top: clamp(8px, 1.2vw, 20px);
    color: var(--soft-gold);
    font-size: clamp(1rem, 1.8vw, 1.9rem);
    letter-spacing: .1em;
    text-shadow: 0 2px 5px #200905;
}

.hero__genre::before, .hero__genre::after {
    width: clamp(12px, 4.5vw, 70px);
    border-top: 1px solid #c89859;
    content: "";
}

.hero__line {
    margin-top: clamp(11px, 1.7vw, 26px);
    color: var(--gold);
    font-size: clamp(1.55rem, 3.45vw, 3.8rem);
    font-style: italic;
    line-height: 1.35;
    text-shadow: 0 3px 10px #210704;
    text-wrap: balance;
}

.hero__action {
    --bevel: clamp(17px, 2vw, 35px);
    position: relative;
    isolation: isolate;
    display: inline-grid;
    place-items: center;
    min-width: clamp(10rem, 24.3vw, 25rem);
    min-height: 50px;
    margin-top: clamp(26px, 4.2vw, 68px);
    padding: .45em 1.3em;
    color: #3b1c08;
    filter: drop-shadow(0 6px 8px #1d0806a3);
    font-size: clamp(1.125rem, 2.25vw, 2.4rem);
    letter-spacing: .08em;
    line-height: 1.4;
    text-decoration: none;
}

.hero__action::before, .hero__action::after {
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--bevel) 0, calc(100% - var(--bevel)) 0, 100% 50%,
        calc(100% - var(--bevel)) 100%, var(--bevel) 100%, 0 50%);
    content: "";
}

.hero__action::before {
    inset: 0;
    background: linear-gradient(180deg, #ffe9ad, #9d6126 75%, #d49a45);
}

.hero__action::after {
    inset: 3px;
    background: linear-gradient(180deg, #ffe7a4, #dca048);
}

.hero__action:hover::after {
    background: linear-gradient(180deg, #fff1bc, #e4ad56);
}

.section-inner {
    width: min(100% - 40px, 950px);
    margin-inline: auto;
}

.introduction {
    padding-block: clamp(2rem, 3.3vw, 3.5rem) clamp(3rem, 5.8vw, 6rem);
    background: var(--burgundy);
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.1vw, 32px);
    color: var(--gold);
    font-size: clamp(1.6rem, 3vw, 3.1rem);
    line-height: 1.4;
    letter-spacing: .08em;
    text-align: center;
}

.section-title::before, .section-title::after {
    width: clamp(18px, 9vw, 125px);
    border-top: 1px solid #ad7946;
    content: "";
}

.introduction__copy {
    max-width: 43em;
    margin: clamp(24px, 3vw, 40px) auto 0;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.95;
}

.introduction__copy p + p {
    margin-top: .8em;
}

.introduction__portrait {
    display: none;
}

.site-footer {
    padding-block: clamp(2.35rem, 4.5vw, 4rem) 2.2rem;
    border-top: 1px solid #6d402d;
    text-align: center;
}

.site-footer .section-title {
    font-size: clamp(1.4rem, 2.25vw, 2.15rem);
}

.contact-content {
    max-width: 43em;
    margin: 1.6rem auto 1.85rem;
    text-align: left;
}

.contact-message {
    line-height: 1.9;
}

.contact-details {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    font-style: normal;
}

.contact-email {
    color: var(--soft-gold);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.legal {
    border-top: 1px solid #6d402d;
    padding-top: 1rem;
    color: #d7b9a6;
    font-size: .875rem;
    line-height: 1.9;
}

.legal a {
    display: inline-block;
    margin-inline: .35rem;
    text-underline-offset: .15em;
}

@media (min-width: 801px) {
    .hero {
        border-bottom: 0;
    }

    .introduction {
        position: relative;
        isolation: isolate;
    }

    .introduction::before {
        position: absolute;
        z-index: -1;
        inset: auto 0 calc(100% - 5vw);
        aspect-ratio: 3;
        background: url("../images/lbdrc-home/hero-divider.webp") center / 100% auto no-repeat;
        mask-image: linear-gradient(#000 87%, transparent);
        content: "";
        pointer-events: none;
    }
}

@media (max-width: 1050px) and (min-width: 801px) {
    .hero {
        min-height: max(32rem, 50vw);
    }

    .hero__content {
        width: 54vw;
    }
}

@media (max-width: 800px) {
    .masthead__inner {
        width: calc(100% - 24px);
        min-height: 56px;
        gap: .25rem;
    }

    .brand {
        width: clamp(83px, 25vw, 134px);
    }

    .main-nav a {
        padding-inline: clamp(6px, 2.1vw, 14px);
        font-family: var(--sans);
        font-size: clamp(.75rem, 3.2vw, .95rem);
        font-weight: 600;
    }

    .hero {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        min-height: 0;
        background: #390c0e;
    }

    .hero::before {
        content: none;
    }

    .hero__content {
        width: min(100% - 24px, 520px);
        padding-block: clamp(1.05rem, 4vw, 1.9rem) .5rem;
    }

    .hero h1 {
        width: min(100%, 455px);
    }

    .hero__genre {
        margin-top: .25rem;
        font-size: clamp(.95rem, 3.6vw, 1.3rem);
        letter-spacing: .05em;
    }

    .hero__line {
        margin-top: .55rem;
        font-size: clamp(1.37rem, 6.4vw, 2.05rem);
        font-style: normal;
    }

    .hero__action {
        min-width: 9rem;
        min-height: 44px;
        margin-top: 1rem;
        font-size: 1.125rem;
    }

    .hero__art, .hero__art img {
        position: static;
        width: 100%;
        height: auto;
    }

    .hero__art {
        z-index: 0;
        display: block;
        max-width: 580px;
    }

    .hero__art img {
        mask-image: linear-gradient(180deg, transparent, #000 9%, #000 86%, transparent);
    }

    .introduction {
        padding-bottom: 1.5rem;
    }

    .introduction__portrait {
        display: block;
        width: min(100%, 335px);
        height: clamp(230px, 67vw, 300px);
        margin: 1.1rem auto 0;
        overflow: hidden;
        mask-image: linear-gradient(#000 85%, transparent);
    }

    .introduction__portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 5%;
    }
}

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