@font-face {
  font-family: "TDB Display";
  src: url("assets/rajdhani-700-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "TDB Body";
  src: url("assets/ubuntu-400-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "TDB Body";
  src: url("assets/ubuntu-700-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:where(.home-slideshow > :is(.container, .wide), .golf-poster main) {
  container-type: inline-size;
}

.home-tuning-poster {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 40vw, 635px);
  min-height: clamp(420px, 40cqw, 635px);
  overflow: hidden;
  background: #121212;
  color: #fff;
  scroll-margin-top: 16px;
}

.home-tuning-poster .tuning-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  display: block;
  width: 59%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.home-tuning-poster::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #121212 41%, rgb(18 18 18 / 76%) 46%, rgb(18 18 18 / 25%) 54%, transparent 64%);
}

.home-tuning-poster .tuning-copy {
  box-sizing: border-box;
  width: 51%;
  padding: 32px clamp(20px, 5vw, 80px);
  padding: 32px clamp(20px, 5cqw, 80px);
}

.home-tuning-poster :is(h1, h2) {
  margin: 0;
  color: inherit;
  font: 700 clamp(35px, 5.25vw, 98px)/.95 "TDB Display", "Arial Narrow", sans-serif;
  font-size: clamp(35px, 5.25cqw, 98px);
  letter-spacing: .005em;
  text-transform: uppercase;
}

.home-tuning-poster :is(h1, h2) span { display: block; }

.home-tuning-poster .hook {
  margin: 14px 0 0;
  color: #ff3b3b;
  font: 700 clamp(18px, 2vw, 26px)/1.45 "TDB Body", Ubuntu, sans-serif;
}

.home-tuning-poster .tuning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-tuning-poster :is(.poster-primary, .poster-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font: 700 15px/1.2 "TDB Body", Ubuntu, sans-serif;
  text-align: center;
  text-decoration: none;
}

.home-tuning-poster .poster-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 20px rgb(220 38 38 / 40%);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-tuning-poster .poster-secondary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgb(59 130 246 / 30%);
  letter-spacing: .04em;
  text-transform: none;
}

.home-tuning-poster :is(.poster-primary, .poster-secondary):hover { filter: brightness(1.1); }
.home-tuning-poster a:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 3px; }

.home-tuning-poster .dealer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 13px;
  color: #dcdcd8;
  font: 400 14px/1.5 "TDB Body", Ubuntu, sans-serif;
}

.home-tuning-poster .dealer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@container (min-width: 691px) and (max-width: 980px) {
  .home-tuning-poster { min-height: clamp(420px, 48cqw, 475px); }
}

@media (max-width: 690px) {
  .home-tuning-poster {
    grid-template-rows: auto 1fr;
    min-height: clamp(415px, calc(190px + 72vw), 532px);
    min-height: clamp(415px, calc(190px + 72cqw), 532px);
  }
  .home-tuning-poster .tuning-photo {
    position: static;
    width: 100%;
    height: clamp(158px, 57vw, 225px);
    height: clamp(158px, 57cqw, 225px);
    object-position: 50% 41%;
  }
  .home-tuning-poster::after { display: none; }
  .home-tuning-poster .tuning-copy {
    width: 100%;
    padding: 16px clamp(14px, 4vw, 24px) 18px;
    padding: 16px clamp(14px, 4cqw, 24px) 18px;
  }
  .home-tuning-poster :is(h1, h2) {
    font-size: clamp(32px, 9.5vw, 58px);
    font-size: clamp(32px, 9.5cqw, 58px);
  }
  .home-tuning-poster .hook { margin-top: 8px; font-size: 18px; }
  .home-tuning-poster .tuning-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .home-tuning-poster :is(.poster-primary, .poster-secondary) { padding: 8px; font-size: 14px; }
  .home-tuning-poster .dealer { margin-top: 6px; }
}

@media (max-width: 360px) {
  .home-tuning-poster .hook { font-size: 16px; }
  .home-tuning-poster .tuning-copy { padding-bottom: 15px; }
}
