@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/home/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

.home-carousel {
  --hero-ink: #26221e;
  --hero-cream: #f1ede5;
  --hero-gutter: max(5.2vw, calc((100vw - 1320px) / 2));
  color: var(--hero-ink);
}

.home-slides {
  display: grid;
  isolation: isolate;
  background: var(--hero-cream);
  touch-action: pan-y pinch-zoom;
}

.home-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  min-height: clamp(440px, min(38vw, 68svh), 570px);
  background: var(--hero-cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}

.home-slide.is-current {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.home-slide-sun { --hero-cream: #eee5d8; }
.home-slide-kids { --hero-cream: #edf0e7; }

.home-slide-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  background: #d5c8b8;
}

.home-slide-media picture,
.home-slide-media img,
.home-slide-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-slide-media img,
.home-slide-media video {
  object-fit: cover;
}

.home-slide-kids .home-slide-media img { object-position: right center; }

.home-slide-media video {
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.home-slide-media video.has-frame { opacity: 1; }

.home-slide-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 50px 18px 50px var(--hero-gutter);
}

.home-slide:not(.is-current) .home-slide-copy { visibility: hidden; }

.home-slide-copy :is(h1, h2) {
  margin: 0;
  font: 400 clamp(55px, 6.3vw, 106px)/.94 "Instrument Serif", Georgia, serif;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.home-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 21px;
  margin-top: 32px;
}

.home-shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 10px 19px;
  border-radius: 100px;
  background: var(--hero-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: background .2s;
}

.home-shop-button:hover { background: #544337; }
.home-shop-button svg { width: 18px; height: 18px; }

.home-sub-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-fitting-charge {
  margin-top: 15px;
  color: #453e35;
  font-size: 14px;
  line-height: 1.45;
}

.home-slide-kids .home-slide-actions { margin-top: 19px; }

.home-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 61px;
  padding-inline: var(--hero-gutter);
  border-bottom: 1px solid var(--line);
}

.home-slide-select,
.home-carousel-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-slide-select { gap: 26px; }

.home-carousel-controls button {
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
}

.home-slide-select button {
  min-height: 48px;
  padding: 0 2px;
  color: #655b51;
  font-size: 13px;
  white-space: nowrap;
}

.home-slide-select button[aria-current],
.home-slide-select button:hover {
  color: var(--hero-ink);
}

.home-slide-select button[aria-current]::after {
  position: absolute;
  inset: auto 2px 4px;
  height: 2px;
  background: currentColor;
  content: "";
}

.home-carousel-buttons button {
  width: 42px;
  height: 44px;
  border-radius: 50%;
}

.home-carousel-buttons button:hover { background: #f2eee8; }
.home-carousel-buttons svg { width: 17px; height: 17px; }
[data-previous-slide] svg { transform: rotate(180deg); }
.home-motion svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.home-motion .home-play-icon,
.home-carousel.is-paused .home-pause-icon { display: none; }
.home-carousel.is-paused .home-play-icon { display: inline; }
.home-static-offer { padding-block: 14px; text-decoration: underline; }

.home-categories { padding-top: 44px; }
.home-categories .section-heading h2 {
  font: 400 clamp(37px, 4.1vw, 61px)/1 "Instrument Serif", Georgia, serif;
  letter-spacing: -.01em;
}

@media (max-width: 760px) {
  .home-carousel { --hero-gutter: 18px; }

  .home-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(220px, 66vw, 350px) minmax(207px, 1fr);
    min-height: 0;
  }

  .home-slide-media { grid-column: 1; }
  .home-slide-copy { grid-row: 2; padding: 20px var(--hero-gutter) 22px; }
  .home-slide-copy :is(h1, h2) { font-size: clamp(45px, 11.4vw, 62px); text-wrap: initial; }
  .home-slide-copy br { display: none; }
  .home-slide-actions { gap: 3px 17px; margin-top: 14px; }
  .home-shop-button { min-height: 44px; padding-inline: 15px; gap: 12px; font-size: 12px; }
  .home-sub-link { font-size: 12px; }
  .home-fitting-charge { margin-top: 10px; font-size: 13px; }
  .home-slide-kids .home-slide-actions { margin-top: 10px; }

  .home-carousel-controls { min-height: 52px; padding-inline: 12px; gap: 4px; }
  .home-slide-select { gap: clamp(5px, 2.7vw, 20px); }
  .home-slide-select button { min-height: 44px; font-size: clamp(11px, 3vw, 13px); }
  .home-carousel-buttons { gap: 0; }
  .home-carousel-buttons button { width: clamp(32px, 10.6vw, 44px); }
  .home-categories { padding-top: 30px; }
}

@media (max-width: 360px) {
  .home-carousel-controls { gap: 2px; padding-inline: 8px; }
  .home-slide-select { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide, .home-slide-media video, .home-shop-button { transition: none; }
}
