@font-face {
  font-family: "Gontserrat";
  src: url("fonts/Gontserrat-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

:root {
  --cream: #fff8ef;
  --white: #ffffff;
  --purple-light: #f2e6ff;
  --purple-dark: #3d164f;
  --purple: #6d3a9c;
  --pink: #d94f9f;
  --rose: #b83272;
  --text: #3a243b;
  --black: #000000;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* HEADER */

.site-header {
  text-align: center;
  padding: 64px 24px 46px;
  background: var(--purple-light);
}

.site-header h1 {
  max-width: 1100px;
  margin: 0 auto 32px;
  font-family: "Gontserrat", Arial, Helvetica, sans-serif;
  font-weight: 200;
  color: var(--purple-dark);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 1px;
}

.small-header h1 {
  margin-bottom: 20px;
}

/* BUTTONS */

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button,
.back-link {
  display: inline-block;
  padding: 13px 22px;
  background: var(--purple-dark);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.button:nth-child(2) {
  background: var(--rose);
}

.button:hover,
.back-link:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

/* LAYOUT */

.container {
  width: min(1080px, 92%);
  margin: 52px auto;
}

.text-box,
.description {
  width: min(960px, 100%);
  margin: 0 auto 42px;
  background: transparent;
  padding: 0;
}

h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Gontserrat", Arial, Helvetica, sans-serif;
  font-weight: 200;
  color: var(--rose);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

p {
  margin-top: 0;
  font-size: 1.08rem;
}

/* MAIN IMAGE */

.main-artwork {
  width: min(960px, 100%);
  margin: 0 auto 44px;
}

.clickable-image {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.clickable-image img {
  display: block;
  width: 100%;
  height: auto;
}

/*
  Hotspots are positioned as percentages over the main image.
  Adjust top and left if needed.
*/

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  text-decoration: none;
  color: var(--white);
  transform: translate(-50%, -50%);
}

.hotspot span {
  background: rgba(61, 22, 79, 0.86);
  color: var(--white);
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 0.25s ease;
}

.hotspot:hover span,
.hotspot:focus span {
  background: var(--pink);
  transform: translateY(-2px);
}

/* Artist buttons placed on heads */

.thomas {
  top: 47%;
  left: 26%;
}

.krasner {
  top: 45%;
  left: 39%;
}

.dekooning {
  top: 43%;
  left: 59%;
}

.ono {
  top: 46%;
  left: 86%;
}

/* LEGENDS AND DESCRIPTIONS */

.legend,
figcaption,
.image-description,
.artist-description {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.legend,
figcaption {
  color: var(--black);
  margin-top: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-style: normal;
}

.image-description {
  margin-top: 18px;
  color: var(--text);
  font-size: 1.05rem;
}

.artist-description {
  margin-top: 34px;
  color: var(--text);
  font-size: 1.05rem;
}

/* ARTIST PAGES */

.artist-page {
  text-align: center;
}

.artist-page figure {
  width: min(760px, 100%);
  margin: 0 auto 46px;
  padding: 0;
}

.artist-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* FOOTER */

.site-footer {
  width: min(1080px, 92%);
  margin: 70px auto 30px;
  padding-top: 24px;
  color: var(--purple-dark);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  max-width: none;
  margin: 0;
  font-size: 0.85rem;
}

/* RESPONSIVE */

@media (max-width: 760px) {
  .site-header {
    padding: 46px 18px 36px;
  }

  .container {
    width: min(1080px, 92%);
    margin: 36px auto;
  }

  .text-box,
  .description,
  .main-artwork {
    width: 100%;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .button,
  .back-link {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  .hotspot span {
    font-size: 0.58rem;
    padding: 4px 7px;
  }

  p,
  .image-description,
  .artist-description {
    font-size: 1rem;
  }

  .artist-page figure {
    width: 100%;
  }
}