:root {
  --bg: #f7f6f2;
  --ink: #171717;
  --muted: #66635e;
  --rule: #d7d3cb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 300;
}

main {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.6fr);
  align-items: end;
  gap: 32px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule);
}

h1, h2, p { margin-top: 0; }

h1 {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(.95rem, 1.5vw, 1.12rem);
  font-weight: 500;
  letter-spacing: .12em;
}

.tagline {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 760px;
}

.project {
  padding: 20px 0 16px;
}

h2 {
  margin-bottom: 18px;
  font-family: "Inter", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 860px);
  max-height: 88vh;
  object-fit: contain;
}

footer {
  margin-top: 48px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--rule);
  font-size: .98rem;
  line-height: 1.6;
}

.footer-label { color: var(--muted); }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.copyright {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 700px) {
  main { width: min(100% - 24px, 1120px); }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0 22px;
  }

  .project { padding-top: 20px; }
  h2 { margin-bottom: 16px; }
  .gallery { gap: 30px; }
  img { max-height: none; width: 100%; }
  footer { margin-top: 40px; }
}
