:root {
    --ink: #26362e;
    --muted: #68736b;
    --paper: #f3f0e7;
    --paper2: #e9e6dc;
    --line: #c8c8bc;
    --accent: #b84f3f;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.55 var(--sans)
}

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

.site-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    border-bottom: 1px solid var(--line)
}

.wordmark {
    font-size: 13px;
    letter-spacing: .13em;
    font-weight: 700
}

.wordmark span {
    font-weight: 400;
    color: var(--muted)
}

nav {
    display: flex;
    gap: 25px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em
}

nav a {
    opacity: .7
}

nav a:hover {
    opacity: 1
}

footer {
    border-top: 1px solid var(--line);
    padding: 20px 4vw;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 18px
}

h1 {
    font: normal clamp(42px, 6vw, 55px)/.98 var(--serif);
    letter-spacing: -.035em;
    margin: 0
}

.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 140px)
}

.statement {
    padding: 10vw 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.statement-copy {
    max-width: 460px;
    margin: 32px 0 0 auto;
    font-size: 17px;
    color: #48554d
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase
}

.home-image-wrap {
    min-height: 650px;
    margin: 20px;
}

.home-image-wrap img,
.category-card img,
.art-card img {
    width: 100%;
    object-fit: cover;
    display: block
}

.category-card img,
.art-card img {
    height: 100%;
}

.gallery-page {
    padding: 7vw 4vw 8vw
}

.page-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 3vw
}

.page-intro h1 {
    font-size: clamp(42px, 9vw, 55px)
}

.category-grid,
.art-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: var(--paper2);
    max-height: 400px;
}

.category-card:nth-child(4n+1) {
    grid-column: span 7
}

.category-card:nth-child(4n+2) {
    grid-column: span 5
}

.category-card:nth-child(4n+3) {
    grid-column: span 4
}

.category-card:nth-child(4n) {
    grid-column: span 8
}


.category-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 70px 28px 26px;
    background: linear-gradient(transparent, rgba(24, 36, 30, .72));
    color: #fff;
    opacity: 0;
    transition: .35s
}

.category-card:hover .category-overlay {
    opacity: 1
}

.category-overlay h2 {
    font: normal 30px var(--serif);
    margin: 0
}

.category-overlay span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.art-card {
    position: relative;
    min-height: 460px;
    background: var(--paper2);
    max-height: 400px;
}

.art-card:nth-child(3n+1) {
    grid-column: span 5
}

.art-card:nth-child(3n+2) {
    grid-column: span 4
}

.art-card:nth-child(3n) {
    grid-column: span 3
}

.sold-dot {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    z-index: 2
}

.art-page {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    min-height: calc(100vh - 140px)
}

.art-image {
    min-height: 75vh;
    padding: 5vw;
    background: var(--paper2);
    display: flex;
    align-items: center;
    justify-content: center
}

.art-image img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain
}

.art-info {
    padding: 10vw 7vw;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.art-info h1 {
    font-size: clamp(42px, 5vw, 45px);
    margin-bottom: 3vw
}

.art-info dl {
    margin: 0 0 45px
}

.art-info dl div {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding: 9px 0;
    border-bottom: 1px solid var(--line)
}

dt {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted)
}

dd {
    margin: 0
}

.buy-button,
.button {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 20px;
    border: 1px solid var(--ink);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
    margin-right: 20px;
}

.sold-label {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em
}

.sold-label i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent)
}

.back-link {
    margin-top: 48px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted)
}

.admin {
    padding: 6vw 5vw
}

.admin.narrow {
    max-width: 650px
}

.admin-head,
.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px
}

.admin-head h1 {
    font: clamp(42px, 6vw, 55px)/.98 var(--serif);

}

.admin-section-head h2 {
    font: normal 30px var(--serif)
}

.admin-list {
    border-top: 1px solid var(--line)
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr 130px 150px;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.admin-row small {
    color: var(--muted)
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px
}

.actions button,
.actions a {
    border: 0;
    background: none;
    text-decoration: underline;
    cursor: pointer;
    color: var(--ink);
    font: inherit
}

.form-card {
    background: var(--paper2);
    padding: 25px;
    margin: 18px 0 30px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted)
}

input,
textarea,
select {
    font: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 10px;
    color: var(--ink);
    width: 100%
}

.chosen_image {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 10px;
    color: var(--ink);
    width: 100px;
    height: 100px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px
}

.checkbox input {
    width: auto
}

.form-actions {
    margin-top: 20px
}

.notice {
    padding: 12px;
    background: #e4e0d4
}

.error {
    color: #9d3428
}

@media(max-width:800px) {
    .site-header {
        height: 72px
    }

    .site-header nav {
        gap: 11px;
        font-size: 9px
    }

    .home,
    .art-page {
        grid-template-columns: 1fr
    }

    .home-image-wrap {
        min-height: 55vh;
        order: -1
    }

    .statement {
        padding: 15vw 7vw
    }

    .statement-copy {
        margin: 3vw 0 0
    }

    .category-grid,
    .art-grid {
        grid-template-columns: 1fr 1fr
    }

    .category-card,
    .art-card,
    .category-card:nth-child(n),
    .art-card:nth-child(n) {
        grid-column: span 1;
        min-height: 300px;
    }

    .category-card .category-overlay {
        opacity: 1;
        font: normal 16px var(--serif);
        padding: 70px 10px 26px;


    }

    .category-overlay h2 {
        font: normal 20px var(--serif);
    }

    .category-overlay span {
        font: normal 8px var(--serif);
    }

    .page-intro {
        display: block
    }

    .page-intro h1 {
        margin-top: 20px
    }

    .art-image {
        min-height: 60vh
    }

    .art-info {
        padding: 15vw 8vw
    }

    .admin-row {
        grid-template-columns: 1fr 110px
    }

    .admin-row small {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .buy-button,
    .button {
        margin-bottom: 5px;
    }
}