:root {
  color-scheme: light;
  --paper: #f2f1ef;
  --surface: #ffffff;
  --ink: #202020;
  --muted: #929292;
  --faint: #d2d2d2;
  --accent: #505050;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Courier New", Courier, "SFMono-Regular", Consolas, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.1);
}

.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  padding: 78px 34px 32px 38px;
  background: var(--surface);
}

.brand {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.side-nav {
  margin-top: 34px;
  display: grid;
  gap: 28px;
  color: #727272;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.side-nav a {
  display: block;
}

.side-nav a:hover {
  color: var(--ink);
}

.side-nav span {
  padding-left: 4px;
  color: #b5b5b5;
}

.nav-group {
  display: grid;
  gap: 12px;
}

.sub-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
}

.sidebar-footer {
  margin-top: auto;
  color: #b8b8b8;
  font-size: 10px;
  line-height: 1.7;
}

.sidebar-footer p {
  margin: 8px 0 0;
}

.share-link {
  display: inline-flex;
  margin-bottom: 10px;
  color: #c7c7c7;
  font-size: 18px;
}

.content {
  padding: 40px 20px 18px 0;
  transform: translateX(-60px);
}

.home-content {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 940px;
}

.photo-card {
  margin: 0;
  background: #e5e5e5;
}

.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
  aspect-ratio: 1.48 / 1;
}

.photo-card img {
  transition:
    filter 180ms ease,
    transform 240ms ease;
}

.photo-open:hover img {
  filter: grayscale(1);
  transform: none;
}

.text-section {
  max-width: 620px;
  padding: 74px 0 40px;
}

.page-content {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.page-text {
  padding-top: 84px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.text-section p:not(.kicker),
.contact-strip {
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.7;
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--faint);
}

.contact-strip p {
  margin: 0;
}

.contact-strip a {
  color: var(--accent);
  font-weight: 800;
}

.text-link {
  color: var(--ink);
  font-weight: 700;
}

.text-link:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: auto;
  padding: 80px 0 8px;
  text-align: center;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-footer {
  padding: 0 0 2px;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(242, 241, 239, 0.96);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  margin: 0;
  width: min(100%, 1180px);
}

.lightbox-frame img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  filter: grayscale(1);
}

.lightbox-frame figcaption {
  margin-top: 14px;
  color: #555555;
  font-size: 12px;
  line-height: 1.4;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 520px) {
  .page-shell {
    width: 100%;
    margin: 0;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 28px 14px 24px 18px;
  }

  .side-nav {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sidebar-footer {
    margin-top: 28px;
  }

  .content {
    padding: 28px 14px 34px 0;
  }

  .photo-grid {
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .sidebar {
    padding: 28px 22px 22px;
  }

  .brand {
    font-size: 23px;
  }

  .side-nav {
    gap: 16px;
  }

  .content {
    padding: 0 18px 28px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-frame img {
    max-height: calc(100vh - 110px);
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-strip {
    flex-direction: column;
  }
}
