@font-face {
  font-family: "Archivo Black";
  src: url("Vice%20Sunset/archivo-black.ttf") format("truetype");
  font-display: swap;
}

main .post-hero {
  --hero-frame: min(1360px, calc(100vw - 42px));
  display: grid;
  width: var(--hero-frame);
  max-width: none;
  margin: clamp(16px, 3vw, 36px) calc((100% - var(--hero-frame)) / 2) clamp(24px, 4vw, 52px);
  color: #fff3e8;
}
.post-hero figure {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #211929;
}
.post-hero figure > a { display: block; }
.post-hero figure img {
  display: block;
  width: 100%;
  height: clamp(400px, 46vw, 660px);
  object-fit: cover;
  object-position: center var(--hero-focus, 50%);
}
.post-hero:not(.post-hero--illustration) figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, #180f1ff0 0%, #21192965 40%, transparent 68%),
    linear-gradient(90deg, #211929ba 0%, #2119293d 58%, transparent 85%);
}
.post-hero .post-hero-copy {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: end;
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 5vw, 72px);
  pointer-events: none;
}
.post-hero .post-hero-copy [contenteditable="true"] { pointer-events: auto; }
main .post-hero .post-hero-copy h1 {
  max-width: 16ch;
  margin: .15em 0 .28em;
  color: inherit;
  font: 400 clamp(44px, 6.1vw, 88px)/.99 "Archivo Black", system-ui, sans-serif;
  letter-spacing: -.052em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.post-hero .post-hero-copy :is(.kicker, .eyebrow) {
  margin: 0;
  color: #a7e6d4;
  font: 750 .8rem/1.35 system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.post-hero .post-hero-copy :is(.byline, small) {
  display: block;
  margin: 0;
  color: #f5d6e5;
  font: 500 .88rem/1.45 system-ui, sans-serif;
}
.post-hero .post-hero-copy .lead {
  max-width: 45ch;
  margin: 0 0 .65rem;
  color: #fff3e8;
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.post-hero .post-hero-caption {
  grid-column: 1;
  margin: .65rem 0 0;
  color: var(--ink);
  font: .9rem/1.5 system-ui, sans-serif;
}
main .post-hero--illustration { margin-top: 0; }
.post-hero--illustration figure img { height: auto; }
.studio-on .post-hero figure::before {
  content: "Change header image";
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .4rem .7rem;
  border: 1px solid #fff3e899;
  border-radius: 5px;
  background: #211929e8;
  color: #fff3e8;
  font: 650 .82rem/1.3 system-ui, sans-serif;
  pointer-events: none;
}

@media (max-width: 670px) {
  main .post-hero { --hero-frame: calc(100vw - 24px); }
  .post-hero:not(.post-hero--illustration) {
    border-radius: 10px;
    background: #211929;
  }
  .post-hero:not(.post-hero--illustration) figure {
    border-radius: 10px 10px 0 0;
  }
  .post-hero:not(.post-hero--illustration) figure img {
    height: auto;
    aspect-ratio: 16 / 11;
  }
  .post-hero:not(.post-hero--illustration) figure::after {
    background: linear-gradient(0deg, #211929 0%, #21192965 15%, transparent 33%);
  }
  .post-hero .post-hero-copy {
    grid-area: 2 / 1;
    margin-top: -1.1rem;
    padding: 0 18px 22px;
  }
  main .post-hero .post-hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 55px);
  }
  .post-hero .post-hero-caption {
    margin: 0;
    padding: 0 18px 16px;
    color: #f5d6e5;
  }
}

@media (min-width: 671px) {
  .post-hero .post-hero-caption { padding-inline: clamp(12px, 2vw, 24px); }
  .post-hero--copy-right .post-hero-copy { margin-inline-start: 43%; }
  .post-hero.post-hero--copy-right figure::after {
    background:
      linear-gradient(0deg, #180f1ff0 0%, #21192965 38%, transparent 65%),
      linear-gradient(270deg, #211929db 0%, #21192955 49%, transparent 70%);
  }
}
