/* vonlind.com · Darkroom theme */
:root {
  --bg: #0f0d0b;
  --surface: #17140f;
  --surface-2: #1d1915;
  --line: #2a241e;
  --line-2: #3a3229;
  --text: #ebe4d8;
  --soft: #c7bcac;
  --muted: #a89c8b;
  --dim: #8a7f70;
  --accent: #c89867;
  --link: #d9b282;
  --link-hover: #f0d3ad;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --section: clamp(64px, 9vw, 112px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html.lb-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.rule-top { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 16px; }

/* Type helpers */
.label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.label .count { color: var(--dim); }
.eyebrow { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.serif { font-family: var(--serif); }
.arrow-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 32px; padding-block: 14px;
}
.brand { font-size: 14px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text); padding-block: 10px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav a { color: var(--muted); padding: 10px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 479px) {
  .site-header .container { padding-block: 8px 4px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0 10px; font-size: 11.5px; letter-spacing: 0.08em; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font-size: 15px; font-weight: 600; border-radius: 2px; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #dbb184; color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* Intro (from Field Journal) */
.intro { display: grid; gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 72px) var(--section); }
.intro-copy { display: flex; flex-direction: column; gap: 24px; }
.intro h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.01em;
}
.intro h1 em { color: var(--accent); }
.intro-lede { max-width: 520px; color: var(--soft); font-size: clamp(17px, 1.6vw, 19px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.intro figure { margin: 0; }
.intro figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; border-radius: 2px; }
.intro figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--dim); }
@media (min-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
}

/* Galleries: photo-set cards, each one link to its gallery page */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-bottom: 32px; }
.section-head .hint { margin-top: 6px; color: var(--dim); font-size: 14px; }
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 20px; }
@media (min-width: 640px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.set-card { display: flex; flex-direction: column; gap: 18px; color: var(--text); }
.set-card:hover, .set-card:focus-visible { color: var(--text); }
.set-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; aspect-ratio: 5 / 4; }
.set-mosaic > div { position: relative; overflow: hidden; background: var(--surface-2); }
.set-mosaic .m-lg { grid-row: 1 / span 2; }
.set-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.86); transition: transform .6s ease, filter .3s ease; }
.set-card:hover .set-mosaic img, .set-card:focus-visible .set-mosaic img { transform: scale(1.04); filter: brightness(1); }
.set-mosaic .more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 13, 11, .62); font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.set-meta { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
.set-card:hover .set-meta, .set-card:focus-visible .set-meta { border-bottom-color: var(--accent); }
.set-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.set-top h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.set-meta .desc { color: var(--soft); font-size: 15px; }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.go .arrow { display: inline-block; transition: transform .3s ease; }
.set-card:hover .go .arrow, .set-card:focus-visible .go .arrow { transform: translateX(6px); }

/* Album page thumbnails (open the lightbox) */
.thumb {
  display: block; position: relative; overflow: hidden; background: var(--surface-2);
  padding: 0; border: 0; cursor: zoom-in; width: 100%;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thumb:hover img { transform: scale(1.03); }
[hidden] { display: none !important; }

/* Intro photo opens in the lightbox */
.zoom { display: block; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.zoom img { transition: transform .6s ease; }
.zoom:hover img { transform: scale(1.02); }

/* Work */
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); }
.work-card .role { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.work-card h3 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.1; }
.work-card p.body { color: var(--soft); flex-grow: 1; }

/* About (from Maker's Ledger) */
.about { display: grid; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; } }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }
.about-copy p.body { color: var(--soft); font-size: clamp(17px, 1.5vw, 18px); }
.about-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-photos > :nth-child(2) { margin-top: clamp(24px, 5vw, 56px); }
.about-photos > :nth-child(2) img { object-position: 30% 30%; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--section) 40px; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.contact-email { display: block; font-family: var(--serif); font-size: clamp(30px, 5.5vw, 64px); line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.social { display: flex; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--text);
}
.social a:hover { border-color: var(--accent); color: var(--text); }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim);
}

/* Album page */
.album-head { padding-block: clamp(40px, 6vw, 72px) 40px; display: flex; flex-direction: column; gap: 16px; }
.album-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.01em; }
.album-head p.body { max-width: 620px; color: var(--soft); font-size: 18px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; align-self: flex-start; }
/* Gallery page: masonry. Without JS it falls back to CSS columns;
   site.js lays photos out left to right into the shortest column. */
.masonry { columns: 2; column-gap: 8px; padding-bottom: var(--section); }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 12px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.masonry .thumb { break-inside: avoid; margin-bottom: 8px; }
@media (min-width: 720px) { .masonry .thumb { margin-bottom: 12px; } }
.masonry .thumb img { height: auto; }
.masonry.is-laid { columns: auto; display: flex; align-items: flex-start; gap: 8px; }
@media (min-width: 720px) { .masonry.is-laid { gap: 12px; } }
.masonry .m-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 720px) { .masonry .m-col { gap: 12px; } }
.masonry.is-laid .thumb { margin: 0; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(10, 9, 7, 0.97); color: var(--text);
}
.lightbox::backdrop { background: rgba(10, 9, 7, 0.97); }
.lb-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 72px;
}
@media (min-width: 900px) { .lb-stage { padding: 72px 88px 80px; } }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; cursor: zoom-out; }
.lb-stage { cursor: zoom-out; overflow: hidden; }
.lb-img { transform-origin: 0 0; will-change: transform; touch-action: none; }
.lightbox.is-zoomed .lb-img, .lightbox.is-zoomed .lb-stage { cursor: grab; }
.lightbox.is-dragging .lb-img { cursor: grabbing; }
.lb-hint { display: none; color: var(--dim); }
@media (hover: hover) and (pointer: fine) { .lb-hint { display: inline; } }
.lightbox.is-zoomed .lb-hint { display: none; }
.lb-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(15, 13, 11, 0.7); color: var(--text); cursor: pointer; padding: 0;
}
.lb-btn:hover { border-color: var(--accent); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 899px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
.lb-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 16px;
  padding: 24px 72px; font-size: 13px; color: var(--muted); text-align: center; pointer-events: none;
}
.lb-count { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
/* Reels */
.reel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 720px) { .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; } }
.reel-grid-home { max-width: 960px; }
@media (min-width: 1100px) { .reel-grid-page { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reel-grid-page { padding-bottom: var(--section); }
.reel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.reel-frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.reel-frame img, .reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-time { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(15, 13, 11, .82); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.reel-play {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; background: rgba(15, 13, 11, .82); color: var(--text); transition: background .3s ease, color .3s ease;
}
.reel-frame:hover .reel-play, .reel-frame:focus-visible .reel-play { background: var(--accent); color: var(--bg); }
.reel-meta h2, .reel-meta h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; }
.reel-tag { margin-top: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.reel-caption { margin-top: 6px; font-size: 15px; color: var(--soft); }

/* Video player */
.player { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 9, 7, .97); color: var(--text); }
.player::backdrop { background: rgba(10, 9, 7, .97); }
.player-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 16px 80px; cursor: zoom-out; }
.player-video { max-width: 100%; max-height: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 4px; cursor: auto; }
.player .lb-meta { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb img, .set-mosaic img, .zoom img, .go .arrow, .reel-play { transition: none; }
}
