/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0b0b0f;
  color: #f5f5f5;
  font-family: "Caveat", cursive;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1000px, 92%);
  margin: 0 auto;
  padding: 2rem 0;
}


/* =========================
   Typography
========================= */

h1,
h2 {
  margin: 0;
  text-align: center;
  font-family: "Indie Flower", cursive;
  font-weight: 400;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: 0.05em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.6;
}


/* =========================
   Hero
========================= */

.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.links a {
  border: 1px solid #ffffff33;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #ffffff0a;
  font-size: 1.35rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.links a:hover {
  background: #ffffff18;
  border-color: #ffffff66;
  transform: translateY(-2px);
}


/* =========================
   Sections
========================= */

section {
  margin-top: 2rem;
}

.about,
.contact {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}


/* =========================
   Gallery
========================= */

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

#gallery {
  display: flex;
  align-items: center;
  gap: 0;

  height: 60vh;
  padding: 0 16px;

  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;

  scroll-padding-inline: 50vw;
}

#gallery::-webkit-scrollbar {
  display: none;
}

#gallery::before,
#gallery::after {
  content: "";
  flex: 0 0 calc(47vw - 150px);
}

.art-card {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  margin-inline: var(--focus-gap, 3px);

  transform: scale(var(--focus-scale, 1));
  transition:
    transform 0.25s ease,
    margin 0.25s ease;

  will-change: transform;
}

.art-card img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;

  filter:
    blur(var(--focus-blur, 0px))
    brightness(var(--focus-opacity, 1));

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.art-card:hover img {
  transform: scale(1.08);
}

.art-card:hover img.hold-zooming {
  filter: brightness(1.05);
}


/* =========================
   Custom Scrollbar
========================= */

.scroll-track {
  width: min(700px, 80vw);
  height: 24px;
  margin: 24px auto 0;
  position: relative;
  cursor: pointer;
}

.scroll-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;

  height: 1px;
  background: #6a6666;
  transform: translateY(-50%);
}

.scroll-thumb {
  width: 14px;
  height: 14px;
  background: #fff;

  position: absolute;
  top: 50%;
  left: 0;

  transform: translate(-50%, -50%) rotate(45deg);
  cursor: grab;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.scroll-thumb:hover {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.25);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

.scroll-thumb.dragging {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.45);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  cursor: grabbing;
}

.scroll-thumb:active {
  cursor: grabbing;
}

/* =========================
   Mobile
========================= */

@media (max-width: 700px) {
  main {
    width: 100%;
    padding: 1.25rem 0;
  }

  .hero,
  .about,
  .contact {
    margin-inline: 1rem;
  }

  #gallery {
    height: 55vh;
    padding: 0 1rem;
    gap: 0.75rem;

    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  #gallery::before,
  #gallery::after {
    display: none;
  }

  .art-card {
    height: 100%;
    width: auto;
    margin-inline: 0;

    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .art-card img {
    height: 100%;
    width: auto;
    max-width: 85vw;

    filter: none !important;
    transition: none;
    cursor: default;
  }

  .art-card:hover img {
    transform: none;
  }

  .scroll-track {
    display: none;
  }
}

/* =========================
   Footer
========================= */

footer {
  text-align: center;
  opacity: 0.45;
  margin-top: 4rem;
  padding-bottom: 2rem;
  font-size: 1.2rem;
}