:root {
  --white: #ffffff;
  --paper: #f7f5f0;
  --ink: #111111;
  --muted: #67635f;
  --line: rgba(17, 17, 17, 0.12);
  --soft-line: rgba(17, 17, 17, 0.08);
  --max: 1320px;
  --display: "Instrument Serif", Georgia, serif;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header,
main,
.footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.22rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(46px, 8vw, 104px) 0 clamp(54px, 7vw, 90px);
}

.hero-copy-wrap {
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.detail-panel h1,
.footer h2,
.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero h1 {
  font-size: clamp(5.8rem, 14vw, 13rem);
  line-height: 0.78;
}

.tagline {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-image {
  display: block;
  overflow: hidden;
  padding: clamp(10px, 1vw, 16px);
  background: black;
  border: 1px solid var(--soft-line);
  text-decoration: none;
}

.hero-image img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(20, 18, 15, 0.12));
}

.work-section {
  padding: 48px 0 88px;
  border-top: 1px solid var(--soft-line);
}

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

.section-heading h2 {
  font-size: clamp(4rem, 9vw, 8.6rem);
  line-height: 0.82;
}

.section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.art-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--soft-line);
  transition: transform 180ms ease, border-color 180ms ease;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}

.art-card-image {
  height: 390px;
  padding: 12px;
  background: black;
  overflow: hidden;
}

.art-card-image.wide {
  height: 305px;
}

.art-card-image.tall {
  height: 475px;
}

.art-card-image.square {
  height: 390px;
}

.art-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(20, 18, 15, 0.12));
}

.art-card-body {
  height: 132px;
  flex: 0 0 132px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--soft-line);
}

.art-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.art-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  gap: 28px;
  padding: 56px 0 86px;
  border-top: 1px solid var(--soft-line);
}

.about-strip > p:last-child {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 4rem);

}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 56px 0 104px;
}

.detail-image {
  padding: clamp(10px, 1vw, 16px);
  background: var(--paper);
  border: 1px solid var(--soft-line);
}

.detail-image img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(20, 18, 15, 0.12));
}

.detail-panel {
  position: sticky;
  top: 24px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--soft-line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.detail-panel h1 {
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  line-height: 0.86;
}

.detail-description {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.specs {
  margin: 28px 0;
  border-top: 1px solid var(--soft-line);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--soft-line);
}

.specs dt {
  font-weight: 800;
}

.specs dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding: 54px 0 62px;
  border-top: 1px solid var(--soft-line);
}

.footer h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5.6vw, 5.8rem);
  line-height: 0.9;
}

.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

.copyright {
  white-space: nowrap;
}

.not-found {
  padding: 80px 0 120px;
  max-width: 640px;
}

.not-found h1 {
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.86;
}

.not-found p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .detail-layout,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 20px 0;
  }

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

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(5rem, 24vw, 8rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .art-card-image,
  .art-card-image.square,
  .art-card-image.wide,
  .art-card-image.tall {
    height: 360px;
  }

  .about-strip > p:last-child {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .detail-layout {
    padding-top: 34px;
  }

  .detail-panel {
    padding: 22px;
  }
}
