@import url("font.css");

:root {
  color: #000;
  background: #fff;
  font-family: "Quasimoda", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  margin: 0;
}

.gallery {
  width: min(100%, 800px);
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
}

.gallery__header {
  background: #fff;
}

.gallery__name {
  display: flex;
  align-items: center;
  height: 120px;
  margin: 0;
  padding-inline: 25px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

h1 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 96px;
  margin: 0;
  padding-inline: 20px;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.artwork {
  position: relative;
  aspect-ratio: 659 / 512;
  margin: 24px 0 0;
  overflow: hidden;
  background: #ddd;
}

.artwork img {
  position: absolute;
  top: -36.52%;
  left: -7.28%;
  width: 113.51%;
  height: 194.73%;
  max-width: none;
  object-fit: cover;
}

.artist {
  padding: 62px 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.artist p {
  margin: 0;
}

.artist h2 {
  margin: 20px 0;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

.artist a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.artist a:hover,
.artist a:focus-visible {
  text-decoration-thickness: 2px;
}

@media (max-width: 799px) {
  :root,
  html {
    background: #fff;
  }

  .gallery__name {
    height: clamp(76px, 15vw, 120px);
    padding-inline: clamp(20px, 3.125vw, 25px);
    font-size: clamp(23px, 4vw, 32px);
  }

  h1 {
    height: clamp(64px, calc(15vw - 24px), 96px);
    padding-inline: 16px;
    font-size: clamp(40px, 11vw, 88px);
    white-space: normal;
  }

  .artist {
    padding: clamp(38px, 7.75vw, 62px) clamp(22px, 5vw, 40px);
    font-size: clamp(15px, 2vw, 16px);
  }
}
