:root {
  color-scheme: light;
  --red: #c21417;
  --cream: #f5efe4;
  --dark: #170707;
  --rule: rgba(245, 239, 228, 0.42);
}

@font-face {
  font-family: "RAS Sans";
  src: url("../../assets/fonts/ras-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "RAS Mono";
  src: url("../../assets/fonts/ras-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "RAS Display";
  src: url("../../assets/fonts/ras-condensed.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

body.photo-site {
  margin: 0;
  background: var(--red);
  color: var(--cream);
  font-family: "RAS Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.photo-site a { color: inherit; text-decoration: none; }
.photo-site a:focus-visible,
.photo-site button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.photo-site .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 18px 24px;
  background: var(--red);
  color: var(--cream);
}

.photo-site .site-header > a,
.photo-site .site-header nav,
.photo-site .eyebrow,
.photo-site .project-type,
.photo-site .empty-note,
.photo-site .site-footer,
.photo-site .lightbox-close {
  font-family: "RAS Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-site .site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.photo-site .site-header a:hover,
.photo-site .site-header [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.photo-site .page-shell {
  width: min(calc(100% - 44px), 1040px);
  min-height: calc(100vh - 46px);
  margin: 0 auto;
  padding: 120px 42px 80px;
  border-right: 2px solid var(--cream);
  border-left: 2px solid var(--cream);
}

.photo-site .eyebrow { margin: 0 0 1.5rem; }

.photo-site h1,
.photo-site h2 {
  margin: 0;
  max-width: 100%;
  font-family: "RAS Display", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.photo-site h1 {
  font-size: clamp(3.2rem, 6.7vw, 5.7rem);
  line-height: 0.78;
}

.photo-site.photography-landing h1 {
  color: var(--cream);
  font-size: clamp(4.8rem, 10vw, 8.5rem);
}

.photo-site .category-list {
  margin-top: clamp(7rem, 15vw, 14rem);
  border-top: 1px solid var(--rule);
}

.photo-site .category-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1.3rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.photo-site .category-link h2 {
  font-size: clamp(2.7rem, 5.7vw, 5rem);
  line-height: 0.8;
  transition: transform 180ms ease;
}

.photo-site .category-link:hover h2 { transform: translateX(0.18em); }
.photo-site .project-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.photo-site .project-type { margin: 0 0 0.35rem; }

.photo-site .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.photo-site .gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--dark);
  color: inherit;
  cursor: zoom-in;
}

.photo-site .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.photo-site .gallery-item:hover img { opacity: 0.82; transform: scale(1.015); }

.photo-site .empty-note {
  margin-top: clamp(7rem, 15vw, 14rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.photo-site .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(8rem, 15vw, 14rem);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.photo-site .lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 54px;
  border: 0;
  background: rgba(23, 7, 7, 0.97);
  color: var(--cream);
  overscroll-behavior: contain;
}

.photo-site .lightbox::backdrop { background: rgba(23, 7, 7, 0.88); }

.photo-site .lightbox[open] {
  display: grid;
  place-items: center;
}

.photo-site .lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 108px);
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-site .lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

@media (max-width: 760px) {
  .photo-site .site-header { align-items: flex-start; padding: 16px; }
  .photo-site .site-header nav { max-width: 13.5rem; }
  .photo-site .page-shell { width: calc(100% - 28px); padding: 76px 18px 56px; }
  .photo-site h1 {
    width: 100%;
    font-size: clamp(1.5rem, 8vw, 3.6rem);
    line-height: 0.8;
    white-space: normal;
  }
  .photo-site.photography-landing h1 {
    font-size: clamp(2.25rem, 12vw, 5.4rem);
  }
  .photo-site .category-link h2 {
    max-width: 100%;
    font-size: clamp(1.6rem, 8vw, 3.2rem);
    line-height: 0.82;
  }
  .photo-site .category-list { margin-top: 6rem; }
  .photo-site .project-header { align-items: flex-start; flex-direction: column; padding-bottom: 4rem; }
  .photo-site .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 18px; }
  .photo-site .site-footer { margin-top: 7rem; }
  .photo-site .lightbox { padding: 44px 14px 14px; }
  .photo-site .lightbox img { max-height: calc(100vh - 58px); }
}

@media (max-width: 420px) {
  .photo-site .photo-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-site .category-link h2,
  .photo-site .gallery-item img { transition: none; }
}
