:root {
    color-scheme: light;
    --navy: #020617;
    --slate: #0f172a;
    --fog: #f4f2ee;
    --ink: #1e293b;
    --muted: #64748b;
    --amber: #d9a227;
    --amber-dark: #9a7118;
    --red: #c8362a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background: var(--fog);
    color: var(--ink);
    font-family: "Outfit", system-ui, sans-serif;
    line-height: 1.6;
}

body.is-locked {
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(2 6 23 / 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(100% - 2rem, 80rem);
    min-height: 5rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    color: white;
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 3rem;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.brand-copy span {
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding-inline: 0.9rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--amber);
}

.album-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: white;
}

.album-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
    padding-block: clamp(4rem, 9vw, 8rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 2rem;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.breadcrumb a {
    color: #cbd5e1;
    text-underline-offset: 0.25rem;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--amber);
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: end;
}

.hero-title {
    max-width: 13ch;
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.75rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.95;
    text-wrap: balance;
}

.hero-copy {
    max-width: 38rem;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.0625rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-meta::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: currentColor;
}

.album-main {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
    padding-block: clamp(3rem, 7vw, 6rem);
}

.album-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.album-intro h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.album-intro p {
    max-width: 32rem;
    margin: 0;
    color: var(--muted);
}

.photo-grid {
    columns: 1;
    column-gap: 1rem;
}

.photo-card {
    margin: 0 0 1rem;
    break-inside: avoid;
    background: white;
}

.photo-button {
    width: 100%;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: #e2e8f0;
    color: inherit;
    cursor: zoom-in;
    display: block;
    overflow: hidden;
}

.photo-button img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), filter 450ms ease;
}

.photo-button:hover img {
    transform: scale(1.018);
    filter: contrast(1.02);
}

.photo-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem 0.9rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.photo-caption span:last-child {
    color: var(--amber-dark);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.album-footer {
    background: var(--navy);
    color: #94a3b8;
}

.footer-inner {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
    padding-block: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
}

.footer-inner a {
    color: #e2e8f0;
    text-underline-offset: 0.25rem;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: rgb(2 6 23 / 0.97);
    color: white;
}

.lightbox::backdrop {
    background: rgb(2 6 23 / 0.9);
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
}

.lightbox-counter {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    background: transparent;
    color: white;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    border-color: var(--amber);
    color: var(--amber);
}

.lightbox-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.25rem, 2vw, 1.5rem);
}

.lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    margin: auto;
    object-fit: contain;
}

.lightbox-label {
    min-height: 2.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.875rem;
    text-align: center;
}

.collection-grid {
    display: grid;
    gap: 1rem;
}

.collection-card {
    position: relative;
    min-height: 22rem;
    overflow: hidden;
    background: var(--slate);
    color: white;
}

.collection-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(2 6 23 / 0.08) 20%, rgb(2 6 23 / 0.88) 100%);
}

.collection-card a {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: inherit;
    text-decoration: none;
}

.collection-card h2 {
    max-width: 14ch;
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.collection-card p {
    max-width: 34rem;
    margin: 0.8rem 0 0;
    color: #e2e8f0;
    font-size: 0.9375rem;
}

.collection-count {
    margin-bottom: 0.75rem;
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.collection-card:hover img,
.collection-card:focus-within img {
    transform: scale(1.025);
    filter: contrast(1.04);
}

.collection-card a:focus-visible {
    outline-offset: -5px;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

@media (min-width: 40rem) {
    .photo-grid {
        columns: 2;
    }
}

@media (min-width: 64rem) {
    .hero-grid {
        grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
    }

    .collection-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .collection-card:nth-child(1),
    .collection-card:nth-child(4) {
        grid-column: span 7;
    }

    .collection-card:nth-child(2),
    .collection-card:nth-child(3) {
        grid-column: span 5;
    }

    .collection-card:nth-child(5) {
        grid-column: span 12;
        min-height: 28rem;
    }

    .collection-card:nth-child(n + 6) {
        grid-column: span 4;
    }

    .photo-grid {
        columns: 3;
        column-gap: 1.25rem;
    }

    .photo-card {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 42rem) {
    .brand-copy span,
    .header-nav .home-link {
        display: none;
    }

    .header-nav a {
        padding-inline: 0.65rem;
    }

    .lightbox {
        padding: 0.5rem;
    }

    .lightbox-stage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .lightbox-stage img {
        grid-column: 1 / -1;
        grid-row: 1;
        max-height: calc(100vh - 10rem);
    }

    .lightbox-nav {
        width: 100%;
        grid-row: 2;
    }
}

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