:root {
  --page: #fbfbf8;
  --paper: #ffffff;
  --ink: #0d0d0d;
  --muted: #6f6b63;
  --line: #e8e4dc;
  --soft: #f0ede6;
  --sidebar: 235px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 6;
  width: var(--sidebar);
  padding: 58px 38px;
  background: var(--page);
}

.logo-link {
  display: grid;
  gap: 12px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.logo-link img {
  width: 74px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.logo-link span {
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: 46px;
  line-height: 0.86;
}

.site-url {
  margin: 22px 0 54px;
  color: var(--muted);
  font-size: 12px;
}

.side-nav,
.side-projects {
  display: grid;
  gap: 9px;
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.25;
}

.side-projects p {
  margin: 0 0 2px;
  font-weight: 700;
}

.side-nav a,
.side-projects a {
  width: max-content;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.side-nav a:hover,
.side-projects a:hover {
  border-bottom-color: currentColor;
}

.page-shell {
  margin-left: var(--sidebar);
  padding: 58px 56px 86px 38px;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(240px, 0.48fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 112px;
}

.hero-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 860px;
  margin-bottom: -18px;
}

.hero-heading p,
.section-kicker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
}

h2 {
  font-size: 16px;
  line-height: 1.2;
}

.film-frame {
  position: relative;
  overflow: hidden;
  background: #090909;
  padding: 18px;
  box-shadow: inset 0 0 0 1px #111;
}

.film-frame.film-wide {
  aspect-ratio: 1.42 / 1;
}

.film-frame.film-tall {
  aspect-ratio: 0.72 / 1;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-label {
  position: absolute;
  z-index: 1;
  color: #c88741;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.film-label.top {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.film-label.bottom {
  right: 20px;
  bottom: 4px;
}

.film-label.side {
  left: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.portfolio,
.annual,
.about {
  scroll-margin-top: 36px;
}

.portfolio {
  margin-bottom: 118px;
}

.section-kicker {
  margin-bottom: 24px;
}

.section-kicker h2 {
  margin-bottom: 8px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.tab {
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid transparent;
  padding-bottom: 5px;
}

.tab:hover,
.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 38px 44px;
  max-width: 1180px;
}

.annual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 44px;
  max-width: 1180px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background: var(--soft);
}

.annual-grid .photo-card {
  aspect-ratio: 0.78 / 1;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease, filter 450ms ease;
}

.photo-card::after {
  content: attr(data-title);
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.photo-card:hover img,
.photo-card:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.05);
}

.photo-card:hover::after,
.photo-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.crop-high img {
  object-position: center 18%;
}

.crop-mid img {
  object-position: 45% 48%;
}

.crop-low img {
  object-position: center 76%;
}

.crop-wide img {
  object-position: 36% 54%;
}

.crop-dark img {
  object-position: center 88%;
  filter: contrast(1.18) brightness(0.78);
}

.crop-forest img {
  object-position: 32% 40%;
  filter: contrast(1.1);
}

.portrait-placeholder,
.architecture-placeholder,
.city-placeholder,
.canyon-placeholder,
.leaf-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.portrait-placeholder {
  background: linear-gradient(135deg, #ddd7cc, #87919b);
}

.architecture-placeholder {
  color: var(--ink);
  background: linear-gradient(135deg, #f5f4f0, #c9c8c2);
}

.city-placeholder {
  background: linear-gradient(135deg, #d0c9bd, #6f7476);
}

.canyon-placeholder {
  background: linear-gradient(135deg, #b67743, #2d211d);
}

.leaf-placeholder {
  background: linear-gradient(135deg, #263c2f, #0d1510);
}

.annual {
  margin-bottom: 100px;
}

.about {
  max-width: 720px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.about h2 {
  margin-bottom: 12px;
}

.about p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.about a {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  text-underline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 56px;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1120px, 88vw);
  max-height: 76vh;
  object-fit: contain;
}

.lightbox p {
  margin-top: 18px;
  font-size: 14px;
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 34px;
  font-size: 38px;
  line-height: 1;
}

.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --sidebar: 205px;
  }

  .site-sidebar {
    padding-inline: 28px;
  }

  .page-shell {
    padding-right: 32px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 820px) {
  .site-sidebar {
    position: static;
    width: auto;
    padding: 24px 22px 18px;
  }

  .logo-link {
    display: flex;
    align-items: center;
  }

  .logo-link img {
    width: 58px;
    height: 38px;
  }

  .site-url {
    margin: 14px 0 18px;
  }

  .side-nav,
  .side-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 16px;
  }

  .side-projects p {
    width: 100%;
  }

  .page-shell {
    margin-left: 0;
    padding: 28px 22px 64px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 22px;
    margin-bottom: 72px;
  }

  .hero-heading {
    display: block;
    margin-bottom: 0;
  }

  .hero-heading p {
    margin-bottom: 10px;
  }

  .film-wide,
  .film-tall {
    aspect-ratio: 1.4 / 1;
  }

  .portfolio-grid,
  .annual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .portfolio-grid,
  .annual-grid {
    grid-template-columns: 1fr;
  }

  .tab-list {
    gap: 12px 16px;
  }
}
