@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-extra-bold.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-light.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bradley Hand";
  src: url("../fonts/bradley-hand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fffcf5;
  --ink: #232225;
  --accent: #a31300;
  --purple: #433267;
  --muted: #7a7a7a;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-y: scroll;
  color: var(--ink);
  background: var(--background);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

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

a {
  color: var(--purple);
}

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

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

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 40px 76px;
  text-align: center;
}

.hero__title {
  margin: 0;
  padding-right: 6px;
  color: #000;
  background: radial-gradient(circle, #a31300 0%, #151515 69%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Mona Sans", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero__signature {
  margin: 20px 0 0;
  font-family: "Bradley Hand", cursive;
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero__intro {
  margin: 20px 0 0;
}

.hero--artwork {
  position: relative;
  padding-bottom: 40px;
}

.hero--artwork .hero__title {
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero--artwork .hero__signature {
  font-size: clamp(1.4rem, 2vw, 2.25rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  padding: 10px 3px;
  color: #151515;
  font-size: .875rem;
  text-decoration: none;
}

.back-link span {
  font-size: 1.2rem;
  line-height: 1;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: 0 30px;
  width: min(calc(100% - 48px), var(--max-width));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.gallery__item {
  position: relative;
  display: block;
  margin-bottom: 35px;
  overflow: hidden;
  aspect-ratio: var(--image-ratio);
  background: #eee9df;
  contain: layout paint;
}

.gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: transform .35s ease, opacity .45s ease;
}

.gallery__image.is-loaded {
  opacity: 1;
}

.gallery__item:hover .gallery__image,
.gallery__item:focus-visible .gallery__image {
  opacity: .94;
  transform: scale(1.012);
}

.artwork-view {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.artwork-view__image {
  width: auto;
  max-width: 100%;
  max-height: min(80vh, 1000px);
  margin: 0 auto;
  object-fit: contain;
}

.artwork-view__frame {
  display: grid;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
}

.artwork-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  max-width: 800px;
  min-height: 88px;
  margin: 50px auto 60px;
  border-top: 1px solid #d7d1c8;
  border-bottom: 1px solid #d7d1c8;
}

.artwork-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 22px;
  color: var(--ink);
  text-decoration: none;
}

.artwork-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.artwork-nav__link small,
.artwork-nav__link strong {
  display: block;
}

.artwork-nav__link small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
}

.artwork-nav__link strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: .95rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-nav__link:hover strong,
.artwork-nav__link:focus-visible strong {
  color: var(--accent);
}

.artwork-nav__arrow {
  flex: 0 0 auto;
  font-size: 1.65rem;
  line-height: 1;
}

.artwork-nav__separator {
  width: 1px;
  margin: 18px 0;
  background: #d7d1c8;
}

.contact {
  margin-top: 35px;
  padding: 72px 20px;
  color: #fff;
  background: radial-gradient(circle at center, #503a37 0%, #000 100%);
}

.contact__inner {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
}

.contact__email {
  display: inline-block;
  color: #fff;
  font-family: "Mona Sans", sans-serif;
  font-size: clamp(1.35rem, 3.3vw, 3rem);
  font-weight: 100;
  letter-spacing: .015em;
  text-decoration-color: rgba(255, 255, 255, .38);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  color: #fff4ef;
  text-decoration-color: var(--accent);
}

.reveal {
  animation: fade-in .8s ease both;
}

.reveal--delay-1 {
  animation-delay: .3s;
}

.reveal--delay-2 {
  animation-delay: .6s;
}

.reveal--delay-3 {
  animation-delay: .9s;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 767px) {
  .hero {
    padding: 62px 30px 58px;
  }

  .gallery {
    grid-template-columns: 1fr;
    width: calc(100% - 30px);
  }

  .hero--artwork {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero--artwork .hero__title {
    font-size: clamp(1.9rem, 6vw, 3rem);
  }

  .hero--artwork .hero__signature {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .artwork-view {
    padding-inline: 15px;
  }

  .artwork-nav__link {
    padding-inline: 10px;
  }

  .artwork-nav__link strong {
    font-size: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .gallery__image { transition: none; }
}
