:root {
  --ink: #171714;
  --paper: #f0ede6;
  --muted: #6e6b64;
  --red: #e33d2e;
  --artist-accent: #526b5d;
  --header-height: 4.5rem;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; background: var(--paper); }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.8rem 1rem;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 3vw;
  color: #fff;
  background: rgba(20, 20, 18, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.brand span { color: var(--red); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: none;
  place-content: center;
  gap: 0.3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(0.4rem) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-0.4rem) rotate(-45deg); }

.artist-hero {
  min-height: clamp(34rem, 78svh, 46rem);
  padding: calc(var(--header-height) + clamp(3rem, 6vw, 6rem)) 4vw clamp(3.5rem, 6vw, 5.5rem);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 48%),
    #171714;
  overflow: hidden;
}

.artist-hero::before {
  width: clamp(3rem, 8vw, 8rem);
  height: 0.35rem;
  margin-bottom: 2rem;
  background: var(--artist-accent);
  content: "";
}

.artist-hero__eyebrow,
.works-section__heading p,
.work-card__number {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.artist-hero__identity {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: 0.6rem;
}

.artist-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.artist-hero__portrait {
  width: clamp(8.5rem, 11vw, 11rem);
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86) contrast(1.04);
}

.artist-hero__theme {
  margin: 1.5rem 0 0;
  color: #f3a59b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.3vw, 2.1rem);
  font-style: italic;
}

.artist-hero__footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.artist-hero__footer > p:first-child {
  margin: 0;
  max-width: 54rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}

.works-section {
  padding: clamp(4rem, 8vw, 8rem) 3vw clamp(5rem, 9vw, 9rem);
}

.works-section__heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(23, 23, 20, 0.3);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1.2rem, 2.5vw, 2.5rem);
}

.work-card {
  min-width: 0;
}

.work-card__image {
  position: relative;
  width: 100%;
  height: clamp(20rem, 34vw, 36rem);
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border: 0;
  color: #fff;
  background: #ddd8ce;
  cursor: zoom-in;
  overflow: hidden;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card__image span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: rgba(20, 20, 18, 0.8);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-card__image:hover img,
.work-card__image:focus-visible img { transform: scale(1.025); }

.work-card__image:hover span,
.work-card__image:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.work-card__details {
  padding-top: 1.25rem;
  border-top: 0.35rem solid var(--artist-accent);
}

.work-card__number { color: var(--muted); }

.work-card h2 {
  margin: 0.65rem 0 1.15rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.work-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #3d3b36;
  font-size: 0.82rem;
  line-height: 1.4;
}

.work-card dl div {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.75rem;
}

.work-card dt {
  color: var(--muted);
  font-weight: 800;
}

.work-card dd { margin: 0; }

.artist-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink);
  color: #fff;
}

.artist-pagination a {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 4vw;
  text-decoration: none;
}

.artist-pagination a + a {
  align-items: flex-end;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  text-align: right;
}

.artist-pagination span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artist-pagination strong {
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.artist-pagination a:hover,
.artist-pagination a:focus-visible { background: color-mix(in srgb, var(--artist-accent), #171714 62%); }

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(10, 10, 9, 0.97);
}

.viewer::backdrop { background: rgba(0, 0, 0, 0.82); }

.viewer[open] {
  display: grid;
  place-items: center;
}

.viewer figure {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  margin: 0;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem) 1.5rem;
}

.viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer figcaption {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
}

.viewer__close {
  position: fixed;
  z-index: 2;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 64rem) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card__image { height: clamp(22rem, 52vw, 34rem); }
}

@media (max-width: 44rem) {
  :root { --header-height: 3.75rem; }
  body { min-width: 0; }

  .site-header {
    gap: 1rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .brand { font-size: 1.4rem; }
  .nav-toggle { display: grid; }

  .site-nav {
    position: fixed;
    z-index: 1;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 0.5rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
    background: rgba(20, 20, 18, 0.98);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .artist-hero {
    min-height: 0;
    padding: calc(var(--header-height) + 2.5rem) 1rem calc(3rem + env(safe-area-inset-bottom));
  }

  .artist-hero::before { margin-bottom: 1.35rem; }

  .artist-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
    line-height: 0.84;
  }

  .artist-hero__identity { gap: 0.75rem; }

  .artist-hero__portrait {
    width: 5rem;
    margin-bottom: 0.15rem;
  }

  .artist-hero__theme {
    margin-top: 1rem;
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .artist-hero__footer { margin-top: 2rem; }

  .works-section {
    padding: 4rem 0.75rem 5rem;
  }

  .works-section__heading {
    margin-right: 0.25rem;
    margin-left: 0.25rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .work-card__image {
    height: min(70svh, 34rem);
    padding: 0.8rem;
  }

  .work-card__image span {
    opacity: 1;
    transform: none;
  }

  .work-card__details {
    margin: 0 0.25rem;
  }

  .work-card h2 { font-size: 1.6rem; }

  .artist-pagination { grid-template-columns: 1fr; }

  .artist-pagination a {
    min-height: 9rem;
    padding: 2rem 1rem;
  }

  .artist-pagination a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
