:root {
    --background: #f8f3ea;
    --paper: #fffdf9;
    --ink: #29251f;
    --muted: #756d62;
    --line: rgba(41, 37, 31, .14);
    --accent: #aa604a;
    --dark: #28251f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--ink);
    font-family: "DM Sans", "Noto Kufi Arabic", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: auto;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 249, .94);
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-style: italic;
}

.brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: .14em;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .08em;
}

.language-button {
    padding: 8px 14px;
    border: 1px solid var(--ink);
    font-size: 12px;
}

.language-button:hover {
    background: var(--ink);
    color: #fff;
}

/* Artwork */

.artwork-page {
    padding: 35px 0 85px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 12px;
}

.back-link:hover {
    color: var(--accent);
}

.artwork-layout {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: start;
    gap: 55px;
}

.artwork-visual {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: #e6dbc9;
}

.artwork-visual img {
    width: 100%;
    height: 100%;
    min-height: 570px;
    display: block;
    object-fit: cover;
}

.image-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .42);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .17em;
    pointer-events: none;
    transform: rotate(-35deg);
}

.no-image {
    min-height: 570px;
    display: grid;
    place-items: center;
    padding: 25px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(216, 197, 170, .55)),
        #e4d5c0;
    color: #817362;
    font-family: "Playfair Display", "Noto Kufi Arabic", serif;
    font-size: 21px;
    text-align: center;
}

.artwork-info {
    padding-top: 15px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.artwork-info h1 {
    margin: 0 0 17px;
    font-family: "Playfair Display", "Noto Kufi Arabic", serif;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.25;
}

.description {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.purchase-box {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.purchase-box h2 {
    margin: 0 0 17px;
    font-family: "Playfair Display", "Noto Kufi Arabic", serif;
    font-size: 28px;
    font-weight: 500;
}

.edition-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.edition-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.edition-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.edition-action {
    text-align: end;
}

.edition-action strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.edition-action a {
    display: inline-block;
    padding: 8px 11px;
    background: var(--dark);
    color: #fff;
    font-size: 11px;
}

.edition-action a:hover {
    background: var(--accent);
}

.unavailable {
    margin: 0;
    padding: 15px;
    background: #f3e8dc;
    color: #896042;
    font-size: 12px;
}

@media (max-width: 850px) {
    .artwork-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .artwork-visual,
    .artwork-visual img,
    .no-image {
        min-height: 460px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 32px, 1180px);
    }

    .brand small {
        display: none;
    }

    .artwork-page {
        padding: 24px 0 55px;
    }

    .artwork-visual,
    .artwork-visual img,
    .no-image {
        min-height: 360px;
    }

    .artwork-info h1 {
        font-size: 39px;
    }

    .edition-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .edition-action {
        text-align: start;
    }
}