@font-face {
  font-family: "Untitled Sans";
  font-display: block;
  font-style: normal;
  font-weight: 400;
  src: url("fonts/untitled-sans-regular.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: "Untitled Sans", -apple-system, BlinkMacSystemFont, "Avenir Next",
    Avenir, "Segoe UI", "Helvetica Neue", "Adwaita Sans", Cantarell, Ubuntu,
    Roboto, Noto, Helvetica, Arial, sans-serif;
  font-feature-settings: normal;
  font-optical-sizing: auto;
  font-variation-settings: normal;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100%;
  margin: 0;
}

body ::selection {
  color: #000;
  background: rgb(0 0 0 / 10%);
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0.875rem 1rem;
  color: #D6D6D6;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;

  @media (min-width: 640px) {
    padding: 1.25rem 1.5rem;
  }

  @media (min-width: 768px) {
    font-size: 2.5rem;
  }
}

.description {
  max-width: 55rem;
  text-wrap: pretty;
}

h1 {
  display: inline;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;

  &:hover {
    color: var(--hover-color, #0000ff);
  }

  &[style*="--hover-gradient"]:hover {
    background-image: var(--hover-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.multi-link {
  cursor: help;
}

.old-site {
  margin-top: auto;
}

.hide-until-md {
  display: none;

  @media (min-width: 768px) {
    display: inline;
  }
}

.hide-until-lg {
  display: none;

  @media (min-width: 1024px) {
    display: inline;
  }
}

.travels-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.25rem;
  background: rgb(0 0 0 / 55%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.travels-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.travels-overlay img {
  display: block;
  max-width: min(100%, 28rem);
  max-height: calc(100dvh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(0.98);
  transition: transform 0.35s ease;
}

.travels-overlay.is-open img {
  transform: none;
}

.travels-overlay-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .travels-overlay,
  .travels-overlay img {
    transition: none;
  }
}

body.travels-overlay-open {
  overflow: hidden;
}
