@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

* { box-sizing: border-box; }
:root { --page: #ced8ca; --ink: #2e3b43; --muted: #4c5a5c; --rule: #a6b2a7; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.4 "Space Grotesk", Arial, sans-serif; text-transform: lowercase; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid; outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 2; background: var(--ink); color: var(--page); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.rail { position: fixed; top: 39%; left: 2.75vw; width: 10vw; min-width: 7rem; transform: translateY(-50%); }
.identity, .rail nav a { text-decoration: none; }
.rail nav a { text-transform: lowercase; }
.rail nav a[aria-current] { text-decoration: underline; }
.identity, .rail nav a { font-size: clamp(.825rem, .98vw, 1.05rem); letter-spacing: .015em; line-height: 1.4; }
.identity { display: flex; align-items: center; justify-content: center; gap: .1rem; width: 100%; white-space: nowrap; }
.identity img { width: 3rem; height: 3rem; }
.brand-home img { display: block; }
.brand-lockup { display: grid; gap: .1rem; line-height: 1.15; }
.brand-name { text-transform: uppercase; }
.photographer-credit { color: var(--muted); font-size: .72rem; letter-spacing: .01em; }
.rail nav { display: grid; justify-items: center; gap: .35rem; margin-top: .9rem; }
.rail nav a:hover { text-decoration: underline; }
.preview-label { color: var(--muted); font-size: .8rem; margin-top: 2rem; }
main { margin: 0 7vw 0 17vw; }
.contact-sheet { display: grid; grid-template-columns: 1.05fr 1.45fr .66fr 1.45fr; gap: clamp(.75rem, 2.4vw, 3rem); }
.strip { display: grid; align-content: start; gap: clamp(1.5rem, 4vw, 5rem); min-width: 0; }
.strip:nth-child(1) { padding-top: 10vw; }
.strip:nth-child(2) { padding-top: 6.5vw; }
.strip:nth-child(4) { padding-top: 2.3vw; }
figure { margin: 0; }
figure img { display: block; box-sizing: border-box; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eaeaea; }
.strip:nth-child(1) figure:first-child { width: 70%; justify-self: end; }
.strip:nth-child(1) figure:last-child img,
.strip:nth-child(3) figure:first-child img { aspect-ratio: 1 / 1; }
.strip:nth-child(2) figure:nth-child(2) img,
.strip:nth-child(4) figure:nth-child(2) img,
.archive-sheet .strip:nth-child(2) img { aspect-ratio: 3 / 2; }
.contact-sheet .strip .landscape-cover img { aspect-ratio: 3 / 2; }
.contact-sheet .strip .portrait-cover img { aspect-ratio: 4 / 5; }
.photo-placeholder { width: 100%; aspect-ratio: 1 / 1; background: #eeede8; }
.archive-title { margin: 0; padding-top: 1.5rem; font-size: 1.25rem; font-weight: 400; }
.archive-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.archive-heading a { text-decoration: none; }
.archive-heading a:hover, .archive-heading a:focus-visible { text-decoration: underline; }
.contact-sheet .center-pair { align-content: center; justify-items: center; padding-block: 1rem; }
.center-pair figure { width: 100%; }
figcaption { margin-top: .3rem; font-size: .75rem; line-height: 1.25; }
.contest-photos figcaption { text-transform: none; }
.awards-section { margin: 2.5rem 0 1.75rem; }
.awards-section h2 { margin: 0 0 .5rem; }
.awards-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .875rem; text-transform: none; }
.contest-photos figure[id] { scroll-margin-top: 1.5rem; }
.contest-photos figcaption .contest-meta { display: block; margin-top: .2rem; }
.contest-photos figcaption .contest-meta time { display: inline; }
.contest-status { color: var(--muted); }
.contest-photos figcaption time { display: block; margin-top: .2rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-date { margin: .2rem 0 0; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-gallery > .event-date { margin-bottom: 1rem; }
.gallery-link { display: block; text-decoration: none; }
.gallery-link > span:last-child { display: block; margin-top: .3rem; font-size: .75rem; line-height: 1.25; }
.gallery-link:hover > span:last-child, .gallery-link:focus-visible > span:last-child { text-decoration: underline; }
.category-gallery { width: min(100%, 36rem); margin-top: 1.5rem; }
.category-gallery img { height: auto; aspect-ratio: auto; }
.cover-slot { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; aspect-ratio: 1 / 1; }
.cover-slot img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: none; }
.featured-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.9rem, 2vw, 2rem);
  padding-block: .9rem 0;
}
.featured-column, .placeholder-pair { display: grid; gap: clamp(.9rem, 2vw, 2rem); }
.placeholder-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-sheet .gallery-link img { width: 100%; height: auto; aspect-ratio: auto; }
.featured-sheet .landscape-cover img { aspect-ratio: 3 / 2; object-fit: cover; }
.featured-sheet .featured-column > figure {
  justify-self: start;
  width: var(--cover-width, 95%);
  margin-inline-start: var(--cover-inset, 2%);
}
.featured-sheet .earthquakes-cover { --cover-width: 68%; --cover-inset: 19%; }
.featured-sheet .inset-cover { --cover-width: 74%; --cover-inset: 9%; margin-top: clamp(1rem, 4svh, 3rem); }
.featured-sheet .skiing-cover { --cover-width: 83%; --cover-inset: 2%; margin-top: clamp(.4rem, 1vw, .85rem); }
.featured-sheet .saint-ignatius-cover { --cover-width: 65%; --cover-inset: 14%; }
.featured-sheet .travel-cover { --cover-width: 70%; --cover-inset: 20%; }
.featured-sheet .automotive-cover { --cover-width: 61%; --cover-inset: 28%; }
.archive-sheet .archive-coast { --cover-width: 95%; --cover-inset: 2%; }
.archive-sheet .archive-auto { --cover-width: 65%; --cover-inset: 14%; }
.archive-sheet .archive-japan { --cover-width: 68%; --cover-inset: 19%; }
.archive-sheet .archive-architecture { --cover-width: 83%; --cover-inset: 9%; }
@media (min-width: 60rem) {
  .featured-sheet {
    column-gap: clamp(1.75rem, 3vw, 3rem);
  }
  .featured-sheet .featured-column { row-gap: clamp(1.75rem, 4svh, 3rem); }
  .featured-sheet .featured-column:nth-child(2) { margin-top: clamp(3.25rem, 12svh, 8rem); }
  .featured-sheet .featured-lead > figure:nth-child(2),
  .archive-sheet .archive-auto { margin-top: clamp(1rem, 6svh, 4rem); }
  .featured-sheet .earthquakes-cover { margin-top: clamp(.5rem, 2svh, 1.5rem); }
  .featured-sheet .inset-cover { margin-top: clamp(1rem, 6svh, 4rem); }
}
.featured-sheet .photo-placeholder {
  max-width: 9rem;
}
.featured-column:nth-child(2) { margin-top: clamp(.6rem, 2.5vw, 2.25rem); }
.portfolio-section .featured-sheet .featured-column:nth-child(2) { margin-top: clamp(.5rem, 3vw, 2.25rem); }
@media (min-width: 46.01rem) {
  .featured-sheet .featured-column > figure { position: relative; left: 20px; }
  .featured-sheet .earthquakes-cover { position: relative; top: clamp(-1.25rem, -1.4vw, -.5rem); }
}
.event-gallery { padding-block: 2rem; }
.event-gallery h1, .awards-section h2 { font-size: clamp(1.65rem, 4vw, 4rem); font-weight: 400; }
.event-gallery h1 { margin: 0; }
.event-gallery > p { color: var(--muted); }
.event-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.event-photos figure { max-width: 58rem; }
.event-photos a { display: block; cursor: zoom-in; }
.event-photos img { height: auto; aspect-ratio: auto; background: none; }
.event-photos.contest-photos { display: block; columns: 3 17rem; column-gap: clamp(1rem, 2vw, 2rem); }
.event-photos.contest-photos > figure {
  break-inside: avoid;
  max-width: none;
  margin: 0 0 clamp(1rem, 2vw, 2rem);
}
.photo-viewer {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  padding: 3.5rem 1.25rem;
  background: #111;
  color: #fff;
}
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; }
.photo-viewer-close {
  position: absolute;
  top: .7rem;
  right: .8rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 1.8rem/1 Arial, sans-serif;
}
.photo-viewer-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
body:has(.photo-viewer[open]) { overflow: hidden; }
@media (min-width: 60rem) {
  .event-photos > figure:nth-child(even) { margin-top: clamp(1rem, 2.5vw, 2.5rem); }
}
.details { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.25rem 0 2rem; scroll-margin-top: 1.5rem; }
.details.portfolio-section { margin-top: clamp(.75rem, 2vw, 1.5rem); padding-bottom: 0; }
.portfolio-section + .details { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.details h1, .details h2 { font-size: 1.25rem; font-weight: 400; margin: 0 0 .75rem; }
.details ul { list-style: none; padding: 0; line-height: 1.75; }
@media (min-width: 60rem) and (min-height: 32rem) {
  .contact-sheet {
    padding-block: 2.5svh;
    min-height: 100svh;
  }
  .contact-sheet .strip { gap: 3svh; }
  .contact-sheet .strip:nth-child(1) { padding-top: 12svh; }
  .contact-sheet .strip:nth-child(2) { padding-top: 7svh; }
  .contact-sheet .strip:nth-child(4) { padding-top: 3svh; }
  .contact-sheet .strip:nth-child(1) figure:first-child { max-width: 24svh; }
  .contact-sheet .strip:nth-child(1) figure:last-child { max-width: 30svh; }
  .contact-sheet .strip:nth-child(2) figure:first-child { max-width: 39svh; }
  .contact-sheet .strip:nth-child(2) figure:nth-child(2) { max-width: 39svh; }
  .contact-sheet .strip:nth-child(3) figure:first-child { max-width: 33svh; }
  .contact-sheet .strip:nth-child(3) figure:last-child { max-width: 31svh; }
  .contact-sheet .strip:nth-child(4) figure:first-child { max-width: 37svh; }
  .contact-sheet .strip:nth-child(4) figure:nth-child(2) { max-width: 43svh; }
  .archive-sheet { min-height: auto; }
  .photo-placeholder { max-width: 30svh; }
}
@media (max-width: 46rem) {
  .rail { position: static; width: auto; min-width: 0; margin: 1rem; transform: none; }
  .rail nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; }
  .rail nav a { font-size: .9rem; }
  .preview-label { margin-top: .75rem; }
  main { margin: 0 1rem; }
  .contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip:nth-child(n) { padding-top: 0; }
  .strip:nth-child(odd) { padding-top: 2rem; }
  .featured-sheet { grid-template-columns: minmax(0, 1fr); }
  .featured-column:nth-child(2) { margin-top: 1rem; }
}

.about-layout { display: grid; gap: clamp(1.5rem, 5vw, 5rem); margin-top: 1.25rem; align-items: center; }
.about-portrait { display: block; width: 100%; height: auto; max-width: 32rem; }
.about-copy { max-width: 52ch; line-height: 1.6; }
.about-copy p:first-child { margin-top: 0; }

@media (min-width: 46.01rem) {
  .about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
