:root {
    --ink: #101010;
    --paper: #f2f0e8;
    --poster-red: #d24b33;
    --poster-ochre: #d2a42f;
    --poster-cyan: #2f7f9d;
    --poster-green: #507d4f;
    --line: rgba(16, 16, 16, 0.17);
    --side-gold: rgba(210, 164, 47, 0.34);
    --side-cyan: rgba(47, 127, 157, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Syne", sans-serif;
    background:
        radial-gradient(1200px 600px at -12% -8%, rgba(210, 164, 47, 0.16), rgba(210, 164, 47, 0) 60%),
        radial-gradient(1200px 620px at 112% -10%, rgba(47, 127, 157, 0.13), rgba(47, 127, 157, 0) 58%),
        linear-gradient(180deg, #f7f5ef 0%, var(--paper) 58%, #efe9dc 100%);
}

body::before {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(16, 16, 16, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 16, 0.015) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    pointer-events: none;
}

body::after {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, var(--side-gold) 16%, var(--side-cyan) 48%, var(--side-gold) 82%, transparent 100%) left 16px top 32px / 2px calc(100% - 64px) no-repeat,
        linear-gradient(180deg, transparent 0%, var(--side-cyan) 16%, var(--side-gold) 48%, var(--side-cyan) 82%, transparent 100%) right 16px top 32px / 2px calc(100% - 64px) no-repeat,
        radial-gradient(ellipse 140px 520px at left center, rgba(210, 164, 47, 0.09), rgba(210, 164, 47, 0) 78%),
        radial-gradient(ellipse 140px 520px at right center, rgba(47, 127, 157, 0.08), rgba(47, 127, 157, 0) 78%);
    content: "";
    pointer-events: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid var(--line);
    background-color: rgba(242, 240, 232, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

header h1 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.03em;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

nav a {
    display: inline-block;
    padding: 0.32rem 0.56rem;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible,
nav a.current {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.56);
}

main {
    width: min(1220px, calc(100% - 2.4rem));
    margin: 0 auto;
    padding: 1.3rem 0 4rem;
}

.intro {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.4rem 1.35rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(120% 140% at 8% 8%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 54%),
        radial-gradient(115% 130% at 92% 18%, rgba(210, 164, 47, 0.32), rgba(210, 164, 47, 0) 60%),
        radial-gradient(105% 120% at 70% 100%, rgba(80, 125, 79, 0.2), rgba(80, 125, 79, 0) 62%),
        linear-gradient(135deg, rgba(248, 242, 227, 0.98) 0%, rgba(239, 229, 207, 0.97) 46%, rgba(223, 236, 227, 0.97) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 22px rgba(210, 164, 47, 0.11),
        0 0 26px rgba(47, 127, 157, 0.09);
}

.kicker {
    margin: 0;
    color: rgba(16, 16, 16, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.intro h2 {
    margin: 0.5rem 0 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2rem, 7vw, 5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.01em;
}

.intro-copy {
    margin: 0.95rem 0 0;
    max-width: 68ch;
    font-size: clamp(0.98rem, 0.7vw + 0.86rem, 1.15rem);
    font-family: "Instrument Serif", serif;
    font-size: clamp(1.03rem, 0.75vw + 0.9rem, 1.24rem);
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: 0.01em;
}

#gallery {
    padding: 0.4rem 0;
}

.art {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 1.05rem;
    align-items: stretch;
}

.art-item {
    position: relative;
    margin: 0;
    min-height: 250px;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(249, 246, 238, 0.78);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.58) inset,
        0 0 18px rgba(210, 164, 47, 0.08),
        0 0 20px rgba(47, 127, 157, 0.07);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.art-item:hover,
.art-item:focus-within {
    transform: translateY(-3px);
    border-color: rgba(16, 16, 16, 0.26);
    box-shadow:
        0 10px 24px rgba(16, 16, 16, 0.1),
        0 0 24px rgba(210, 164, 47, 0.14),
        0 0 30px rgba(47, 127, 157, 0.12);
}

.current-panel {
    grid-row: span 2;
    min-height: 520px;
    border-color: rgba(210, 75, 51, 0.45);
    background:
        linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
        linear-gradient(130deg, rgba(210, 75, 51, 0.1), rgba(47, 127, 157, 0.1));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.62) inset,
        0 0 28px rgba(210, 75, 51, 0.13),
        0 0 30px rgba(47, 127, 157, 0.12);
}

.current-panel::after {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    color: rgba(16, 16, 16, 0.5);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    content: "featured";
}

.image-container {
    position: relative;
    width: 100%;
    height: calc(100% - 2.4rem);
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(16, 16, 16, 0.2);
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.38),
        0 0 16px rgba(47, 127, 157, 0.08);
}

.current-panel .image-container {
    min-height: 455px;
}

.image-container::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(210, 164, 47, 0.16), rgba(47, 127, 157, 0.16));
    content: "";
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 260ms ease;
}

.art-item:hover .image-container::after,
.art-item:focus-within .image-container::after {
    opacity: 1;
}

.art-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.03) saturate(1.02);
}

.art-item figcaption {
    margin: 0.7rem 0 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(1.15rem, 1.3vw, 1.45rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.current-panel figcaption {
    font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}

footer {
    padding: 2rem 1rem;
    color: rgba(16, 16, 16, 0.68);
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.84rem;
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.03em;
}

@media (max-width: 980px) {
    .art {
        grid-template-columns: 1fr 1fr;
    }

    .current-panel {
        grid-column: span 2;
        grid-row: auto;
        min-height: 420px;
    }

    .current-panel .image-container {
        min-height: 330px;
    }
}

@media (max-width: 700px) {
    body::after {
        background:
            linear-gradient(180deg, transparent 0%, var(--side-gold) 18%, var(--side-cyan) 52%, var(--side-gold) 84%, transparent 100%) left 8px top 24px / 1px calc(100% - 48px) no-repeat,
            linear-gradient(180deg, transparent 0%, var(--side-cyan) 18%, var(--side-gold) 52%, var(--side-cyan) 84%, transparent 100%) right 8px top 24px / 1px calc(100% - 48px) no-repeat;
    }

    header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        justify-content: flex-start;
    }

    main {
        width: calc(100% - 1.2rem);
        padding-top: 1rem;
    }

    .intro {
        margin-bottom: 1.2rem;
        padding: 1rem 0.95rem;
    }

    .art {
        grid-template-columns: 1fr;
    }

    .art-item,
    .current-panel {
        min-height: 0;
        grid-column: auto;
    }

    .image-container,
    .current-panel .image-container {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }
}