*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-fallback: #121619;
  --gold-light: #d4af37;
  --image-ratio: 4 / 3;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg-fallback);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-fallback);
  padding: 0;
  overflow: hidden;
}

.page__frame {
  position: relative;
  aspect-ratio: var(--image-ratio);
  width: min(100vw, calc(100dvh * 4 / 3));
  height: min(100dvh, calc(100vw * 3 / 4));
  max-width: 100vw;
  max-height: 100dvh;
  flex-shrink: 0;
}

.page__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contacts {
  position: absolute;
  left: 50%;
  bottom: 3.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.55rem, 1.4vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  z-index: 1;
}

.contacts__link {
  color: transparent;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 2px;
}

.contacts__link:hover {
  background: rgba(197, 160, 89, 0.15);
}

.contacts__link:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.contacts__sep {
  width: 1px;
  height: 1.1em;
}

@media (max-width: 480px) {
  .contacts {
    bottom: 3%;
    gap: 0.9rem;
    font-size: 0.52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contacts__link {
    transition: none;
  }
}
