:root {
  color-scheme: light dark;
  --background: #fafaf9;
  --primary-text: #1c1917;
  --secondary-text: #78716c;
  --rule: #1c1917;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1917;
    --primary-text: #fafaf9;
    --secondary-text: #a8a29e;
    --rule: #d9d6d1;
  }
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--primary-text);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 34px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: flex-start;
}

.site-footer {
  justify-content: flex-start;
}

.brand-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-icon img {
  display: block;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--secondary-text);
  font-size: 14px;
  font-weight: 680;
}

.nav a {
  text-decoration: none;
}

.nav a:focus-visible,
.nav a:hover,
.brand-icon:focus-visible,
.brand-icon:hover {
  color: var(--primary-text);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero,
.legal,
.profile {
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  width: min(100%, 1460px);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(420px, 560px);
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 52px);
  padding: clamp(34px, 7vh, 72px) 0 clamp(34px, 7vh, 84px);
}

.hero-copy,
.profile-copy,
.legal-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(64px, 6.8vw, 118px);
  line-height: 0.94;
  font-weight: 780;
  letter-spacing: 0;
}

.profile h1,
.legal h1 {
  font-size: clamp(44px, 7vw, 82px);
  max-width: 760px;
}

.app-store-link,
.coming-soon-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 56px;
  text-decoration: none;
}

.coming-soon-cta {
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: #1c1917;
  font-size: 17px;
  font-weight: 740;
}

.app-store-link img {
  display: block;
  width: 100%;
  height: auto;
}

.app-store-link:hover,
.profile-cta:hover {
  outline: none;
}

.app-store-link:focus-visible,
.profile-cta:focus-visible,
.coming-soon-cta:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 4px;
}

.profile-cta {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-text);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--background);
  background: var(--primary-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 0;
}

.shot {
  width: clamp(420px, 30vw, 560px);
  aspect-ratio: 2 / 3;
  margin: 0;
  justify-self: center;
  background-image: url("/assets/app-screenshot.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 238% auto;
}

.legal,
.profile {
  flex: 1;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 12vh, 118px) 0;
}

.legal-copy {
  width: 100%;
  padding-top: 18px;
  border-top: 2px solid var(--rule);
}

.coming-soon {
  margin: 0;
  font-size: clamp(28px, 7vw, 64px);
  line-height: 1;
  font-weight: 760;
}

.site-footer {
  margin-top: auto;
  color: var(--secondary-text);
  font-size: 13px;
  font-weight: 650;
  padding-top: 28px;
}

@media (max-width: 780px) {
  .page {
    min-height: 100svh;
    padding: 18px 16px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 30px;
    padding: 34px 0 34px;
  }

  .hero-copy,
  .profile-copy,
  .legal-copy {
    gap: 22px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
    line-height: 0.96;
  }

  .profile h1,
  .legal h1 {
    font-size: clamp(40px, 11vw, 54px);
  }

  .app-store-link,
  .coming-soon-cta {
    width: 166px;
    height: 52px;
  }

  .shot {
    display: none;
  }

  .legal,
  .profile {
    min-height: auto;
    align-items: flex-start;
    padding: 58px 0 44px;
  }
}

@media (max-width: 420px) {
  .nav {
    flex-wrap: wrap;
  }

  .profile-cta {
    width: 100%;
  }
}
