:root {
    color-scheme: light;
    --lvd-ink: #171613;
    --lvd-muted: #68645d;
    --lvd-paper: #f3efe6;
    --lvd-rule: rgba(23, 22, 19, 0.24);
    --lvd-sold: #c92d2d;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--lvd-paper);
}

body {
    color: var(--lvd-ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.lvd-screen {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    display: grid;
    place-items: center;
    padding:
        max(30px, env(safe-area-inset-top))
        max(40px, env(safe-area-inset-right))
        max(30px, env(safe-area-inset-bottom))
        max(40px, env(safe-area-inset-left));
    background: var(--lvd-paper);
}

.lvd-label {
    width: min(90vw, 1120px);
    height: min(76vh, 610px);
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) 1px minmax(430px, 1.38fr);
    align-items: stretch;
    column-gap: clamp(40px, 5.5vw, 76px);
    position: relative;
}

.lvd-sold-badge {
    position: absolute;
    z-index: 2;
    top: clamp(-4px, 0.5vh, 8px);
    right: 0;
    width: clamp(78px, 8vw, 104px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lvd-sold);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(17px, 1.8vw, 24px);
    font-weight: 750;
    letter-spacing: 0.11em;
    line-height: 1;
    text-indent: 0.11em;
    transform: rotate(-9deg);
    box-shadow: 0 8px 24px rgba(70, 20, 20, 0.16);
}

.lvd-sold-badge::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: inherit;
}

.lvd-sold-badge span {
    position: relative;
    z-index: 1;
}

.lvd-is-sold .lvd-information {
    padding-right: clamp(76px, 8vw, 112px);
}

.lvd-qr-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.lvd-qr-frame {
    width: clamp(220px, 26vw, 300px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(10px, 1.4vw, 16px);
    background: #ffffff;
}

.lvd-qr {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: crisp-edges;
}

.lvd-scan-caption {
    margin: 18px 0 0;
    color: var(--lvd-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(11px, 1.1vw, 14px);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.lvd-divider {
    width: 1px;
    height: 100%;
    background: var(--lvd-rule);
}

.lvd-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-block: 4px;
}

.lvd-section {
    min-width: 0;
}

.lvd-artist-section {
    padding-bottom: clamp(24px, 3.8vh, 38px);
}

.lvd-artwork-section {
    padding-top: clamp(24px, 3.8vh, 38px);
    border-top: 1px solid var(--lvd-rule);
}

.lvd-kicker {
    margin: 0 0 10px;
    color: var(--lvd-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.lvd-artist-name,
.lvd-artwork-name {
    margin: 0;
    color: var(--lvd-ink);
    font-weight: 400;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.lvd-artist-name {
    font-size: clamp(35px, 4.5vw, 60px);
    line-height: 0.98;
}

.lvd-artwork-name {
    font-size: clamp(31px, 3.9vw, 51px);
    font-style: italic;
    line-height: 1.02;
}

.lvd-description {
    display: -webkit-box;
    max-width: 58ch;
    margin: 15px 0 0;
    overflow: hidden;
    color: var(--lvd-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(13px, 1.35vw, 17px);
    font-weight: 400;
    line-height: 1.48;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.lvd-year {
    margin: 10px 0 0;
    color: var(--lvd-muted);
    font-size: clamp(17px, 1.8vw, 23px);
    line-height: 1.25;
}

.lvd-details {
    width: 100%;
    margin: clamp(18px, 2.5vh, 28px) 0 0;
    padding: 0;
}

.lvd-detail-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--lvd-rule);
}

.lvd-detail-row dt,
.lvd-detail-row dd {
    margin: 0;
}

.lvd-detail-row dt {
    color: var(--lvd-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lvd-detail-row dd {
    color: var(--lvd-ink);
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lvd-price-row {
    padding-top: 13px;
}

.lvd-price-row dd {
    font-size: clamp(19px, 1.9vw, 25px);
    font-variant-numeric: tabular-nums;
}

@media (max-height: 720px) and (orientation: landscape) {
    .lvd-label {
        height: min(82vh, 560px);
        min-height: 430px;
    }

    .lvd-sold-badge {
        width: 76px;
        top: 0;
    }

    .lvd-is-sold .lvd-information {
        padding-right: 88px;
    }

    .lvd-artist-section {
        padding-bottom: 22px;
    }

    .lvd-artwork-section {
        padding-top: 22px;
    }

    .lvd-description {
        -webkit-line-clamp: 3;
    }

    .lvd-detail-row {
        padding-block: 8px;
    }
}

@media (max-width: 820px), (orientation: portrait) {
    html,
    body {
        overflow: auto;
    }

    .lvd-screen {
        height: auto;
        min-height: 100svh;
        padding: 36px 28px;
    }

    .lvd-label {
        width: min(88vw, 620px);
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        row-gap: 34px;
    }

    .lvd-sold-badge {
        top: -10px;
        right: -4px;
        width: 76px;
    }

    .lvd-is-sold .lvd-information {
        padding-right: 0;
    }

    .lvd-divider {
        width: 100%;
        height: 1px;
    }

    .lvd-information {
        padding: 0;
    }

    .lvd-qr-frame {
        width: min(56vw, 280px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
