:root:has(.home) {
    background: linear-gradient(145deg, #ffffff 45%, #f1f4f3);
}

body.home {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.home-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 0;
}

.home-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.home-eyebrow {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-transform: uppercase;
}

.home h1 {
    margin: 0;
    font-size: 6.5rem;
    line-height: 1.1;
}

.home-tagline {
    font-family: var(--display);
    font-size: 30px;
    line-height: 1.4;
}

.home-intro {
    max-width: 440px;
    margin: 34px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
    text-wrap: pretty;
}

footer.home-footer {
    margin-top: 0;
    padding: 24px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .home h1 {
        font-size: 5rem;
    }
}

@media (max-width: 760px) {
    .home-main {
        padding: 64px 0;
    }

    .home h1 {
        font-size: 3.5rem;
    }

    .home-tagline {
        font-size: 26px;
    }

    .home-intro {
        font-size: 14px;
    }

    footer.home-footer {
        font-size: 11px;
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .home h1 {
        font-size: 2.75rem;
    }
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("assets/fonts/cormorant-garamond.ttf") format("truetype");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Work Sans";
    src: url("assets/fonts/work-sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #ffffff;
    --ink: #252521;
    --muted: #6c6c66;
    --line: #deded8;
    --accent: #ac3d2e;
    --display: "Cormorant Garamond", Georgia, serif;
    font-family: "Work Sans", Verdana, sans-serif;
    letter-spacing: 0;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 64px;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

.masthead {
    padding-top: 34px;
}

.masthead-top,
.masthead-bottom,
.gallery-heading,
figcaption,
footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.masthead-top {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1 {
    font-family: var(--display);
    font-size: 6.5rem;
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: 0;
    margin: 28px 0 22px;
}

.brand-period {
    color: var(--accent);
}

.masthead-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    align-items: center;
}

.masthead-bottom p {
    font-family: var(--display);
    font-size: 21px;
}

.edition {
    font-size: 10px;
    color: var(--muted);
}

.edition span {
    padding: 0 12px;
}

.gallery-heading {
    padding: 42px 0 24px;
    align-items: baseline;
}

.gallery-heading h2 {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
}

.gallery-heading>span {
    font-size: 10px;
    color: var(--muted);
}

.gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    column-gap: 72px;
    row-gap: 64px;
    align-items: start;
}

.artwork {
    min-width: 0;
}

.artwork:nth-child(even) {
    margin-top: 72px;
}

.artwork-image {
    background: #f4f4f1;
}

figcaption {
    border-bottom: 1px solid var(--line);
    padding: 17px 0 22px;
    align-items: baseline;
}

figcaption h3 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

figcaption p {
    font-size: 10px;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 7px;
}

.work-number {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--muted);
}

footer {
    margin-top: 100px;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    align-items: baseline;
}

.footer-brand {
    font-family: var(--display);
    font-size: 23px;
    white-space: nowrap;
}

footer p {
    font-size: 9px;
    line-height: 1.8;
    max-width: 370px;
    color: var(--muted);
}

.footer-domain {
    font-size: 9px;
    color: var(--muted);
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
    .artwork {
        animation: reveal 700ms ease-out both;
    }

    .artwork:nth-child(even) {
        animation-delay: 100ms;
    }

    @keyframes reveal {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 1100px) {
    body {
        padding: 0 36px;
    }

    h1 {
        font-size: 5rem;
    }

    .gallery {
        column-gap: 40px;
        row-gap: 48px;
    }

    .artwork:nth-child(even) {
        margin-top: 48px;
    }

    footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    body {
        padding: 0 24px;
    }

    .masthead {
        padding-top: 24px;
    }

    h1 {
        font-size: 3.5rem;
        margin: 26px 0 24px;
    }

    .masthead-bottom p {
        font-size: 18px;
    }

    .edition {
        font-size: 9px;
    }

    .edition span {
        padding: 0 4px;
    }

    .gallery-heading {
        padding-top: 32px;
    }

    .gallery-heading>span {
        font-size: 9px;
    }

    .gallery {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 38px;
    }

    .artwork:nth-child(even) {
        margin-top: 0;
    }

    figcaption h3 {
        font-size: 21px;
    }

    footer {
        margin-top: 60px;
        gap: 18px;
    }

    footer p {
        flex-basis: 100%;
        order: 3;
    }
}

@media (max-width: 380px) {
    body {
        padding: 0 18px;
    }

    h1 {
        font-size: 2.75rem;
    }

    .masthead-bottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery-heading {
        gap: 10px;
    }
}