/* ---------- Theme ---------- */
:root {
  --bg: #f6f5f2;
  --fg: #151515;
  --muted: #74716b;
  --line: rgba(0, 0, 0, .09);
  --card: #e9e7e2;
  --lb: rgba(10, 10, 10, .97);
  --max: 1440px;
  --pad: clamp(16px, 4vw, 56px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --fg: #ecebe8;
    --muted: #8f8c86;
    --line: rgba(255, 255, 255, .09);
    --card: #1b1b1b;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lb-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
main:focus { outline: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.brand {
  font: 600 17px/1.2 var(--display);
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav { display: flex; gap: clamp(18px, 3vw, 32px); }
.nav a {
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  padding: 4px 0;
}
.nav a:hover, .nav a.on { color: var(--fg); }
.nav a.on { box-shadow: inset 0 -1px 0 currentColor; }

/* ---------- Layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad) 96px;
  animation: in .5s var(--ease);
}
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.foot {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Home ---------- */
.intro {
  font: 500 clamp(30px, 4.6vw, 60px)/1.06 var(--display);
  letter-spacing: -.028em;
  max-width: 17ch;
  margin: clamp(24px, 6vw, 72px) 0 clamp(40px, 7vw, 88px);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.card { display: block; }
.card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .7s var(--ease);
}
.card:hover .card-img img { transform: scale(1.035); }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}
.card-meta h2 {
  margin: 0;
  font: 500 17px/1.3 var(--display);
  letter-spacing: -.01em;
}
.card-meta span, .meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Collection ---------- */
.head { margin: clamp(16px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.back:hover { color: var(--fg); }
.head h1, .about h1 {
  font: 500 clamp(36px, 5.6vw, 76px)/1.02 var(--display);
  letter-spacing: -.032em;
  margin: 18px 0 14px;
}
.desc {
  max-width: 62ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  white-space: pre-line;
}

.jg { display: flex; flex-wrap: wrap; }
.jg a {
  display: block;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}
.jg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), opacity .7s var(--ease), filter .4s;
}
.jg a:hover img { transform: scale(1.02); }

img.fade { opacity: 0; }
img.fade.ld { opacity: 1; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
  margin-top: clamp(16px, 4vw, 48px);
}
.about.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.about-img { background: var(--card); }
.about-img img { width: 100%; height: auto; }
.about h1 { margin-top: 0; }
.about p { font-size: 18px; line-height: 1.7; max-width: 58ch; margin: 0 0 1.1em; }
.contact { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact li {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact .k { width: 110px; flex: none; }
.contact a { box-shadow: inset 0 -1px 0 var(--line); transition: box-shadow .2s; }
.contact a:hover { box-shadow: inset 0 -1px 0 currentColor; }

.empty {
  margin: 12vh auto;
  max-width: 46ch;
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; color: var(--fg); font: 500 22px/1.3 var(--display); margin-bottom: 8px; }

/* ---------- Lightbox ---------- */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--lb);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
  touch-action: pan-y;
}
.lb.show { opacity: 1; }
.lb-stage {
  position: absolute;
  inset: 64px 88px 72px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 176px);
  max-height: calc(100dvh - 176px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity .25s ease;
}
.lb-stage img.swap { opacity: .0; }
.lb-stage figcaption {
  margin-top: 16px;
  min-height: 1.4em;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  opacity: .6;
  cursor: pointer;
  transition: opacity .2s;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 10px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .5);
  font-variant-numeric: tabular-nums;
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .top { padding-top: 16px; padding-bottom: 16px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about p { font-size: 17px; }
  .contact .k { width: 90px; }
  .lb-stage { inset: 56px 8px 64px; }
  .lb-stage img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .lb-prev, .lb-next { display: none; }
}

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