:root {
    color-scheme: dark;

    --bg: #11100f;
    --bg-soft: #171513;
    --surface: rgba(29, 26, 23, .84);
    --surface-solid: #1d1a17;
    --surface-light: #26211d;
    --text: #f5efe5;
    --text-soft: #b9afa3;
    --muted: #827a71;
    --accent: #d5ab67;
    --accent-bright: #f1d09a;
    --accent-dark: #765337;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --shadow: 0 28px 80px rgba(0, 0, 0, .34);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --content: 1240px;
    --header-height: 86px;
}

html[data-theme="light"] {
    color-scheme: light;

    --bg: #f4efe7;
    --bg-soft: #ebe3d8;
    --surface: rgba(255, 252, 247, .88);
    --surface-solid: #fffaf3;
    --surface-light: #eee4d8;
    --text: #1c1916;
    --text-soft: #655d55;
    --muted: #8a8178;
    --accent: #9a623e;
    --accent-bright: #b77c52;
    --accent-dark: #704326;
    --border: rgba(40, 29, 20, .11);
    --border-strong: rgba(40, 29, 20, .20);
    --shadow: 0 28px 80px rgba(66, 45, 28, .13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 0%, rgba(213, 171, 103, .12), transparent 27rem),
        radial-gradient(circle at 5% 35%, rgba(139, 83, 52, .09), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
    text-rendering: optimizeLegibility;
    transition:
        background-color .3s ease,
        color .3s ease;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    border-bottom: 1px solid transparent;
    transition:
        background .3s ease,
        border-color .3s ease,
        backdrop-filter .3s ease;
}

.site-header.is-scrolled {
    border-color: var(--border);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(calc(100% - 40px), var(--content));
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    letter-spacing: -3px;
}

.brand__main {
    font-size: 38px;
}

.brand__dot {
    margin-left: 2px;
    color: var(--accent);
    font-size: 42px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.desktop-nav a {
    position: relative;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 1px;
    background: var(--accent);
    transition: right .25s ease;
}

.desktop-nav a:hover {
    color: var(--text);
}

.desktop-nav a:hover::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.menu-button {
    width: 43px;
    height: 43px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.icon-button:hover,
.menu-button:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.theme-icon {
    font-size: 19px;
}

.theme-icon--sun {
    display: none;
}

html[data-theme="light"] .theme-icon--moon {
    display: none;
}

html[data-theme="light"] .theme-icon--sun {
    display: inline;
}

.menu-button {
    display: none;
    position: relative;
}

.menu-button span {
    position: absolute;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease;
}

.menu-button span:first-child {
    transform: translateY(-4px);
}

.menu-button span:last-child {
    transform: translateY(4px);
}

.menu-button[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
}

.hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 70px) 20px 70px;
    display: flex;
    align-items: center;
}

.hero__inner {
    width: min(100%, var(--content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
    gap: clamp(42px, 7vw, 100px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: var(--accent-bright);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    max-width: 730px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 7.1vw, 112px);
    font-weight: 400;
    line-height: .91;
    letter-spacing: -.065em;
}

.hero h1 em {
    color: var(--accent);
    font-weight: 400;
}

.hero__copy {
    max-width: 590px;
    margin: 30px 0 0;
    color: var(--text-soft);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform .22s ease,
        background .22s ease,
        border-color .22s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #17120d;
}

.button--ghost {
    background: var(--surface);
}

.hero-art {
    position: relative;
    min-height: 660px;
}

.hero-art__frame {
    position: absolute;
    inset: 0 4% 5% 10%;
    overflow: hidden;
    border-radius: 46% 46% 28px 28px;
    box-shadow: var(--shadow);
}

.hero-art__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.hero-art__frame:hover img {
    transform: scale(1.035);
}

.hero-art__ring {
    position: absolute;
    z-index: -1;
    inset: 8% 0 0 17%;
    border: 1px solid rgba(213, 171, 103, .36);
    border-radius: 48% 48% 30px 30px;
}

.hero-art__label {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 260px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-art__label span {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-art__label strong {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.section {
    padding: 110px 20px;
}

.section--soft {
    background:
        linear-gradient(
            180deg,
            transparent,
            color-mix(in srgb, var(--bg-soft) 80%, transparent) 14%,
            color-mix(in srgb, var(--bg-soft) 80%, transparent) 86%,
            transparent
        );
}

.section__inner {
    width: min(100%, var(--content));
    margin: 0 auto;
}

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

.section-heading h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 400;
    letter-spacing: -.045em;
}

.section-heading p {
    max-width: 500px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.text-link::after {
    content: "→";
    font-size: 18px;
    transition: transform .2s ease;
}

.text-link:hover::after {
    transform: translateX(5px);
}

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

.art-card {
    position: relative;
    grid-column: span 4;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-solid);
}

.art-card:nth-child(1) {
    grid-column: span 7;
    min-height: 660px;
}

.art-card:nth-child(2) {
    grid-column: span 5;
    min-height: 660px;
}

.art-card__image {
    position: absolute;
    inset: 0;
}

.art-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82));
}

.art-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .8s cubic-bezier(.2, .7, .2, 1),
        filter .8s ease;
}

.art-card:hover img {
    transform: scale(1.045);
}

.art-card__content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 28px;
}

.art-card__category {
    display: block;
    margin-bottom: 10px;
    color: #e8c991;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.art-card h3 {
    margin: 0;
    color: #fffaf2;
    font-family: Georgia, serif;
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 400;
}

.art-card p {
    max-width: 500px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.65;
}

.empty-card {
    grid-column: 1 / -1;
    padding: 70px 30px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--surface);
}

.empty-card h3 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
}

.empty-card p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-soft);
    line-height: 1.75;
}

.story-feature {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: clamp(45px, 8vw, 110px);
    align-items: center;
}

.story-feature__image {
    min-height: 640px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.story-feature__image img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
}

.story-feature__content h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(44px, 5.2vw, 76px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.story-feature__content p {
    margin: 26px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.9;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition:
        transform .25s ease,
        border-color .25s ease;
}

.article-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-strong);
}

.article-card__image {
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__body {
    padding: 25px;
}

.article-card__meta {
    margin-bottom: 13px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.article-card p {
    margin: 15px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.site-footer {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 70px;
}

.brand--footer .brand__main {
    font-size: 45px;
}

.site-footer__top p {
    max-width: 480px;
    margin: 20px 0 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 55px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-title {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.site-footer__bottom {
    margin-top: 65px;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    :root {
        --header-height: 74px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-grid;
    }

    .mobile-nav {
        position: fixed;
        inset: var(--header-height) 0 auto;
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: color-mix(in srgb, var(--bg) 95%, transparent);
        backdrop-filter: blur(18px);
        transition: max-height .3s ease;
    }

    .mobile-nav.is-open {
        max-height: calc(100vh - var(--header-height));
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav a {
        padding: 20px;
        border-top: 1px solid var(--border);
        font-family: Georgia, serif;
        font-size: 27px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 70px);
    }

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

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

    .hero-art__frame {
        inset: 0 5% 7%;
    }

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

    .story-feature {
        grid-template-columns: 1fr;
    }

    .story-feature__image,
    .story-feature__image img {
        min-height: 520px;
    }

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

@media (max-width: 720px) {
    .site-header__inner,
    .site-footer {
        width: min(calc(100% - 28px), var(--content));
    }

    .brand__main {
        font-size: 31px;
    }

    .brand__dot {
        font-size: 34px;
    }

    .hero {
        padding-inline: 14px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(52px, 16vw, 78px);
    }

    .hero__copy {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

    .hero-art__frame {
        inset: 0 0 6%;
        border-radius: 42% 42% 22px 22px;
    }

    .hero-art__ring {
        display: none;
    }

    .hero-art__label {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .section {
        padding: 78px 14px;
    }

    .art-grid {
        display: flex;
        flex-direction: column;
    }

    .art-card,
    .art-card:nth-child(1),
    .art-card:nth-child(2) {
        min-height: 520px;
    }

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

    .story-feature__image,
    .story-feature__image img {
        min-height: 440px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        gap: 30px;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

.artwork-detail {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 130px 5vw 100px;
}

.artwork-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    gap: clamp(45px, 7vw, 110px);
    align-items: center;
}

.artwork-detail__image-wrap {
    position: relative;
    min-height: 720px;
    padding: clamp(20px, 4vw, 55px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border, rgba(255,255,255,.1));
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(194, 153, 92, .10),
            transparent 45%
        ),
        #0b0a09;
}

.artwork-detail__image {
    width: 100%;
    max-height: 820px;
    object-fit: contain;
    filter: drop-shadow(0 35px 60px rgba(0,0,0,.35));
}

.artwork-detail__back {
    display: inline-block;
    margin-bottom: 58px;
    color: var(--text-soft, #a99f94);
    font-size: 12px;
    font-weight: 700;
}

.artwork-detail__eyebrow,
.artwork-story__eyebrow,
.related-artworks__heading > span {
    display: block;
    color: var(--accent, #d5aa67);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.artwork-detail__info h1 {
    max-width: 680px;
    margin: 18px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(54px, 7vw, 108px);
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.065em;
}

.artwork-detail__lead {
    max-width: 620px;
    margin: 32px 0 0;
    color: var(--text-soft, #aaa095);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.8;
}

.artwork-detail__meta {
    margin: 42px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border, rgba(255,255,255,.1));
}

.artwork-detail__meta > div {
    padding: 19px 10px 19px 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.1));
}

.artwork-detail__meta dt {
    color: var(--text-soft, #91887e);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.artwork-detail__meta dd {
    margin: 8px 0 0;
    font-family: Georgia, serif;
    font-size: 19px;
}

.artwork-download-button {
    min-height: 58px;
    margin-top: 35px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--accent, #d5aa67);
    background: var(--accent, #d5aa67);
    color: #15110c;
    font-size: 13px;
    font-weight: 850;
}

.artwork-download-button span {
    font-size: 22px;
}

.artwork-story {
    width: min(100%, 920px);
    margin: 150px auto 0;
}

.artwork-story h2,
.related-artworks__heading h2 {
    margin: 15px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 75px);
    font-weight: 400;
    letter-spacing: -.05em;
}

.artwork-story__content {
    margin-top: 45px;
    color: var(--text-soft, #b2a89d);
    font-family: Georgia, serif;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.9;
}

.artwork-caption {
    width: min(100%, 1100px);
    margin: 110px auto 0;
    padding: 60px;
    border-top: 1px solid var(--border, rgba(255,255,255,.1));
    border-bottom: 1px solid var(--border, rgba(255,255,255,.1));
    text-align: center;
}

.artwork-caption blockquote {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(26px, 4vw, 48px);
    font-style: italic;
    line-height: 1.35;
}

.related-artworks {
    margin-top: 150px;
}

.related-artworks__heading {
    margin-bottom: 45px;
}

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

.related-artwork-card {
    display: block;
}

.related-artwork-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .45s ease;
}

.related-artwork-card:hover img {
    transform: scale(.985);
}

.related-artwork-card h3 {
    margin: 17px 0 0;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 400;
}

.related-artwork-card span {
    display: block;
    margin-top: 6px;
    color: var(--text-soft, #998f85);
    font-size: 11px;
}

.public-not-found {
    min-height: 75vh;
    padding: 160px 25px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.public-not-found > span {
    color: var(--accent, #d5aa67);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .2em;
}

.public-not-found h1 {
    margin: 20px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(48px, 8vw, 94px);
    font-weight: 400;
}

.public-not-found p {
    max-width: 580px;
    color: var(--text-soft, #a49a90);
    line-height: 1.7;
}

.public-not-found a {
    margin-top: 20px;
    color: var(--accent, #d5aa67);
    font-weight: 750;
}

@media (max-width: 950px) {
    .artwork-detail {
        padding-top: 100px;
    }

    .artwork-detail__hero {
        grid-template-columns: 1fr;
    }

    .artwork-detail__image-wrap {
        min-height: 540px;
    }

    .artwork-detail__back {
        margin-bottom: 35px;
    }
}

@media (max-width: 680px) {
    .artwork-detail {
        padding: 90px 18px 70px;
    }

    .artwork-detail__image-wrap {
        min-height: 400px;
        padding: 14px;
    }

    .artwork-detail__info h1 {
        font-size: clamp(50px, 15vw, 72px);
    }

    .artwork-detail__meta {
        grid-template-columns: 1fr;
    }

    .artwork-story,
    .related-artworks {
        margin-top: 90px;
    }

    .artwork-caption {
        margin-top: 80px;
        padding: 40px 12px;
    }

    .related-artworks__grid {
        grid-template-columns: 1fr;
    }
}
