/* Vitrine design system — spec §3 */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #fafaf8;
  --ink: #1a1a1a;
  --muted: #aaa;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --gutter: 28px;
  --margin: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.nav { display: flex; justify-content: space-between; align-items: baseline; padding: 28px var(--margin); }
.nav-logo { font-size: 12px; letter-spacing: 0.35em; font-weight: 500; }
.nav-links { display: flex; gap: 28px; font-size: 10px; letter-spacing: 0.25em; color: #888; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.footer { display: flex; justify-content: space-between; padding: 40px var(--margin) 32px; font-size: 9px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }

/* Fade-in (JS-gated so images stay visible without JS) */
.js .fade { opacity: 0; transition: opacity 0.6s ease; }
.js .fade.loaded { opacity: 1; }

/* Home: lead image + mixed editorial grid (spec §3) */
.lead { padding: 4px var(--margin) 0; }
.lead img { aspect-ratio: 21 / 9; object-fit: cover; }
.lead-cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.lead-cap .name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.02em; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px var(--gutter); padding: 48px var(--margin) 64px; }
.item { margin: 0; }
.item--portrait { grid-column: span 2; }
.item--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.item--landscape { grid-column: span 3; }
.item--landscape img { aspect-ratio: 4 / 3; object-fit: cover; }
.item figcaption, .lead-cap .series, figcaption { font-size: 9px; letter-spacing: 0.2em; color: var(--muted); margin-top: 10px; text-transform: uppercase; }
.item a:hover img { opacity: 0.88; transition: opacity 0.3s ease; }

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .item--portrait, .item--landscape { grid-column: auto; }
}

/* Lightbox — near-white per spec §3 */
.lightbox { position: fixed; inset: 0; background: rgba(250, 250, 248, 0.97); display: none; z-index: 100; }
.lightbox.open { display: block; }
.lightbox figure { position: absolute; inset: 56px var(--margin) 48px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12); }
.lightbox button { position: absolute; background: none; border: none; font-family: var(--sans); font-size: 13px; letter-spacing: 0.15em; color: var(--ink); cursor: pointer; padding: 16px; z-index: 101; }
.lb-close { top: 12px; right: var(--margin); }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { display: none; } } /* swipe instead */

/* About / Contact / 404 */
.page { max-width: 720px; margin: 0 auto; padding: 56px var(--margin) 80px; }
.page-label { font-size: 10px; letter-spacing: 0.3em; color: var(--muted); margin-bottom: 28px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 0 0 24px; }
.page p { font-size: 14px; line-height: 1.8; color: #333; margin: 0 0 16px; }
.page-portrait { max-width: 320px; margin: 0 0 32px; }
.contact-links { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.contact-links a:hover { color: var(--muted); }
.err { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 0 var(--margin); }
.err img { max-width: 420px; }
