:root {
  --white: #ffffff;
  --text: #090909;
  --text-ink: #000000;
  --text-soft: #282828;
  --orange: #ff5500;
  --rule: rgba(34, 34, 34, 0.15);
  --gutter: 138px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}

button,
input {
  font: inherit;
}

.site-header {
  height: 131px;
  padding: 73px var(--gutter) 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  width: 125px;
  height: 26px;
}

.brand img {
  display: block;
  width: 125px;
  height: 26px;
  object-fit: contain;
}

.pill-button {
  appearance: none;
  border: 1px solid var(--orange);
  border-radius: 162px;
  background: var(--orange);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.51px;
  cursor: pointer;
}

.nav-button,
.form-button {
  width: 135px;
}

.nav-button {
  font-weight: 600;
}

main {
  padding: 0 var(--gutter);
}

.hero {
  margin-top: 152px;
}

h1 {
  margin: 0;
  max-width: 889px;
  color: var(--text);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 73px;
  line-height: 0.872;
  font-weight: 700;
  letter-spacing: -1px;
}

h1 span {
  color: var(--orange);
}

.manifesto-copy {
  margin-top: 44px;
  max-width: 1071px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  line-height: 1.51;
  font-weight: 400;
  letter-spacing: 0;
}

.manifesto-copy p {
  margin: 0 0 32px 0;
}

.manifesto-copy p:last-child {
  margin-bottom: 0;
}

.signup {
  margin-top: 104px;
  max-width: 782px;
}

.signup h2 {
  margin: 0;
  width: 526px;
  max-width: 100%;
  color: var(--text-ink);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 32px;
  line-height: 1.625;
  font-weight: 700;
  letter-spacing: -1px;
}

.signup-copy {
  margin: 0 0 54px 0;
  width: 446px;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.425px;
}

.signup-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 644px;
  max-width: 100%;
}

.signup-form input {
  width: 497px;
  height: 58px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font-size: 17px;
  line-height: 58px;
  letter-spacing: -0.425px;
  outline-offset: 3px;
}

.signup-form input[aria-invalid="true"] {
  border-color: rgba(34, 34, 34, 0.35);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.form-message:empty {
  min-height: 0;
  margin-top: 0;
}

.site-footer {
  margin: 101px var(--gutter) 0 var(--gutter);
  padding-bottom: 186px;
}

.footer-rule {
  height: 1px;
  background: var(--rule);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-top: 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.footer-copy p {
  margin: 0;
}

.footer-copy p:first-child {
  width: 248px;
  font-weight: 500;
}

.footer-copy p:last-child {
  width: 520px;
  text-align: right;
  font-weight: 400;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  :root {
    --gutter: 38px;
  }

  .site-header {
    height: 118px;
    padding-top: 38px;
  }

  .hero {
    margin-top: 84px;
  }

  h1 {
    max-width: 704px;
    font-size: clamp(46px, 8.15vw, 66px);
    line-height: 0.94;
  }

  .manifesto-copy {
    margin-top: 46px;
    max-width: 704px;
    font-size: 23px;
    line-height: 1.52;
    letter-spacing: -0.1px;
  }

  .signup {
    margin-top: 105px;
    max-width: 734px;
  }

  .signup h2 {
    line-height: 1.16;
  }

  .signup-copy {
    margin: 18px 0 34px 0;
    width: 562px;
  }

  .signup-form {
    width: 734px;
  }

  .signup-form input {
    width: auto;
    flex: 1 1 auto;
  }

  .site-footer {
    margin-top: 100px;
    padding-bottom: 142px;
  }

  .footer-copy p:last-child {
    width: 390px;
  }
}

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

  .site-header {
    height: 92px;
    padding-top: 28px;
  }

  .brand,
  .brand img {
    width: 104px;
    height: 22px;
  }

  .nav-button {
    width: 116px;
    height: 50px;
    font-size: 15px;
    letter-spacing: -0.45px;
  }

  .hero {
    margin-top: 48px;
  }

  h1 {
    max-width: 346px;
    font-size: clamp(40px, 11.8vw, 46px);
    line-height: 0.96;
  }

  .manifesto-copy {
    margin-top: 35px;
    max-width: 346px;
    font-size: 18px;
    line-height: 1.58;
    letter-spacing: -0.25px;
  }

  .manifesto-copy p {
    margin-bottom: 26px;
  }

  .signup {
    margin-top: 78px;
    max-width: 346px;
  }

  .signup h2 {
    width: 346px;
    font-size: 31px;
    line-height: 1.02;
  }

  .signup-copy {
    margin-top: 17px;
    margin-bottom: 30px;
    width: 346px;
    font-size: 16px;
    line-height: 1.52;
    letter-spacing: -0.35px;
  }

  .signup-form {
    width: 346px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .signup-form input {
    width: 100%;
    height: 56px;
    line-height: 56px;
  }

  .form-button {
    width: 100%;
    height: 56px;
  }

  .site-footer {
    margin-top: 74px;
    padding-bottom: 88px;
  }

  .footer-copy {
    display: block;
    padding-top: 28px;
  }

  .footer-copy p:first-child,
  .footer-copy p:last-child {
    width: 315px;
    text-align: left;
  }

  .footer-copy p:last-child {
    margin-top: 20px;
  }
}
