@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Manrope:wght@500;600&display=swap");

:root {
  --paper: #111615;
  --ink: #f2efe7;
  --muted: #90958f;
  --accent: #78a398;
  --line: rgba(242, 239, 231, 0.16);
  --page-gutter: clamp(24px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color-scheme: dark;
}

body {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0 var(--page-gutter);
  overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    rgba(242, 239, 231, 0.1) 0.55px,
    transparent 0.7px
  );
  background-size: 8px 8px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 84%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  opacity: 0.2;
  pointer-events: none;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header {
  height: clamp(84px, 8.2vw, 106px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
}

.header-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link {
  position: relative;
  padding: 8px 0;
}

.header-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 220ms ease;
}

.header-link:hover::after,
.header-link:focus-visible::after {
  transform: scaleX(0.38);
}

main {
  position: relative;
  display: grid;
  align-items: end;
  padding: clamp(72px, 13vh, 132px) 0 clamp(66px, 10vh, 104px);
}

.hero {
  position: relative;
  max-width: min(1080px, 88vw);
}

h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(56px, 8.15vw, 126px);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

h1 span {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: reveal 700ms 80ms both ease-out;
  }

  .hero {
    animation: reveal 900ms 160ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutter: 22px;
  }

  .site-header {
    height: 82px;
  }

  .brand span {
    max-width: 118px;
    line-height: 1.35;
  }

  main {
    align-items: center;
    padding: 72px 0 64px;
  }

  h1 {
    font-size: clamp(46px, 13.5vw, 62px);
    letter-spacing: -0.075em;
    line-height: 0.94;
  }

  h1 span {
    display: inline;
  }

  h1 span:first-child::after {
    content: " ";
  }
}

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