﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f3f3f0;
    --bg-soft: #f8f8f6;
    --surface: #ffffff;
    --surface-alt: #f6f6f3;
    --text: #111111;
    --muted: #666666;
    --muted-soft: #8a8a8a;
    --line: #dfdfda;
    --line-strong: #cfcfc9;
    --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
    --shadow-soft: 0 10px 24px rgba(17, 17, 17, 0.04);
    --overlay: rgba(10, 10, 10, 0.94);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1180px, calc(100vw - 48px));
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 32%),
        linear-gradient(180deg, #fafaf8 0%, var(--bg) 100%);
    line-height: 1.6;
}

body.lightbox-open {
    overflow: hidden;
}

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

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

button,
.button {
    font: inherit;
}

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

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(248, 248, 245, 0.92);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    object-fit: cover;
    background: #ffffff;
}

.brand__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand__name,
.footer-brand__name {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: lowercase;
}

.brand__tag,
.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.brand:hover .brand__name,
.brand:focus-visible .brand__name,
.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--text);
}

.site-main {
    padding-bottom: 72px;
}

.hero-home,
.page-hero,
.photo-detail,
.about-page {
    padding: 40px 0 0;
}

.hero-home__grid,
.page-hero__grid,
.about-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.hero-home__copy,
.page-hero__copy,
.about-page__copy,
.about-page__note,
.photo-detail__header {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.hero-home h1,
.page-hero h1,
.about-page h1,
.photo-detail h1,
.section-heading h2,
.about-strip h2,
.empty-state h3 {
    margin: 10px 0 14px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.02em;
}

.hero-home h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    max-width: 8ch;
}

.page-hero h1,
.about-page h1,
.photo-detail h1 {
    font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.section-heading h2,
.about-strip h2,
.empty-state h3 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.hero-home__lead,
.page-hero__lead,
.about-page__lead,
.photo-detail__lead,
.section-heading__text,
.category-card p,
.about-strip p,
.about-page__note p,
.empty-state p,
.page-hero__preview-note p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.hero-home__actions,
.page-hero__actions,
.photo-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible,
.subcategory-pill:hover,
.subcategory-pill:focus-visible,
.photo-tile:hover,
.photo-tile:focus-visible,
.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-1px);
    border-color: var(--text);
    box-shadow: var(--shadow-soft);
}

.button--primary {
    background: var(--text);
    border-color: var(--text);
    color: #ffffff;
}

.button--secondary {
    background: transparent;
}

.hero-home__meta,
.page-hero__context,
.photo-detail__context,
.about-page__facts,
.category-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-home__meta {
    padding: 0;
    list-style: none;
}

.hero-home__meta li,
.page-hero__context span,
.photo-detail__context span,
.about-page__facts span,
.category-card__meta span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-home__visual,
.page-hero__visual {
    display: grid;
    gap: 18px;
}

.hero-home__visual {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.8fr);
    align-items: start;
}

.hero-home__frame,
.page-hero__preview,
.photo-tile,
.category-card,
.about-strip,
.photo-stage,
.empty-state {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-home__frame,
.page-hero__preview-media,
.photo-tile {
    display: block;
}

.hero-home__frame--main,
.page-hero__preview-media,
.photo-tile {
    aspect-ratio: 4 / 5;
}

.hero-home__frame--side {
    aspect-ratio: 3 / 4;
}

.hero-home__frame img,
.page-hero__preview-media img,
.photo-tile img,
.photo-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home__note,
.page-hero__preview-note {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.page-hero__preview {
    display: grid;
}

.section {
    padding-top: 36px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.photo-grid,
.category-list {
    display: grid;
    gap: 20px;
}

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

.photo-tile {
    position: relative;
    background: var(--surface-alt);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.photo-tile:hover::after,
.photo-tile:focus-visible::after {
    opacity: 1;
}

.category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.category-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.category-card__link {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.subcategory-pill span {
    color: var(--muted);
    font-size: 0.78rem;
}

.about-page__copy,
.about-page__note {
    display: grid;
    align-content: start;
    gap: 14px;
}

.about-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 24px;
    padding: 28px;
}

.about-strip__actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.photo-detail__layout {
    display: grid;
    gap: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted-soft);
    font-size: 0.88rem;
}

.photo-stage {
    padding: clamp(16px, 2vw, 22px);
    background: #ffffff;
}

.photo-stage img {
    width: 100%;
    max-height: 78vh;
    min-height: 360px;
    border-radius: calc(var(--radius-xl) - 8px);
    object-fit: contain;
    background: #101010;
}

.photo-stage__caption {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state {
    padding: 28px;
}

.site-footer {
    padding: 44px 0 56px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-brand__logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand__text {
    display: grid;
    gap: 2px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--overlay);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__dialog {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: min(1320px, 100%);
}

.lightbox__figure {
    margin: 0;
    display: grid;
    gap: 14px;
}

.lightbox__image-wrap {
    display: grid;
    place-items: center;
    min-height: min(72vh, 760px);
}

.lightbox__image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
}

.lightbox__close,
.lightbox__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.lightbox__close {
    position: absolute;
    top: -58px;
    right: 0;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.lightbox__nav[hidden] {
    visibility: hidden;
}

.lightbox__counter[hidden],
.lightbox__meta[hidden] {
    display: none;
}

@media (max-width: 1080px) {
    .hero-home__grid,
    .page-hero__grid,
    .about-page__grid,
    .section-heading,
    .about-strip {
        grid-template-columns: 1fr;
    }

    .hero-home__visual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid,
    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100vw - 24px, 100%);
        --radius-xl: 24px;
        --radius-lg: 18px;
        --radius-md: 14px;
    }

    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

    .hero-home,
    .page-hero,
    .photo-detail,
    .about-page {
        padding-top: 24px;
    }

    .hero-home__copy,
    .page-hero__copy,
    .about-page__copy,
    .about-page__note,
    .photo-detail__header,
    .about-strip,
    .empty-state,
    .site-footer__inner {
        padding: 22px;
    }

    .hero-home__visual,
    .photo-grid,
    .category-list {
        grid-template-columns: 1fr;
    }

    .photo-stage img {
        min-height: 240px;
        max-height: 65vh;
    }

    .site-footer__inner,
    .site-footer__links,
    .lightbox__caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox__dialog {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lightbox__figure {
        order: 1;
    }

    .lightbox__nav {
        order: 2;
    }

    .lightbox__close {
        top: -10px;
        right: 0;
    }

    .lightbox__image-wrap {
        min-height: auto;
    }
}
