@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/bebas-neue-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #111310;
  --paper: #eef0e9;
  --paper-muted: #c8cbc1;
  --acid: #d7fb48;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--paper);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.5rem, 2.6vw, 3rem) clamp(1.5rem, 4.2vw, 5rem);
  background:
    linear-gradient(rgb(17 19 16 / 0.035) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--paper);
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  animation: rise-in 0.9s 0.1s var(--ease-out) both;
}

.masthead__name {
  display: grid;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.35rem, 1.65vw, 2rem);
  line-height: 0.82;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.masthead__name:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 0.35rem;
}

.masthead__role,
.edition,
.message__eyebrow {
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.masthead__role {
  padding-top: 0.1rem;
}

.message {
  align-self: center;
  width: min(100%, 44rem);
  padding-block: 3rem;
}

.message__eyebrow {
  width: max-content;
  margin: 0 0 clamp(1.2rem, 2vw, 2rem);
  padding: 0.65rem 0.8rem 0.58rem;
  background: var(--acid);
  animation: rise-in 0.9s 0.2s var(--ease-out) both;
}

.message__title {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

.message__under,
.message__construction {
  display: block;
}

.message__under {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6.4rem, 11.4vw, 14.2rem);
  line-height: 0.72;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  animation: title-in 1.05s 0.16s var(--ease-out) both;
}

.message__construction {
  position: relative;
  z-index: 4;
  width: max-content;
  max-width: 118%;
  margin-top: clamp(0.7rem, 1.4vw, 1.35rem);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(3rem, 5.45vw, 6.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
  animation: title-in 1.05s 0.3s var(--ease-out) both;
}

.message__construction::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.08em;
  left: -0.02em;
  height: 0.14em;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.9s 0.95s var(--ease-out) forwards;
}

.message__note {
  max-width: 34ch;
  margin: clamp(2rem, 3vw, 3.4rem) 0 0;
  color: #343832;
  font-size: clamp(0.95rem, 1.1vw, 1.22rem);
  line-height: 1.55;
  text-wrap: pretty;
  animation: rise-in 0.9s 0.55s var(--ease-out) both;
}

.edition {
  align-self: end;
  width: max-content;
  margin: 0;
  color: #4c514a;
  animation: rise-in 0.9s 0.7s var(--ease-out) both;
}

.portrait {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d5d3c9;
  clip-path: polygon(5.5% 0, 100% 0, 100% 100%, 0 100%);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(17 19 16 / 0.25), transparent 20%),
    linear-gradient(0deg, rgb(17 19 16 / 0.3), transparent 28%);
  pointer-events: none;
}

.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 53%;
  filter: saturate(0.82) contrast(1.02);
  transform: scale(1.045);
  animation: photo-in 1.4s var(--ease-out) forwards;
}

.hero__seam {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 45.78%;
  width: 0.28rem;
  background: var(--acid);
  transform: skewX(-3deg) scaleY(0);
  transform-origin: top;
  animation: seam-in 1s 0.65s var(--ease-out) forwards;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photo-in {
  to {
    transform: scale(1);
  }
}

@keyframes seam-in {
  to {
    transform: skewX(-3deg) scaleY(1);
  }
}

@keyframes underline-in {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 820px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(22rem, 56dvh) minmax(20rem, 44dvh);
    overflow: auto;
  }

  .hero__copy {
    z-index: 4;
    grid-row: 2;
    grid-template-rows: auto 1fr;
    min-height: 44dvh;
    padding: 1.15rem 1.25rem 1.4rem;
    border-top: 0.28rem solid var(--acid);
    background: var(--paper);
  }

  .masthead {
    position: absolute;
    bottom: calc(100% + 1.1rem);
    left: 1.25rem;
    width: calc(100vw - 2.5rem);
    align-items: end;
    color: #f4f5ef;
    text-shadow: 0 1px 18px rgb(17 19 16 / 0.48);
  }

  .masthead__name {
    font-size: 1.5rem;
  }

  .masthead__role {
    padding-bottom: 0.05rem;
  }

  .message {
    align-self: center;
    width: 100%;
    padding: 1.25rem 0 0;
  }

  .message__eyebrow {
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.62rem 0.46rem;
    font-size: 0.58rem;
  }

  .message__under {
    font-size: clamp(4.9rem, 24vw, 7.3rem);
    line-height: 0.7;
  }

  .message__construction {
    max-width: 100%;
    margin-top: 0.45rem;
    font-size: clamp(2.5rem, 12.8vw, 4rem);
  }

  .message__note {
    margin-top: 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .edition {
    display: none;
  }

  .portrait {
    grid-row: 1;
    min-height: 56dvh;
    clip-path: none;
  }

  .portrait::after {
    background: linear-gradient(0deg, rgb(17 19 16 / 0.55), transparent 38%);
  }

  .portrait img {
    object-position: 50% 43%;
  }

  .hero__seam {
    display: none;
  }
}

@media (max-width: 420px) and (max-height: 760px) {
  .hero {
    grid-template-rows: 52dvh 48dvh;
  }

  .hero__copy {
    min-height: 48dvh;
  }

  .portrait {
    min-height: 52dvh;
  }

  .message__under {
    font-size: clamp(4.45rem, 22vw, 5.7rem);
  }

  .message__construction {
    font-size: clamp(2.2rem, 11.8vw, 3.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --paper: #f7f8f3;
    --acid: #c5ee00;
  }

  .message__note,
  .edition {
    color: var(--ink);
  }
}
