@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --red: #ff2d20;
  --paper: #f4f4f2;
  --ink: #222323;
  --muted: #626363;
  --line: #ff2d2038;
  --display: 'Manrope', 'Helvetica Neue', sans-serif;
  --accent: #b9d6f5;
  --accent-ink: #265ea0;
  --header-height: 80px;
}

.site-header {
  width: 100%;
  height: var(--header-height);
  min-height: 0;
  padding-inline: 3.2vw;
}
.site-header .wordmark {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1.4px;
}
.site-header .nav { color: var(--ink); }

.hero-stage {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
}
.hero-kicker {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 3.2vw;
  right: 3.2vw;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  font: 11px/1.55 var(--mono);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.hero-kicker p:last-child { text-align: right; }
.hero-display {
  position: absolute;
  inset: 0;
  font-family: var(--display);
  font-weight: 350;
  color: var(--red);
  pointer-events: none;
}
.hero-back {
  position: absolute;
  z-index: 1;
  top: 12cqh;
  left: 2.6vw;
  right: 3.7vw;
  display: flex;
  justify-content: space-between;
  /* Capped so the full word "Mind" clears the portrait on wide screens. */
  font-size: min(22vw, 44cqh);
  line-height: .8;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.hero-front {
  position: absolute;
  z-index: 3;
  top: 56cqh;
  left: 31vw;
  right: 3.2vw;
  font-size: min(29vw, 38cqh);
  line-height: .8;
  letter-spacing: -.025em;
}
.hero-front > span {
  display: block;
  width: max-content;
  transform-origin: left top;
  transform: scaleX(var(--type-scale, 1));
}
.hero-cutout {
  position: absolute;
  z-index: 2;
  /* Shifted right and slightly smaller: the hair must not cover "Mind" or "at". */
  left: 70%;
  bottom: 0;
  /* The vw cap stops tall portrait viewports (tablets) from growing the
     photo wider than the screen and burying the headline. */
  height: min(93cqh, 85vw);
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  /* Display the untouched analog JPG; use only the generated alpha channel. */
  -webkit-mask-image: url('assets/joanna-analog-mask-v1.png');
  mask-image: url('assets/joanna-analog-mask-v1.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero-description {
  position: absolute;
  z-index: 4;
  left: 3.2vw;
  bottom: 27px;
  width: 25%;
  max-width: 300px;
}
.hero-description p {
  font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.03em;
}
.hero-description .arrow-link {
  min-width: min(100%, 210px);
  max-width: 100%;
  margin-top: 15px;
  padding-block: 10px;
  color: var(--ink);
  border-color: var(--ink);
  font-size: 12px;
}
.hero-description .arrow-link span { color: var(--red); }

@media (max-width: 900px) and (min-width: 721px) {
  .hero-description { width: 27%; }
  .hero-description .arrow-link { min-width: 170px; gap: 12px; }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; }
  .site-header { padding-inline: 6vw; }
  .site-header .wordmark { font-size: 23px; letter-spacing: -1.2px; }
  .site-header .nav { gap: 20px; }
  .hero-kicker { top: 10px; left: 6vw; right: 6vw; font-size: 8px; }
  .hero-back {
    top: 10cqh;
    left: 5vw;
    right: 7vw;
    font-size: 21.5vw;
    letter-spacing: -.035em;
  }
  /* Raised so the top of the head slots between "Mind" and "at". */
  .hero-cutout { height: 63.5cqh; bottom: 24cqh; left: 66%; }
  .hero-front {
    top: 54cqh;
    left: 5vw;
    right: 6vw;
    font-size: min(37vw, 22cqh);
  }
  .hero-description {
    left: 6vw;
    bottom: 20px;
    width: 88%;
    max-width: none;
  }
  .hero-description p { font-size: 16px; line-height: 1.4; }
  .hero-description .arrow-link {
    margin-top: 10px;
    min-width: 190px;
    font-size: 11px;
    padding-block: 8px;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .hero-description { bottom: 14px; }
  .hero-description p { font-size: 14px; }
  .hero-description .arrow-link { margin-top: 7px; padding-block: 6px; }
}

@media (min-width: 721px) and (max-height: 560px) {
  :root { --header-height: 60px; }
  .hero-kicker { font-size: 9px; top: 4px; }
  .hero-description { bottom: 14px; }
  .hero-description p { font-size: 13px; line-height: 1.3; }
  .hero-description .arrow-link { margin-top: 5px; padding-block: 5px; }
}
