:root {
  color-scheme: light;
  --ink: #151512;
  --muted: #6d6a62;
  --paper: #f7f3ea;
  --plaster: #ebe4d6;
  --line: #d5ccbb;
  --shadow: rgba(27, 24, 18, 0.18);
  --green: #064f45;
  --red: #a54236;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, var(--paper) 0%, var(--plaster) 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 234, 0.82);
  border-bottom: 1px solid rgba(213, 204, 187, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(320px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  padding: clamp(104px, 13vh, 148px) clamp(20px, 5vw, 76px) clamp(42px, 8vh, 80px);
}

.gallery-copy {
  max-width: 520px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.intro {
  max-width: 26rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.exhibit {
  margin: 0;
  justify-self: center;
  width: min(100%, 920px);
}

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 1445;
  padding: clamp(10px, 1.4vw, 18px);
  background: #fbfaf6;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px var(--shadow);
}

.frame::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.4vw, 18px);
  border: 1px solid rgba(21, 21, 18, 0.18);
  pointer-events: none;
}

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

.wall-label {
  display: grid;
  gap: 5px;
  width: min(100%, 340px);
  margin: 18px 0 0 auto;
  padding-left: 18px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.work-title {
  color: var(--ink);
  font-weight: 600;
}

.visit {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 76px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
}

.visit p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    padding-block: 16px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(3.8rem, 18vw, 7rem);
  }

  .intro {
    margin-top: 18px;
  }

  .wall-label {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .site-header,
  .visit {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    gap: 28px;
    padding-inline: 16px;
  }

  .frame {
    padding: 8px;
  }

  .frame::before {
    inset: 8px;
  }
}
