/* Family tools: the page every tool lives under. Phones first; one breakpoint at 768px. */

body {
  background: var(--teal-deep);
}

.hub-hero {
  padding: clamp(1.5rem, 6vw, 4rem) var(--gutter) clamp(2.5rem, 7vw, 5rem);
}

.hub-hero__inner {
  max-width: 76rem;
  margin: 0 auto;
}

.hub-hero__title {
  font-size: clamp(2.7rem, 11.4vw, 7.5rem);
  margin-bottom: 1.5rem;
}

.hub-hero__line {
  display: block;
}

.hub-hero__lede {
  color: var(--on-dark-muted);
}

/* ---------- The featured tool ---------- */

.feature {
  background: var(--sun);
  color: var(--ink);
  padding: clamp(3rem, 9vw, 6rem) var(--gutter);
  overflow: hidden;
}

.feature__inner {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.feature__words {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  align-content: center;
}

.feature__flag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff8ee;
  font-weight: 900;
  font-size: 0.875rem;
  transform: rotate(-3deg);
}

.feature__title {
  font-size: clamp(3.4rem, 15vw, 8.5rem);
}

.feature__facts {
  display: grid;
  gap: 0.4rem;
  font-weight: 800;
}

.feature__facts li {
  padding-left: 1.5rem;
  position: relative;
}

.feature__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral) 0 30%, var(--vinyl) 32%);
}

.feature .btn--sun {
  background: var(--teal);
  color: var(--on-dark);
}

/* Three covers, fanned like records pulled half out of a crate. */
.feature__crate {
  /* 0 is a neat stack, 1 is fanned out; the page moves it from one to the other on scroll. */
  --fan: 1;
  position: relative;
  display: block;
  width: min(78vw, 24rem);
  aspect-ratio: 1.18;
  margin: 0 auto;
  text-decoration: none;
}

.crate__item {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 66%;
  margin-left: -33%;
  transform-origin: 50% 100%;
}

.crate__item:nth-child(1) {
  transform: translateX(calc(var(--fan) * -34%)) rotate(calc(var(--fan) * -11deg));
}

.crate__item:nth-child(2) {
  transform: translateX(calc(var(--fan) * 34%)) rotate(calc(var(--fan) * 10deg));
}

.crate__item:nth-child(3) {
  transform: translateY(calc(var(--fan) * -4%)) rotate(calc(var(--fan) * -2deg));
}

@media (min-width: 768px) {
  .feature__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
  .feature__crate {
    width: min(40vw, 32rem);
  }
}

/* ---------- Side B ---------- */

.more {
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter);
}

.more__inner {
  max-width: 62rem;
  margin: 0 auto;
}

.more__title {
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  color: var(--sun);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.bside__row {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 2px dashed rgba(251, 243, 228, 0.22);
  text-decoration: none;
  color: var(--on-dark);
}

.bside li:last-child .bside__row {
  border-bottom: 2px dashed rgba(251, 243, 228, 0.22);
}

.bside__no {
  font-weight: 900;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}

.bside__body {
  display: grid;
  gap: 0.4rem;
}

.bside__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.5rem, 5.2vw, 2.4rem);
  line-height: 1.05;
  transition: color 0.2s;
}

.bside__about {
  color: var(--on-dark-muted);
  max-width: 34rem;
}

.bside__go {
  font-weight: 900;
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

.bside__row:hover .bside__name,
.bside__row:focus-visible .bside__name {
  color: var(--sun);
}

/* ---------- Who makes these ---------- */

.maker {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter);
}

.maker__inner {
  max-width: 54rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.maker__title {
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.maker .lede {
  color: var(--muted);
}
