@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #161512;
  color: #fff5e2;
}

body {
  margin: 0;
}

.title-card {
  box-sizing: border-box;
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: end;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 6vw, 7rem);
  padding-bottom: max(clamp(1.75rem, 8svh, 6rem), env(safe-area-inset-bottom));
}

.backdrop,
.title-card::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 49%;
}

.title-card::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg, rgb(16 13 11 / 91%), transparent 53%),
    linear-gradient(90deg, rgb(16 13 11 / 52%), transparent 67%);
}

h1 {
  margin: 0;
  width: max-content;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(3.6rem, min(12vw, 16svh), 10rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.83;
  transform: scaleX(0.64);
  transform-origin: left bottom;
  text-shadow: 0 0.06em 0.36em rgb(0 0 0 / 48%);
}

h1 span {
  display: block;
}

h1 span:last-child {
  font-size: 1.18em;
}

@media (max-aspect-ratio: 1/1) {
  .backdrop {
    object-position: 82% 46%;
  }

  .title-card::before {
    background: linear-gradient(0deg, rgb(16 13 11 / 94%), rgb(16 13 11 / 43%) 25%, transparent 55%);
  }

  h1 {
    font-size: clamp(2.4rem, min(19vw, 13svh), 8.5rem);
  }
}
