@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(fonts/cormorant-garamond-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap;
  src: url(fonts/cormorant-garamond-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/cormorant-garamond-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/cormorant-garamond-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/cormorant-garamond-500-normal.woff2) format("woff2"); }

/* Dark gallery: warm near-black, ivory text, a touch of champagne. */
:root {
  color-scheme: dark;
  --bg: #0c0c0b;
  --bg-2: #151513;
  --fg: #ebe5d9;
  --muted: #8f887b;
  --faint: #5f5a51;
  --line: #262420;
  --accent: #c8a46a;
  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --row: 280px;
  --gap: 10px;
  --pad: clamp(16px, 4vw, 64px);
  --measure: 36rem;
}
@media (max-width: 700px) { :root { --row: 150px; --gap: 4px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
img { display: block; }

/* small capitals with wide tracking: labels, dates, counts */
.eyebrow, .crumbs, .card-meta small, .album-head .meta, footer.site {
  font: 500 11px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

footer.site { display: flex; justify-content: center; gap: 14px; margin-top: clamp(72px, 14vh, 160px);
  padding: 36px var(--pad) 44px; border-top: 1px solid var(--line); color: var(--faint); }

/* Header & menu ------------------------------------------------------------*/
/* Sticky, translucent; slides away while scrolling down (app.js toggles .away / .scrolled). */
header.site {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px);
  padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: transform .35s ease, border-color .3s;
}
header.site.scrolled { border-bottom-color: var(--line); }
header.site.away { transform: translateY(-100%); }
header.site .brand { margin-right: auto; padding: 8px 0; font: 500 13px/1 var(--sans); letter-spacing: .32em;
  text-transform: uppercase; text-decoration: none; }
header.site .admin-link { font-size: 13px; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.site-nav li { position: relative; }
.site-nav > ul > li > a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); transition: color .2s; }
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current], .has-sub:focus-within > a { color: var(--fg); }
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a[aria-current]::after { transform: none; }
.site-nav > ul > li > a[aria-current]::after { background: var(--accent); }
.site-nav .ext { font-size: 10px; opacity: .55; letter-spacing: 0; }
.site-nav .chev { opacity: .6; transition: transform .25s ease; }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }

/* drop-down: centred under its entry, right-aligned for the last one so it stays on screen */
.sub { --x: -50%; position: absolute; top: calc(100% + 10px); left: 50%; min-width: 230px; padding: 10px 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translate(var(--x), -6px);
  transition: opacity .2s, transform .25s ease, visibility 0s .25s; }
.site-nav > ul > li:last-child:not(:first-child) > .sub { --x: 0%; left: auto; right: -14px; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; } /* hover bridge */
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(var(--x), 0);
  transition-delay: 0s; }
.sub a { display: block; padding: 9px 24px; font: 400 19px/1.3 var(--serif); text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s; }
.sub a:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.sub a[aria-current] { color: var(--accent); }

.nav-toggle { display: none; }

/* Phones: the menu opens as a full-screen sheet under the header */
@media (max-width: 700px) {
  header.site { padding-block: 10px; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -9px; padding: 0;
    background: none; border: 0; color: var(--fg); cursor: pointer; }
  .nav-toggle i { position: relative; width: 22px; height: 8px; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
    background: currentColor; transition: transform .3s ease, top .3s ease; }
  .nav-toggle i::before { top: 0; }
  .nav-toggle i::after { top: 6.5px; }
  .nav-toggle[aria-expanded="true"] i::before { top: 3.25px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after { top: 3.25px; transform: rotate(-45deg); }
  header.site .admin-link { order: -1; }

  /* backdrop-filter would make the header the containing block of the fixed sheet */
  .nav-open header.site { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); transform: none; }
  body.nav-open { overflow: hidden; }
  .site-nav { position: fixed; inset: 0; z-index: -1; overflow-y: auto; padding: 92px 28px 48px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav > ul { flex-direction: column; gap: 6px; }
  .site-nav > ul > li { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s ease;
    transition-delay: calc(var(--i, 0) * 45ms + 60ms); }
  .nav-open .site-nav > ul > li { opacity: 1; transform: none; }
  .site-nav > ul > li > a { padding: 8px 0; font: 400 32px/1.15 var(--serif); letter-spacing: -.01em;
    text-transform: none; color: var(--fg); }
  .site-nav > ul > li > a::after { display: none; }
  .site-nav > ul > li > a[aria-current] { color: var(--accent); }
  .site-nav .chev { display: none; }
  .site-nav .ext { font-size: 16px; align-self: flex-start; }
  .sub, .site-nav > ul > li:last-child:not(:first-child) > .sub { position: static; min-width: 0; padding: 0 0 14px;
    border: 0; border-left: 1px solid var(--line); border-radius: 0; margin-left: 2px; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; }
  .sub a { padding: 6px 0 6px 16px; font-size: 19px; color: var(--muted); }
  .sub a:hover { background: none; color: var(--fg); }
}
.draft { font: 500 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  vertical-align: middle; }
.empty { text-align: center; color: var(--muted); padding: 20vh 0; font: italic 300 24px var(--serif); }

/* Photos fade in over their placeholder once loaded (app.js adds .in; html.js is set in <head>) */
.js .jg-i img, .js .card-img img, .js .feat img, .js .split img, .js .hero-img img { opacity: 0; transition: opacity .8s ease; }
.js .jg-i img.in, .js .card-img img.in, .js .feat img.in, .js .split img.in, .js .hero-img img.in { opacity: 1; }

/* Home & album cards -------------------------------------------------------*/
.home { padding: clamp(24px, 6vh, 72px) var(--pad) 0; }
.cards {
  display: grid; gap: clamp(48px, 7vw, 96px) clamp(20px, 3vw, 48px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
}
.album > .cards { margin-bottom: clamp(64px, 12vh, 140px); }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2) center / cover; }
.card-img img { width: 100%; height: 100%; object-fit: cover;
  transition: opacity .8s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1), filter .8s ease; filter: brightness(.9); }
.card:hover .card-img img { transform: scale(1.04); filter: none; }
.card-meta { display: grid; gap: 8px; padding-top: 20px; }
.card-meta h2 { order: 2; font: 300 clamp(28px, 2.6vw, 38px)/1.1 var(--serif); letter-spacing: -.005em; margin: 0; }
.card-meta p { order: 3; margin: 0; font: italic 300 19px/1.4 var(--serif); color: var(--muted); }
.card-meta small { order: 1; }
.card:hover .card-meta h2 { color: #fff; }

/* Album --------------------------------------------------------------------*/
/* sections get the side margins; the opening photo runs edge to edge */
.album > * { padding-inline: var(--pad); }
.album > .album-hero { padding-inline: 0; }

.album-head { text-align: center; }
.album-head:not(.album-hero) { max-width: calc(var(--measure) + 2 * var(--pad)); margin: clamp(40px, 10vh, 120px) auto clamp(48px, 8vh, 96px); }
.crumbs { margin-bottom: 22px; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--fg); }
.album-head h1 { font: 300 clamp(44px, 7.5vw, 108px)/.98 var(--serif); margin: 0; letter-spacing: -.015em; }
.album-head .subtitle { font: italic 300 clamp(20px, 2.4vw, 28px)/1.35 var(--serif); color: var(--muted); margin: 18px 0 0; }
.album-head .meta { margin: 26px 0 0; }
.album-head .meta a { color: var(--accent); text-decoration: none; }

/* Opening: the cover across the full width, the title set over its lower part */
.album-hero { position: relative; display: grid; align-items: end; min-height: 420px; height: min(86vh, 64vw);
  margin-bottom: clamp(56px, 10vh, 120px); overflow: hidden; background: var(--bg-2) center / cover; }
.hero-img { position: absolute; inset: 0; background: center / cover; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; animation: hero-in 2.8s cubic-bezier(.2, .7, .2, 1) both; }
.album-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 12, 11, .94) 0%, rgba(12, 12, 11, .55) 32%, rgba(12, 12, 11, 0) 62%),
    linear-gradient(to bottom, rgba(12, 12, 11, .35), rgba(12, 12, 11, 0) 22%); }
.hero-txt { position: relative; z-index: 1; width: min(100%, 64rem); margin: 0 auto;
  padding: 0 var(--pad) clamp(36px, 7vh, 84px); }
.album-hero h1, .album-hero .subtitle { text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.album-hero .subtitle { color: #cfc8bb; }
.album-hero .crumbs, .album-hero .meta { color: #a59e91; }
@keyframes hero-in { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-img img { animation: none; } }

.prose { max-width: calc(var(--measure) + 2 * var(--pad)); margin: clamp(56px, 11vh, 128px) auto;
  font: 400 21px/1.62 var(--serif); color: #d9d2c5; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { font-weight: 300; line-height: 1.15; margin: 0 0 .55em; color: var(--fg); }
.prose h2 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.01em; }
.prose h3 { font-size: 30px; }
.prose blockquote { margin: 1.4em 0; padding: 0; text-align: center; font: italic 300 clamp(24px, 2.6vw, 30px)/1.4 var(--serif);
  color: var(--fg); }
.prose blockquote::before, .prose blockquote::after { content: ""; display: block; width: 32px; height: 1px;
  margin: 0 auto 22px; background: var(--accent); }
.prose blockquote::after { margin: 22px auto 0; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* a fine champagne rule announces each text between photos */
.album > .prose:not(.intro)::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 44px;
  background: var(--accent); opacity: .8; }
.intro > p:first-child::first-letter { float: left; margin: .06em .05em 0 0; font: 400 3.6em/.8 var(--serif); color: var(--accent); }
@media (max-width: 700px) { .prose { font-size: 19px; } }

/* Pages (« À propos », a home page…): text first, consecutive text blocks read as one piece */
.page > .prose { margin-block: clamp(32px, 6vh, 64px); }
.page > .prose:not(.intro)::before { display: none; }
.page > .album-head:not(.album-hero) { margin-bottom: clamp(32px, 6vh, 64px); }
.page > .intro { font-size: 23px; }
@media (max-width: 700px) { .page > .intro { font-size: 20px; } }
.page-albums { margin-top: clamp(80px, 14vh, 160px); }
.page-albums > h2 { margin: 0 0 clamp(32px, 5vh, 56px); text-align: center; }

/* Justified grid: items grow proportionally to their aspect ratio */
.jg { display: flex; flex-wrap: wrap; gap: var(--gap); margin-bottom: var(--gap); }
.jg::after { content: ""; flex-grow: 1e6; }
.jg.balanced::after { display: none; } /* rows laid out by app.js: every row is full */
.jg-i { position: relative; display: block; min-width: 0; overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.jg-i i { display: block; background-size: cover; }
.jg-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.jg-i:hover img { transform: scale(1.025); }

.feat { margin: clamp(56px, 10vh, 120px) auto; max-width: min(100%, 1800px); }
.feat a { display: block; margin: 0 auto; width: min(100%, calc(92vh * var(--r))); background-size: cover; cursor: zoom-in; }
.feat img { width: 100%; height: 100%; object-fit: contain; }
.feat figcaption { max-width: var(--measure); margin: 18px auto 0; text-align: center; color: var(--muted);
  font: italic 300 19px/1.5 var(--serif); }

/* Photo beside a text (left / right layout): the photo leans towards the text, the text sits on its middle */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px);
  align-items: center; max-width: 1500px; margin: clamp(64px, 12vh, 140px) auto; }
.split-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.split-right figure { order: 2; }
.split figure { margin: 0; }
.split figure a { display: block; width: min(100%, calc(84vh * var(--r))); background-size: cover; cursor: zoom-in; }
.split-left figure a { margin-left: auto; }
.split img { width: 100%; height: 100%; object-fit: contain; }
.split figcaption { margin-top: 14px; color: var(--muted); font: italic 300 17px/1.5 var(--serif); }
.split-left figcaption { text-align: right; }
.split .prose { margin: 0; max-width: 32rem; padding: 0; }
.split-right .prose { justify-self: end; }
.split .prose > :last-child { margin-bottom: 0; }
.split-cap { margin: 0; max-width: 24rem; font: italic 300 clamp(24px, 2.4vw, 32px)/1.35 var(--serif); color: var(--fg); }
.split-right .split-cap { justify-self: end; text-align: right; }
@media (max-width: 700px) {
  .split, .split-right { grid-template-columns: 1fr; gap: 28px; }
  .split-right figure { order: 0; }
  .split figure a { margin: 0 auto; }
  .split figcaption, .split-right .split-cap { text-align: left; }
  .split-right .prose, .split-right .split-cap { justify-self: start; }
}

/* Lightbox -----------------------------------------------------------------*/
/* Two columns: the photo, and the info panel whose width animates from 0. */
.lb {
  --info-w: min(340px, 36vw);
  position: fixed; inset: 0; z-index: 50; background: #070706; color: #ddd;
  display: grid; grid-template-columns: 1fr 0; opacity: 0; touch-action: none;
  transition: opacity .2s, grid-template-columns .28s ease;
}
.lb.on { opacity: 1; }
.lb.info-open { grid-template-columns: 1fr var(--info-w); }
.lb-main { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.lb-stage { position: relative; overflow: hidden; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 24px); max-height: calc(100% - 24px);
  object-fit: contain; background-size: cover; }
.lb-bar { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 56px;
  padding: 8px 20px 12px; }
.lb-bar .cap { color: #e8e4dc; font: italic 16px var(--serif); }
.lb-btn { position: absolute; background: none; border: 0; color: #ccc; cursor: pointer; font: 300 34px/1 var(--sans);
  padding: 18px; opacity: .55; }
.lb-btn:hover { opacity: 1; }
.lb .x { top: 0; right: 4px; font-size: 30px; z-index: 2; }
.lb .prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb .next { right: 0; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; top: 18px; left: 22px; font-size: 13px; color: #777; }
@media (hover: none) { .lb .prev, .lb .next { display: none; } }

.info-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px;
  background: none; color: #a8a49c; border: 1px solid #3a3936; border-radius: 999px; cursor: pointer;
  font: 13px var(--sans); letter-spacing: .02em; transition: color .15s, border-color .15s, background .15s; }
.info-btn:hover { color: #eee; border-color: #6b6862; }
.info-btn[aria-pressed="true"] { color: #141414; background: #e8e4dc; border-color: #e8e4dc; }
[hidden] { display: none !important; }

.lb-info { overflow: hidden; border-left: 1px solid #222; background: #0f0f0e; }
.lb:not(.info-open) .lb-info { border-left-color: transparent; }
/* fixed inner width: content doesn't reflow while the column opens */
.lb-info .in { width: var(--info-w); height: 100%; overflow-y: auto; padding: 18px 24px 28px; }
.lb-info header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #77736b; }
.lb-info .close-info { position: static; padding: 0 2px; font-size: 24px; }
.i-cap { font: italic 18px/1.45 var(--serif); color: #ece8e0; margin: 0 0 14px; }
.i-when { font: 17px/1.4 var(--serif); color: #d8d4cc; margin: 0 0 22px; }
.i-expo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #262523; border: 1px solid #262523;
  border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.i-expo div { background: #151514; padding: 12px 14px 10px; }
.i-expo b { display: block; font: 400 21px/1.15 var(--serif); color: #f1ede6; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.i-expo span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #77736b; }
.lb-info dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0 0 22px; font-size: 14px; }
.lb-info dt { color: #77736b; }
.lb-info dd { margin: 0; color: #d8d4cc; overflow-wrap: anywhere; }
.i-none { color: #8d8980; font: italic 15px var(--serif); margin: 0 0 18px; }
.i-dims { font-size: 12.5px; color: #6f6b64; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.i-dl { font-size: 13px; color: #a8a49c; }

/* Phones: the panel becomes a bottom sheet over the photo */
@media (max-width: 700px) {
  .lb, .lb.info-open { grid-template-columns: 1fr; }
  .lb { --info-w: 100%; }
  .lb-info { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; border: 0; border-radius: 16px 16px 0 0;
    background: rgba(18, 18, 17, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(100%); transition: transform .28s ease; }
  .lb.info-open .lb-info { transform: none; }
  .lb-info .in { height: auto; max-height: 62vh; }
  .i-expo { grid-template-columns: repeat(4, auto); }
  .i-expo div { padding: 10px 10px 8px; }
  .i-expo b { font-size: 15px; }
  .i-expo span { font-size: 9.5px; letter-spacing: .06em; }
}
