/* n00bclicks — see CLAUDE.md for the design rules */
:root {
  --bg: #050505;
  --s1: #0f0f10;          /* raised surface */
  --s2: #18181a;          /* chips, hover */
  --edge: rgba(255, 255, 255, .07);
  --fg: #f2f1ee;
  --muted: #8b8a86;
  --g: clamp(16px, 3vw, 40px);
  --r: 6px;               /* photos */
  --r-lg: 12px;           /* cards */
  --font: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; }
body { font: 400 13px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { all: unset; cursor: pointer; box-sizing: border-box; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 8px; }
img { display: block; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 5px; background: var(--s2); border: 1px solid var(--edge); font-size: 12px; white-space: nowrap; }
.chip.ghost { background: transparent; }
a.chip, button.chip { transition: background .2s, border-color .2s; }
a.chip:hover, button.chip:hover { background: #222225; border-color: rgba(255, 255, 255, .14); }

/* ---------- header: frosted, sticky ---------- */
header.site { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--g); background: rgba(5, 5, 5, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.02em; font-size: 14px; transition: opacity .35s, transform .35s var(--ease); }
body.name-visible .mark { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.mark .ap { width: 18px; height: 18px; flex: none; }

/* ---------- section heads ---------- */
.name { display: block; padding: 0 var(--g); margin: 4px 0 clamp(20px, 3vw, 40px); font: 300 10vw/.78 var(--font); letter-spacing: -.085em; white-space: nowrap; }
.big { display: flex; align-items: flex-start; gap: 12px; padding: 0 var(--g); margin: 0 0 clamp(20px, 3vw, 36px); font: 300 clamp(56px, 10vw, 160px)/.8 var(--font); letter-spacing: -.085em; }
.big sup { font-size: 13px; letter-spacing: 0; line-height: 1; color: var(--muted); margin-top: .5em; }

/* ---------- masonry: grid-lanes where supported, columns otherwise ---------- */
.masonry { --gap: 6px; padding: 0 var(--gap); columns: 3 300px; column-gap: var(--gap); }
.masonry > * { break-inside: avoid; margin-bottom: var(--gap); }
@supports (display: grid-lanes) {
  .masonry { display: grid-lanes; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); columns: auto; }
  .masonry > * { margin-bottom: 0; }
  .masonry .lead { grid-column: span 2; }
}

.ph { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--s1); cursor: zoom-in; isolation: isolate; }
.ph img { width: 100%; height: auto; opacity: 0; transform: scale(1.015); transition: opacity .7s ease, transform 1.1s var(--ease); }
.ph img.ok { opacity: 1; transform: none; }
.ph:hover img.ok { transform: scale(1.035); }
.ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.ph .cap { position: absolute; left: 10px; bottom: 10px; z-index: 1; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 10px; border-radius: 4px; background: rgba(10, 10, 10, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 11.5px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.ph .cap .muted { color: rgba(242, 241, 238, .6); }
.ph:hover .cap, .ph:focus-visible .cap { opacity: 1; transform: none; }

/* ---------- albums: one chosen cover each ---------- */
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 6px; padding: 0 6px; }
.album-card { display: block; }
.album-card { transition: opacity .35s; }
.cover { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--ph, #0c0c0d); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.album-card:hover .cover img, .next:hover .cover img { transform: scale(1.04); }
.album-card .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px calc(var(--g) - 6px) 0; }
.album-card h3 { font: 300 clamp(24px, 2.6vw, 40px)/1 var(--font); letter-spacing: -.07em; }
.album-card .when { color: var(--muted); font-size: 12px; margin-top: 2px; }

.end { height: 110px; }
.home .space { height: clamp(100px, 14vw, 200px); }

/* ---------- album page ---------- */
.ahead { padding: 0 var(--g); margin: 36px 0 44px; }
.ahead h1 { font: 300 clamp(44px, 8vw, 120px)/.9 var(--font); letter-spacing: -.075em; margin-bottom: 22px; }
.ahead .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px; align-items: end; margin: 140px 6px 6px; padding-left: calc(var(--g) - 6px); }
.next b { display: block; font: 300 clamp(44px, 8vw, 128px)/.8 var(--font); letter-spacing: -.085em; margin-top: 16px; }
.next .cover { aspect-ratio: 16 / 10; }

/* ---------- single photo view ---------- */
.lb { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; padding: 16px var(--g) var(--g); background: #000; overflow: hidden; }
.lb[hidden] { display: none; }
.lb::before { content: ""; position: absolute; inset: -10%; background: var(--amb) center / cover; filter: blur(70px) saturate(1.3) brightness(.38); transform: scale(1.1); z-index: -1; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb .bar > span { display: flex; gap: 8px; }
.lb .chip { background: rgba(20, 20, 22, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lb .chip[hidden] { display: none; }
.lb .stage { position: relative; }
.lb .stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); }
.lb .stage img.in { animation: in .5s var(--ease); }
.lb .side { position: absolute; top: 0; bottom: 0; width: 50%; }
.lb .side.back { left: 0; cursor: w-resize; } .lb .side.fwd { right: 0; cursor: e-resize; }
.exif { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.exif .chip .muted { color: rgba(242, 241, 238, .55); }
@keyframes in { from { opacity: 0; transform: scale(.97); } }

@media (max-width: 1000px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .masonry { --gap: 4px; columns: 2; }
  .albums { grid-template-columns: 1fr; }
  .ph { border-radius: 4px; }
  .next { grid-template-columns: 1fr; }
  .exif { justify-content: flex-start; }
}
/* ---------- scroll reveal: photos rise and uncover as they enter the screen ----------
   Only active when <html class="reveal"> (set in <head> when JS runs and motion is allowed),
   so without JS or with reduced motion everything is simply visible. */
.reveal .ph, .reveal .album-card { opacity: 0; transform: translateY(56px); clip-path: inset(22% 0 0 0 round var(--r)); transition: opacity .9s ease, transform 1.3s var(--ease), clip-path 1.3s var(--ease); }
.reveal .ph.seen, .reveal .album-card.seen { opacity: 1; transform: none; clip-path: inset(0 round var(--r)); }
.reveal .ph:not(.seen) img.ok, .reveal .album-card:not(.seen) .cover img { transform: scale(1.14); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
