:root {
  --header-height: 64px;
  --page-padding: 18px;

  --white: #fff;
  --orange: #ff9d00;

  --header-color: #594d62;

  --panel-background: rgba(25, 25, 30, 0.58);
  --image-bars-background: rgba(36, 33, 42, 0.64);

  --box-radius: 16px;
}


/* ==========================================
   BASIC SETUP
========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  display: flex;
  flex-direction: column;

  color: white;
  font-family: Arial, Helvetica, sans-serif;

  background-color: #000;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* ==========================================
   HEADER
========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 var(--page-padding);

  background-color: var(--header-color);
}

.main-nav {
  width: 100%;
  max-width: 620px;

  display: flex;
  align-items: center;
  justify-content: space-evenly;

  margin: 0 auto;
  padding: 0;

  overflow-x: auto;

  white-space: nowrap;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex-shrink: 0;

  color: white;

  font-family: "Anton", sans-serif;
  font-size: 1.32rem;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-shadow: none;

  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--orange);
  transform: translateY(-1px);
}

.main-nav a:focus-visible,
.carousel-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}


/* ==========================================
   INSTAGRAM ICON
========================================== */

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 0;
}

.social-icon {
  display: block;
  flex-shrink: 0;

  width: 30px;
  height: 30px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================
   MAIN PAGE
========================================== */

main {
  flex: 1;

  width: 100%;
  max-width: 900px;

  margin: 0 auto;
  padding-top: var(--header-height);

  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 13%,
      #f7ffff 20%,
      #9ee5f2 36%,
      #a0e8cf 53%,
      #f0f3a8 70%,
      #f3c98f 86%,
      #ec9a86 100%
    );
}


/* ==========================================
   LOGO
========================================== */

.hero {
  width: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden;
}

.studio-logo {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
  object-position: top center;
}


/* ==========================================
   BOX LAYOUT
========================================== */

.carousel-grid {
  width: calc(100% - 120px);
  max-width: 580px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;

  margin: 65px auto 85px;

  scroll-margin-top: calc(var(--header-height) + 20px);
}

.carousel-box {
  min-width: 0;
  overflow: hidden;

  background: transparent;

  border: none;
  border-radius: var(--box-radius);
  outline: none;
  box-shadow: none;

  scroll-margin-top: calc(var(--header-height) + 20px);
}


/* ==========================================
   BOX HEADINGS
========================================== */

.carousel-box > h2 {
  min-height: 40px;
  margin: 0;
  padding: 4px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  background: var(--panel-background);

  font-family: "Anton", sans-serif;
  font-size: 1.55rem;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.8px;
  text-align: center;
  text-shadow: none;
}


/* ==========================================
   CAROUSEL
========================================== */

.carousel {
  position: relative;

  width: 100%;
  overflow: hidden;
}

.carousel-track {
  width: 100%;

  display: flex;
  align-items: stretch;

  transform: translateX(0);
  transition: transform 0.45s ease;

  will-change: transform;
  touch-action: pan-y;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;

  display: flex;
  flex-direction: column;
}


/* ==========================================
   CAROUSEL IMAGES
========================================== */

.carousel-slide img {
  display: block;
  flex-shrink: 0;

  width: 100%;
  aspect-ratio: 4 / 3;

  object-fit: contain;
  background: var(--image-bars-background);

  user-select: none;
  -webkit-user-drag: none;
}


/* ==========================================
   TEXT BELOW IMAGES
========================================== */

.slide-text {
  flex: 1;
  min-height: 0;

  padding: 5px 16px 7px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--panel-background);

  text-align: center;
}

.slide-text h3 {
  margin: 0 0 4px;

  color: white;

  font-family: "Anton", sans-serif;
  font-size: 1.18rem;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.slide-text p {
  margin: 0;

  color: #f0f0f0;

  font-size: 0.9rem;
  line-height: 1.4;
}


/* ==========================================
   CAROUSEL BUTTONS
========================================== */

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 10;

  width: 44px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0 0 4px;

  color: white;
  background: rgba(0, 0, 0, 0.72);

  border: 2px solid white;
  border-radius: 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-65%);

  transition: background-color 0.15s ease;
}

.carousel-button:hover,
.carousel-button:active,
.carousel-button:focus,
.carousel-button:focus-visible {
  color: white;
}

.carousel-button:hover,
.carousel-button:active {
  background-color: rgba(0, 0, 0, 0.82);
}

.carousel-button.previous {
  left: 15px;
}

.carousel-button.next {
  right: 15px;
}


/* ==========================================
   FOOTER
========================================== */

footer {
  width: 100%;
  padding: 13px 20px;

  text-align: center;

  background-color: var(--header-color);
}

footer p {
  margin: 3px 0;

  color: #f0f0f0;

  font-size: 0.88rem;
  line-height: 1.35;
}


/* ==========================================
   TABLETS AND PHONES
========================================== */

@media (max-width: 700px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  .main-nav {
    max-width: none;
    padding: 0;
  }

  .main-nav a {
    font-size: 1.16rem;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .carousel-grid {
    width: calc(100% - 56px);
    gap: 34px;

    margin-top: 38px;
    margin-bottom: 58px;
  }

  .carousel-box > h2 {
  min-height: 40px;
  margin: 0;
  padding: 4px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  background: var(--panel-background);

  border-bottom: 1px solid rgba(36, 33, 42, 0.45);

  font-family: "Anton", sans-serif;
  font-size: 1.55rem;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.8px;
  text-align: center;
  text-shadow: none;
}

  .slide-text {
    padding: 5px 14px 7px;
  }

  .carousel-button {
    width: 40px;
    height: 52px;

    font-size: 2.2rem;
  }

  .carousel-button.previous {
    left: 15px;
  }

  .carousel-button.next {
    right: 15px;
  }
}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 430px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    padding-right: 2px;
    padding-left: 2px;
  }

  .main-nav {
    max-width: none;
    padding: 0;
  }

  .main-nav a {
    font-size: 0.97rem;
    letter-spacing: 0.3px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .carousel-grid {
    width: calc(100% - 40px);
    gap: 28px;

    margin-top: 30px;
    margin-bottom: 45px;
  }

  .carousel-box {
    border-radius: 12px;
  }

  .carousel-box > h2 {
    min-height: 34px;
    padding: 3px 12px;

    font-size: 1.28rem;
  }

  .slide-text {
    padding: 4px 12px 6px;
  }

  .slide-text h3 {
    font-size: 1.08rem;
  }

  .slide-text p {
    font-size: 0.85rem;
  }

  .carousel-button {
    width: 38px;
    height: 48px;

    font-size: 2rem;
  }

  .carousel-button.previous {
    left: 15px;
  }

  .carousel-button.next {
    right: 15px;
  }

  footer {
    padding: 11px 15px;
  }

  footer p {
    font-size: 0.82rem;
  }
}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-track {
    transition: none !important;
  }

  .main-nav a,
  .carousel-button {
    transition: none;
  }
}
