@font-face {
  font-family: "Nimbus Sans";
  src: url("./fonts/NimbusSans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  font-family: "Nimbus Sans", "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  font-kerning: normal;
  color: #000;
  background: #fff;
  font-synthesis: none;
  --side: clamp(1.5rem, 7.8vw, 8.5rem);
  --header-height: 6.5rem;
  --canvas-side: clamp(1.5rem, 4.2vw, 5rem);
}
* { box-sizing: border-box; }
html { min-width: 280px; scrollbar-gutter: stable; }
body { margin: 0; color: #000; background: #fff; }
body.viewer-open { overflow: hidden; }
a { color: #000; text-decoration: none; }
button { color: #000; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus, :focus-visible { outline: none; box-shadow: none; }
button:disabled { color: #000; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; inset: 1rem auto auto 1rem; z-index: 5; background: #fff; padding: 1rem; }
.site-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .25rem 2rem; padding: 1.65rem var(--canvas-side) 1rem; min-height: var(--header-height); }
.site-name { display: flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.5; white-space: nowrap; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: clamp(1.5rem,3.1vw,3.5rem); row-gap: .25rem; margin-left: auto; }
.main-nav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 400; letter-spacing: .045em; line-height: 1.5; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: #000; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.main-nav a[aria-current="page"]::after, .main-nav a:hover::after { transform: scaleX(1); }
.site-header.is-home { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-areas: "name navigation"; column-gap: clamp(2rem,4.5vw,5rem); min-height: 0; padding-bottom: 1.5rem; }
.site-header.is-home .site-name { grid-area: name; justify-self: start; }
.site-header.is-home .main-nav { grid-area: navigation; justify-self: end; margin-left: 0; }
main:focus { outline: none; }
.home { min-height: calc(100svh - var(--header-height)); padding: 0 0 2rem; }
.home-hero { width: 100%; margin: 0; }
.home-hero img { display: block; width: 100%; height: auto; }
.photography { min-height: calc(100svh - var(--header-height)); padding: clamp(1.5rem,4vh,3rem) var(--canvas-side) 4rem; }
.project-list { display: grid; gap: clamp(3rem,5vw,5rem); width: min(60vw, 64rem); margin-left: auto; }
.project-name { margin: 0 0 .85rem; font-size: .875rem; font-weight: 400; line-height: 1.6; letter-spacing: .025em; }
.project-name a { display: inline-flex; align-items: center; min-height: 44px; }
.project-composition { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: clamp(.75rem,1.3vw,1.25rem); }
.project-photo { display: block; min-width: 0; }
.project-photo.is-landscape { grid-column: 1 / -1; }
.project-photo img { display: block; width: 100%; height: auto; }
.archives { --archive-gap: clamp(.875rem,1.7vw,1.75rem); padding: clamp(1.5rem,4vh,3rem) var(--canvas-side) 4rem; }
.archive-heading { margin-bottom: 1.5rem; }
h1 { margin: 0; color: #000; font-size: .875rem; line-height: 1.6; font-weight: 400; letter-spacing: .035em; }
.archive-grid { column-count: 4; column-gap: var(--archive-gap); }
.archive-link { display: block; min-width: 0; break-inside: avoid; margin-bottom: var(--archive-gap); }
.archive-image { display: block; width: 100%; }
.archive-image img { display: block; width: 100%; height: auto; }
.contact { min-height: calc(100svh - var(--header-height)); padding: clamp(4rem,12vh,8rem) var(--canvas-side) 6rem; }
.contact-content { max-width: 32rem; margin-left: clamp(0px,10vw,10rem); }
.contact-content h1 { margin: 0 0 1.75rem; font-size: clamp(1.5rem,2vw,1.75rem); font-weight: 400; line-height: 1.4; letter-spacing: -.025em; }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-style: normal; }
.contact-details a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; max-width: 100%; font-size: 1rem; line-height: 1.6; color: #000; text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.instagram-icon { display: block; flex: 0 0 auto; width: 19px; height: 19px; }
.noscript { padding: 3rem var(--side); font-size: 1rem; }
.photo-viewer { inset: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; color: #000; background: #fff; overflow: hidden; }
.photo-viewer::backdrop { background: #fff; }
.photo-viewer[open] { display: grid; grid-template-columns: clamp(4rem,9vw,9rem) minmax(0,1fr) clamp(4rem,9vw,9rem); grid-template-rows: 6rem minmax(0,1fr) 5rem; }
.viewer-top { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: flex-end; align-items: center; padding: 0 clamp(1.5rem,4.2vw,5rem); }
.viewer-title { margin-right: auto; font-size: 1rem; line-height: 1.6; }
.text-button { border: 0; background: none; text-decoration: none; font-size: .875rem; line-height: 1.5; letter-spacing: .035em; padding: .75rem 0; min-width: 44px; min-height: 44px; }
.image-stage { grid-column: 2; grid-row: 2; min-height: 0; min-width: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.image-stage img { display: block; object-fit: contain; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.viewer-arrow { grid-row: 2; align-self: center; justify-self: center; display: grid; place-items: center; width: 52px; height: 64px; padding: 10px; border: 0; background: transparent; }
.viewer-arrow.previous { grid-column: 1; }
.viewer-arrow.next { grid-column: 3; }
.viewer-arrow svg { width: 27px; height: 27px; stroke: #000; stroke-width: 1.1; transition: transform 140ms ease; }
.viewer-arrow.previous:hover svg { transform: translateX(-3px); }
.viewer-arrow.next:hover svg { transform: translateX(3px); }
.viewer-bottom { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; align-items: center; }
#viewer-counter { font-size: .875rem; line-height: 1.5; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.viewer-error { position: absolute; top: 48%; left: 15%; right: 15%; text-align: center; font-size: 1rem; line-height: 1.8; }
@media (max-width: 1000px) {
  :root { --side: 6vw; }
  .archive-grid { column-count: 3; }
}
@media (max-width: 700px) { .project-list { width: 100%; } }
@media (max-width: 600px) {
  :root { --side: 1.4rem; --header-height: 7rem; --canvas-side: 1.4rem; }
  html { scrollbar-gutter: auto; }
  .site-header { padding: 1rem var(--canvas-side) .75rem; gap: 0 1.25rem; }
  .site-header.is-home { grid-template-columns: minmax(0,1fr); grid-template-areas: "name" "navigation"; row-gap: 0; padding-bottom: 1rem; }
  .site-name { font-size: 1.0625rem; }
  .main-nav { column-gap: clamp(.75rem,2.8vw,1.15rem); }
  .main-nav a { font-size: .875rem; letter-spacing: 0; }
  .photography { padding: 1.25rem var(--side) 3rem; }
  .project-list { width: 100%; }
  .project-name { margin-bottom: .65rem; }
  .project-composition { gap: .75rem; }
  .archives { --archive-gap: .875rem; padding: 1.25rem var(--side) 3rem; }
  .archive-heading { margin-bottom: 1.25rem; }
  .archive-grid { column-count: 2; }
  .contact { padding-top: 4rem; }
  .contact-content { margin-left: 0; }
  .photo-viewer[open] { grid-template-columns: 1.4rem minmax(0,1fr) 1.4rem; grid-template-rows: max(4.5rem,calc(env(safe-area-inset-top) + 3rem)) minmax(0,1fr) max(5.5rem,calc(env(safe-area-inset-bottom) + 4rem)); }
  .viewer-top { padding: 0 1.4rem; }
  .viewer-bottom { grid-column: 2; }
  .viewer-arrow { grid-row: 3; width: 52px; height: 52px; z-index: 1; }
  .viewer-arrow.previous { grid-column: 1 / 3; justify-self: start; margin-left: 1.25rem; }
  .viewer-arrow.next { grid-column: 2 / 4; justify-self: end; margin-right: 1.25rem; }
  .viewer-arrow svg { width: 24px; height: 24px; }
}
@media (max-width: 340px) { :root { --side: 1rem; --canvas-side: 1rem; } .main-nav { gap: .75rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
