@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #1f2c2d;
  --muted: rgba(31, 44, 45, .68);
  --paper: #fff8df;
  --honey: #f4bd42;
  --line: rgba(31, 44, 45, .16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  position: relative;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/outhives-bg-variant-3.png");
  background-size: cover;
  background-position: center;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 252, 232, .66) 0%, rgba(255, 252, 232, .30) 38%, rgba(255, 252, 232, .06) 74%),
    linear-gradient(180deg, rgba(255, 252, 232, .20), rgba(255, 252, 232, .02) 56%, rgba(255, 252, 232, .22));
}

.topbar,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 4.1vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark {
  width: clamp(32px, 3.8vw, 50px);
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 68%;
  aspect-ratio: 1;
  background: url("assets/outhives-icon.svg") center / contain no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: rgba(31, 44, 45, .76);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
}

.nav a,
.foot span {
  text-shadow: 0 1px 18px rgba(255, 252, 232, .44);
}

.nav a {
  transition: color .2s ease, transform .2s ease;
}

.nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  align-self: center;
  width: min(680px, 62vw);
  padding-bottom: 8vh;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 122px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: 0;
  max-width: 10ch;
}

.copy {
  margin: 26px 0 0;
  max-width: 35rem;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.34;
}

.foot {
  color: rgba(31, 44, 45, .62);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
}

@media (max-width: 760px) {
  .page {
    padding: 22px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    gap: 16px;
    padding-top: 5px;
  }

  .hero {
    width: min(100%, 560px);
    padding-bottom: 14vh;
  }

  h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

  .copy {
    max-width: 23rem;
  }

  .foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .brand span:last-child {
    font-size: 34px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}
