@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
    color-scheme: light;
    --ink: #25231f;
    --muted: #77736c;
    --paper: #f8f7f3;
    --line: #e5e2da;
    --accent: #b95e43;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

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

button,
select {
    font: inherit;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px max(6vw, calc((100vw - 1280px) / 2));
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1.5px;
}

.brand span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 13px;
}

.main-nav a:hover,
.artist-link:hover {
    color: var(--accent);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 50px;
    background: #eeeae1;
    font-size: 11px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    min-height: 510px;
    padding: 54px max(6vw, calc((100vw - 1280px) / 2)) 72px;
    gap: 8%;
    align-items: center;
}

.hero-copy {
    max-width: 530px;
    padding: 32px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.08;
    letter-spacing: -2.8px;
}

h1 em {
    color: var(--accent);
    font-weight: 500;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 410px;
    margin-bottom: 27px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 150ms ease, color 150ms ease;
}

.button-dark {
    background: var(--ink);
    color: white;
}

.button-dark:hover {
    background: var(--accent);
}

.button-outline {
    width: 100%;
    margin-top: 17px;
    border-color: #d8d4cb;
    background: transparent;
    color: var(--ink);
}

.button-outline:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.button:disabled {
    cursor: not-allowed;
    color: #918d85;
    background: #eeece7;
    border-color: #eeece7;
}

.hero-art {
    position: relative;
    min-height: 390px;
    overflow: hidden;
}

.art-scene {
    background:
        radial-gradient(ellipse at 68% 42%, #e9c8ad 0 13%, transparent 13.5%),
        radial-gradient(ellipse at 59% 49%, #b95e43 0 23%, transparent 23.5%),
        radial-gradient(ellipse at 39% 69%, #e6ad8b 0 23%, transparent 23.5%),
        linear-gradient(135deg, #d8ddd2 0 42%, #e7e3d8 42% 100%);
}

.hero-art::before {
    position: absolute;
    top: 12%;
    left: 10%;
    width: 43%;
    height: 76%;
    border: 1px solid rgb(37 35 31 / 30%);
    content: "";
    transform: rotate(-9deg);
}

.hero-art-label {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: right;
    text-transform: uppercase;
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-right: 6vw;
    padding-left: 6vw;
}

.catalog-section {
    padding-top: 75px;
    padding-bottom: 100px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.artist-filter {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
}

.artist-filter select {
    min-width: 195px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.empty-state {
    margin: 0;
    padding: 34px 20px;
    border: 1px dashed #d8d4cb;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.artwork-image {
    position: relative;
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.artwork-image-one {
    background: #d5c1a8;
}

.artwork-image-two {
    background: #bdc9c7;
}

.artwork-image-three {
    background: #d9c9bb;
}

.shape {
    position: absolute;
    display: block;
}

.shape-one {
    width: 45%;
    height: 66%;
    border-radius: 48% 52% 42% 58%;
    background: #b95e43;
    transform: rotate(32deg);
}

.shape-two {
    width: 25%;
    height: 46%;
    border-radius: 50%;
    background: #efe6d7;
    transform: translate(55%, -25%);
}

.shape-three {
    width: 65%;
    height: 46%;
    border-radius: 50% 50% 0 0;
    background: #45616a;
    transform: translateY(46%) rotate(-12deg);
}

.shape-four {
    width: 27%;
    height: 27%;
    border-radius: 50%;
    background: #d2a05d;
    transform: translate(-60%, -80%);
}

.shape-five {
    width: 43%;
    height: 68%;
    border-radius: 50% 5% 50% 5%;
    background: #78856a;
    transform: rotate(35deg);
}

.shape-six {
    width: 31%;
    height: 31%;
    border-radius: 50%;
    background: #bc806e;
    transform: translate(45%, 60%);
}

.artwork-number {
    position: absolute;
    right: 13px;
    bottom: 10px;
    color: rgb(37 35 31 / 60%);
    font-size: 10px;
    letter-spacing: 1px;
}

.artwork-info {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
}

.artwork-info h3,
.cart-item h3 {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 600;
}

.artist-link,
.artwork-meta,
.cart-item-copy p {
    color: var(--muted);
    font-size: 12px;
}

.price {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.artwork-meta {
    margin: 10px 0 0;
    font-size: 11px;
}

.artist-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 80px;
    padding-bottom: 85px;
    background: #efede6;
}

.artist-portrait {
    width: 100%;
    min-height: 340px;
    background:
        radial-gradient(ellipse at 50% 34%, #d8a58c 0 13%, transparent 13.5%),
        radial-gradient(ellipse at 50% 92%, #78856a 0 35%, transparent 35.5%),
        linear-gradient(135deg, #ddd3c3, #c3b29f);
}

.artist-copy {
    max-width: 550px;
}

.artist-copy h2 {
    margin-bottom: 18px;
}

.artist-bio {
    max-width: 510px;
    color: var(--muted);
}

.artist-work-heading {
    margin: 27px 0 8px;
    font-size: 12px;
    font-weight: 700;
}

.artist-works {
    margin: 0;
    padding: 0;
    border-top: 1px solid #d8d4cb;
    list-style: none;
}

.artist-works li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #d8d4cb;
    font-size: 12px;
}

.artist-works li span:last-child {
    color: var(--muted);
    text-align: right;
}

.cart-section {
    padding-top: 78px;
    padding-bottom: 90px;
}

.cart-heading {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.cart-heading h2 .cart-count {
    vertical-align: middle;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 8%;
}

.cart-item {
    display: grid;
    grid-template-columns: 86px 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.cart-thumbnail {
    min-height: 86px;
}

.cart-item-copy p {
    margin: 0;
}

.remove-button {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-summary {
    align-self: start;
    padding-top: 22px;
}

.cart-summary > p:first-child {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.cart-summary strong {
    font-size: 15px;
}

.cart-summary .button {
    width: 100%;
}

.cart-note {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.site-footer {
    min-height: 90px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 5%;
    }

    .hero-art {
        min-height: 320px;
    }

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

    .artist-section {
        gap: 6%;
    }

    .cart-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cart-summary {
        width: min(100%, 380px);
        justify-self: end;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .main-nav {
        gap: 14px;
        font-size: 11px;
    }

    .main-nav a:nth-child(2) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 34px 20px 45px;
    }

    .hero-copy {
        padding: 10px 0 0;
    }

    .hero-art {
        min-height: 260px;
    }

    .section-wrap {
        padding-right: 20px;
        padding-left: 20px;
    }

    .catalog-section {
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 18px;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .artwork-image {
        min-height: 320px;
    }

    .artist-section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .artist-portrait {
        min-height: 280px;
    }

    .cart-section {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    .cart-item {
        grid-template-columns: 64px 1fr auto;
        gap: 12px;
    }

    .cart-thumbnail {
        min-height: 64px;
    }

    .cart-item .price {
        grid-column: 2;
    }

    .remove-button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 8px 15px;
    }
}
