:root {
    color-scheme: dark;
    --ink: #10110f;
    --ink-soft: #181916;
    --paper: #e2dfd4;
    --muted: #918f86;
    --line: rgba(226, 223, 212, .17);
    --rust: #bb6947;
    --olive: #858571;
    --mono: 'DM Mono', 'Courier New', monospace;
    --sans: 'DM Sans', Arial, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
body::after {
    position: fixed;
    z-index: 20;
    inset: 0;
    content: '';
    pointer-events: none;
    opacity: .16;
    background-image: url('/assets/grain.svg');
    mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
    position: absolute;
    z-index: 100;
    top: -60px;
    left: 16px;
    padding: 12px 16px;
    background: var(--paper);
    color: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 0 clamp(24px, 6.2vw, 100px);
    border-bottom: 1px solid rgba(226, 223, 212, .12);
    background: #11120fee;
}
.wordmark { display: inline-flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.wordmark > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.wordmark small { color: #a09f95; font-family: var(--mono); font-size: 8px; font-weight: 400; letter-spacing: .2em; }
.wordmark-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(226, 223, 212, .48);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.08em;
}
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 50px); }
.main-nav a { color: #c2c0b7; font-size: 12px; transition: color .2s ease; }
.main-nav a:hover, .social-links a:hover, .admin-link:hover { color: var(--rust); }
.header-index { display: flex; align-items: center; gap: 9px; color: #85847b; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.header-index > span { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 12px #bb6947aa; }

.hero {
    position: relative;
    display: flex;
    min-height: min(790px, calc(100svh - 86px));
    overflow: hidden;
    align-items: center;
    background: #1a1a16;
}
.hero-image, .hero-grain { position: absolute; inset: 0; }
.hero-image { overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.76) brightness(.54) contrast(1.14); }
.hero-image-empty {
    background:
        linear-gradient(90deg, #11120ff2 0%, #11120fbd 42%, #11120f42 100%),
        radial-gradient(ellipse at 75% 42%, #87817433 0, transparent 32%),
        linear-gradient(143deg, transparent 0 46%, #79766b24 46.2% 46.6%, transparent 46.8%),
        linear-gradient(25deg, transparent 0 62%, #aaa39117 62.2% 62.5%, transparent 62.7%),
        linear-gradient(0deg, #20211d, #373831 48%, #171814);
}
.hero-image-empty::before, .hero-image-empty::after { position: absolute; content: ''; }
.hero-image-empty::before {
    top: 9%;
    right: 13%;
    width: 38%;
    height: 91%;
    border: 1px solid rgba(211, 202, 182, .12);
    background: repeating-linear-gradient(90deg, transparent 0 12%, #b5ae9e0b 12.2% 12.6%, transparent 12.8% 25%);
    transform: perspective(700px) rotateY(-12deg) skewY(1deg);
    box-shadow: inset 0 0 90px #090a09;
}
.hero-image-empty::after {
    right: 20%;
    bottom: 0;
    width: 25%;
    height: 66%;
    border: 1px solid rgba(211, 202, 182, .1);
    background: linear-gradient(0deg, #0e0f0e, #aaa18a12 65%, transparent);
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%);
}
.hero-grain { opacity: .28; background: linear-gradient(90deg, #0c0d0cf0 0%, #10110fcf 35%, #11120f42 76%, #11120f84 100%), url('/assets/grain.svg'); }
.hero-content { position: relative; z-index: 1; width: min(760px, 74%); margin-left: clamp(28px, 11.5vw, 184px); padding: 80px 0 104px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; color: #aaa89c; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; }
.eyebrow-line { display: inline-block; width: 29px; height: 1px; background: var(--rust); }
.eyebrow-code { margin-left: 12px; color: #74756d; }
.hero h1 { margin: 32px 0 24px; font-family: var(--serif); font-size: clamp(76px, 10.5vw, 154px); font-weight: 500; letter-spacing: -.075em; line-height: .82; }
.hero h1 em, .section-intro h2 em, .about-copy h2 em, .gallery-empty h3 em { color: var(--rust); font-weight: 500; }
.hero-copy { max-width: 370px; margin: 32px 0 34px; color: #c3c0b5; font-size: 14px; line-height: 1.8; }
.hero-link { display: inline-flex; align-items: center; gap: 20px; padding: 0 0 10px; border-bottom: 1px solid rgba(226, 223, 212, .46); font-size: 12px; }
.hero-link .arrow { color: var(--rust); font-size: 20px; transition: transform .2s ease; }
.hero-link:hover .arrow { transform: translate(3px, 3px); }
.hero-side-note { position: absolute; right: clamp(24px, 6.2vw, 100px); bottom: 28%; z-index: 1; color: #dad7c999; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; line-height: 1.8; text-align: right; }
.hero-side-note span { color: #89877e; }
.hero-footer { position: absolute; right: clamp(24px, 6.2vw, 100px); bottom: 27px; left: clamp(24px, 6.2vw, 100px); display: flex; justify-content: space-between; color: #a09e93; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }

.archive-section { padding: 118px clamp(24px, 8vw, 128px) 86px; background: #11120f; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 46px; }
.section-intro h2 { margin: 20px 0 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.section-note { margin: 0 0 7px; color: #908f85; font-size: 12px; line-height: 1.8; text-align: right; }
.category-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-nav a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid transparent; color: #a5a398; font-size: 11px; transition: all .2s ease; }
.category-nav a:hover { color: var(--paper); }
.category-nav a.is-active { border-color: #726f62; color: var(--paper); background: #25251f; }
.category-nav a span { color: var(--rust); font-family: var(--mono); font-size: 9px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo-card { min-width: 0; }
.photo-card-featured { grid-column: span 2; }
.photo-open { position: relative; display: block; width: 100%; padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: zoom-in; }
.photo-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.12 / 1; background: #24251f; }
.photo-card-featured .photo-image { aspect-ratio: 1.82 / 1; }
.photo-image::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, #10110fb8, transparent 54%); transition: background .25s ease; }
.photo-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) contrast(1.05) brightness(.79); transition: transform .65s cubic-bezier(.2,.65,.2,1), filter .4s ease; }
.photo-open:hover .photo-image img { transform: scale(1.035); filter: grayscale(.22) contrast(1.08) brightness(.93); }
.photo-index { position: absolute; z-index: 1; top: 17px; left: 18px; color: #e2dfd4b5; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.photo-index i { color: var(--rust); font-style: normal; }
.photo-zoom { position: absolute; z-index: 1; top: 13px; right: 16px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e2dfd45c; color: var(--paper); opacity: 0; transition: opacity .2s ease; }
.photo-open:hover .photo-zoom, .photo-open:focus-visible .photo-zoom { opacity: 1; }
.photo-caption { position: absolute; right: 20px; bottom: 18px; left: 20px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.photo-caption span { color: #d0cbbd; font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.photo-caption strong { max-width: 70%; font-family: var(--serif); font-size: clamp(16px, 2vw, 24px); font-weight: 500; text-align: right; }
.photo-card:not(.photo-card-featured) .photo-caption { align-items: flex-start; flex-direction: column-reverse; gap: 7px; }
.photo-card:not(.photo-card-featured) .photo-caption strong { text-align: left; }
.archive-tail { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: #77776f; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; }
.gallery-empty { position: relative; display: flex; min-height: 400px; overflow: hidden; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e2dfd414; background: radial-gradient(ellipse at 52% 55%, #4a473b38, transparent 48%), #171814; text-align: center; }
.gallery-empty::before, .gallery-empty::after { position: absolute; top: 13%; bottom: 13%; width: 1px; content: ''; background: linear-gradient(transparent, #e2dfd41c, transparent); }
.gallery-empty::before { left: 22%; }
.gallery-empty::after { right: 22%; }
.empty-coordinate { position: absolute; top: 26px; left: 28px; color: #89877b; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; line-height: 1.8; text-align: left; }
.empty-stamp { color: var(--rust); font-family: var(--mono); font-size: 8px; letter-spacing: .2em; }
.gallery-empty h3 { margin: 18px 0 12px; font-family: var(--serif); font-size: clamp(42px, 6vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.gallery-empty p { max-width: 300px; margin: 0; color: #99978d; font-size: 12px; line-height: 1.7; }

.about-section { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 2fr) 40px; gap: 8%; min-height: 525px; padding: 110px clamp(24px, 12vw, 190px); overflow: hidden; border-top: 1px solid var(--line); background: #191a16; }
.about-label { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.about-label .eyebrow { white-space: nowrap; }
.about-mark { color: #383930; font-family: var(--serif); font-size: 86px; letter-spacing: -.1em; line-height: .75; }
.about-copy h2 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(46px, 6vw, 78px); font-weight: 500; letter-spacing: -.06em; line-height: 1.02; }
.about-copy > p:first-of-type { max-width: 540px; color: #b7b5aa; font-size: 14px; line-height: 1.9; }
.about-rule { display: block; width: 52px; height: 1px; margin: 28px 0; background: var(--rust); }
.about-copy .about-small { color: #84837b; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; line-height: 1.9; }
.about-vertical { align-self: center; color: #77766d; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; writing-mode: vertical-rl; }

.site-footer { padding: 68px clamp(24px, 8vw, 128px) 22px; background: #0d0e0c; }
.footer-main { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 7%; padding-bottom: 58px; }
.footer-brand > p { margin: 23px 0 0; color: #838279; font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.5; }
.footer-contact, .footer-note { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact .eyebrow { margin-bottom: 19px; }
.footer-email { font-family: var(--serif); font-size: clamp(18px, 2vw, 25px); }
.footer-email span { color: var(--rust); font-family: var(--sans); font-size: 15px; }
.social-links { display: flex; gap: 19px; margin-top: 19px; }
.social-links a, .admin-link { color: #aaa89c; font-family: var(--mono); font-size: 9px; transition: color .2s ease; }
.footer-note > span { color: var(--rust); font-family: var(--mono); font-size: 8px; letter-spacing: .16em; }
.footer-note p { max-width: 245px; margin: 18px 0; color: #85847b; font-size: 11px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: #77766d; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.footer-bottom a { color: #aaa89c; }

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 28px clamp(18px, 4vw, 64px);
    border: 0;
    color: var(--paper);
    background: #0d0e0cf5;
}
.lightbox::backdrop { background: #090a09ed; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; color: #99978d; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.lightbox-brand { color: var(--paper); }
.lightbox-brand i { margin-left: 7px; color: #77766d; font-size: 8px; font-style: normal; }
.lightbox-close { display: flex; align-items: center; gap: 14px; padding: 5px 0 5px 10px; border: 0; color: #b8b5aa; background: none; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; cursor: pointer; }
.lightbox-close span { color: var(--rust); font-size: 24px; }
.lightbox-figure { display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; margin: 18px 7%; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 210px); object-fit: contain; }
.lightbox-figure figcaption { display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; align-self: stretch; max-width: 900px; margin: 15px auto 0; }
.lightbox-category { grid-row: span 2; padding-top: 5px; color: var(--rust); font-family: var(--mono); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.lightbox-title { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.lightbox-description { grid-column: 2; margin: 0; color: #99978d; font-size: 11px; line-height: 1.6; }
.lightbox-arrow { position: absolute; top: 50%; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #e2dfd44a; color: var(--paper); background: #10110f88; font-size: 18px; cursor: pointer; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-bottom { padding-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
    .header-index { display: none; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-card-featured { grid-column: span 2; }
    .about-section { grid-template-columns: .6fr 2fr 20px; gap: 5%; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-note { grid-column: 2; }
}
@media (max-width: 620px) {
    .site-header { min-height: 72px; padding: 0 20px; }
    .wordmark { gap: 9px; font-size: 11px; }
    .wordmark-icon { width: 33px; height: 33px; font-size: 14px; }
    .main-nav { gap: 15px; }
    .main-nav a { font-size: 10px; }
    .hero { min-height: min(740px, calc(100svh - 72px)); }
    .hero-content { width: 88%; margin-left: 25px; padding: 74px 0 100px; }
    .hero h1 { margin-top: 28px; font-size: clamp(70px, 19vw, 110px); }
    .hero-copy { max-width: 300px; font-size: 12px; }
    .hero-side-note { display: none; }
    .hero-footer { right: 20px; left: 20px; font-size: 7px; }
    .hero-footer span:first-child { max-width: 55%; line-height: 1.6; }
    .archive-section { padding: 78px 20px 62px; }
    .section-intro { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
    .section-intro h2 { font-size: 56px; }
    .section-note { text-align: left; }
    .category-nav { gap: 4px; margin-bottom: 22px; }
    .category-nav a { padding: 7px 9px; font-size: 10px; }
    .photo-grid { grid-template-columns: 1fr; gap: 20px; }
    .photo-card-featured { grid-column: auto; }
    .photo-card-featured .photo-image, .photo-image { aspect-ratio: 1.2 / 1; }
    .photo-caption strong { font-size: 20px; }
    .photo-zoom { opacity: 1; }
    .gallery-empty { min-height: 360px; }
    .empty-coordinate { top: 17px; left: 17px; }
    .archive-tail { gap: 20px; font-size: 7px; line-height: 1.6; }
    .archive-tail span:last-child { text-align: right; }
    .about-section { display: block; min-height: auto; padding: 76px 25px; }
    .about-label { flex-direction: row; margin-bottom: 55px; }
    .about-mark { font-size: 48px; }
    .about-copy h2 { font-size: clamp(46px, 13vw, 65px); }
    .about-copy > p:first-of-type { font-size: 13px; }
    .about-vertical { position: absolute; right: 20px; bottom: 28px; }
    .footer-main { grid-template-columns: 1fr; gap: 42px; padding-bottom: 38px; }
    .footer-note { grid-column: auto; }
    .footer-bottom { flex-wrap: wrap; gap: 14px 22px; font-size: 7px; }
    .footer-bottom span:nth-child(2) { display: none; }
    .lightbox { padding: 20px 16px; }
    .lightbox-figure { margin: 22px 0; }
    .lightbox-image { max-height: calc(100vh - 215px); }
    .lightbox-arrow { top: auto; bottom: 19px; z-index: 2; width: 36px; height: 36px; }
    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
    .lightbox-bottom { padding: 8px 46px; font-size: 7px; }
    .lightbox-figure figcaption { margin-top: 12px; }
    .lightbox-title { font-size: 20px; }
}

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