@font-face {
  font-family: "Caveat";
  src: url("./assets/fonts/caveat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/montserrat-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/montserrat-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --ink: #11100f;
  --red: #ff3b30;
  --orange: #ff8a00;
  --yellow: #ffd60a;
  --green: #27ca65;
  --blue: #0a84ff;
  --violet: #9b51e0;
  --rainbow: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--orange) 18%,
    var(--yellow) 36%,
    var(--green) 54%,
    var(--blue) 73%,
    var(--violet) 91%,
    var(--red) 112%
  );
  --sans: "Montserrat", "Arial Black", sans-serif;
  --hand: "Caveat", "Comic Sans MS", "Bradley Hand", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 9%, rgba(255, 255, 255, 0.95), transparent 20rem),
    var(--paper);
  font-family: var(--hand);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: var(--rainbow);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border: 2px solid var(--ink);
  background: var(--paper);
  font: 700 0.8rem/1 var(--sans);
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: min(90svh, 860px);
  padding: clamp(4.8rem, 9vh, 7rem) clamp(1.25rem, 5.2vw, 5.5rem) 2rem;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  opacity: 0.1;
}

.hero::before {
  top: 19%;
  left: -8rem;
  width: 21rem;
  height: 21rem;
}

.hero::after {
  right: -7rem;
  bottom: 7%;
  width: 16rem;
  height: 16rem;
}

.hero__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1120px);
  margin: clamp(2.5rem, 7vh, 5rem) auto 0;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.brand-symbol {
  width: clamp(145px, 22vw, 294px);
  flex: 0 0 auto;
  aspect-ratio: 1;
  background:
    linear-gradient(
      125deg,
      #111 0 8%,
      #784f17 8% 16%,
      #5bcefa 16% 24%,
      #f5a9b8 24% 32%,
      #fff 32% 40%,
      transparent 40%
    ),
    linear-gradient(
      to bottom,
      #e40303 0 16.666%,
      #ff8c00 16.666% 33.333%,
      #ffed00 33.333% 50%,
      #008026 50% 66.666%,
      #004dff 66.666% 83.333%,
      #750787 83.333% 100%
    );
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-mask: url("./assets/ft-monogram-mask.png") center / contain no-repeat;
  mask: url("./assets/ft-monogram-mask.png") center / contain no-repeat;
}

.brand-name {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(3.25rem, 7.2vw, 7.4rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.brand-name span {
  display: block;
}

.brand-name__formula {
  margin-left: -0.08em;
}

.brand-name__domain {
  padding: 0.08em 0.24em 0.28em 0;
  margin-right: -0.24em;
  margin-bottom: -0.28em;
  overflow: visible;
  color: transparent;
  background: var(--rainbow);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 700;
}

.hero__tagline {
  align-self: start;
  max-width: 820px;
  margin: clamp(1.75rem, 3vh, 3rem) auto 0;
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 500;
  line-height: 1.03;
  text-align: center;
}

.hero__tagline strong {
  position: relative;
  white-space: nowrap;
  font-weight: 700;
}

.hero__tagline strong::after {
  position: absolute;
  right: -0.08em;
  bottom: -0.05em;
  left: -0.08em;
  height: 0.17em;
  content: "";
  background: var(--rainbow);
  clip-path: polygon(0 38%, 18% 12%, 36% 32%, 54% 6%, 72% 31%, 100% 0, 99% 67%, 67% 86%, 43% 67%, 21% 98%, 0 72%);
}

.scroll-cue {
  display: grid;
  justify-self: center;
  padding: 0.6rem;
  text-decoration: none;
  place-items: center;
}

.scroll-cue svg {
  width: 34px;
  height: 48px;
}

.scroll-cue path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.profiles {
  position: relative;
  min-height: 185svh;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
}

.profiles::before {
  position: absolute;
  top: 0;
  right: clamp(1.25rem, 4vw, 4.5rem);
  left: clamp(1.25rem, 4vw, 4.5rem);
  height: 2px;
  content: "";
  background: var(--ink);
}

.profiles__grid {
  position: sticky;
  top: 0;
  display: grid;
  max-width: 1404px;
  min-height: 100svh;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
}

.profiles__diagonal {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.profiles__diagonal line {
  vector-effect: non-scaling-stroke;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 3;
}

.profile {
  position: absolute;
  z-index: 1;
  display: flex;
  inset: 0;
  min-width: 0;
  padding: clamp(2rem, 5vh, 4rem) 1rem;
  align-items: center;
  justify-content: center;
}

.profile__inner {
  width: min(100%, 520px);
}

.profile--joel {
  z-index: 2;
  background: linear-gradient(
    135deg,
    #f06aa9 0 36%,
    #ad75b5 44% 56%,
    #6687d8 64% 100%
  );
  clip-path: polygon(
    var(--wipe-top, 162%) 0,
    100% 0,
    100% 100%,
    var(--wipe-bottom, 123%) 100%
  );
}

.portrait {
  position: relative;
  width: clamp(215px, 23vw, 320px);
  margin: 0 auto clamp(1.15rem, 2vw, 2rem);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  background: #fff;
  overflow: hidden;
}

.portrait::before {
  position: absolute;
  z-index: 2;
  inset: 6px;
  border: 2px solid var(--ink);
  content: "";
  pointer-events: none;
}

.portrait--jake,
.portrait--jake::before,
.portrait--jake img {
  border-radius: 48% 52% 47% 53% / 53% 46% 54% 47%;
}

.portrait--joel,
.portrait--joel::before,
.portrait--joel img {
  border-radius: 52% 48% 53% 47% / 47% 54% 46% 53%;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait--jake img {
  transform: scale(1.04);
  object-position: 50% 45%;
}

.profile h3 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 5.3rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.profile blockquote {
  margin: 0.7rem 0 0;
  font-size: clamp(2.2rem, 3.5vw, 3.65rem);
  font-weight: 500;
  line-height: 1;
}

.profile--joel blockquote {
  color: transparent;
  background: var(--rainbow);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 700;
}

.profile ul {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.75rem, 2.5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.02;
}

.profile li {
  position: relative;
  padding-left: 1.1em;
}

.profile li + li {
  margin-top: 0.45em;
}

.profile li::before {
  position: absolute;
  left: 0;
  content: "—";
}

.archive {
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem, 4vw, 4rem);
  color: var(--paper);
  background: var(--ink);
}

.archive__header {
  max-width: 1404px;
  margin: 0 auto clamp(2.5rem, 4.5vw, 4.5rem);
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
}

.archive__header h2 {
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.045em;
}

.archive__track {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  column-count: 5;
  column-gap: clamp(1.4rem, 2.5vw, 2.8rem);
}

.archive-card {
  width: 100%;
  margin: 0 0 clamp(1.4rem, 2.5vw, 2.8rem);
  break-inside: avoid;
}

.archive-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--paper);
  background: #282623;
  filter: saturate(0.88) contrast(1.03);
}

@media (max-width: 1300px) {
  .archive__track {
    column-count: 4;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: min(92svh, 760px);
    padding-top: 5rem;
  }

  .hero__lockup {
    margin-top: 3rem;
    flex-direction: column;
    gap: 0.6rem;
  }

  .brand-symbol {
    width: min(48vw, 210px);
  }

  .brand-name {
    font-size: clamp(3.5rem, 15vw, 6.5rem);
    line-height: 0.76;
    text-align: center;
  }

  .hero__tagline {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .profile {
    padding-inline: 0;
  }

  .archive__track {
    column-count: 3;
    padding-inline: 1.25rem;
    column-gap: 1rem;
  }

  .archive-card {
    margin-bottom: 1rem;
  }

}

@media (max-width: 460px) {
  body::before {
    height: 5px;
  }

  .hero {
    min-height: 790px;
  }

  .hero__tagline br {
    display: none;
  }

  .profiles {
    padding-inline: 1rem;
  }

  .profile h3 {
    font-size: 3.35rem;
  }

  .profile blockquote {
    font-size: 2.45rem;
  }

  .profile ul {
    font-size: 2rem;
  }

}

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