@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter/InterVariable.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --paper: #f7f4ed;
    --ink: #191917;
    --muted: #77736c;
    --line: #dfdbd1;
    --gap: 8px;
    --sidebar-width: 176px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.site-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 68px);
    min-height: 100vh;
    padding: 28px 32px 36px;
}

.sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 74px);
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    font-size: 1.85rem;
    font-weight: 690;
    letter-spacing: -0.075em;
    line-height: 0.83;
}

.wordmark::after {
    width: 100%;
    height: 4px;
    margin-top: 18px;
    background: linear-gradient(90deg, #d1ac58 0%, #da8a71 45%, #7498e8 100%);
    content: "";
}

.site-nav {
    display: grid;
    gap: 12px;
    margin-top: clamp(84px, 12vh, 150px);
}

.site-nav a {
    width: fit-content;
    color: var(--ink);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 520;
    letter-spacing: -0.025em;
    line-height: 1;
    transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.site-nav a[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 6px 2px 0;
    border-radius: 50%;
    background: currentColor;
}

.sidebar-footer {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 48px;
}

.footer-icon {
    position: relative;
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--muted);
    transition: color 160ms ease;
}

.footer-icon:hover {
    color: var(--ink);
}

.footer-icon-instagram::before {
    width: 15px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 5px;
    background:
        radial-gradient(circle at 72% 28%, currentColor 0 1.2px, transparent 1.4px),
        radial-gradient(circle at center, transparent 0 3px, currentColor 3.2px 4.4px, transparent 4.6px);
    content: "";
}

.footer-icon-email::before {
    width: 16px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background:
        linear-gradient(135deg, transparent 48%, currentColor 49% 51%, transparent 52%) left top / 50% 70% no-repeat,
        linear-gradient(225deg, transparent 48%, currentColor 49% 51%, transparent 52%) right top / 50% 70% no-repeat;
    content: "";
}

.gallery-page {
    min-width: 0;
}

.gallery-header {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.eyebrow,
.gallery-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-header h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.gallery-count {
    margin-left: auto;
}

.gallery {
    columns: 3;
    column-gap: var(--gap);
}

.photo-card {
    position: relative;
    margin: 0 0 var(--gap);
    overflow: hidden;
    break-inside: avoid;
    background: #e9e5dc;
}

.photo-card button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.9);
    transition: filter 220ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-card:hover img,
.photo-card:focus-within img {
    filter: saturate(1.04);
    transform: scale(1.012);
}

.empty-state {
    margin: 48px 0;
    color: var(--muted);
}

.lightbox {
    position: fixed;
    width: min(94vw, 1400px);
    max-width: none;
    padding: 52px 20px 20px;
    border: 1px solid var(--line);
    background: rgba(247, 244, 237, 0.98);
    color: var(--ink);
}

.lightbox::backdrop {
    background: rgba(20, 19, 17, 0.88);
}

.lightbox img {
    display: block;
    width: 100%;
    max-height: calc(82vh - 32px);
    object-fit: contain;
}

.lightbox p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    color: var(--ink);
    font: inherit;
    font-size: 0;
    place-items: center;
    cursor: pointer;
}

.lightbox-close:focus,
.lightbox-close:focus-visible,
.lightbox-close:active {
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.lightbox-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 980px) {
    :root {
        --sidebar-width: 130px;
    }

    .site-shell {
        gap: 26px;
        padding-inline: 22px;
    }

    .gallery {
        columns: 2;
    }
}

@media (max-width: 680px) {
    .site-shell {
        display: block;
        padding: 20px 14px 28px;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 22px;
        min-height: 0;
        margin-bottom: 26px;
    }

    .wordmark {
        font-size: 1.55rem;
    }

    .wordmark::after {
        height: 3px;
        margin-top: 13px;
    }

    .site-nav {
        grid-template-columns: repeat(2, max-content);
        gap: 10px 18px;
        margin-top: 0;
        align-content: start;
    }

    .sidebar-footer {
        grid-column: 1 / -1;
        margin-top: 0;
        padding-top: 2px;
    }

    .gallery-header {
        margin-bottom: 10px;
    }

    .gallery {
        columns: 2;
        column-gap: 5px;
    }

    .photo-card {
        margin-bottom: 5px;
    }

    .lightbox {
        width: 100vw;
        min-height: 0;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 48px 12px 12px;
    }

    .lightbox img {
        max-height: calc(100vh - 60px);
        max-height: calc(100dvh - 60px);
    }

    .lightbox p {
        margin-top: 8px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
    }
}
