html {
  scroll-behavior: smooth;
}

body {
  background: #0f1114;
  color: #f5f1e8;
}

header {
  background: rgba(15, 17, 20, .74) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px) saturate(140%);
}

::selection {
  background: rgba(212, 175, 55, .32);
  color: #fff8dc;
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

input,
select,
textarea {
  font-size: 16px;
}

.file-input {
  max-width: 100%;
}

.file-input::file-selector-button {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 8px;
  background: rgba(212, 175, 55, .12);
  color: #d4af37;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  margin-right: 10px;
  padding: 9px 12px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4af37;
}

button,
a {
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.hero {
  overflow: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(212, 175, 55, .18), transparent 28%),
    linear-gradient(90deg, rgba(15, 17, 20, .98), rgba(15, 17, 20, .76) 48%, rgba(15, 17, 20, .26)),
    url("https://images.unsplash.com/photo-1562141961-b5d52f8a9012?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero::before {
  animation: showroom-light 8s ease-in-out infinite;
  background: linear-gradient(105deg, transparent 0%, rgba(212, 175, 55, .16) 42%, rgba(255, 255, 255, .08) 50%, transparent 62%);
  content: "";
  inset: -20%;
  pointer-events: none;
  position: absolute;
  transform: translateX(-38%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero form,
article,
aside,
dialog,
footer,
section form {
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

article {
  animation: card-in .42s ease both;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

article:hover {
  border-color: rgba(212, 175, 55, .55);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  transform: translateY(-2px);
}

.bg-panel {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0));
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: page-in .36s ease both;
}

.navlink.is-active,
[data-favorites-route].is-active {
  color: #d4af37;
}

.mobile-chip-row {
  scrollbar-width: none;
}

.mobile-chip-row::-webkit-scrollbar {
  display: none;
}

dialog::backdrop {
  background: rgba(0, 0, 0, .72);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateY(16px);
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 8px;
  background: rgba(31, 35, 41, .96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  color: #f5f1e8;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(48, 54, 64, .95);
  border-radius: 14px;
  background: rgba(23, 26, 31, .96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  padding: 6px;
  backdrop-filter: blur(14px);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes showroom-light {
  0%, 35% {
    transform: translateX(-45%);
  }

  75%, 100% {
    transform: translateX(45%);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .max-w-3xl > p:first-child {
  animation: float-soft 4.8s ease-in-out infinite;
}

.mobile-navlink {
  align-items: center;
  border-radius: 10px;
  color: #aeb6c2;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 800;
  gap: 2px;
  justify-content: center;
  min-height: 54px;
}

.mobile-navlink .material-symbols-outlined {
  font-size: 21px;
}

.mobile-navlink.is-active {
  background: rgba(212, 175, 55, .12);
  color: #d4af37;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 84px;
  }
}

@media (max-width: 640px) {
  .hero {
    background-image:
      radial-gradient(circle at 18% 18%, rgba(212, 175, 55, .16), transparent 32%),
      linear-gradient(180deg, rgba(15, 17, 20, .94), rgba(15, 17, 20, .78)),
      url("https://images.unsplash.com/photo-1562141961-b5d52f8a9012?auto=format&fit=crop&w=1200&q=82");
  }

  dialog {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .toast {
    right: 12px;
    bottom: 92px;
    left: 12px;
  }
}

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