:root {
  --bg: #f5f5f3;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #757575;
  --line: #e1e1dd;
  --accent: #1d1d1d;
  --max-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top left, #fdfdfb 0, #f5f5f3 55%, #efefe9 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.brand-mark {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 550;
}

.brand-subtitle {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--muted);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 550;
}

.hero-text p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta span::before {
  content: "•";
  margin-right: 0.4rem;
  opacity: 0.5;
}

.hero-meta span:first-child::before {
  content: "";
  margin-right: 0;
}

/* Hero image */

.hero-image-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0ea;
  border: 1px solid var(--line);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.06),
    0 0 0 1px rgba(255,255,255,0.8) inset;
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

.section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.section-heading h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 540;
}

.section-heading p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.96rem;
}

/* Gallery */

.gallery-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  margin: 0;
}

.gallery-image-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0ea;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.05),
    0 0 0 1px rgba(255,255,255,0.8) inset;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:hover .gallery-image-frame {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.07),
    0 0 0 1px rgba(255,255,255,0.9) inset;
}

figcaption {
  margin-top: 0.45rem;
}

.work-title {
  font-size: 0.96rem;
  font-weight: 520;
}

.work-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* About */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.2rem;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.about-block {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
}

.about-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.about-block ul {
  margin: 0;
  padding-left: 1em;
}

.about-block li + li {
  margin-top: 0.25rem;
}

.about-block a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 1px;
}

.about-block a:hover {
  border-bottom-color: rgba(0,0,0,0.35);
}

/* Prints */

.prints-layout {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  font-size: 0.95rem;
}

.prints-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.prints-link-block {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
}

.prints-link-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.prints-link-block a {
  color: var(--accent);
  text-decoration: none;
}

.prints-link-block a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

/* Responsive */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image-frame {
    max-width: 420px;
    margin: 0 auto;
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .prints-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 0.75rem;
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}
/* Lightbox */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.lightbox[aria-hidden="false"] {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.lightbox-inner {
  position: relative;
  max-width: 960px;
  margin: 4vh auto;
  background: #fdfdfb;
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #777;
}

.lightbox-close:hover {
  color: #333;
}

.lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.lightbox-image-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0ea;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.lightbox-image {
  width: 100%;
  padding-bottom: 135%; /* ~4:3 aspect; tweak to taste */
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.lightbox-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 550;
}

.lightbox-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.lightbox-actions {
  margin-bottom: 0.8rem;
}

.lightbox-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 1px;
}

.lightbox-link:hover {
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

.lightbox-note {
  margin: 0;
  font-size: 0.8rem;
  color: #8a8a8a;
}

/* Gallery trigger button reset */

.gallery-trigger {
  all: unset;
  cursor: zoom-in;
  display: block;
}

/* Responsive */

@media (max-width: 780px) {
  .lightbox-inner {
    margin: 6vh 0.8rem;
    padding: 1.3rem 1.2rem 1.1rem;
  }

  .lightbox-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
