@font-face {
  font-family: "Google Sans";
  src: url("assets/fonts/google-sans-flex-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("assets/fonts/glacial-indifference-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-tint: #2b2218;
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background-color: var(--page-tint);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  color: #fff;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--page-tint);
}

.gallery,
.gallery__slide,
.gallery__slide picture,
.gallery__slide img,
.scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery {
  z-index: 0;
  margin: 0;
  background-color: var(--page-tint);
}

@supports not (height: 100dvh) {
  html {
    height: -webkit-fill-available;
  }

  body,
  .site-shell {
    min-height: -webkit-fill-available;
  }
}

.gallery__slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms ease-in-out,
    visibility 0s linear 900ms;
}

.gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 900ms ease-in-out,
    visibility 0s linear 0s;
}

.gallery__slide img {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.88) contrast(1.05);
}

.gallery__slide--left img {
  object-position: 28% 50%;
}

.gallery__slide--stars img {
  object-position: 50% 42%;
}

.gallery__slide--sunset img {
  object-position: 50% 58%;
}

.scrim {
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(92vw, 980px);
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 26px);
  text-align: center;
}

.hero__logo {
  display: block;
  width: clamp(230px, 34vw, 390px);
  height: auto;
  margin: clamp(-44px, -4vw, -20px) auto clamp(-46px, -4vw, -18px);
  object-fit: contain;
}

h1,
h2 {
  margin: 0;
}

h1 {
  max-width: 900px;
  font-family: "Google Sans", "Arial Nova", Arial, sans-serif;
  font-size: clamp(1.65rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.055em;
  margin: 0;
  text-wrap: balance;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  font-family: "Glacial Indifference", "Century Gothic", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.28rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.main-button {
  margin: 0;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  text-decoration: none;
  background: #1e2a24;
  transition: all 450ms ease-in-out;
}

.main-button:hover {
  background: #ba8e23;
}

.contact a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: opacity 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

.contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 640px) {
  .hero {
    width: min(100%, 540px);
    gap: 18px;
  }

  .hero__logo {
    width: clamp(215px, 70vw, 320px);
    margin-block: -34px -38px;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
    line-height: 1.08;
  }

  .contact {
    flex-wrap: wrap;
    gap: 0.25em 0.5em;
    max-width: 390px;
    font-size: clamp(0.88rem, 4vw, 1.05rem);
    letter-spacing: 0.045em;
  }
}

@media (max-width: 390px) {
  .contact {
    flex-direction: column;
  }

  .contact__separator {
    display: none;
  }
}

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

  .contact a {
    transition: none;
  }
}
