:root {
  --ink: #181611;
  --paper: #f8f4ec;
  --chalk: #fffaf0;
  --clay: #a65335;
  --iron: #6f3027;
  --cobalt: #1f4f7a;
  --moss: #60795f;
  --ash: #c7c0ad;
  --line: rgba(24, 22, 17, 0.18);
  --shadow: 0 18px 50px rgba(24, 22, 17, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(248, 244, 236, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.filter-row,
.section-heading,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.site-nav {
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.94rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.home-hero {
  min-height: clamp(560px, calc(100svh - 116px), 760px);
  overflow: hidden;
  position: relative;
}

.hero-link,
.hero-image,
.hero-scrim {
  inset: 0;
  position: absolute;
}

.hero-link {
  display: block;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 360ms ease, transform 7000ms ease;
  width: 100%;
}

.hero-image.is-fading {
  opacity: 0;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(24, 22, 17, 0.82), rgba(24, 22, 17, 0.36) 48%, rgba(24, 22, 17, 0.1)),
    linear-gradient(0deg, rgba(24, 22, 17, 0.18), transparent 40%);
  pointer-events: none;
}

.hero-copy {
  color: var(--chalk);
  max-width: 760px;
  padding: clamp(78px, 12vh, 118px) clamp(20px, 6vw, 72px) 92px;
  position: absolute;
  z-index: 1;
}

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

.hero-copy .eyebrow {
  color: #f2c7a8;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 7.7rem);
  font-weight: 400;
  line-height: 0.88;
  margin-bottom: 22px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 0;
}

p {
  line-height: 1.7;
}

.hero-copy p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  max-width: 46rem;
}

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

.button {
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-width: 98px;
  padding: 12px 18px;
  text-decoration: none;
}

.button-light {
  background: var(--chalk);
  color: var(--ink);
}

.button-dark {
  background: var(--ink);
  color: var(--chalk);
}

.button-outline {
  border-color: var(--line);
  color: var(--ink);
}

.hero-meta {
  align-items: flex-end;
  bottom: 26px;
  color: var(--chalk);
  display: flex;
  gap: 10px;
  left: clamp(20px, 6vw, 72px);
  position: absolute;
  z-index: 2;
}

.hero-meta span {
  opacity: 0.78;
}

.section-wrap {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(48px, 8vw, 88px) clamp(18px, 4vw, 44px);
}

.intro-grid,
.artist-hero,
.piece-page {
  display: grid;
  gap: clamp(28px, 5vw, 74px);
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
}

.intro-grid p {
  font-size: 1.13rem;
  margin-bottom: 0;
}

.piece-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.piece-card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 22, 17, 0.08);
  overflow: hidden;
}

.piece-card a {
  display: block;
  text-decoration: none;
}

.piece-card img {
  aspect-ratio: 4 / 5;
  background: var(--ash);
  object-fit: cover;
  width: 100%;
}

.piece-card-copy {
  padding: 18px;
}

.piece-card-copy span,
.archive-item span,
.archive-item time,
.archive-item em {
  color: rgba(24, 22, 17, 0.68);
  display: block;
  font-size: 0.88rem;
  font-style: normal;
  margin-bottom: 7px;
}

.artist-hero {
  align-items: center;
}

.artist-hero img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.artist-copy p:not(.eyebrow) {
  font-size: 1.14rem;
}

.section-heading {
  justify-content: space-between;
  padding-bottom: 24px;
}

.piece-page {
  align-items: start;
}

.piece-main-image {
  background: var(--ash);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: calc(100svh - 130px);
  object-fit: contain;
  width: 100%;
}

.thumb-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.thumb-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.thumb-button img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.piece-info {
  position: sticky;
  top: 96px;
}

.piece-info h1,
.artist-copy h1,
.archive-heading h1 {
  color: var(--ink);
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.piece-info dl {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 18px;
}

.piece-info div {
  display: grid;
  gap: 16px;
  grid-template-columns: 90px 1fr;
  padding: 9px 0;
}

.piece-info dt {
  color: rgba(24, 22, 17, 0.62);
}

.piece-info dd {
  margin: 0;
}

.archive-heading {
  padding-bottom: 20px;
}

.archive-list {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.archive-item a {
  align-items: center;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px 0.65fr 1fr 80px 96px;
  padding: 10px 18px 10px 10px;
  text-decoration: none;
}

.archive-item img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 96px;
}

.archive-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.contact-page {
  max-width: 940px;
  min-height: calc(100svh - 158px);
}

.contact-title-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 22px);
  margin-bottom: 24px;
}

.contact-title-logo {
  flex: 0 0 auto;
  height: clamp(44px, 7vw, 68px);
  object-fit: contain;
  width: clamp(44px, 7vw, 68px);
}

.contact-copy h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  margin-bottom: 0;
}

.contact-copy p:not(.eyebrow) {
  font-size: 1.14rem;
  max-width: 44rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: rgba(24, 22, 17, 0.68);
  gap: 14px;
  justify-content: space-between;
  padding: 26px clamp(18px, 4vw, 48px);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-copy {
    padding-top: 86px;
    padding-bottom: 112px;
  }

  .intro-grid,
  .artist-hero,
  .piece-page,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .piece-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piece-info {
    position: static;
  }

  .archive-item a {
    grid-template-columns: 76px 1fr;
  }

  .archive-item img {
    grid-row: span 4;
    width: 76px;
  }
}

@media (min-width: 821px) {
  .home-hero {
    min-height: clamp(600px, calc(100svh - 80px), 760px);
  }
}

@media (max-width: 560px) {
  .piece-grid {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }

  .contact-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .contact-title-logo {
    height: clamp(40px, 12vw, 54px);
    width: clamp(40px, 12vw, 54px);
  }
}
