:root {
  color-scheme: light;
  --background: oklch(1 0 0);
  --foreground: oklch(0.269 0 0);
  --primary: oklch(0.145 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.page-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: 0 var(--page-gutter);
}

.site-header {
  display: flex;
  min-height: 8.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: block;
  width: clamp(9.5rem, 15vw, 13rem);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
}

.contact-link {
  position: relative;
  width: fit-content;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-decoration: none;
}

.contact-link::after {
  position: absolute;
  right: 0;
  bottom: 0.05rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover::after,
.contact-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: end;
  padding: clamp(6rem, 15vh, 11rem) 0 clamp(4rem, 9vh, 7rem);
}

.hero-copy,
.hero-details {
  animation: enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-details {
  animation-delay: 100ms;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--primary);
  font-size: clamp(3.5rem, 7.7vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.description {
  max-width: 35rem;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
}

.contact-link--mobile {
  display: none;
  margin-top: 2.25rem;
}

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

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

@media (max-width: 760px) {
  .site-header {
    min-height: 6.5rem;
  }

  .brand {
    width: 8.25rem;
  }

  .contact-link--header {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 4rem;
    padding: clamp(4.5rem, 13vh, 7rem) 0 3.5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5.4rem);
    line-height: 0.92;
  }

  .description {
    max-width: 29rem;
  }

  .contact-link--mobile {
    display: block;
  }

}

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