:root {
  --paper: #fffdf8;
  --ink: #171717;
  --muted: #65635f;
  --line: #d9d5cd;
  --max: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.sr-only {
  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 {
  min-height: 122px;
  padding: 28px 4vw 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.brand {
  grid-column: 2;
  width: min(410px, 42vw);
}
.brand img { width: 100%; }
.main-nav {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  gap: 38px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.main-nav a, .footer-logo, .site-footer a { transition: opacity .25s ease; }
.main-nav a:hover, .site-footer a:hover { opacity: .5; }
.main-nav a.active { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.portfolio-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 95px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 62px 20px;
}
.portfolio-card { min-width: 0; }
.card-image {
  display: block;
  overflow: hidden;
  background: #eeeae2;
}
.card-image img {
  width: 100%;
  aspect-ratio: 1100 / 1169;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.portfolio-card:nth-child(n+5) .card-image img { aspect-ratio: 1; }
.portfolio-card:hover .card-image img { transform: scale(.965); filter: saturate(.88); }
.card-content { padding: 18px 0 0; }
.card-content h2 {
  margin: 0 0 5px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 500;
  line-height: 1.2;
}
.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 20px 110px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 70px;
  align-items: start;
}
.project-gallery { display: grid; gap: 22px; }
.project-gallery button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.project-gallery img { width: 100%; }
.project-info {
  position: sticky;
  top: 35px;
  padding-top: 4px;
}
.project-info h1, .page-title {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
}
.project-info p { color: #3d3d3d; }
.project-meta {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.project-meta strong { font-weight: 600; }
.project-nav {
  grid-column: 1 / -1;
  margin-top: 25px;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}

.about-hero {
  width: 100%;
  height: min(48vw, 530px);
  object-fit: cover;
}
.about-content {
  padding: 70px 4vw 110px;
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 55px;
}
.about-column h2, .site-footer h2, .journal-card h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}
.about-column h2 {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ink);
  font-size: 23px;
}
.about-column p { color: #3d3d3d; }

.journal-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 65px 20px 110px;
}
.journal-layout .page-title { margin-bottom: 50px; }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 65px 32px;
}
.journal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.journal-card h2 { margin: 17px 0 8px; font-size: 28px; line-height: 1.2; }
.journal-card p { margin: 0; color: var(--muted); }
.journal-card .date {
  margin-top: 13px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-footer {
  padding: 62px 4vw 72px;
  display: grid;
  grid-template-columns: 1.15fr 1fr .7fr 1fr;
  gap: 55px;
  border-top: 1px solid var(--ink);
}
.site-footer h2 { font-size: 19px; }
.site-footer p { margin: 0 0 13px; color: #3d3d3d; }
.site-footer section > a { display: block; width: fit-content; margin-bottom: 5px; }
.footer-logo { width: 190px; margin-bottom: 18px; }
.site-footer small { display: block; margin-top: 24px; font-size: 10px; }
.newsletter input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
}
.newsletter button {
  margin-top: 14px;
  padding: 7px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.newsletter button:hover { color: var(--paper); background: var(--ink); }
.form-message { display: block; margin-top: 10px; font-size: 11px; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 40px 82px;
  border: 0;
  background: rgba(12, 12, 12, .96);
}
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-arrow {
  position: fixed;
  z-index: 2;
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
}
.lightbox-close { top: 17px; right: 24px; font-size: 42px; line-height: 1; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox-arrow.previous { left: 20px; }
.lightbox-arrow.next { right: 20px; }
.error-page { min-height: 55vh; padding: 100px 4vw; text-align: center; }

@media (max-width: 1024px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; width: min(380px, 58vw); }
  .main-nav { display: none; }
  .menu-toggle {
    grid-column: 2;
    display: grid;
    gap: 9px;
    width: 43px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { height: 1px; background: var(--ink); transition: transform .25s ease; }
  .menu-open .menu-toggle span:first-child { transform: translateY(5px) rotate(16deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-5px) rotate(-16deg); }
  .menu-open .main-nav {
    position: fixed;
    inset: 121px 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-top: 14vh;
    background: var(--paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    text-transform: none;
    letter-spacing: 0;
  }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-content { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { min-height: 84px; padding: 20px; }
  .menu-open .main-nav { inset: 84px 0 0; }
  .breadcrumb { padding-inline: 18px; }
  .portfolio-grid {
    padding: 35px 18px 70px;
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .project {
    padding: 35px 18px 70px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-info { position: static; grid-row: 1; }
  .project-info h1 { font-size: 48px; }
  .project-nav { font-size: 16px; }
  .about-hero { height: 48vw; min-height: 220px; }
  .about-content { padding: 48px 20px 70px; grid-template-columns: 1fr; gap: 30px; }
  .journal-layout { padding: 45px 18px 70px; }
  .journal-grid { grid-template-columns: 1fr; gap: 48px; }
  .site-footer { padding: 48px 20px 60px; grid-template-columns: 1fr; gap: 34px; }
  .lightbox { padding: 42px 15px; }
}
