:root {
  --paper: #fffdf8;
  --ink: #161616;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 12px clamp(24px, 4vw, 64px);
  background: var(--paper);
}

.logo {
  grid-column: 2;
  display: block;
  height: 84px;
}

.logo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.instagram-link {
  grid-column: 3;
  justify-self: end;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 180ms ease, transform 180ms ease;
}

.instagram-link svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}

.instagram-link .ig-dot {
  fill: currentColor;
  stroke: none;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  background: rgba(22, 22, 22, 0.07);
  transform: rotate(7deg);
}

.instagram-link:focus-visible,
.logo:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: 520px;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: auto;
  max-width: 105vw;
  height: calc(100svh - var(--header-height));
  max-height: 980px;
  object-fit: contain;
  animation: appear 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 84px;
  }

  .site-header {
    padding: 8px 18px;
  }

  .logo {
    height: 66px;
  }

  .instagram-link {
    width: 40px;
    height: 40px;
  }

  .instagram-link svg {
    width: 23px;
    height: 23px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-image {
    max-width: 122vw;
    height: calc(100svh - var(--header-height) - 12px);
    max-height: 860px;
  }
}

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