:root {
    --bg: #fcfcfb;
    --paper: #ffffff;
    --ink: #1b1b1b;
    --muted: #7a756c;
    --line: #e8e4dc;
    --accent: #8d7349;
    --display: "Rubik Spray Paint", "Permanent Marker", cursive;
    --sans: "Outfit", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    letter-spacing: 0.01em;
}

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

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

main {
    flex: 1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 7vw;
    border-bottom: 1px solid var(--line);
    background: rgba(252, 252, 251, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.wordmark {
    font-family: var(--display);
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
}

.hero {
    padding: 9vh 7vw 4vh;
    max-width: 52rem;
}

.eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1,
.page-head h1,
.artwork-meta h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(3.1rem, 7vw, 6.2rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.lede {
    max-width: 28rem;
    margin: 1.4rem 0 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
}

.hero-image {
    margin: 0 7vw 4rem;
}

.hero-image img {
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
}

.home-intro,
.selected,
.home-about,
.page-wrap {
    padding: 0 7vw 5rem;
}

.home-intro {
    max-width: 46rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-head h2,
.page-head h1 {
    font-family: var(--display);
    font-weight: 400;
}

.section-head h2 {
    margin: 0;
    font-size: 2rem;
}

.section-head a,
.back-link,
.page-head a {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem 1.4rem;
}

.art-card {
    display: block;
}

.art-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #f1eee8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.art-card:hover img {
    transform: scale(1.015);
    opacity: 0.92;
}

.art-card h3 {
    margin: 0.85rem 0 0.2rem;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.art-card p,
.muted,
.meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.home-about {
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.page-wrap {
    padding-top: 4.5rem;
}

.page-wrap.narrow,
.artwork-page {
    max-width: 52rem;
}

.page-head {
    margin-bottom: 2.5rem;
}

.page-head h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3a3834;
}

.prose p {
    margin: 0 0 1rem;
}

.prose a {
    border-bottom: 1px solid var(--line);
}

.empty {
    color: var(--muted);
    font-style: italic;
}

.artwork-page {
    margin: 0 auto;
    padding: 2.5rem 7vw 5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.75rem;
}

.artwork-figure img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: var(--paper);
}

.artwork-meta {
    padding-top: 1.75rem;
}

.artwork-meta h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.description {
    white-space: pre-wrap;
    margin-top: 1.1rem;
    line-height: 1.7;
    color: #3a3834;
}

.contact-form,
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-form {
    gap: 1.1rem;
    max-width: 32rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    font: inherit;
}

.contact-form input,
.contact-form textarea {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 0.7rem 0;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--ink);
}

.contact-form button,
.button {
    align-self: flex-start;
    margin-top: 0.4rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    cursor: pointer;
}

.flash-ok,
.flash-err {
    padding: 0.8rem 0;
}

.flash-ok {
    color: #2f5d3a;
}

.flash-err {
    color: #8a3030;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.4rem 7vw 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.dot::before {
    content: "·";
    margin: 0 0.55rem;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 7vw 1.4rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero,
    .home-intro,
    .selected,
    .home-about,
    .page-wrap,
    .artwork-page,
    .site-header,
    .site-footer,
    .hero-image {
        padding-left: 6vw;
        padding-right: 6vw;
    }
}
