:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #171717;
  --muted: #64615a;
  --line: rgba(23, 23, 23, 0.12);
  --accent: #1f7a6d;
  --accent-dark: #11584e;
  --rust: #bd593a;
  --gold: #d7a642;
  --shadow: 0 24px 70px rgba(40, 38, 31, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

a:hover {
  color: var(--accent-dark);
}

.site-header {
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.banner {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96);
}

.site-header::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(247, 245, 239, 0.18),
    rgba(247, 245, 239, 0.76) 78%,
    var(--bg)
  );
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: #fffdf8;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.34);
}

.brand {
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.intro {
  max-width: 760px;
  padding: 18px 0 58px;
}

.project-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 0.92;
}

.intro-copy {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.projects {
  padding-bottom: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.76fr);
  gap: 30px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-card + .project-card {
  margin-top: 22px;
}

.project-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 14px;
  min-height: 370px;
}

.main-shot,
.thumb {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: #eef0ef;
}

.main-shot {
  aspect-ratio: 16 / 10;
  min-height: 370px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.thumb-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}

.thumb {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.main-shot img,
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-shot img {
  object-position: center top;
}

.thumb img {
  object-position: left top;
}

.main-shot figcaption,
.thumb figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 6px;
  padding: 6px 9px;
  background: rgba(23, 23, 23, 0.72);
  color: #fffdf8;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 8px;
}

.project-info h3 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.project-info p:not(.project-label) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: #fffdf8;
  font-weight: 800;
}

.project-button:hover {
  background: var(--accent-dark);
  color: #fffdf8;
}

.site-footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-info {
    padding: 2px 2px 8px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 150px;
  }

  .banner {
    height: 110px;
  }

  .topbar {
    top: 16px;
    align-items: flex-start;
  }

  .nav-links {
    gap: 13px;
    font-size: 0.84rem;
  }

  main {
    margin-top: -20px;
  }

  .intro {
    padding-bottom: 42px;
  }

  .project-card {
    gap: 20px;
    padding: 14px;
  }

  .project-visuals {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .main-shot {
    aspect-ratio: 16 / 10;
    min-height: 330px;
  }

  .thumb-stack {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
    min-height: 92px;
  }
}
