@font-face {
  font-family: "Ephesis";
  src: url("../assets/fonts/Ephesis/Ephesis-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.home-masthead {
  padding-top: var(--site-header-height);
  background:
    linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 70%)),
    #050605 url("../assets/images/home-hero-bg-mobile.png") center top / cover
      no-repeat;
  border-bottom: 1px solid var(--color-gold-subtle);
}

.home-hero {
  padding: 10px 0 24px;
  overflow-x: clip;
}

.hero-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "filters" "reel" "actions";
  justify-items: center;
  max-width: 1115px;
  margin-inline: auto;
}

.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  filter: var(--gold-icon-filter);
  pointer-events: none;
}

.hero-filters {
  display: grid;
  grid-area: filters;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) 40px;
  gap: 6px;
  width: min(100% - 24px, 346px);
}

.hero-select,
.hero-filter-toggle {
  min-width: 0;
  height: 32px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  background: rgb(5 6 5 / 64%);
  box-shadow: inset 0 0 1px rgb(245 223 172 / 35%);
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.hero-select {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-select > .hero-icon:first-of-type {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 16px;
}

.hero-select select {
  appearance: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 20px 0 29px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #eee9df;
  font-size: 12px;
  cursor: pointer;
}

.hero-select select option,
.extra-filters select option {
  color: #eee9df;
  background: #151410;
}

.hero-select--budget select {
  padding-inline: 26px 18px;
  font-size: 11px;
}

.hero-select__chevron {
  position: absolute;
  right: 8px;
}

.hero-select:focus-within {
  border-color: var(--color-gold);
}

.hero-filter-toggle {
  display: grid;
  place-items: center;
  padding: 0;
}

.hero-reel-viewport {
  grid-area: reel;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  margin-top: 16px;
  overflow: clip;
}

.hero-actions {
  display: flex;
  grid-area: actions;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 18px;
}

.hero-spin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 294px;
  min-height: 60px;
  padding: 9px 18px;
  border: 1px solid #ffb6a1;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse 12% 85% at 0% 50%,
      #ff8088 0%,
      rgb(255 76 102 / 55%) 42%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 12% 85% at 100% 50%,
      #ff8088 0%,
      rgb(255 76 102 / 55%) 42%,
      transparent 100%
    ),
    repeating-linear-gradient(
      92deg,
      transparent 0 13px,
      rgb(255 167 157 / 3%) 15px,
      transparent 19px 31px
    ),
    linear-gradient(
      180deg,
      #e64459 0%,
      #b7253e 12%,
      #85132c 42%,
      #740f27 60%,
      #a71c37 86%,
      #e74e61 100%
    );
  box-shadow:
    0 0 0 2px #391116,
    0 0 0 4px rgb(114 61 32 / 65%),
    inset 0 1px 2px #ffb8ab,
    inset 0 -1px 3px #ffa794,
    inset 5px 0 9px rgb(255 130 137 / 75%),
    inset -5px 0 9px rgb(255 130 137 / 75%),
    0 0 8px 3px rgb(244 73 92 / 65%),
    0 0 24px 5px rgb(192 25 50 / 42%);
  color: #fff0dc;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  text-shadow:
    0 1px 1px #460716,
    0 0 3px rgb(255 209 187 / 25%);
  transition:
    box-shadow 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.hero-spin::before {
  position: absolute;
  inset: -5px;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    #8c502d 0%,
    #ffe7a9 8%,
    #bd8550 24%,
    #ffe5ab 49%,
    #ae713e 72%,
    #ffdf94 94%,
    #94532c 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  content: "";
  pointer-events: none;
}

.hero-spin__glints {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
}

.hero-spin__glints > span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fffef1;
  box-shadow:
    0 0 3px 1px #fff4d3,
    0 0 7px 3px #fbb3ba,
    0 0 15px 5px rgb(246 55 81 / 65%);
  transform: translate(-50%, -50%);
}

.hero-spin__glints > span::before,
.hero-spin__glints > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #fff6dc 0%,
    rgb(255 147 156 / 90%) 24%,
    rgb(255 69 101 / 28%) 55%,
    transparent 75%
  );
  content: "";
  transform: translate(-50%, -50%);
}

.hero-spin__glints > span::before {
  width: 42px;
  height: 2px;
}

.hero-spin__glints > span::after {
  width: 2px;
  height: 26px;
}

.hero-spin__glints > span:nth-child(1) {
  top: 0;
  left: 21%;
}
.hero-spin__glints > span:nth-child(2) {
  top: 0;
  left: 50%;
}
.hero-spin__glints > span:nth-child(3) {
  top: 100%;
  left: 50%;
}
.hero-spin__glints > span:nth-child(4) {
  top: 50%;
  left: 0;
}
.hero-spin__glints > span:nth-child(5) {
  top: 50%;
  left: 100%;
}

.hero-spin > .hero-icon {
  filter: var(--gold-icon-filter) drop-shadow(0 0 2px var(--color-gold-subtle));
}

.hero-tagline {
  margin: 15px 0;
  color: #dedbd4;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.9px;
  text-align: center;
  text-transform: uppercase;
}

.hero-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 228px;
  min-height: 43px;
  padding: 6px 18px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  background: rgb(5 6 5 / 44%);
  box-shadow: inset 0 0 1px var(--color-gold);
  color: #eee9df;
  font-size: 16px;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.hero-filter-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 24px;
  border: 1px solid var(--color-gold);
  border-radius: 18px;
  background: rgb(15 14 11 / 96%);
  box-shadow: 0 12px 64px rgb(0 0 0 / 60%);
  color: #eee9df;
}

.hero-filter-dialog::backdrop {
  background: rgb(0 0 0 / 66%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html:has(.hero-filter-dialog[open]) {
  overflow: hidden;
}

.extra-filters {
  display: grid;
  gap: 18px;
}

.extra-filters__heading,
.extra-filters__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.extra-filters h2 {
  margin: 0;
  color: var(--color-gold);
  font-size: 25px;
  font-weight: 400;
}

.extra-filters__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-gold);
  font-size: 28px;
}

.extra-filters__field {
  display: grid;
  gap: 6px;
  font-size: 17px;
}

.extra-filters select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--color-gold) 55%, transparent);
  border-radius: 8px;
  background: #151410;
  color: inherit;
  font-size: 16px;
}

.extra-filters__check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  cursor: pointer;
}

.extra-filters__check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-gold);
}

.extra-filters__actions button {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--color-gold);
  font-size: 16px;
}

.extra-filters__actions .extra-filters__apply {
  background: var(--color-gold);
  color: #151410;
}

.home-hero select:focus-visible,
.home-hero button:focus-visible,
.home-hero a:focus-visible,
.hero-filter-dialog :focus-visible {
  outline: 2px solid var(--color-gold);
}

@media (hover: hover) {
  .hero-select:hover,
  .hero-filter-toggle:hover,
  .hero-browse:hover {
    border-color: var(--color-gold);
    background-color: rgb(61 48 25 / 55%);
  }

  .hero-spin:hover:not(:disabled) {
    filter: brightness(1.12);
  }

  .extra-filters button:hover {
    filter: brightness(1.2);
    background-color: #3c3220;
  }

  .extra-filters__actions .extra-filters__apply:hover {
    background-color: var(--color-gold);
  }
}

.hero-spin:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  filter: brightness(1.05);
}

.hero-spin-control { width: 294px; max-width: 100%; }
.hero-spin-control .hero-spin { width: 100%; }
.hero-spin-hint { margin: 12px 0 0; color: var(--color-gold); font-size: 13px; line-height: 1.3; text-align: center; }
.hero-spin[data-spin-state="spinning"] { cursor: progress; animation: spin-button-glow 1.4s ease-in-out infinite alternate; }
.hero-spin:is([data-spin-state="exhausted"], [data-spin-state="single"]) { cursor: not-allowed; filter: saturate(0.4) brightness(0.7); }
.hero-spin:is([data-spin-state="exhausted"], [data-spin-state="single"]) .hero-spin__glints { opacity: 0.25; }
.hero-spin[data-spin-state="error"] { border-color: #ffd7c5; }
@keyframes spin-button-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

.hero-filter-toggle:active,
.hero-browse:active,
.extra-filters button:active {
  opacity: 0.75;
}

@media (max-width: 379px) {
  .hero-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-tagline {
    letter-spacing: 1.2px;
  }
}

@media (min-width: 900px) {
  .home-masthead {
    background-image:
      linear-gradient(rgb(0 0 0 / 28%), rgb(0 0 0 / 28%)),
      url("../assets/images/home-hero-bg.png");
  }

  .home-hero {
    padding: 7px 24px 8px;
  }

  .hero-discovery {
    padding-left: 29px;
    position: relative;
    isolation: isolate;
    grid-template-columns: 620px minmax(0, 1fr);
    grid-template-rows: clamp(100px, 10.55vw, 116px) auto minmax(172px, 1fr);
    grid-template-areas: "reel title" "reel filters" "reel actions";
    column-gap: clamp(16px, 2.5vw, 28px);
    row-gap: 20px;
    justify-items: start;
    min-height: 376px;
  }

  .hero-discovery::before {
    position: absolute;
    grid-area: 2 / 2 / 4 / 3;
    z-index: -1;
    top: -8px;
    right: -40px;
    bottom: -24px;
    left: -58px;
    background: radial-gradient(
      ellipse at 48% 52%,
      rgb(0 0 0 / 62%) 0%,
      rgb(0 0 0 / 46%) 38%,
      rgb(0 0 0 / 20%) 62%,
      transparent 78%
    );
    content: "";
    pointer-events: none;
  }

  .hero-title {
    position: static;
    grid-area: title;
    align-self: center;
    width: auto;
    height: auto;
    padding-left: 8px;
    overflow: visible;
    clip-path: none;
    color: var(--color-gold);
    font-family: "Ephesis", "Crimson Text", cursive;
    max-width: 100%;
    font-size: clamp(32px, calc(10vw - 58px), 52px);
    font-weight: 400;
    line-height: 0.85;
    text-shadow: 0 1px 6px rgb(0 0 0 / 65%);
    transform: rotate(-5deg);
  }

  .hero-title span {
    display: block;
    padding-left: clamp(12px, calc(19vw - 159px), 50px);
    font-size: 0.85em;
    white-space: normal;
  }

  .hero-reel-viewport {
    width: 620px;
    min-height: 376px;
    align-self: start;
    margin-top: 0;
    overflow: visible;
  }

  .hero-filters {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 9px;
  }

  .hero-select {
    flex: 1 1 96px;
    height: 34px;
  }
  .hero-select--budget {
    flex-basis: 126px;
  }
  .hero-filter-toggle {
    flex: 0 0 44px;
  }

  .hero-select,
  .hero-filter-toggle {
    height: 38px;
  }

  .hero-select select {
    font-size: 13px;
  }

  .hero-actions {
    container-type: inline-size;
    align-items: flex-start;
    justify-content: start;
    gap: 16px;
    margin-top: 0;
    padding-left: 0;
  }

  .hero-spin {
    width: min(338px, 100%);
    min-height: 64px;
    gap: clamp(8px, 4cqi, 16px);
    padding-inline: clamp(10px, 4cqi, 18px);
    font-size: clamp(18px, 8.5cqi, 26px);
  }

  .hero-spin-control { width: min(338px, 100%); }

  .hero-spin > .hero-icon {
    width: clamp(28px, 15cqi, 46px);
    height: auto;
  }

  .hero-tagline {
    order: 1;
    width: min(338px, 100%);
    margin: 9px 0 0;
    letter-spacing: 1.6px;
  }

  .hero-browse {
    width: min(338px, 100%);
    border-radius: 8px;
    color: var(--color-gold);
    padding-inline: 10px;
    gap: 8px;
    font-size: clamp(14px, 5.23cqi, 16px);
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spin[data-spin-state="spinning"] { animation: none; }
  .home-hero *,
  .hero-filter-dialog * {
    transition: none !important;
  }
}

.home-content {
  background:
    linear-gradient(rgb(0 0 0 / 97%), rgb(0 0 0 / 70%)),
    #050605 url("../assets/images/home-hero-bg-mobile.png") center top / cover
      no-repeat;
}

.featured {
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--color-gold-subtle);
}

.featured__inner {
  width: calc(100% - 2 * var(--content-gutter));
  max-width: var(--content-max-width);
  margin-inline: auto;
}

.featured__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.popular-filters .featured__heading {
  margin-bottom: 1px;
}
.featured__intro h2 {
  margin: 0;
  font-size: clamp(21px, 6.15vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.9px;
}

.featured__intro p {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.15;
}

.featured__all {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  min-height: 33px;
  margin-left: auto;
  color: var(--color-gold);
  font-size: 13px;
}

.featured__city {
  display: none;
}
.why-ladylady {
  padding: 12px 0 49px;
}
.why-ladylady .featured__heading {
  margin-bottom: 10px;
}
.why-ladylady__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.popular-filters {
  border-bottom: 0;
  padding-top: 9px;
  padding-bottom: 0px;
}
.featured__empty {
  margin: 12px 0;
  color: #dedbd4;
  font-size: 16px;
}
.featured__all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.featured__all:active {
  opacity: 0.7;
}

@media (min-width: 900px) {
  .home-content {
    background:
      linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%)),
      #050605 url("../assets/images/home-sections-bg.png") center top / cover
        no-repeat;
  }
  .why-ladylady {
    padding: 5px 0;
  }
  .why-ladylady .featured__heading {
    margin-bottom: 3px;
  }
  .why-ladylady__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .featured {
    padding: 5px 0 0;
    border-bottom: 0;
  }
  .featured__heading {
    margin-bottom: 5px;
    gap: 24px;
  }
  .featured__intro h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  .featured__intro p {
    display: none;
  }
  .featured__all {
    min-height: 24px;
    font-size: 13px;
  }
  .featured__city {
    position: relative;
    display: block;
  }
  .featured__city > img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .featured__city > img:first-of-type {
    left: 0;
  }
  .featured__city > img:last-of-type {
    right: 4px;
  }
  .featured__city select {
    appearance: none;
    width: 140px;
    min-height: 28px;
    padding: 0 22px 0 24px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .featured__city option {
    background: #151410;
  }
  .featured__city select:focus {
    outline: 1px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .popular-filters .featured__heading {
    margin-bottom: 5px;
  }
}

@media (min-width: 1100px) {
  .hero-title {
    margin-top: 34px;
  }
}
