:root {
  --paper: #fff;
  --soft: #f5f5f2;
  --ink: #111;
  --muted: #686863;
  --line: #d9d9d4;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --page: clamp(1.25rem, 3.5vw, 4rem);
  --section: clamp(8rem, 12vw, 12rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 300 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; }
button { color: inherit; font: inherit; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--ink); transform: translateY(-110%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; display: flex; flex-direction: column; align-items: center; padding: clamp(1.5rem, 3vw, 2.75rem) var(--page) clamp(1.25rem, 2.5vw, 2.25rem); background: var(--paper); }
.brand { width: clamp(6.75rem, 9.2vw, 8.25rem); display: block; text-decoration: none; }
.brand picture, .brand img { width: 100%; display: block; }
.brand img { height: auto; }
nav { display: flex; gap: clamp(1.5rem, 3vw, 3.5rem); }
nav a, footer a { font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.site-header nav { margin-top: clamp(1rem, 2vw, 1.75rem); }
nav a:hover, nav a:focus-visible, footer a:hover { text-decoration: underline; text-underline-offset: .45em; }
.menu-toggle { min-width: 2.75rem; min-height: 2.75rem; display: none; border: 0; background: none; }

.hero { padding: 0 var(--page) clamp(8rem, 12vw, 12rem); }
.eyebrow { margin: 0 0 1.35rem; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: .95; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 10vw, 10.5rem); }
h2 { font-size: clamp(3.5rem, 7.5vw, 8rem); }
.hero-image { max-width: 80.5rem; display: block; width: 100%; margin-inline: auto; overflow: hidden; background: var(--soft); }
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

.section { padding: var(--section) var(--page); }
.section-heading { display: grid; grid-template-columns: minmax(15rem, .8fr) 1fr; gap: 0 clamp(3rem, 8vw, 10rem); align-items: end; margin-bottom: clamp(7rem, 10vw, 10rem); }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading > p:last-child { max-width: 28rem; margin: 0 0 .45rem; color: var(--muted); }
.works { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8rem, 12vw, 13rem) clamp(2rem, 5vw, 6rem); align-items: start; }
.gallery-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.work-card { width: 100%; }
.work-card:nth-child(3n) { width: 82%; margin: 0 auto; }
.work-button { width: 100%; padding: 0; text-align: left; cursor: zoom-in; border: 0; background: none; }
.work-media { width: 100%; display: block; overflow: hidden; background: var(--soft); }
.work-media picture { width: 100%; display: block; }
.work-media img { width: 100%; height: auto; display: block; }
.work-media.empty { display: grid; place-items: center; }
.placeholder { display: flex; flex-direction: column; align-items: center; gap: .7rem; color: #969690; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.placeholder b { color: #c1c1bc; font: 300 clamp(2rem, 4vw, 4rem)/1 var(--serif); letter-spacing: 0; }
.work-details { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-top: 1.1rem; }
.work-details strong { font: 400 1.25rem/1.2 var(--serif); }
.work-metadata { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.25rem; color: var(--muted); }
.work-metadata small { font-size: .75rem; }
.work-description { display: block; max-width: 38rem; margin-top: .75rem; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.work-button:focus-visible { outline: 1px solid var(--ink); outline-offset: .5rem; }

.about { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(20rem, 1fr); gap: clamp(3rem, 10vw, 13rem); align-items: start; border-top: 1px solid var(--line); }
.about-heading { position: sticky; top: 2rem; }
.about-text { max-width: 42rem; font: 300 clamp(1.3rem, 2vw, 1.85rem)/1.42 var(--serif); }
.about-text p { margin: 0 0 clamp(1.75rem, 3vw, 2.75rem); }
.about-text p:last-child { margin-bottom: 0; }
.about-text .muted { max-width: 28rem; color: var(--muted); font: 300 .9rem/1.65 var(--sans); }

.contact { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; border-top: 1px solid var(--line); }
.contact > p:not(.eyebrow) { margin: 2.5rem auto 0; }
.contact .pending { color: var(--muted); font-size: .8rem; }
footer { display: flex; justify-content: space-between; padding: 2rem var(--page); color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); }
footer p { margin: 0; }
footer a { min-height: 2.75rem; display: inline-flex; align-items: center; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; color: var(--ink); background: var(--paper); border: 0; }
.lightbox::backdrop { background: rgba(0, 0, 0, .35); }
.lightbox-close { position: fixed; top: 1rem; right: var(--page); z-index: 2; min-width: 2.75rem; min-height: 2.75rem; padding: .5rem 0; cursor: pointer; border: 0; background: none; }
.lightbox-close span { margin-left: .5rem; font-size: 1.5rem; }
.lightbox-content { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(18rem, .6fr); }
.lightbox-media { min-height: 100vh; display: grid; place-items: center; padding: clamp(4rem, 7vw, 7rem); background: var(--soft); }
.lightbox-media picture { display: contents; }
.lightbox-media img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }
.lightbox-media .placeholder { width: min(70%, 35rem); aspect-ratio: 4 / 5; justify-content: center; }
.lightbox-details { align-self: end; padding: clamp(5rem, 7vw, 8rem) var(--page); }
.lightbox-details h2 { font-size: clamp(2.5rem, 4vw, 4.5rem); }
.lightbox-description { max-width: 32rem; margin: 1.25rem 0 0; color: var(--muted); line-height: 1.7; }
.lightbox dl { margin: 3rem 0 0; }
.lightbox dl div { display: grid; grid-template-columns: 6rem 1fr; padding: .7rem 0; border-top: 1px solid var(--line); }
.lightbox dt { color: var(--muted); }
.lightbox dd { margin: 0; }

@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about-heading { position: static; }
}

@media (max-width: 800px) {
  .section-heading { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-heading .eyebrow { grid-column: 1; }
  .gallery { grid-template-columns: 1fr; }
  .work-card:nth-child(3n) { width: 88%; }
  .work-card:nth-child(even) { width: 88%; margin-left: auto; }
}

@media (max-width: 680px) {
  .site-header { min-height: 0; padding-block: 1.25rem; }
  .brand { width: 6rem; }
  .menu-toggle { position: absolute; top: 50%; right: var(--page); z-index: 12; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: .5rem 0; cursor: pointer; transform: translateY(-50%); }
  .menu-icon { width: 1.4rem; display: grid; gap: .35rem; }
  .menu-icon i { height: 1px; background: currentColor; }
  .menu-toggle[aria-expanded=true] i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] i:last-child { transform: translateY(-3px) rotate(-45deg); }
  nav { position: fixed; inset: 0; z-index: 11; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; background: var(--paper); }
  nav.is-open { display: flex; }
  .site-header nav { margin-top: 0; }
  nav a { min-width: 44px; min-height: 52px; justify-content: center; font: 300 2.4rem/1.2 var(--serif); letter-spacing: -.03em; text-transform: none; }
  .hero { padding-inline: 0; }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .hero-image img { object-position: 54% center; }
  .section-heading, .about { grid-template-columns: 1fr; }
  .section-heading { gap: 2.5rem; }
  .gallery { display: block; }
  .work-card, .work-card:nth-child(3n), .work-card:nth-child(even) { width: 100%; margin: 0 0 7rem; }
  .work-card:last-child { margin-bottom: 0; }
  .work-details { display: block; }
  .work-metadata { justify-content: flex-start; margin-top: .45rem; }
  .about { gap: 3rem; }
  .lightbox-content { display: block; }
  .lightbox-media { min-height: 65vh; padding: 5rem 1.25rem 2rem; }
  .lightbox-media .placeholder { height: 50vh; width: auto; }
  .lightbox-details { padding: 3rem 1.25rem 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
