/* The studio's home page (index.html and en/): the parts only it has. The rest is design.css. */

/* ---------- Top: five cats in a row; a click dresses the site in that cat ---------- */

.studio-parade {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: clamp(4px, 2vw, 20px);
  margin-top: var(--ui-6);
}

.studio-parade__cat {
  display: grid;
  place-items: end center;
  flex: 0 1 112px;
  min-width: 0;
  padding: 10px 8px 6px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-m);
  background: transparent;
  transition:
    background-color var(--ui-fast) var(--ui-ease),
    border-color var(--ui-fast) var(--ui-ease);
}

.studio-parade__cat .cat {
  width: 100%;
  transform-origin: 50% 100%;
  transition: transform 200ms var(--pop);
}

.studio-parade__cat:hover .cat {
  transform: translateY(-4px) rotate(-3deg);
}

/* The cat that's on: a soft card behind it, and a bar underneath in the page's color. */
.studio-parade__cat {
  position: relative;
}

.studio-parade__cat::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--brand);
  translate: -50% 0;
  transition: width var(--ui-slow) var(--ui-ease);
}

.studio-parade__cat[aria-pressed="true"] {
  border-color: var(--ui-hair);
  background: var(--bg-2);
}

.studio-parade__cat[aria-pressed="true"]::after {
  width: 56%;
}

.studio-parade__hint {
  margin: 0;
  color: var(--muted);
  font: 700 14px/1.4 var(--ui-text);
}

.studio-hero .ui-hero {
  gap: 26px;
}

/* The studio's own logo above the title. */
.studio-hero__logo .logo {
  height: clamp(32px, 3.4vw, 44px);
}

/* Whiskers either side of the button. */
.studio-hero__cheeks {
  display: inline-flex;
  font-size: 76px;
}

/* The one way on from the top: down to the products. */
.studio-hero__go {
  min-width: 240px;
  padding-inline: 34px;
  font: 800 20px/1.2 var(--ui-display);
}

.studio-hero__go::after {
  content: "↓";
  transition: translate var(--ui-fast) var(--ui-ease);
}

.studio-hero__go:hover::after {
  translate: 0 3px;
}

.studio-hero .studio-parade {
  margin-top: var(--ui-4);
}

/* ---------- Catail, shown big ---------- */

.studio-feature {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--ui-7);
  padding: var(--ui-7);
}

.studio-feature__text {
  display: grid;
  gap: var(--ui-5);
}

.studio-feature__name {
  display: flex;
  align-items: center;
  gap: var(--ui-4);
}

.studio-feature__name img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: var(--ui-shadow-1);
}

.studio-feature__name h3 {
  margin: 0;
  font-size: 30px;
}

.studio-feature__name span {
  color: var(--muted);
  font: 700 14px/1.4 var(--ui-text);
}

.studio-feature__shot {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform var(--ui-slow) var(--ui-ease), box-shadow var(--ui-slow) var(--ui-ease);
}

.studio-feature__shot:hover {
  transform: translateY(-3px) rotate(-0.4deg);
}

.studio-feature__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-next {
  margin-top: var(--ui-5);
}

/* ---------- Built in the open ---------- */

/* GitHub's mark is a filled shape, not a line drawing like the other tiles. */
.studio-link .ui-tile svg:not([fill]) path[d^="M12 2a10"] {
  fill: currentColor;
  stroke: none;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
  .studio-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ui-6);
    padding: var(--ui-6);
  }
}

@media (max-width: 720px) {
  .studio-feature {
    padding: var(--ui-5);
  }
}

@media (max-width: 560px) {
  /* Narrower: shorter whiskers and a narrower button, so all three still fit. */
  .studio-hero__cheeks {
    font-size: 48px;
  }

  .studio-hero__cheeks .ui-whiskers {
    display: block;
  }

  .studio-hero__go {
    min-width: 0;
  }
}
